/* ==========================================================================
           CONFIGURACIÓN MAESTRA (APPLE DESIGN SYSTEM)
           ========================================================================== */
        :root {
            --bg: #ffffff;
            --text: #1d1d1f;
            --secondary: #86868b;
            --accent: #000000;
            --royal-red: #d1001a;
            --f-soft: #f5f5f7;
            --apple-blue: #0071e3;
            --apple-blue-light: #2997ff;
            --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body { 
            font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
            background: var(--bg); 
            color: var(--text); 
            -webkit-font-smoothing: antialiased; 
            overflow-x: hidden;
            line-height: 1.5;
        }

        /* CAPA SEO PROFUNDA */
        .seo-semantic-layer {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
        }


        /* HERO SEO-OPTIMIZADO */
        .hero { height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 5%; }
        .hero span.tag { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--royal-red); margin-bottom: 20px; }
        .hero h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; margin: 0; }
        .hero p { font-size: 1.4rem; color: var(--secondary); margin: 30px auto; font-weight: 300; max-width: 800px; }

        /* BOTONES DE ALTA CONVERSIÓN */
        .cta-group { display: flex; gap: 15px; }
        .btn { padding: 20px 45px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .btn-dark { background: var(--accent); color: #fff; }
        .btn-dark:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
        .btn-outline { border: 1px solid var(--accent); color: var(--accent); }

        /* SECCIÓN DE PLANES CON KEYWORDS DINÁMICAS */
        .section-title { text-align: center; padding: 80px 5% 40px; }
        .section-title h2 { font-size: 3rem; letter-spacing: -2px; }
        .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0 5% 100px; }
        
        .card { background: var(--f-soft); padding: 50px 30px; border-radius: 40px; transition: 0.4s ease; text-decoration: none; color: inherit; }
        .card:hover { background: #eee; transform: translateY(-5px); }
        .card.black { background: var(--accent); color: #fff; }
        .card h3 { font-size: 2rem; margin: 10px 0; }
        .card .price-tag { font-size: 0.9rem; font-weight: 700; color: var(--royal-red); }

        /* FOOTER SEO (EL DEPÓSITO DE KEYWORDS) */
        .seo-footer { background: var(--f-soft); padding: 80px 5%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; font-size: 0.9rem; }
        .seo-footer h4 { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; color: var(--secondary); }
        .seo-footer ul { list-style: none; padding: 0; line-height: 2; }
        .seo-footer a { color: var(--text); text-decoration: none; }
        .seo-footer a:hover { color: var(--royal-red); }

        @media (max-width: 900px) { .grid-3, .seo-footer { grid-template-columns: 1fr; } .hero h1 { font-size: 3.5rem; } }
    
    
        /* RESET PARA PRECISIÓN */
* { margin: 0; padding: 0; box-sizing: border-box; }

.apple-section {
    padding: 80px 5%;
    background: #ffffff;
    font-family: 'SF Pro Display', 'Inter', sans-serif;
}

.apple-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 40px;
    color: #1d1d1f;
}

.carousel-container {
    position: relative;
    overflow: visible;
}

.apple-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
    scrollbar-width: none;
}
.apple-carousel::-webkit-scrollbar { display: none; }

/* PROPORCIÓN TIPO CELULAR (9:16) EXACTA */
.apple-card {
    min-width: 320px; /* Ancho base iPhone */
    height: 570px;    /* Altura proporcional exacta */
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #000;
    cursor: pointer;
}

/* IMAGEN A SANGRE COMPLETA */
.apple-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* TEXTO ENCIMA DE LA IMAGEN */
.card-overlay {
    position: relative;
    padding: 30px;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Degradado sutil para asegurar legibilidad si la foto es clara */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%);
}

.card-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.card-headline {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    max-width: 240px;
}

