/* =====================================================
   BASE / RESET GLOBAL
===================================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html, body { 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
}

*, *::before, *::after { 
    box-sizing: border-box; 
}

/* =====================================================
   VARIABLES
===================================================== */

:root {
    --header-height: 7rem;
    --header-height-small: 5.2rem;
    --gold: #c9a16a;
    --gold-dark: #8f6b3f;
    --text-main: #cda188;
    --bg-glass: rgba(255, 255, 255, 0.85);
}

/* =====================================================
   BODY
===================================================== */

body {
    font-family: 'fira code', 'libre baskerville', 'sans seriff';
    color: var(--text-main);
    padding-top: var(--header-height);
    background-color: #fff;
}

/* =====================================================
   HEADER
===================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    background: var(--bg-glass);
    /*backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    background-color: #5e0b69;
}

/* Header reducido al hacer scroll */
header.scrolled {
    min-height: var(--header-height-small);
    padding: 0.6rem 2rem 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* =====================================================
   LOGO
===================================================== */

.logo-a {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 11rem;
    width: auto;
    transition: height 0.35s ease;
}

header.scrolled .logo {
    height: 3.6rem;
}

/* =====================================================
   TITLE
===================================================== */

.main-title {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    max-width: 90%;
    font-family: 'libre baskerville';
}

/* =====================================================
   BUTTON CTA (3D EFFECT)
===================================================== */

.btn {
    margin-top: 1rem;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(145deg, var(--gold), #b08a55);
    box-shadow:
        0 6px 0 var(--gold-dark),
        0 12px 22px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    font-family: 'Libre Baskerville', 'Fira code', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 var(--gold-dark),
        0 16px 26px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(4px);
    box-shadow:
        0 3px 0 var(--gold-dark),
        0 6px 12px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   HEADER CTA – PREMIUM CONVERSION BUTTON
===================================================== */

.btn-header-cta,
header .btn {
    position: relative;
    letter-spacing: 0.04em;
    font-weight: 700;
    text-transform: uppercase;

    background: linear-gradient(
        135deg,
        #e6c48a,
        #c9a16a,
        #b08a55
    );

    box-shadow:
        0 6px 0 var(--gold-dark),
        0 14px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

/* Price emphasis (if span exists) */
.btn-header-cta .btn-price,
header .btn span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Hover — confident, not aggressive */
header .btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);

    box-shadow:
        0 8px 0 var(--gold-dark),
        0 20px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Active — tactile press */
header .btn:active {
    transform: translateY(3px);

    box-shadow:
        0 3px 0 var(--gold-dark),
        0 8px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Subtle premium glow */
header .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(
        circle at top,
        rgba(255,255,255,0.35),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

header .btn:hover::after {
    opacity: 1;
}

/* =====================================================
   HEADER CTA – DORADO / ALTA CONVERSIÓN
===================================================== */

header .btn {
    position: relative;
    padding: 1rem 2.8rem;
    font-family: 'Libre Baskerville', 'Fira Code', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    color: #5e0b69; /* burgundy */
    
    background: linear-gradient(
        135deg,
        #f6e7b2,  /* dorado claro */
        #e8c97a,  /* dorado medio */
        #c9a16a   /* dorado profundo */
    );

    border-radius: 999px;

    box-shadow:
        0 6px 0 #8f6b3f,
        0 18px 36px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;

    cursor: pointer;
}

/* ======================
   PRECIO – MUY VISIBLE
====================== */

header .btn .btn-price {
    display: inline-block;
    margin-top: 0.55rem;
    padding: 0.35rem 0.85rem;

    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #5e0b69,
        #7a1b5e
    );

    border-radius: 999px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 3px 8px rgba(0,0,0,0.35);
}

/* ======================
   HOVER – BRILLO DORADO
====================== */

header .btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);

    box-shadow:
        0 8px 0 #8f6b3f,
        0 26px 48px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.75);
}

/* ======================
   ACTIVE – TÁCTIL
====================== */

header .btn:active {
    transform: translateY(3px);

    box-shadow:
        0 3px 0 #8f6b3f,
        0 12px 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* ======================
   HALO DE LUZ (PREMIUM)
====================== */

header .btn::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: radial-gradient(
        circle,
        rgba(255,236,180,0.6),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

header .btn:hover::after {
    opacity: 1;
}


/* =====================================================
   WHATSAPP FLOAT BUTTON
===================================================== */

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    background: linear-gradient(145deg, #25D366, #1ebe5d);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow:
        0 6px 0 #1a9e4a,
        0 12px 22px rgba(0,0,0,0.25);
    z-index: 1100;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    animation: wa-shake 3.5s infinite;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 #1a9e4a,
        0 16px 28px rgba(0,0,0,0.3);
    filter: brightness(1.05);
}

.wa-float:active {
    transform: translateY(3px);
    box-shadow:
        0 3px 0 #1a9e4a,
        0 8px 14px rgba(0,0,0,0.2);
}

/* Shake animation */
@keyframes wa-shake {
    0%, 88%, 100% { transform: translate(0,0); }
    90% { transform: translate(-2px, 0); }
    92% { transform: translate(2px, 0); }
    94% { transform: translate(-2px, 0); }
    96% { transform: translate(2px, 0); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .wa-float {
        animation: none;
        transition: none;
    }
}

/* Print */
@media print {
    .wa-float {
        display: none;
    }
}

/* =====================================================
   RESPONSIVE – TABLET
===================================================== */

@media (max-width: 1024px) {
    .main-title {
        font-size: 1.4rem;
    }

    .logo {
        height: 4rem;
    }
}

/* =====================================================
   RESPONSIVE – MOBILE
===================================================== */

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }

    .logo-a {
        left: 1rem;
    }

    .main-title {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .btn {
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {
    header {
        height: auto;
        padding: 0.8rem 1rem;
        flex-direction: column;
    }

    .logo-a {
        position: relative;
        left: 0;
        margin-bottom: 0.4rem;
    }

    .logo {
        height: 3.4rem;
    }

    .main-title {
        font-size: 1.05rem;
    }

    body {
        padding-top: 12.5rem;
    }
}

/* =====================================================
   HERO SECTION
===================================================== */

.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;

    /* Imagen de fondo */
    background-image: url("/resources/images/background-hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Para mejor legibilidad del texto */
    padding: 2rem;
}

/* Overlay opcional para contraste */
.hero {
    background-image:
        linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
        url("/resources/images/background-hero.png");
}

/* =====================================================
   HERO CONTENT
===================================================== */

.hero-main {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* =====================================================
   HERO TEXT
===================================================== */

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* =====================================================
   TEXT HIGHLIGHTS
===================================================== */

.reto-0{
    color:#1d0130;
    letter-spacing: 0.02em;
    font-weight: bold;
    font-family: 'libre baskerville', sans-serif;
}
.diseño-web {
    color: #1d0130;
    letter-spacing: 0.03em;
    font-weight: 600;
    font-family: 'libre baskerville', sans-serif;
} 

.despega{
    color:#5e0b69;
    letter-spacing: 0.04em;
    font-weight: bold;
    font-family: 'libre baskerville', sans-serif;
}
.sin-limites {
    color: #1d0130;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-family: 'libre baskerville', sans-serif;
}

.reto-1 {
    color:#5e0b69;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.03em;
    font-weight: bolder;
}

/* =====================================================
   HERO BUTTON
===================================================== */

.hero .btn {
    font-size: 1.05rem;
    padding: 1rem 2.4rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
    .hero {
        padding: 1.5rem;
    }

    .hero-main {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: calc(100vh - 12.5rem); /* coincide con header mobile */
    }
}

@supports (height: 100svh) {
    .hero {
        min-height: 100svh;
    }
}


/* =====================================================
   HERO – ENTRANCE ANIMATIONS
   (NO modifica layout existente)
===================================================== */

/* Título principal */
.hero h1 {
    animation: heroFadeUp 1.1s ease-out 0.2s forwards;
}

/* Subtítulo */
.hero h2 {
    animation: heroFadeUp 1.1s ease-out 0.45s forwards;
}

/* Botón */
.hero .btn {
    animation: heroFadeUp 1.1s ease-out 0.7s forwards;
}

/* FIX: asegurar visibilidad del botón dentro del <a> */
.hero a {
    opacity: 1;
    transform: none;
}

/* =====================================================
   KEYFRAMES
===================================================== */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroOverlayFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-main > *,
    .hero::before {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* =====================================================
   ABOUT US – SECCIÓN PROFESIONAL CON SCROLL EFFECT
===================================================== */

.about-us {
    padding: 6rem 4rem;
    background-color: #f6f2d7;
    font-family: 'Libre Baskerville', 'Fira Code', sans-serif;
    overflow: hidden;
}

/* =====================================================
   TÍTULO
===================================================== */

.about-us .hook {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 4rem;
    color: #1d0130;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =====================================================
   GRID PRINCIPAL
===================================================== */

.about-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1.2fr; /* imagen | lista */
    gap: 4rem;
    align-items: center;
}

/* =====================================================
   ORDEN VISUAL
===================================================== */

.img-1 {
    order: 1; /* izquierda */
}

.quienes-p {
    order: 2; /* derecha */
}

/* =====================================================
   IMAGEN – EDITORIAL
===================================================== */

.img-1 {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    justify-self: center;

    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s ease, transform 0.9s ease, box-shadow 0.6s ease;
}

.img-1:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}

/* =====================================================
   LISTA – BASE + LÍNEA EDITORIAL
===================================================== */

.quienes-p {
    position: relative;
    list-style: none;
    padding-left: 2.6rem;

    color: #4a3a30;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Línea vertical sutil */
.quienes-p::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #c9a16a,
        transparent
    );
    opacity: 0.55;
}

.coherencia,
.tal-vez {
    color: #5e0b69;
}

/* =====================================================
   ITEMS – ZIG ZAG + BULLET FLORAL
===================================================== */

.quienes-p li {
    position: relative;
    margin-bottom: 1.4rem;
    max-width: 520px;
    padding-left: 1.6rem;

    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        color 0.3s ease;
}

/* Bullet flor (Unicode seguro y elegante) */
.quienes-p li::before {
    content: "❀";
    position: absolute;
    left: -0.1rem;
    top: 0.15em;
    font-size: 0.9rem;
    color: #c9a16a;
}

/* Zig-zag visual */
.quienes-p li:nth-child(even) {
    margin-left: 2.5rem;
}

/* Micro interacción */
.quienes-p li:hover {
    transform: translateX(6px);
    color: #1d0130;
}

/* =====================================================
   ESTADO VISIBLE (SCROLL)
===================================================== */

.about-us.in-view .hook {
    opacity: 1;
    transform: translateY(0);
}

.about-us.in-view .img-1 {
    opacity: 1;
    transform: translateX(0);
}

.about-us.in-view .quienes-p li {
    opacity: 1;
    transform: translateX(0);
}

/* Delays progresivos */
.about-us.in-view .quienes-p li:nth-child(1) { transition-delay: 0.2s; }
.about-us.in-view .quienes-p li:nth-child(2) { transition-delay: 0.35s; }
.about-us.in-view .quienes-p li:nth-child(3) { transition-delay: 0.5s; }
.about-us.in-view .quienes-p li:nth-child(4) { transition-delay: 0.65s; }
.about-us.in-view .quienes-p li:nth-child(5) { transition-delay: 0.8s; }

/* =====================================================
   ABOUT US – MOBILE (phones)
===================================================== */

@media (max-width: 767px) {

    .about-us {
        padding: 4rem 1.5rem;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .img-1 {
        order: 1;
        transform: translateY(30px);
        max-width: 320px;
        margin: 0 auto;
    }

    .quienes-p {
        order: 2;
        padding-left: 0;
        max-width: 520px;
        margin: 0 auto;
        font-size: 1.1rem;
        line-height: 1.7;
    }

    /* quitamos la línea vertical en mobile */
    .quienes-p::before {
        display: none;
    }

    .quienes-p li,
    .quienes-p li:nth-child(even) {
        margin-left: 0;
        transform: translateY(20px);
    }

    .about-us.in-view .quienes-p li,
    .about-us.in-view .img-1 {
        transform: translateY(0);
    }
}

/* =====================================================
   ABOUT US – TABLET (iPad fix)
===================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .about-us {
        padding: 5rem 3rem;
    }

    .about-grid {
        max-width: 900px;
        margin: 0 auto;

        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 3.5rem;
        align-items: center;
        text-align: left;
    }

    .img-1 {
        order: 1;
        max-width: 380px;
        margin: 0 auto;
        transform: translateX(-20px);
    }

    .about-us.in-view .img-1 {
        transform: translateX(0);
    }

    .quienes-p {
        order: 2;
        max-width: 520px;
        padding-left: 2.2rem;
        font-size: 1.15rem;
        line-height: 1.75;
    }

    .quienes-p::before {
        left: 0.9rem;
    }

    .quienes-p li,
    .quienes-p li:nth-child(even) {
        margin-left: 0;
    }
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .about-us * {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =====================================================
   SECTION 2 – RETO (BURGUNDY / EDITORIAL EVOLUCIONADO)
===================================================== */

.section-2 {
    padding: 6rem 4rem;
    background-color: #5e0b69;
    font-family: 'Libre Baskerville', 'Fira Code', sans-serif;
    color: #f6f2d7;
    overflow: hidden;
}

/* =====================================================
   TÍTULO PRINCIPAL
===================================================== */

.section-2 .reto-2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 4.5rem;
    color: #f6f2d7;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =====================================================
   GRID GENERAL
===================================================== */

.reto-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
        "lista1 imagen1"
        "intensidad intensidad"
        "titulo2 titulo2"
        "imagen2 lista2"
        "cierre cierre";
    gap: 4rem 4rem;
    align-items: center;
}

/* Primer bloque */
.sec-2 {
    grid-area: lista1;
}

.img-8 {
    grid-area: imagen1;
}

/* Textos intermedios */
.intensidad {
    grid-area: intensidad;
}

.incluye-reto {
    grid-area: titulo2;
}

/* Segundo bloque */
.img-9 {
    grid-area: imagen2;
}

.sec-2-1 {
    grid-area: lista2;
}

/* Cierre */
.todo-listo {
    grid-area: cierre;
}


/* =====================================================
   LISTA 1 – TRANSFORMACIÓN (IZQUIERDA)
===================================================== */

.sec-2 {
    position: relative;
    list-style: none;
    padding-left: 2.8rem;

    font-size: 1.05rem;
    line-height: 1.8;
    color: #f6f2d7;
}

/* Línea editorial */
.sec-2::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #c9a16a,
        transparent
    );
    opacity: 0.7;
}

.sec-2 li {
    position: relative;
    margin-bottom: 1.6rem;
    max-width: 560px;
    padding-left: 1.6rem;

    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sec-2 li::before {
    content: "✦";
    position: absolute;
    left: -0.2rem;
    top: 0.25em;
    font-size: 0.75rem;
    color: #c9a16a;
}

/* =====================================================
   FRASE INTERMEDIA – INTENSIDAD
===================================================== */

.intensidad {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.8rem;
    font-style: italic;
    color: #f6e7b2;
    margin: 1rem 0 0;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =====================================================
   TÍTULO SEGUNDO BLOQUE
===================================================== */

.incluye-reto {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2.2rem;
    margin-top: 2rem;
    color: #ffffff;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =====================================================
   LISTA 2 – CONTENIDO DEL RETO
===================================================== */

.sec-2-1 {
    position: relative;
    list-style: none;
    padding-left: 2.8rem;

    font-size: 1.05rem;
    line-height: 1.8;
    color: #f6f2d7;
}

.sec-2-1::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #c9a16a,
        transparent
    );
    opacity: 0.7;
}

.sec-2-1 li {
    position: relative;
    margin-bottom: 1.6rem;
    max-width: 560px;
    padding-left: 1.6rem;

    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sec-2-1 li::before {
    content: "✦";
    position: absolute;
    left: -0.2rem;
    top: 0.25em;
    font-size: 0.75rem;
    color: #c9a16a;
}

/* =====================================================
   FRASE FINAL
===================================================== */

.todo-listo {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.6rem;
    font-style: italic;
    color: #f6e7b2;
    margin-top: 1rem;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* =====================================================
   IMÁGENES
===================================================== */

.img-8,
.img-9 {
    width: 100%;
    max-width: 420px;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.35);
    justify-self: center;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* =====================================================
   SCROLL – ESTADO VISIBLE
===================================================== */

.section-2.in-view .reto-2,
.section-2.in-view .intensidad,
.section-2.in-view .incluye-reto,
.section-2.in-view .todo-listo {
    opacity: 1;
    transform: translateY(0);
}

.section-2.in-view .sec-2 li {
    opacity: 1;
    transform: translateX(0);
}

.section-2.in-view .sec-2-1 li {
    opacity: 1;
    transform: translateX(0);
}

.section-2.in-view .img-8,
.section-2.in-view .img-9 {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   RESPONSIVE – MOBILE
===================================================== */

@media (max-width: 900px) {
    .section-2 {
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .reto-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "lista1"
            "imagen1"
            "intensidad"
            "titulo2"
            "imagen2"
            "lista2"
            "cierre";
    }

    .sec-2,
    .sec-2-1 {
        padding-left: 1.4rem;
        max-width: 520px;
        margin: 0 auto;
    }

    .sec-2::before,
    .sec-2-1::before {
        left: 0.6rem;
    }

    .sec-2 li,
    .sec-2-1 li {
        transform: translateY(20px);
    }

    .section-2.in-view .sec-2 li,
    .section-2.in-view .sec-2-1 li {
        transform: translateY(0);
    }

    .img-8,
    .img-9 {
        margin-top: 1.5rem;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .section-2 * {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =====================================================
   FOOTER – SABIDURÍA SAGRADA (PREMIUM / RITUAL STYLE)
===================================================== */

.footer {
    position: relative;
    background: linear-gradient(
        180deg,
        #4b0f4f 0%,
        #3a0b3d 100%
    );
    padding: 4rem 2rem 3rem;
    color: #f5e9dc;
    font-family: 'Libre Baskerville', 'Fira Code', sans-serif;
    overflow: hidden;
}

/* Subtle sacred divider glow */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 70%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201,161,106,0.7),
        transparent
    );
}

/* =====================================================
   FOOTER CONTENT
===================================================== */

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Activated on scroll */
.footer.in-view .footer-content {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   COPYRIGHT TEXT
===================================================== */

.footer-content p {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    color: #f1e4d6;
    opacity: 0.85;
}

/* =====================================================
   SOCIAL LINKS
===================================================== */

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
}

/* Sacred icon buttons */
.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.08);
    color: #f5e9dc;

    box-shadow:
        0 0 0 rgba(201,161,106,0),
        inset 0 0 0 rgba(201,161,106,0);

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease,
        color 0.35s ease;
}

/* Hover = activation */
.social-links a:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(201,161,106,0.18);
    color: #ffffff;

    box-shadow:
        0 0 22px rgba(201,161,106,0.45),
        inset 0 0 12px rgba(201,161,106,0.35);
}

/* Icon size consistency */
.social-links svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 600px) {
    .footer {
        padding: 3rem 1.5rem 2.5rem;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .footer-content {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .social-links a {
        transition: none;
    }
}

/* =====================================================
   SECTION 3 – EDITORIAL TECH PREMIUM
===================================================== */

.section-3 {
    position: relative;
    padding: 7.5rem 4rem;
    background-color: #f6f2d7;
    font-family: 'Libre Baskerville', 'Fira Code', sans-serif;
    overflow: hidden;
}

/* Línea editorial superior */
.section-3::before {
    content: "";
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8f6b3f, transparent);
    opacity: 0.6;
}

/* =====================================================
   TÍTULO PRINCIPAL
===================================================== */

.section-3 .reto-3 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 6rem;
    color: #1d0130;

    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* =====================================================
   GRID GENERAL
===================================================== */

.reto-3-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem 5rem;
    align-items: center;
}

/* =====================================================
   POSICIONAMIENTO
===================================================== */

.img-3 { grid-column: 2; grid-row: 1; }
.sec-3 { grid-column: 1; grid-row: 1; }

.sec-3-2 { grid-column: 2; grid-row: 2; }
.img-7 { grid-column: 1; grid-row: 2; }

.reto-p-1 {
    grid-column: 1 / -1;
    grid-row: 3;
}

/* =====================================================
   IMÁGENES – SOBRIAS, PREMIUM
===================================================== */

.reto-3-grid img {
    width: 100%;
    max-width: 420px;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
    justify-self: center;

    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1s ease, transform 1s ease, box-shadow 0.4s ease;
}

.reto-3-grid img:hover {
    transform: scale(0.985);
    box-shadow: 0 36px 85px rgba(0,0,0,0.22);
}

/* =====================================================
   BLOQUES DE TEXTO + LÍNEA VERTICAL
===================================================== */

.sec-3,
.sec-3-2 {
    position: relative;
    padding-left: 3.5rem;

    color: #4a3a30;
    font-size: 1.3rem;
    line-height: 1.95;

    list-style: none;
    opacity: 0; /* 🔥 CORREGIDO */
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Línea vertical elegante */
.sec-3::before,
.sec-3-2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #c9a16a,
        transparent
    );
    opacity: 0.6;
}

.fracaso {
    color: palevioletred;
}

/* =====================================================
   LISTAS
===================================================== */

.sec-3 { transform: translateX(30px); }
.sec-3-2 { transform: translateX(-30px); }

.sec-3 li,
.sec-3-2 li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* =====================================================
   BULLETS PREMIUM – SECTION 3
===================================================== */

.sec-3 li,
.sec-3-2 li {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2.6rem;
}

/* Bullet dorado circular (problema) */
.sec-3 li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;

    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: radial-gradient(
        circle at top,
        #f6e7b2,
        #c9a16a
    );

    box-shadow:
        0 0 0 4px rgba(201,161,106,0.25),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Bullet geométrico (solución) */
.sec-3-2 li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;

    width: 10px;
    height: 10px;
    border-radius: 2px;

    background: linear-gradient(
        135deg,
        #8f6b3f,
        #c9a16a
    );

    box-shadow:
        0 0 0 3px rgba(143,107,63,0.25),
        inset 0 1px 0 rgba(255,255,255,0.4);
}


/* =====================================================
   FRASE FINAL
===================================================== */

.reto-p-1 {
    margin-top: 5rem;
    text-align: center;
    font-size: 2rem;
    font-style: italic;
    color: #5e0b69;

    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* =====================================================
   ACTIVACIÓN SCROLL
===================================================== */

.section-3.in-view .reto-3,
.section-3.in-view .reto-p-1 {
    opacity: 1;
    transform: translateY(0);
}

.section-3.in-view img {
    opacity: 1;
    transform: scale(1);
}

.section-3.in-view .sec-3,
.section-3.in-view .sec-3-2 {
    opacity: 1;
    transform: translateX(0);
}

.section-3.in-view .sec-3 li,
.section-3.in-view .sec-3-2 li {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   MOBILE – SECTION 3 (FINAL LIMPIO Y CORRECTO)
===================================================== */

@media (max-width: 900px) {

    /* Sección */
    .section-3 {
        padding: 4.5rem 1.5rem;
    }

    /* Romper grid → flujo editorial */
    .reto-3-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3.5rem;
        text-align: center;
    }

    /* BLOQUES DE TEXTO */
    .sec-3,
    .sec-3-2 {
        max-width: 520px;          /* 🔥 clave anti-chorizo */
        width: 100%;
        margin: 0 auto;
        padding-left: 0;

        font-size: 1.15rem;
        line-height: 1.75;

        text-align: center;
        transform: translateY(30px);
    }

    .section-3.in-view .sec-3,
    .section-3.in-view .sec-3-2 {
        transform: translateY(0);
    }

    /* LIST ITEMS → tarjetas editoriales */
    .sec-3 li,
    .sec-3-2 li {
        background: rgba(255, 255, 255, 0.55);
        padding: 1.4rem 1.6rem;
        border-radius: 16px;
        margin-bottom: 1.8rem;
        box-shadow: 0 12px 34px rgba(0,0,0,0.08);

        text-align: left;          /* 🔥 lectura natural */
        position: relative;
    }

    /* BULLETS → arriba, no al lado */
    .sec-3 li::before,
    .sec-3-2 li::before {
        left: 50%;
        top: -0.75rem;
        transform: translateX(-50%);
    }

    /* Eliminar línea vertical en mobile */
    .sec-3::before,
    .sec-3-2::before {
        display: none;
    }

    /* IMÁGENES */
    .reto-3-grid img {
        display: block;
        margin: 0 auto;
    }

    /* FRASE FINAL */
    .reto-p-1 {
        max-width: 520px;
        font-size: 1.55rem;
        line-height: 1.4;
        margin-top: 4rem;
        padding: 0 0.8rem;
        text-align: center;
    }

    .reto-3 {
        order: 1;
    }

    .img-3 {
        order: 2;
    }

    .sec-3 {
        order: 3;
    }

    .img-7 {
        order: 4;
    }

    .sec-3-2 {
        order: 5;
    }

    .reto-p-1 {
        order: 6;
    }
}

/* ===============================
   VIDEO SECTION – AJUSTE FINAL
=============================== */

section.video {
  padding: 6rem 4rem;
  background-color: #f6f2d7;
  font-family: 'Libre Baskerville', 'Fira Code', sans-serif;
  text-align: center;
}

/* TÍTULO */
section.video h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  color: #5e0b69;
  margin-bottom: 3.5rem;
  font-weight: normal;
}

/* CONTENEDOR DEL VIDEO (DESKTOP) */
.video-frame {
  max-width: 720px;        /* 👈 AQUÍ ESTÁ LA CLAVE */
  margin: 0 auto;
  padding: 1.1rem;
  border-radius: 22px;

  background: rgba(255,255,255,0.75);
  box-shadow: 0 24px 55px rgba(0,0,0,0.18);
}

/* VIDEO (RESET DEFINITIVO) */
section.video video {
  all: unset;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #000;
}

/* ===============================
   RESPONSIVE – TABLET
=============================== */
@media (max-width: 1024px) {
  .video-frame {
    max-width: 620px;
  }
}

/* ===============================
   RESPONSIVE – MOBILE
=============================== */
@media (max-width: 768px) {
  section.video {
    padding: 4rem 1.5rem;
  }

  .video-frame {
    max-width: 100%;
    padding: 0.8rem;
  }

  section.video h1 {
    margin-bottom: 2.5rem;
  }
}







