
/* =====================================
   TIPOGRAFÍAS
===================================== */

@font-face {
    font-family: 'NeueHaas';
    src: url('../NeueHaasDisplayRoman.ttf')
         format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'NeueHaas';
    src: url('../NeueHaasDisplayMediu.ttf')
         format('truetype');
    font-weight: 500;
    font-display: swap;
}


/* =====================================
   PALETA DE COLORES
===================================== */

:root {
    --morado: #553e6a;
    --amarillo: #F5D44A;
    --crema: #FFF8D7;
}


/* =====================================
   CONFIGURACIÓN GENERAL
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--morado);
    color: var(--amarillo);

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 400;

    overflow-x: hidden;
}


/* =====================================
   BLOQUE 01 — PORTADA
===================================== */

.portada-libro {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    background: var(--morado);
    overflow: hidden;
}

.portada-contenido {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100svh;

    padding: 14svh 7% 9svh;
}


/* =====================================
   LOGO DEL LIBRO
===================================== */

.portada-frase {
    width: 91%;
    margin-bottom: 4svh;
}

.portada-frase picture {
    display: block;
    width: 100%;
}

.portada-frase img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 44svh;

    object-fit: contain;
}


/* =====================================
   FRASE PRINCIPAL
===================================== */

.portada-subtitulo {
    width: 100%;

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 400;

    font-size: clamp(20px, 2.25vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.045em;

    text-transform: uppercase;
    text-align: center;

    margin-bottom: 4.5svh;
}


/* =====================================
   DESCRIPCIÓN DEL LIBRO
===================================== */

.portada-descripcion {
    width: 100%;

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 400;

    font-size: clamp(20px, 2.25vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.045em;

    text-align: center;
}


/* =====================================
   POSICIÓN DEL BOTÓN
===================================== */

.portada-accion {
    width: 100%;

    margin-top: 4.5svh;

    text-align: center;
}


/* =====================================
   BOTÓN RESERVA EL TUYO
===================================== */

.reserva-boton {
    display: inline-block;

    width: 27vw;
    min-width: 240px;
    max-width: 650px;

    background: var(--amarillo);
    color: var(--morado);

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 400;

    font-size: clamp(23px, 2.25vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.035em;

    padding: 0.7em 1em;

    border: none;
    border-radius: 0;

    text-decoration: none;
    cursor: pointer;

    transition: transform 0.3s ease;
}


/* HOVER DEL BOTÓN */

.reserva-boton:hover {
    font-weight: 500;
    transform: scale(1.03);
}

.reserva-boton:active {
    transform: scale(0.98);
}

.reserva-boton:focus-visible {
    outline: 2px solid var(--crema);
    outline-offset: 5px;
}


/* =====================================
   ANIMACIONES DE ENTRADA
===================================== */

/* LOGO */

.portada-libro.animar .portada-frase {
    animation: revelarLogo 1.5s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.15s both;
}

@keyframes revelarLogo {

    from {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }

}


/* FRASE PRINCIPAL */

.portada-libro.animar .portada-subtitulo {
    animation: aparecerTexto 1.1s
        ease 0.55s both;
}


/* DESCRIPCIÓN */

.portada-libro.animar .portada-descripcion {
    animation: aparecerTexto 1.1s
        ease 0.8s both;
}


/* BOTÓN */

.portada-libro.animar .portada-accion {
    animation: aparecerTexto 1.1s
        ease 1.05s both;
}


@keyframes aparecerTexto {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================
   RESPONSIVE — TABLETS
===================================== */

@media (min-width: 601px) and
       (max-aspect-ratio: 4/3) {

    .portada-contenido {
        padding: 12svh 6%;
    }

    .portada-frase {
        width: 100%;
    }

    .portada-subtitulo {
        font-size: clamp(22px, 3vw, 36px);
    }

    .portada-descripcion {
        font-size: clamp(22px, 3vw, 36px);
    }

    .reserva-boton {
        width: 45%;
    }

}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .portada-contenido {

        justify-content: center;

        min-height: 100svh;

        padding: 6svh 8% 7svh;
    }


    /* LOGO VERTICAL */

    .portada-frase {
        width: 100%;
        margin-bottom: 4.5svh;
    }

    .portada-frase img {
        width: 100%;
        height: auto;

        max-height: 49svh;

        object-fit: contain;
    }


    /* FRASE PRINCIPAL */

    .portada-subtitulo {
        width: 88%;

        font-size: clamp(17px, 5.2vw, 28px);
        line-height: 1.15;
        letter-spacing: -0.045em;

        margin-bottom: 3.5svh;
    }


    /* DESCRIPCIÓN */

    .portada-descripcion {
        width: 100%;

        font-size: clamp(19px, 5.7vw, 32px);
        line-height: 1.08;
        letter-spacing: -0.045em;
    }


    /* POSICIÓN DEL BOTÓN */

    .portada-accion {
        margin-top: 4.5svh;
    }


    /* BOTÓN */

    .reserva-boton {
        width: 70%;

        min-width: 0;
        max-width: none;

        font-size: clamp(18px, 5vw, 28px);

        padding: 0.7em 0.5em;
    }

}


/* =====================================
   ACCESIBILIDAD
===================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

}


/* =====================================
   BLOQUE 02 — DICEN QUE SE ALEJÓ
===================================== */

/* TIPOGRAFÍA EB GARAMOND */

@font-face {
    font-family: 'EBGaramond';
    src: url('EBGaramond-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}


/* CONTENEDOR PRINCIPAL */

.bloque-mar {
    position: relative;

    width: 100%;
    min-height: 50vh;
    min-height: 50svh;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;

    background: #9b7846;
    color: var(--amarillo);

    --mar-parallax: 0px;
}


/* FOTOGRAFÍA CON PARALLAX */

.mar-fondo {
    position: absolute;

    top: -15%;
    left: 0;

    width: 100%;
    height: 130%;

    background-image: url('foto mar 1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    transform: translate3d(
        0,
        var(--mar-parallax),
        0
    );

    will-change: transform;

    z-index: -1;
}


/* CONTENIDO */

.mar-contenido {
    position: relative;

    width: 100%;

    padding: 5.5svh 5.8%;

    z-index: 1;
}


/* TÍTULO */

.mar-titulo {
    font-family: 'EBGaramond', Georgia, serif;
    font-weight: 700;

    font-size: clamp(36px, 3.5vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.025em;

    margin-bottom: 1.2svh;

    color: var(--amarillo);
}


/* CUERPO DE TEXTO */

.mar-texto {
    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 400;

    font-size: clamp(20px, 2vw, 42px);
    line-height: 1.04;
    letter-spacing: -0.045em;

    color: var(--amarillo);
}

.mar-texto p + p {
    margin-top: 0.95em;
}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-mar {
        min-height: 100vh;
        min-height: 100svh;

        align-items: stretch;
    }


    /* ENCUADRE VERTICAL DE LA FOTO */

    .mar-fondo {
        background-position: center center;
    }


    /* DISTRIBUCIÓN VERTICAL */

    .mar-contenido {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        min-height: 100svh;

        padding: 24svh 7.5% 14svh;
        gap: 8svh;
    }


    /* TÍTULO */

    .mar-titulo {
        font-size: clamp(30px, 10.5vw, 65px);
        line-height: 1.05;

        letter-spacing: -0.025em;

        white-space: nowrap;

        margin-left: -3%;
        margin-right: -3%;
        margin-bottom: 0;
    }


    /* CUERPO DE TEXTO */

    .mar-texto {
        font-size: clamp(19px, 6vw, 36px);
        line-height: 1.06;
        letter-spacing: -0.045em;
    }

    .mar-texto p + p {
        margin-top: 0.8em;
    }


    /* SALTOS NATURALES EN CELULARES */

    .salto-escritorio {
        display: none;
    }

}


/* =====================================
   ANIMACIONES DE ENTRADA
===================================== */

.bloque-mar.preparada:not(.visible) .mar-titulo,
.bloque-mar.preparada:not(.visible) .mar-texto {
    opacity: 0;
}

.bloque-mar.visible .mar-titulo {
    animation: aparecerTexto 1.2s ease both;
}

.bloque-mar.visible .mar-texto {
    animation: aparecerTexto 1.3s ease 0.2s both;
}


/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .mar-fondo {
        transform: none !important;
    }

    .mar-titulo,
    .mar-texto {
        opacity: 1 !important;
        animation: none !important;
    }

}

/* =====================================
   BLOQUE 03 — MOCKUP DEL LIBRO
===================================== */

.bloque-mockup {
    position: relative;

    width: 100%;
    height: 100vh;
    height: 100svh;

    overflow: hidden;
    isolation: isolate;

    background: var(--morado);

    --mockup-parallax: 0px;
}


/* IMAGEN DEL LIBRO */

.mockup-fondo {
    position: absolute;

    top: -25%;
    left: 0;

    width: 100%;
    height: 150%;

    background-image: url('libro morado.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    transform: translate3d(
        0,
        var(--mockup-parallax),
        0
    );

    will-change: transform;
}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-mockup {
        height: 100svh;
    }

    .mockup-fondo {
        top: -20%;
        height: 140%;

        background-position: center center;
    }

}


/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .mockup-fondo {
        top: 0;
        height: 100%;
        transform: none !important;
    }

}


/* =====================================
   BLOQUE 04 — SINOPSIS
===================================== */

.bloque-sinopsis {
    position: relative;

    width: 100%;
    min-height: 50vh;
    min-height: 50svh;

    background: var(--crema);
    color: var(--morado);

    overflow: hidden;
}


/* CONTENEDOR PRINCIPAL */

.sinopsis-contenido {
    position: relative;

    width: 100%;
    min-height: 50vh;
    min-height: 50svh;
}


/* TIPOGRAFÍA GENERAL */

.sinopsis-ella,
.sinopsis-historia,
.sinopsis-frase {

    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-size: clamp(20px, 2vw, 44px);

    line-height: 1.04;
    letter-spacing: -0.045em;

    color: var(--morado);
}


/* TEXTO SUPERIOR IZQUIERDO */

.sinopsis-ella {
    position: absolute;

    top: 15%;
    left: 5.7%;
    width: 47%;

    font-weight: 400;
}

.sinopsis-ella strong {
    font-weight: 500;
}

.sinopsis-ella p + p {
    margin-top: 0.15em;
}


/* TEXTO SECUNDARIO DERECHO */

.sinopsis-historia {
    position: absolute;

    top: 32.5%;
    right: 5.7%;
    width: 33.2%;

    font-weight: 400;
}


/* FRASE PRINCIPAL INFERIOR */

.sinopsis-frase {
    position: absolute;

    bottom: 11%;
    left: 5%;

    width: 90%;

    font-weight: 500;
    text-align: center;
}


/* =====================================
   RESPONSIVE — TABLETS
===================================== */

@media (min-width: 601px) and
       (max-aspect-ratio: 4/3) {

    .sinopsis-ella,
    .sinopsis-historia,
    .sinopsis-frase {
        font-size: clamp(20px, 2.6vw, 34px);
    }

    .sinopsis-ella {
        width: 52%;
    }

    .sinopsis-historia {
        width: 42%;
    }
}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-sinopsis {
        min-height: 100vh;
        min-height: 100svh;
    }


    /* DISTRIBUCIÓN VERTICAL */

    .sinopsis-contenido {
        display: flex;
        flex-direction: column;

        justify-content: space-between;

        min-height: 100svh;

        padding: 14svh 8% 10svh;

        gap: 8svh;
    }


    /* TEXTO SUPERIOR */

    .sinopsis-ella {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        order: 1;

        font-size: clamp(18px, 5.05vw, 36px);
        line-height: 1.15;
        letter-spacing: -0.045em;
    }


    /* FRASE PRINCIPAL CENTRAL */

    .sinopsis-frase {
        position: relative;

        bottom: auto;
        left: auto;

        width: 76%;

        align-self: center;

        order: 2;

        font-size: clamp(24px, 6.4vw, 44px);
        font-weight: 500;

        line-height: 0.98;
        letter-spacing: -0.045em;

        text-align: left;
    }


    /* TEXTO INFERIOR */

    .sinopsis-historia {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;

        order: 3;

        font-size: clamp(18px, 5.05vw, 36px);
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

}


/* =====================================
   ANIMACIONES DE ENTRADA
===================================== */

.bloque-sinopsis.preparada:not(.visible)
.sinopsis-ella,

.bloque-sinopsis.preparada:not(.visible)
.sinopsis-historia,

.bloque-sinopsis.preparada:not(.visible)
.sinopsis-frase {

    opacity: 0;

}


/* ENTRADA DEL TEXTO SUPERIOR */

.bloque-sinopsis.visible .sinopsis-ella {

    animation: aparecerSinopsis 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.1s both;

}


/* ENTRADA DEL TEXTO DERECHO */

.bloque-sinopsis.visible .sinopsis-historia {

    animation: aparecerSinopsis 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.35s both;

}


/* ENTRADA DE LA FRASE PRINCIPAL */

.bloque-sinopsis.visible .sinopsis-frase {

    animation: aparecerSinopsis 1.3s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.6s both;

}


@keyframes aparecerSinopsis {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ORDEN DE ANIMACIONES EN CELULARES */

@media (max-width: 600px) {

    .bloque-sinopsis.visible .sinopsis-frase {
        animation-delay: 0.35s;
    }

    .bloque-sinopsis.visible .sinopsis-historia {
        animation-delay: 0.6s;
    }

}


/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .sinopsis-ella,
    .sinopsis-historia,
    .sinopsis-frase {

        opacity: 1 !important;
        animation: none !important;
        transform: none !important;

    }

}

/* =====================================
   BLOQUE 05 — DESTINATARIOS
===================================== */

.bloque-destinatarios {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    background: var(--morado);

    overflow: hidden;
}


/* =====================================
   IMAGEN ESTÁTICA
===================================== */

.destinatarios-imagen {
    position: relative;

    width: 100%;
    min-height: 100svh;

    overflow: hidden;
}

.destinatarios-imagen img {
    position: absolute;

    top: 0;
    left: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}


/* =====================================
   PANEL MORADO
===================================== */

.destinatarios-panel {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100svh;

    background: var(--morado);
    color: var(--amarillo);

    padding: 9svh 15.5%;

    overflow: hidden;
}


/* CONTENIDO */

.destinatarios-contenido {
    width: 100%;

    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-size: clamp(19px, 2vw, 42px);

    line-height: 0.98;
    letter-spacing: -0.045em;

    text-align: left;
}


/* TÍTULO PRINCIPAL */

.destinatarios-titulo {
    font-size: inherit;
    font-weight: 500;

    line-height: 1.05;

    margin-bottom: 1.5em;
}


/* GRUPOS DE TEXTO */

.destinatarios-grupo {
    margin-bottom: 0.85em;
}

.destinatarios-grupo:last-child {
    margin-bottom: 0;
}


/* ENCABEZADOS MEDIUM */

.destinatarios-grupo h3 {
    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-size: inherit;
    font-weight: 500;

    line-height: inherit;
    letter-spacing: inherit;
}


/* PÁRRAFOS ROMAN */

.destinatarios-grupo p {
    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-size: inherit;
    font-weight: 400;

    line-height: inherit;
    letter-spacing: inherit;
}


/* =====================================
   ANIMACIONES DE ENTRADA
===================================== */

.destinatarios-panel.preparada:not(.visible)
.destinatarios-titulo,

.destinatarios-panel.preparada:not(.visible)
.destinatarios-grupo {

    opacity: 0;

}


/* TÍTULO PRINCIPAL */

.destinatarios-panel.visible
.destinatarios-titulo {

    animation: entradaDestinatarios 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

}


/* GRUPOS DE TEXTO */

.destinatarios-panel.visible
.destinatarios-grupo {

    animation: entradaDestinatarios 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

}

.destinatarios-grupo:nth-child(2) {
    animation-delay: 0.15s !important;
}

.destinatarios-grupo:nth-child(3) {
    animation-delay: 0.30s !important;
}

.destinatarios-grupo:nth-child(4) {
    animation-delay: 0.45s !important;
}

.destinatarios-grupo:nth-child(5) {
    animation-delay: 0.60s !important;
}


/* DESPLAZAMIENTO DESDE LA DERECHA */

@keyframes entradaDestinatarios {

    from {
        opacity: 0;
        transform: translateX(65px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =====================================
   RESPONSIVE — TABLETS
===================================== */

@media (min-width: 601px) and (max-width: 1100px) {

    .destinatarios-panel {
        padding: 8svh 10%;
    }

    .destinatarios-contenido {
        font-size: clamp(18px, 2.2vw, 30px);
        line-height: 1.05;
    }

}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-destinatarios {

        display: flex;
        flex-direction: column;

        min-height: 200svh;

    }


    /* PRIMERA PANTALLA — TEXTO */

    .destinatarios-panel {

        order: 1;

        width: 100%;
        min-height: 100vh;
        min-height: 100svh;

        padding: 10svh 8%;

        display: flex;
        align-items: center;
        justify-content: center;

    }


    .destinatarios-contenido {

        font-size: clamp(18px, 5vw, 32px);

        line-height: 1.02;
        letter-spacing: -0.045em;

    }


    .destinatarios-titulo {
        margin-bottom: 1.5em;
    }


    .destinatarios-grupo {
        margin-bottom: 0.8em;
    }


    /* SEGUNDA PANTALLA — IMAGEN */

    .destinatarios-imagen {

        order: 2;

        width: 100%;
        height: 100vh;
        height: 100svh;

        min-height: 100svh;

    }


    .destinatarios-imagen img {

        object-fit: cover;
        object-position: center center;

    }

}


/* =====================================
   ACCESIBILIDAD
===================================== */

@media (prefers-reduced-motion: reduce) {

    .destinatarios-titulo,
    .destinatarios-grupo {

        opacity: 1 !important;
        transform: none !important;
        animation: none !important;

    }

}

/* =====================================
   BLOQUE 06 — EXTRACTO DEL LIBRO
===================================== */

/* TIPOGRAFÍA PALOMA */

@font-face {
    font-family: 'Paloma';
    src: url('paloma.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}


/* =====================================
   CONTENEDOR PRINCIPAL
===================================== */

.bloque-extracto {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    background: var(--morado);
    color: var(--amarillo);

    align-items: start;
}


/* =====================================
   COLUMNA IZQUIERDA
===================================== */

.extracto-introduccion {
    position: sticky;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100svh;

    padding: 5svh 8%;
}


/* TÍTULO CON PALOMA */

.extracto-titulo {
    width: 100%;

    font-family: 'Paloma', cursive;
    font-weight: 400;

    font-size: clamp(28px, 2.8vw, 65px);

    line-height: 1.1;
    text-align: center;

    color: var(--amarillo);
}


/* =====================================
   COLUMNA DERECHA — EXTRACTO
===================================== */

.extracto-texto {
    width: 100%;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 8svh 7%;

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 400;

    font-size: clamp(20px, 2.05vw, 44px);

    line-height: 0.98;
    letter-spacing: -0.045em;

    color: var(--amarillo);
}


/* SEPARACIÓN ENTRE PÁRRAFOS */

.extracto-texto p {
    margin-bottom: 0.95em;
}

.extracto-texto p:last-child {
    margin-bottom: 0;
}


/* =====================================
   ANIMACIONES DE ENTRADA
===================================== */

.extracto-titulo.preparada:not(.visible),

.extracto-texto p.preparada:not(.visible) {
    opacity: 0;
}


/* ANIMACIÓN DEL TÍTULO */

.extracto-titulo.visible {
    animation: entradaExtractoTitulo 1.4s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}

@keyframes entradaExtractoTitulo {

    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* ANIMACIÓN DE LOS PÁRRAFOS */

.extracto-texto p.visible {
    animation: entradaExtractoTexto 1.1s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}

@keyframes entradaExtractoTexto {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================
   RESPONSIVE — TABLETS
===================================== */

@media (min-width: 601px) and (max-width: 1100px) {

    .extracto-titulo {
        font-size: clamp(24px, 3vw, 45px);
    }

    .extracto-texto {
        font-size: clamp(19px, 2.4vw, 30px);
        line-height: 1.05;
    }

}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-extracto {

        display: flex;
        flex-direction: column;

        min-height: auto;

        padding: 7svh 0;

    }


    /* TÍTULO SUPERIOR */

    .extracto-introduccion {

        position: relative;
        top: auto;

        width: 100%;
        min-height: auto;

        padding: 0 7%;

    }


    .extracto-titulo {

        font-size: clamp(27px, 8.5vw, 55px);

        line-height: 1.1;
        text-align: center;

    }


    /* SALTOS NATURALES EN CELULAR */

    .extracto-titulo br {
        display: none;
    }


    /* CUERPO DE TEXTO */

    .extracto-texto {

        width: 100%;
        min-height: auto;

        padding: 5svh 10% 0;

        font-size: clamp(20px, 6.5vw, 40px);

        line-height: 1.02;
        letter-spacing: -0.045em;

    }


    /* SEPARACIÓN ENTRE PÁRRAFOS */

    .extracto-texto p {
        margin-bottom: 1em;
    }

    .extracto-texto p:last-child {
        margin-bottom: 0;
    }

}


/* =====================================
   ACCESIBILIDAD
===================================== */

@media (prefers-reduced-motion: reduce) {

    .extracto-titulo,
    .extracto-texto p {

        opacity: 1 !important;
        transform: none !important;
        animation: none !important;

    }

}

/* =====================================
   BLOQUE 07 — RECOMENDACIÓN
===================================== */

.bloque-recomendacion {
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    background: var(--crema);
    color: var(--morado);
}


/* =====================================
   PANEL DE TEXTO
===================================== */

.recomendacion-panel {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100svh;

    padding: 8svh 15%;

    background: var(--crema);

    overflow: hidden;
}


/* CONTENIDO DE LA RECOMENDACIÓN */

.recomendacion-contenido {
    width: 100%;

    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-size: clamp(20px, 2vw, 44px);

    line-height: 0.98;
    letter-spacing: -0.045em;

    color: var(--morado);
}


/* TEXTO — NEUE HAAS ROMAN */

.recomendacion-texto {

    font-weight: 400;

    text-align: left;
}


/* AUTOR — NEUE HAAS MEDIUM */

.recomendacion-autor {

    font-weight: 500;

    text-align: right;

    margin-top: 0.65em;
}


/* =====================================
   FOTOGRAFÍA ESTÁTICA
===================================== */

.recomendacion-imagen {
    position: relative;

    width: 100%;
    min-height: 100svh;

    overflow: hidden;
}

.recomendacion-imagen img {
    position: absolute;

    top: 0;
    left: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}


/* =====================================
   ANIMACIONES DE ENTRADA
===================================== */

.recomendacion-panel.preparada:not(.visible)
.recomendacion-texto,

.recomendacion-panel.preparada:not(.visible)
.recomendacion-autor {

    opacity: 0;

}


/* ANIMACIÓN DE LA RECOMENDACIÓN */

.recomendacion-panel.visible
.recomendacion-texto {

    animation: entradaRecomendacion 1.4s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

}


/* ANIMACIÓN DEL NOMBRE */

.recomendacion-panel.visible
.recomendacion-autor {

    animation: entradaRecomendacion 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.45s both;

}


/* ENTRADA DESDE LA IZQUIERDA */

@keyframes entradaRecomendacion {

    from {
        opacity: 0;
        transform: translateX(-55px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =====================================
   RESPONSIVE — TABLETS
===================================== */

@media (min-width: 601px) and
       (max-width: 1100px) {

    .recomendacion-panel {
        padding: 8svh 10%;
    }

    .recomendacion-contenido {
        font-size: clamp(20px, 2.5vw, 32px);
        line-height: 1.05;
    }

}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-recomendacion {

        display: flex;
        flex-direction: column;

        min-height: 200svh;

    }


    /* PRIMERA PANTALLA — FOTOGRAFÍA */

    .recomendacion-imagen {

        order: 1;

        width: 100%;

        height: 100vh;
        height: 100svh;

        min-height: 100svh;

    }

    .recomendacion-imagen img {

        object-fit: cover;
        object-position: center center;

    }


    /* SEGUNDA PANTALLA — TEXTO */

    .recomendacion-panel {

        order: 2;

        width: 100%;

        min-height: 100vh;
        min-height: 100svh;

        padding: 12svh 9%;

    }


    /* TAMAÑO DEL TEXTO */

    .recomendacion-contenido {

        font-size: clamp(22px, 6.5vw, 40px);

        line-height: 0.98;
        letter-spacing: -0.045em;

    }


    /* NOMBRE DE LA AUTORA DE LA CITA */

    .recomendacion-autor {

        text-align: left;

        margin-top: 1.7em;

        font-weight: 500;

    }

}


/* =====================================
   ACCESIBILIDAD
===================================== */

@media (prefers-reduced-motion: reduce) {

    .recomendacion-texto,
    .recomendacion-autor {

        opacity: 1 !important;
        transform: none !important;
        animation: none !important;

    }

}

/* =====================================
   BLOQUE 08 — PREGUNTAS FRECUENTES
===================================== */

.bloque-faq {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    background: var(--morado);
    color: var(--amarillo);
}


/* =====================================
   FOTOGRAFÍA SUPERIOR
===================================== */

.faq-imagen {
    position: relative;

    width: 100%;

    height: 42vh;
    height: 42svh;

    overflow: hidden;
}

.faq-imagen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 25%;
}


/* =====================================
   PANEL MORADO
===================================== */

.faq-panel {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 58svh;

    padding: 7.5svh 6.5%;

    background: var(--morado);

    overflow: hidden;
}


/* CONTENIDO */

.faq-contenido {
    width: 100%;

    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-weight: 400;
    font-size: clamp(19px, 1.75vw, 38px);

    line-height: 1.02;
    letter-spacing: -0.045em;

    color: var(--amarillo);

    text-align: left;
}


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

.faq-titulo {

    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-weight: 500;

    font-size: clamp(32px, 2.8vw, 60px);

    line-height: 1.05;
    letter-spacing: -0.045em;

    margin-bottom: 0.35em;

}


/* =====================================
   PREGUNTAS Y RESPUESTAS
===================================== */

.faq-grupo {
    margin-bottom: 0.95em;
}

.faq-grupo:last-child {
    margin-bottom: 0;
}


/* PREGUNTAS — NEUE HAAS MEDIUM */

.faq-grupo h3 {

    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-size: inherit;
    font-weight: 500;

    line-height: inherit;
    letter-spacing: inherit;

    margin-bottom: 0.08em;

}


/* RESPUESTAS — NEUE HAAS ROMAN */

.faq-grupo p {

    font-family: 'NeueHaas', Helvetica, sans-serif;

    font-size: inherit;
    font-weight: 400;

    line-height: inherit;
    letter-spacing: inherit;

}


/* =====================================
   ANIMACIONES DE ENTRADA
===================================== */

.faq-panel.preparada:not(.visible) .faq-titulo,
.faq-panel.preparada:not(.visible) .faq-grupo {

    opacity: 0;

}


/* ANIMACIÓN DEL TÍTULO */

.faq-panel.visible .faq-titulo {

    animation: entradaFaq 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

}


/* ANIMACIÓN DE LAS PREGUNTAS */

.faq-panel.visible .faq-grupo {

    animation: entradaFaq 1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;

}

.faq-panel.visible .faq-grupo:nth-child(2) {
    animation-delay: 0.15s;
}

.faq-panel.visible .faq-grupo:nth-child(3) {
    animation-delay: 0.30s;
}

.faq-panel.visible .faq-grupo:nth-child(4) {
    animation-delay: 0.45s;
}

.faq-panel.visible .faq-grupo:nth-child(5) {
    animation-delay: 0.60s;
}


/* MOVIMIENTO DE ABAJO HACIA ARRIBA */

@keyframes entradaFaq {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================
   RESPONSIVE — TABLETS
===================================== */

@media (min-width: 601px) and
       (max-width: 1100px) {

    .faq-contenido {

        font-size: clamp(19px, 2.3vw, 30px);

        line-height: 1.08;

    }

    .faq-titulo {
        font-size: clamp(32px, 4vw, 48px);
    }

}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-faq {
        min-height: 200svh;
    }


    /* PRIMERA PANTALLA — FOTOGRAFÍA */

    .faq-imagen {

        width: 100%;

        height: 100vh;
        height: 100svh;

    }

    .faq-imagen img {

        object-fit: cover;
        object-position: center center;

    }


    /* SEGUNDA PANTALLA — PREGUNTAS */

    .faq-panel {

        width: 100%;

        min-height: 100vh;
        min-height: 100svh;

        display: flex;
        align-items: center;

        padding: 10svh 7%;

    }


    /* TÍTULO PRINCIPAL */

    .faq-titulo {

        font-size: clamp(28px, 8.5vw, 48px);

        line-height: 1.05;

        margin-bottom: 0.35em;

    }


    /* PREGUNTAS Y RESPUESTAS */

    .faq-contenido {

        font-size: clamp(18px, 5.5vw, 32px);

        line-height: 1.02;
        letter-spacing: -0.045em;

    }


    /* SEPARACIÓN ENTRE PREGUNTAS */

    .faq-grupo {
        margin-bottom: 1.4em;
    }

    .faq-grupo:last-child {
        margin-bottom: 0;
    }

}


/* =====================================
   ACCESIBILIDAD
===================================== */

@media (prefers-reduced-motion: reduce) {

    .faq-titulo,
    .faq-grupo {

        opacity: 1 !important;
        transform: none !important;
        animation: none !important;

    }

}

/* =====================================
   BLOQUE 09 — FORMULARIO DE VISITA
===================================== */

.bloque-visita {
    position: relative;

    width: 100%;
    min-height: 100svh;

    display: flex;

    background: var(--amarillo);
    color: var(--morado);

    padding: 4svh 2.4%;
}


/* MARCO REDONDEADO */

.visita-marco {
    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    width: 100%;

    border: 2px solid var(--morado);
    border-radius: 4vw;

    padding: 6svh 3%;

    gap: 5%;
}


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

.visita-titulo {
    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 500;

    font-size: clamp(30px, 2.9vw, 60px);

    line-height: 0.98;
    letter-spacing: -0.045em;
}


/* =====================================
   FORMULARIO
===================================== */

.visita-formulario {
    width: 100%;
    min-width: 0;

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-weight: 400;

    font-size: clamp(19px, 2vw, 40px);

    line-height: 1.05;
    letter-spacing: -0.045em;
}


/* CAMPOS DE TEXTO */

.visita-campo {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin-bottom: 1.05em;
}

.visita-campo label {
    font-weight: 500;

    margin-bottom: 0.25em;
}


/* ESPACIOS PARA ESCRIBIR */

.visita-campo input {
    width: 100%;

    min-height: 1.5em;

    background: transparent;
    color: var(--morado);

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-size: inherit;
    font-weight: 400;

    border: none;
    border-bottom: 2px solid var(--morado);
    border-radius: 0;

    padding: 0.15em 0;

    outline: none;
}

.visita-campo input:focus {
    border-bottom-width: 3px;
}

.visita-campo input::selection {
    background: var(--morado);
    color: var(--amarillo);
}


/* TELÉFONO Y CORREO */

.visita-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8%;
}


/* =====================================
   GRUPOS DE OPCIONES
===================================== */

.visita-opciones {
    border: none;

    min-width: 0;

    margin: 0.65em 0 1.25em;

    padding: 0;
}

.visita-opciones legend {
    font-weight: 500;

    margin-bottom: 0.45em;
}


/* GRUPO DE SELECCIÓN ÚNICA */

.visita-roles {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: space-between;

    gap: 0.6em;
}


/* GRUPO DE SELECCIÓN MÚLTIPLE */

.visita-tipos {
    display: grid;

    width: fit-content;

    gap: 0.3em;
}


/* ETIQUETAS DE LAS CASILLAS */

.visita-opcion {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 0.55em;

    cursor: pointer;
}


/* =====================================
   CASILLAS PERSONALIZADAS
===================================== */

.visita-opcion input {
    appearance: none;
    -webkit-appearance: none;

    display: block;

    flex-shrink: 0;

    width: 1.15em;
    height: 1.15em;

    font-size: inherit;

    background: transparent;

    border: 2px solid var(--morado);
    border-radius: 0;

    cursor: pointer;

    transition: background-color 0.2s ease;
}


/* CASILLA SELECCIONADA */

.visita-opcion input:checked {
    background: var(--morado);
}


/* HOVER */

.visita-opcion input:not(:checked):hover {
    background: rgba(85, 62, 106, 0.15);
}


/* NAVEGACIÓN CON TECLADO */

.visita-opcion input:focus-visible {
    outline: 2px solid var(--morado);
    outline-offset: 4px;
}


/* =====================================
   AVISO DE PRIVACIDAD
===================================== */

.visita-privacidad {
    font-size: 0.48em;
    line-height: 1.3;
    letter-spacing: -0.01em;

    margin-bottom: 1.5em;
}


/* =====================================
   BOTÓN ENVIAR
===================================== */

.visita-boton {
    display: inline-block;

    width: 30%;
    min-width: 125px;

    background: var(--morado);
    color: var(--amarillo);

    font-family: 'NeueHaas', Helvetica, sans-serif;
    font-size: inherit;
    font-weight: 400;

    line-height: 1.1;
    letter-spacing: -0.035em;

    border: none;
    border-radius: 0;

    padding: 0.25em 0.5em;

    cursor: pointer;

    transition: transform 0.25s ease;
}


/* CAMBIO A NEUE HAAS MEDIUM */

.visita-boton:not(:disabled):hover {
    font-weight: 500;
    transform: scale(1.03);
}

.visita-boton:not(:disabled):active {
    transform: scale(0.97);
}

.visita-boton:disabled {
    opacity: 0.65;
    cursor: wait;
}

.visita-boton:focus-visible {
    outline: 2px solid var(--morado);
    outline-offset: 4px;
}


/* =====================================
   MENSAJE DE CONFIRMACIÓN
===================================== */

.visita-mensaje {
    font-size: 0.65em;
    line-height: 1.2;

    margin-top: 0.8em;
}

.visita-mensaje:empty {
    display: none;
}


/* =====================================
   RESPONSIVE — TABLETS
===================================== */

@media (min-width: 601px) and
       (max-width: 1100px) {

    .visita-formulario {
        font-size: clamp(18px, 2.3vw, 30px);
    }

    .visita-roles {
        justify-content: flex-start;
        gap: 0.8em;
    }

}


/* =====================================
   RESPONSIVE — CELULARES
===================================== */

@media (max-width: 600px) {

    .bloque-visita {
        min-height: auto;

        padding: 3vw;
    }


    /* MARCO VERTICAL */

    .visita-marco {
        display: flex;
        flex-direction: column;

        align-items: stretch;

        border-radius: 12vw;

        padding: 11% 7% 9%;

        gap: 0;
    }


    /* TÍTULO */

    .visita-titulo {
        font-size: clamp(28px, 8vw, 48px);

        line-height: 1.02;

        margin-bottom: 1.8em;
    }


    /* FORMULARIO */

    .visita-formulario {
        font-size: clamp(21px, 6vw, 38px);
    }


    /* CAMPOS */

    .visita-campo {
        margin-bottom: 1.1em;
    }

    .visita-campo input {
        min-height: 1.6em;
    }


    /* TELÉFONO Y CORREO EN VERTICAL */

    .visita-contacto {
        display: flex;
        flex-direction: column;

        gap: 0;
    }


    /* GRUPOS DE OPCIONES */

    .visita-opciones {
        margin-top: 1em;
        margin-bottom: 1.5em;
    }


    /* ROLES EN VERTICAL */

    .visita-roles {
        display: grid;

        width: fit-content;

        gap: 0.5em;
    }


    /* TIPOS DE VISITA */

    .visita-tipos {
        max-width: 100%;

        gap: 0.45em;
    }


    /* CASILLAS */

    .visita-opcion input {
        width: 1.15em;
        height: 1.15em;
    }


    /* AVISO DE PRIVACIDAD */

    .visita-privacidad {
        font-size: 0.58em;
    }


    /* BOTÓN ENVIAR */

    .visita-boton {
        width: 52%;
        min-width: 0;

        padding: 0.3em;
    }

}

/* =====================================
   BLOQUE 10 — CIERRE Y RESERVA
===================================== */

/* ESTILO DE LOS ENLACES DE RESERVA */

a.reserva-boton,
a.reserva-boton:visited {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: var(--morado);
    background: var(--amarillo);
    font-weight: 400;
}

/* HOVER — NEUE HAAS MEDIUM */

a.reserva-boton:hover {
    font-weight: 500;
    text-decoration: none;
    transform: scale(1.03);
}

a.reserva-boton:active {
    transform: scale(0.98);
}


/* PREPARAR ANIMACIÓN DEL BLOQUE FINAL */

.portada-final.preparada:not(.animar)
.portada-frase,

.portada-final.preparada:not(.animar)
.portada-subtitulo,

.portada-final.preparada:not(.animar)
.portada-descripcion,

.portada-final.preparada:not(.animar)
.portada-accion {

    opacity: 0;

}


/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .portada-final .portada-frase,
    .portada-final .portada-subtitulo,
    .portada-final .portada-descripcion,
    .portada-final .portada-accion {

        opacity: 1 !important;
        animation: none !important;
        transform: none !important;

    }

}