/* VARIANTES DE COLOR PARA CARTAS CLARAS */
.card-light .card-overlay { background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, transparent 40%); }
.card-light .card-headline { color: #1d1d1f; }
.card-light .card-tag { color: #86868b; }

/* BOTÓN PLUS (+) INFERIOR */
.plus-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    z-index: 3;
}

/* CONTROLES DE NAVEGACIÓN INFERIORES */
.nav-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.nav-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f7;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.nav-dot:hover { background: #e8e8ed; }
    



.royal-ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    background: #fff;
}

.ad-card-royal {
    height: 580px; 
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* CENTRADO TOTAL DEL CONTENIDO */
    align-items: center;
    justify-content: center; 
    text-align: center;
    font-family: 'SF Pro Display', sans-serif;
}

/* GRADIENTES VIBRANTES BASADOS EN REFERENCIA */
.bg-vibrant-blue { background: #f5f5f7; color: #1d1d1f; }
.bg-vibrant-sunset { background: linear-gradient(180deg, #ff5e62 0%, #ff9966 100%); color: #fff; }
.bg-vibrant-purple { background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%); color: #fff; }
.bg-vibrant-dark { background: #000; color: #fff; }

.ad-header {
    z-index: 2;
    max-width: 85%;
    /* Asegura que el header no se pegue arriba, sino que flote en el centro */
    margin-bottom: 20px; 
}

.ad-category {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.01em;
}

.ad-main-title {
    font-size: 48px; /* Impacto visual Apple */
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.ad-btn-royal {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.btn-apple {
    background: #0071e3;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-link {
    color: #0071e3;
    font-size: 17px;
    text-decoration: none;
}
.btn-link:after { content: " >"; }

/* AJUSTE DE MEDIA PARA NO PISAR EL TEXTO CENTRADO */
.ad-media-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%; /* Reducido para dar aire al texto centrado */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.ad-media-container img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .royal-ads-grid { grid-template-columns: 1fr; }
    .ad-card-royal { height: 520px; }
    .ad-main-title { font-size: 38px; }
}





  /* SECCIÓN DE PLANES */
        .section { width: 100%; padding: 80px 0; }
        .section--white { background: #ffffff; }
        .section--grey { background: #f5f5f7; }

        .section-title { text-align: center; margin-bottom: 60px; padding: 0 5%; }
        .section-title h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -2px; font-weight: 800; }

        .grid-3 { 
            display: grid; grid-template-columns: repeat(3, 1fr); 
            gap: 30px; padding: 0 5%; max-width: 1400px; margin: 0 auto;
        }

        .card { 
            background: #ffffff; padding: 60px 45px; border-radius: 35px; 
            transition: var(--transition); display: flex; flex-direction: column;
            justify-content: space-between; min-height: 580px;
            border: 1px solid #e5e5e7; text-decoration: none; color: inherit;
        }

        .card:hover { transform: translateY(-10px); box-shadow: 0 40px 80px rgba(0,0,0,0.1); }

        .card.black { 
            background: #1d1d1f; color: #fff; border: none; 
            transform: scale(1.05); z-index: 10;
        }
        .card.black:hover { transform: scale(1.07) translateY(-10px); }

        .card h3 { font-size: 2.8rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin: 20px 0; }
        .card .price-tag { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: var(--royal-red); }
        .card p { font-size: 1.15rem; line-height: 1.6; color: var(--secondary); margin-bottom: 40px; }
        .card.black p { color: #a1a1a6; }

        .card-cta { font-size: 1.1rem; color: var(--apple-blue); font-weight: 600; cursor: pointer; }
        .card.black .card-cta { color: var(--apple-blue-light); }



/* LA TARJETA PRINCIPAL (SIGNATURE) CON EFECTO DE PROFUNDIDAD */
.card.black { 
    background: #1d1d1f; 
    color: #fff; 
    transform: scale(1.05); /* Sobresale sutilmente */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card h3 { 
    font-size: 2.5rem; 
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 15px 0; 
}

.card .price-tag { 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--royal-red); 
}

.card.black .price-tag { color: #ff3b30; } /* Rojo más vibrante en fondo negro */

.card p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--secondary);
    margin-bottom: 30px;
}

.card.black p { color: #a1a1a6; }

/* BOTÓN INTERNO DE TARJETA */
.card-cta {
    font-size: 17px;
    color: #0071e3;
    text-decoration: none;
    font-weight: 400;
}
.card-cta:after { content: " >"; }
.card.black .card-cta { color: #2997ff; }


    



        /* NAVEGACIÓN */
        nav { 
            display: flex; justify-content: space-between; align-items: center; 
            padding: 20px 5%; position: sticky; top: 0; 
            background: rgba(255,255,255,0.85); 
            -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); 
            z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); 
        }

        .logo { font-weight: 900; font-size: 1.2rem; letter-spacing: -1px; text-transform: uppercase; cursor: default; }
        .logo span { color: var(--royal-red); }

        /* HERO */
        .hero { 
            min-height: 90vh; display: flex; flex-direction: column; 
            align-items: center; justify-content: center; text-align: center; padding: 100px 5%; 
        }
        .hero span.tag { 
            font-size: 0.85rem; font-weight: 700; text-transform: uppercase; 
            letter-spacing: 2px; color: var(--royal-red); margin-bottom: 25px; 
        }
        .hero h1 { 
            font-size: clamp(2.8rem, 9vw, 6.5rem); font-weight: 900; 
            line-height: 0.95; letter-spacing: -0.05em; margin: 0; 
        }
        .hero p { 
            font-size: clamp(1.1rem, 3vw, 1.45rem); color: var(--secondary); 
            margin: 35px auto; font-weight: 400; max-width: 850px; 
        }

        /* BOTONES */
        .btn { 
            padding: 22px 48px; border-radius: 50px; text-decoration: none; 
            font-weight: 600; display: inline-block; transition: var(--transition); 
        }
        .btn-dark { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
        .btn-dark:hover { transform: scale(1.03); background: #333; }
        .btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }
        .btn-outline:hover { background: var(--accent); color: #fff; }

      






        /* RESPONSIVO MAESTRO */
        @media (max-width: 1100px) {
            .grid-3 { grid-template-columns: repeat(2, 1fr); }
            .card.black { transform: scale(1); grid-column: span 2; }
        }
        @media (max-width: 768px) {
            .grid-3, .seo-footer, .royal-ads-grid { grid-template-columns: 1fr; }
            .card.black { grid-column: span 1; }
            .hero h1 { font-size: 3.2rem; }
            .apple-card { min-width: 280px; height: 500px; }
            nav { padding: 15px 5%; }
        }
