/* =========================================================
   FUENTES
========================================================= */

@font-face {
    font-family: "Komika Axis";
    src: url("../assets/fonts/KomikaAxis.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../assets/fonts/Montserrat-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../assets/fonts/Montserrat-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../assets/fonts/Montserrat-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


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

:root {
    --color-sky: #bde6f1;
    --color-yellow: #ffc62e;
    --color-green: #30c93b;
    --color-red: #dc3838;
    --color-black: #111111;
    --color-white: #ffffff;

    --font-display: "Komika Axis", Arial, sans-serif;
    --font-body: "Montserrat", Arial, sans-serif;

    --desktop-max-width: 1720px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--color-sky);
    color: var(--color-black);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    padding: 0;
    background: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


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

.header-desktop {
    position: absolute;
    z-index: 100;
    top: 48px;
    left: 50%;
    width: calc(100% - 190px);
    max-width: var(--desktop-max-width);
    transform: translateX(-50%);
}

.desktop-nav {
    position: relative;
    display: grid;
    grid-template-columns:
        150px
        repeat(7, minmax(max-content, 1fr))
        1px
        160px;
    align-items: center;
    width: 100%;
    height: 86px;
    padding: 0 26px 0 112px;
    border-radius: 12px;
    background: var(--color-white);
}

.desktop-nav__firus {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: -10px;
    width: 105px;
    height: 105px;
}

.desktop-nav__firus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.desktop-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    font-family: var(--font-display);
    font-size: clamp(13px, 0.92vw, 18px);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition:
        transform 180ms ease,
        color 180ms ease;
}

.desktop-nav__link:hover {
    transform: translateY(-2px);
}

.desktop-nav__link--active,
.desktop-nav__link--contact {
    color: var(--color-black);
}

.desktop-nav__separator {
    width: 1px;
    height: 54px;
    background: var(--color-yellow);
    justify-self: center;
}


/* =========================================================
   HOME GENERAL
========================================================= */

.home {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.home-desktop {
    display: block;
    min-height: 1365px;
    background: var(--color-sky);
}

.home-mobile {
    display: none;
}

.home-desktop__background,
.home-mobile__background {
    position: absolute;
    z-index: -10;
    inset: 0;
    background-color: var(--color-sky);
    background-image: url("../assets/backgrounds/background-home-landscape.webp");
    background-repeat: no-repeat;
}


/* =========================================================
   HOME DESKTOP: FONDO
========================================================= */

.home-desktop__background {
    background-position: center bottom;
    background-size: 100% auto;
}

.home-cloud {
    position: absolute;
    z-index: -6;
    pointer-events: none;
    user-select: none;
}

.home-cloud--desktop-01 {
    top: 190px;
    left: 7.4%;
    width: 105px;
}

.home-cloud--desktop-02 {
    top: 340px;
    left: 7%;
    width: 185px;
}

.home-cloud--desktop-03 {
    top: 170px;
    left: 44.5%;
    width: 120px;
}

.home-cloud--desktop-04 {
    top: 164px;
    right: 6.2%;
    width: 110px;
}

.home-cloud--desktop-05 {
    top: 330px;
    right: 7.1%;
    width: 120px;
}

.home-cloud--desktop-06 {
    top: 600px;
    right: 8.3%;
    width: 125px;
}

.home-desktop__tree {
    position: absolute;
    z-index: -4;
    pointer-events: none;
    user-select: none;
}

.home-desktop__tree--left {
    left: 0;
    bottom: 275px;
    width: min(17vw, 320px);
    transform: translateX(-3%);
}

.home-desktop__tree--right {
    right: 0;
    bottom: 265px;
    width: min(16vw, 300px);
    transform: translateX(4%);
}

.home-desktop__bushes {
    position: absolute;
    z-index: -3;
    left: 50%;
    bottom: 257px;
    width: min(39vw, 730px);
    transform: translateX(-7%);
    pointer-events: none;
    user-select: none;
}


/* =========================================================
   HOME DESKTOP: FIRUS
========================================================= */

.home-desktop__character {
    position: absolute;
    z-index: 4;
    left: 15%;
    bottom: 150px;
    width: min(38.5vw, 735px);
}

.home-desktop__firus {
    width: 100%;
    height: auto;
}


/* =========================================================
   HOME DESKTOP: CONTENIDO
========================================================= */

.home-desktop__content {
    position: absolute;
    z-index: 6;
    top: 425px;
    left: 62%;
    width: min(34vw, 600px);
    transform: translateX(-50%);
    text-align: center;
}

.home-desktop__logo {
    width: min(100%, 570px);
    margin: 0 auto;
}

.home-desktop__description {
    margin: 16px 0 38px;
    font-size: clamp(24px, 2.05vw, 39px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1.1px;
}

.home-desktop__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.18vw, 22px);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        filter 180ms ease;
}

.home-button:hover {
    transform: translateY(-3px) scale(1.015);
    filter: brightness(1.03);
}

.home-button--yellow {
    width: min(100%, 405px);
    min-height: 57px;
    padding: 15px 25px;
    background: var(--color-yellow);
    color: var(--color-black);
}

.home-button--green {
    width: min(100%, 405px);
    min-height: 57px;
    padding: 15px 25px;
    background: var(--color-green);
    color: var(--color-white);
}


/* =========================================================
   HOME DESKTOP: REDES
========================================================= */

.home-social {
    position: absolute;
    z-index: 8;
    left: 65.5%;
    bottom: 177px;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateX(-50%);
}

.home-social__link {
    display: block;
    width: 50px;
    flex: 0 0 50px;
    transition: transform 180ms ease;
}

.home-social__link:hover,
.home-social__apple-books:hover {
    transform: translateY(-4px) scale(1.08);
}

.home-social__link img {
    width: 100%;
    height: auto;
}

.home-social__apple-books {
    display: block;
    width: 218px;
    margin-left: 7px;
    transition: transform 180ms ease;
}

.home-social__apple-books img {
    width: 100%;
}


/* =========================================================
   MENÚ MÓVIL
========================================================= */

.mobile-menu-trigger,
.mobile-menu {
    display: none;
}


/* =========================================================
   SECCIONES TEMPORALES
========================================================= */

main > section:not(.home) {
    min-height: 0;
}

#footer {
    min-height: 0;
}


/* =========================================================
   AJUSTES DESKTOP INTERMEDIOS
========================================================= */

@media (max-width: 1680px) {
    .header-desktop {
        top: 40px;
        width: calc(100% - 140px);
    }

    .desktop-nav {
        height: 78px;
        padding-left: 103px;
        grid-template-columns:
            140px
            repeat(7, minmax(max-content, 1fr))
            1px
            145px;
    }

    .desktop-nav__firus {
        left: 24px;
        width: 96px;
        height: 96px;
    }

    .home-desktop {
        min-height: 1195px;
    }

    .home-desktop__content {
        top: 370px;
    }

    .home-desktop__character {
        bottom: 128px;
    }

    .home-desktop__tree--left {
        bottom: 235px;
    }

    .home-desktop__tree--right {
        bottom: 225px;
    }

    .home-desktop__bushes {
        bottom: 220px;
    }

    .home-social {
        bottom: 150px;
    }

    .home-social__link {
        width: 43px;
        flex-basis: 43px;
    }

    .home-social__apple-books {
        width: 196px;
    }
}


@media (max-width: 1440px) {
    .header-desktop {
        top: 32px;
        width: calc(100% - 92px);
    }

    .desktop-nav {
        height: 70px;
        padding-right: 16px;
        padding-left: 92px;
        grid-template-columns:
            125px
            repeat(7, minmax(max-content, 1fr))
            1px
            130px;
    }

    .desktop-nav__firus {
        left: 20px;
        bottom: -8px;
        width: 84px;
        height: 84px;
    }

    .desktop-nav__link {
        padding: 0 7px;
        font-size: 13px;
    }

    .desktop-nav__separator {
        height: 44px;
    }

    .home-desktop {
        min-height: 1010px;
    }

    .home-desktop__content {
        top: 315px;
    }

    .home-desktop__description {
        margin-bottom: 29px;
    }

    .home-desktop__buttons {
        gap: 18px;
    }

    .home-button--yellow,
    .home-button--green {
        min-height: 50px;
    }

    .home-desktop__character {
        bottom: 98px;
    }

    .home-desktop__tree--left {
        bottom: 195px;
    }

    .home-desktop__tree--right {
        bottom: 185px;
    }

    .home-desktop__bushes {
        bottom: 180px;
    }

    .home-social {
        bottom: 119px;
        gap: 15px;
    }

    .home-social__link {
        width: 38px;
        flex-basis: 38px;
    }

    .home-social__apple-books {
        width: 178px;
    }
}


@media (max-width: 1180px) and (min-width: 769px) {
    .header-desktop {
        width: calc(100% - 45px);
    }

    .desktop-nav {
        padding-left: 78px;
        grid-template-columns:
            105px
            repeat(7, minmax(0, 1fr))
            1px
            110px;
    }

    .desktop-nav__firus {
        left: 15px;
        width: 72px;
        height: 72px;
    }

    .desktop-nav__link {
        font-size: 11px;
        padding: 0 3px;
    }

    .home-desktop__content {
        left: 66%;
        width: 38vw;
    }

    .home-desktop__character {
        left: 7.5%;
        width: 44vw;
    }

    .home-social {
        left: 66%;
    }
}

/* =========================================================
   AJUSTES HOME DESKTOP APROBADO
   No modifica la versión móvil
========================================================= */

@media (min-width: 769px) {

    /* Firus principal: un poco más hacia la derecha */

    .home-desktop__character {
        left: 16.5%;
    }


    /* Logo, texto y botones */

    .home-desktop__content {
        top: 420px;
        left: 69%;
        width: min(34vw, 600px);
    }

    .home-desktop__logo {
        width: min(100%, 570px);
        margin: 0 auto;
    }

    .home-desktop__description {
        width: 79%;
        margin: 18px auto 38px;
        padding-left: 8%;
        font-size: clamp(24px, 2.05vw, 39px);
        line-height: 1.08;
        text-align: left;
    }

    .home-desktop__buttons {
        gap: 24px;
    }


    /* Redes sociales: colocarlas dentro de la zona azul */

    .home-social {
        left: 69%;
        bottom: auto;
        top: 1110px;
    }


    /* Distribución del menú */

    .desktop-nav {
        grid-template-columns:
            150px
            1.15fr
            0.95fr
            1.08fr
            0.72fr
            1fr
            0.95fr
            1.3fr
            1px
            160px;
    }

    .desktop-nav__link {
        transition:
            transform 180ms ease,
            color 180ms ease;
    }

    .desktop-nav__link:hover {
        transform: translateY(-3px) scale(1.04);
    }


    /* Animación de la cabeza de Firus */

    .desktop-nav__firus {
        transform-origin: center bottom;
        transition:
            transform 180ms ease,
            filter 180ms ease;
    }

    .desktop-nav__firus:hover {
        animation: firus-menu-yujuuu 700ms ease-in-out;
        filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.16));
    }
}

@keyframes firus-menu-yujuuu {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-8px) rotate(-6deg) scale(1.08);
    }

    50% {
        transform: translateY(-12px) rotate(5deg) scale(1.12);
    }

    75% {
        transform: translateY(-6px) rotate(-3deg) scale(1.07);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* =========================================================
   VERSIÓN MÓVIL
========================================================= */

@media (max-width: 768px) {

    .header-desktop,
    .home-desktop {
        display: none;
    }

    body {
        background: #bfe6f0;
    }

    .home-mobile {
        position: relative;
        display: block;
        width: 100%;
        min-height: 0;
        aspect-ratio: 390 / 844;
        overflow: hidden;
        background: #bfe6f0;
    }

    .home-mobile__background {
        position: absolute;
        z-index: -10;
        inset: 0;
        background-color: #bfe6f0;
        background-image:
            url("../assets/backgrounds/background-home-mobile.webp");
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: 100% 100%;
    }


    /* =====================================================
       CONTENIDO SUPERIOR
    ===================================================== */

    .home-mobile__content {
        position: absolute;
        z-index: 10;
        top: 8.8%;
        left: 50%;
        width: calc(100% - 22px);
        transform: translateX(-50%);
        text-align: center;
    }

    .home-mobile__logo {
        width: 76%;
        max-width: none;
        margin: 0 auto;
    }

    .home-mobile__description {
        margin-top: 7.4%;
    }

    .home-mobile__description-line {
        margin: 0;
        font-family: var(--font-body);
        font-size: 5.25vw;
        font-weight: 400;
        line-height: 1.12;
        letter-spacing: -0.04em;
    }

    .home-mobile__description-highlight {
        margin: -0.4% 0 0;
        color: var(--color-red);
        font-family: var(--font-display);
        font-size: 6.8vw;
        line-height: 1.30;
        text-transform: uppercase;
    }


    /* =====================================================
       BOTONES
    ===================================================== */

    .home-mobile__buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3.5vw;
        margin-top: 7.4%;
    }

    .home-mobile .home-button {
        width: 61.5%;
        max-width: none;
        min-height: 0;
        aspect-ratio: 240 / 45;
        border-radius: 3.7vw;
        padding: 0 2.5%;
        font-size: 3.35vw;
        line-height: 1;
        white-space: nowrap;
    }


    /* =====================================================
       NUBES
    ===================================================== */

    .home-cloud--mobile-01 {
        top: 17.2%;
        left: 3.8%;
        width: 7.4%;
    }

    .home-cloud--mobile-02 {
        top: 9.2%;
        right: 35.4%;
        width: 8.2%;
    }

    .home-cloud--mobile-03 {
        top: 17.1%;
        right: 3.6%;
        width: 7.5%;
    }





    /* =====================================================
       MENÚ MÓVIL
       Permanecerá oculto hasta construir la siguiente sección
    ===================================================== */

    .mobile-menu-trigger {
        position: fixed;
        z-index: 200;
        top: 50%;
        right: 10px;
        display: none;
        width: 66px;
        height: 66px;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .mobile-menu-trigger img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mobile-menu {
        position: fixed;
        z-index: 220;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 28px;
        background: rgba(0, 0, 0, 0.68);
    }

    .mobile-menu.is-open {
        display: flex;
    }

    .mobile-menu__navigation {
        display: flex;
        flex-direction: column;
        width: min(100%, 330px);
        padding: 55px 28px 34px;
        border-radius: 28px;
        background: var(--color-white);
        text-align: center;
    }

    .mobile-menu__link {
        padding: 11px 8px;
        font-family: var(--font-display);
        font-size: 21px;
        line-height: 1;
    }

    .mobile-menu__link--contact {
        margin-top: 9px;
        color: var(--color-black);
    }

    .mobile-menu__close {
        position: absolute;
        top: 24px;
        right: 28px;
        color: var(--color-white);
        font-size: 48px;
        line-height: 1;
        cursor: pointer;
    }
}


/* =========================================================
   TELÉFONOS PEQUEÑOS
========================================================= */

@media (max-width: 360px) {

    .home-mobile__content {
        width: calc(100% - 18px);
    }

    .home-mobile__description-line {
        font-size: 5.15vw;
    }

    .home-mobile__description-highlight {
        font-size: 6.7vw;
    }

    .home-mobile .home-button {
        font-size: 3.25vw;
    }
}

/* =========================================================
   HOME DESKTOP — AJUSTES FINALES
   No modifica móvil
========================================================= */

@media screen and (min-width: 769px) {

    /* ---------------------------------------------
       MENÚ: distribución uniforme
    --------------------------------------------- */

    .header-desktop {
        width: calc(100% - 190px);
        max-width: 1720px;
    }

    .desktop-nav {
        display: flex;
        align-items: center;

        width: 100%;
        height: 86px;

        padding: 0 24px 0 132px;
        gap: 0;

        grid-template-columns: none;
    }

    .desktop-nav__link {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 8px;

        font-size: clamp(13px, 0.92vw, 18px);
        white-space: nowrap;
    }

    /* “Colaboraciones” necesita un poco más de espacio */

    .desktop-nav__link[href="#colaboraciones"] {
        flex-grow: 1.32;
    }

    /* Contacto conserva un ancho fijo */

    .desktop-nav__link--contact {
        flex: 0 0 155px;
    }

    .desktop-nav__separator {
        flex: 0 0 1px;
        width: 1px;
        height: 54px;
        margin: 0 20px;
    }


    /* ---------------------------------------------
       CABEZA DE FIRUS
    --------------------------------------------- */

    .desktop-nav__firus {
        left: 28px;
        bottom: -10px;

        width: 105px;
        height: 105px;

        transform-origin: center center;
        will-change: transform;
    }

    .desktop-nav__firus:hover {
        animation: firus-spinner 850ms
            cubic-bezier(0.34, 1.56, 0.64, 1);
    }


    /* ---------------------------------------------
       LOGO, TEXTO Y BOTONES
    --------------------------------------------- */

    .home-desktop__content {
        top: 345px;
        left: 65.5%;

        width: min(34vw, 600px);
        transform: translateX(-50%);
    }

    .home-desktop__logo {
        width: min(100%, 570px);
        margin: 0 auto;
    }

    /*
       El texto comienza debajo de “EL”
       del logotipo, no debajo de la cabeza.
    */

    .home-desktop__description {
        width: 78%;

        margin-top: 18px;
        margin-right: 0;
        margin-bottom: 34px;
        margin-left: 22%;

        padding: 0;

        font-size: clamp(23px, 1.72vw, 33px);
        line-height: 1.08;
        letter-spacing: -0.8px;
        text-align: left;
    }

    .home-desktop__buttons {
        gap: 24px;
    }


    /* ---------------------------------------------
       REDES SOCIALES
    --------------------------------------------- */

    .home-social {
        top: auto;
        bottom: 275px;
        left: 65.5%;

        gap: 20px;
        transform: translateX(-50%);
    }

    .home-social__link {
        width: 50px;
        flex-basis: 50px;
    }

    .home-social__apple-books {
        width: 218px;
    }
}


/* =========================================================
   ANIMACIÓN SPINNER DE FIRUS
========================================================= */

@keyframes firus-spinner {

    0% {
        transform:
            translateY(0)
            rotate(0deg)
            scale(1);
    }

    20% {
        transform:
            translateY(-8px)
            rotate(0deg)
            scale(1.10);
    }

    75% {
        transform:
            translateY(-8px)
            rotate(360deg)
            scale(1.10);
    }

    100% {
        transform:
            translateY(0)
            rotate(360deg)
            scale(1);
    }
}

/* =========================================================
   HOME DESKTOP — ALINEACIÓN DEFINITIVA
   Logo, texto, botones y redes comparten el mismo borde
========================================================= */

@media screen and (min-width: 769px) {

    /* Punto izquierdo común para todo el bloque */

    .home-desktop__content {
        top: 345px;
        left: 52%;
        width: 620px;
        transform: none;
        text-align: left;
    }

    /* Logo alineado al mismo borde izquierdo */

    .home-desktop__logo {
        display: block;
        width: 570px;
        max-width: none;
        margin: 0;
		
		position: relative;
		left: -42px;
    }
	
    /* Mover al Firus grande del Home */	
	.home-desktop__character {
    left: calc(16.5% + 45px);
}

    /* Texto en DOS líneas, sin permitir otro salto */

    .home-desktop__description {
        width: 620px;
        max-width: none;
        margin: 18px 0 34px;
        padding: 0;

        font-size: 33px;
        line-height: 1.08;
        letter-spacing: -0.8px;
        text-align: left;
        white-space: nowrap;
    }

    /* Botones desde el mismo borde izquierdo */

    .home-desktop__buttons {
        align-items: flex-start;
        padding: 0;
        gap: 24px;
    }

    /* Redes desde el mismo borde izquierdo */

    .home-social {
        left: 52%;
        transform: none;
    }
}

/* =========================================================
   YO SOY FIRUS
========================================================= */

.about {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-white);
}

.about-mobile {
    display: none;
}


/* =========================================================
   YO SOY FIRUS — DESKTOP
   Base del diseño: 1920 × 1080
========================================================= */

.about-desktop {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-white);
}

/*
   El área útil desktop mide máximo 1720 px y queda centrada.
   El contenido comienza 20 px dentro de la guía izquierda.
*/

.about-desktop__content {
    position: absolute;
    z-index: 4;
    top: 20.4%;
    left: max(20px, calc((100% - 1720px) / 2 + 20px));
    width: min(35vw, 670px);
    max-width: 670px;
}

.about-desktop__logo {
    display: block;
    width: min(100%, 575px);
    max-width: none;
    margin: 0 0 35px;
}

.about-desktop__heading {
    margin: 0 0 63px;
}

.about-desktop__title,
.about-desktop__subtitle {
    margin: 0;
}

.about-desktop__title {
    color: var(--color-red);
    font-family: var(--font-display);
    font-size: clamp(27px, 2.25vw, 43px);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.about-desktop__subtitle {
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: clamp(22px, 1.82vw, 35px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.about-desktop__description {
    width: 100%;
    font-family: var(--font-body);
    font-size: clamp(16px, 1.25vw, 24px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.about-desktop__description p {
    margin: 0;
}

.about-desktop__description p + p {
    margin-top: 27px;
}

.about-desktop__description strong {
    font-weight: 700;
}

.about-desktop__features {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    margin-top: 74px;
}

.about-feature {
    display: flex;
    width: 170px;
    flex: 0 0 170px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-feature__icon {
    display: block;
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin: 0 auto 13px;
}

.about-feature__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(15px, 1.14vw, 22px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.about-desktop__divider {
    display: block;
    width: 1px;
    height: 87px;
    flex: 0 0 1px;
    margin: 0 22px;
    background: #555555;
}

/* Firus es el único elemento que puede salir de la guía. */

.about-desktop__firus {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    height: 92%;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    user-select: none;
}


/* =========================================================
   YO SOY FIRUS — DESKTOP INTERMEDIO
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1680px) {

    .about-desktop__content {
        top: 20.4%;
        width: min(35vw, 585px);
    }

    .about-desktop__logo {
        width: min(100%, 500px);
        margin-bottom: 30px;
    }

    .about-desktop__heading {
        margin-bottom: 54px;
    }

    .about-desktop__description p + p {
        margin-top: 23px;
    }

    .about-desktop__features {
        margin-top: 62px;
    }

    .about-feature {
        width: 145px;
        flex-basis: 145px;
    }

    .about-feature__icon {
        width: 80px;
        height: 80px;
        margin-bottom: 11px;
    }

    .about-desktop__divider {
        height: 76px;
        margin: 0 19px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1440px) {

    .about-desktop__content {
        width: min(35vw, 500px);
    }

    .about-desktop__logo {
        width: min(100%, 425px);
        margin-bottom: 25px;
    }

    .about-desktop__heading {
        margin-bottom: 44px;
    }

    .about-desktop__description p + p {
        margin-top: 20px;
    }

    .about-desktop__features {
        margin-top: 50px;
    }

    .about-feature {
        width: 122px;
        flex-basis: 122px;
    }

    .about-feature__icon {
        width: 68px;
        height: 68px;
        margin-bottom: 9px;
    }

    .about-desktop__divider {
        height: 65px;
        margin: 0 16px;
    }
}


/* =========================================================
   YO SOY FIRUS — MÓVIL
   Base visible: 390 × 844
========================================================= */

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

    .about-desktop {
        display: none;
    }

    .about-mobile {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 390 / 844;
        overflow: hidden;
        background: var(--color-white);
    }

    .about-mobile__content {
        position: absolute;
        z-index: 4;
        inset: 0;
        width: 100%;
        height: 100%;
    }


    /* -----------------------------------------------------
       TÍTULO
    ----------------------------------------------------- */

    .about-mobile__heading {
        position: absolute;
        top: 10.8%;
        left: 8.72%;
        width: 82.56%;
    }

    .about-mobile__title,
    .about-mobile__subtitle {
        margin: 0;
    }

    .about-mobile__title {
        color: var(--color-red);
        font-family: var(--font-display);
        font-size: 7.05vw;
        line-height: 1.03;
        text-transform: uppercase;
    }

    .about-mobile__subtitle {
        margin-top: 1.5%;
        font-family: var(--font-body);
        font-size: 5.05vw;
        font-weight: 400;
        line-height: 1.08;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       TEXTO NEGRO
       Subido respecto a la versión anterior
    ----------------------------------------------------- */

    .about-mobile__description {
        position: absolute;
        top: 24%;
        left: 8.72%;
        width: 82.56%;
        margin: 0;
        font-family: var(--font-body);
        font-size: 4.02vw;
        font-weight: 400;
        line-height: 1.32;
        letter-spacing: -0.035em;
    }

    .about-mobile__description p {
        margin: 0;
    }

    .about-mobile__description p + p {
        margin-top: 6.5%;
    }

    .about-mobile__description strong {
        font-weight: 700;
    }


    /* -----------------------------------------------------
       ICONOS
       Bloque completo subido
    ----------------------------------------------------- */

    .about-mobile__features {
        position: absolute;
        z-index: 5;
        top: 50%;
        left: 8.72%;
        display: flex;
        width: 24.1%;
        flex-direction: column;
        align-items: center;
        gap: 4.3vw;
        margin: 0;
    }

    .about-mobile-feature {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-mobile-feature__icon {
        display: block;
        width: 14vw;
        height: 14vw;
        object-fit: contain;
        margin: 0 auto 1.5vw;
    }

    .about-mobile-feature__text {
        margin: 0;
        font-family: var(--font-body);
        font-size: 3.55vw;
        font-weight: 400;
        line-height: 1.08;
        letter-spacing: -0.035em;
    }


    /* -----------------------------------------------------
       FIRUS
       Subido para respetar el margen inferior.
       El borde derecho sigue alineado con la guía.
    ----------------------------------------------------- */

    .about-mobile__firus {
        position: absolute;
        z-index: 2;
        right: 0%;
        bottom: 13%;
        width: 67.7%;
        max-width: none;
        height: auto;
        pointer-events: none;
        user-select: none;
    }
}


/* =========================================================
   YO SOY FIRUS — TELÉFONOS PEQUEÑOS
========================================================= */

@media screen and (max-width: 360px) {

    .about-mobile__title {
        font-size: 7vw;
    }

    .about-mobile__subtitle {
        font-size: 5vw;
    }

    .about-mobile__description {
        font-size: 4vw;
    }

    .about-mobile-feature__text {
        font-size: 3.5vw;
    }
}
/* =========================================================
   YO SOY FIRUS — ANIMACIONES DESKTOP
   No modifica posiciones ni versión móvil
========================================================= */

@media screen and (min-width: 769px) {

    /*
       Las posiciones iniciales se aplican solamente cuando
       JavaScript confirma que las animaciones están activas.
    */

    .about-desktop.about-desktop--animation-ready
    .about-desktop__logo,

    .about-desktop.about-desktop--animation-ready
    .about-desktop__heading,

    .about-desktop.about-desktop--animation-ready
    .about-desktop__description,

    .about-desktop.about-desktop--animation-ready
    .about-feature,

    .about-desktop.about-desktop--animation-ready
    .about-desktop__divider,

    .about-desktop.about-desktop--animation-ready
    .about-desktop__firus {
        opacity: 0;
        will-change: transform, opacity;
    }


    /* Logo: entra desde la izquierda */

    .about-desktop.about-desktop--animation-ready
    .about-desktop__logo {
        transform: translateX(-90px);
        transition:
            opacity 700ms ease,
            transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    }


    /* Título rojo y subtítulo: entran desde arriba */

    .about-desktop.about-desktop--animation-ready
    .about-desktop__heading {
        transform: translateY(-55px);
        transition:
            opacity 700ms ease 120ms,
            transform 800ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
    }


    /* Texto negro: entra desde la izquierda */

    .about-desktop.about-desktop--animation-ready
    .about-desktop__description {
        transform: translateX(-75px);
        transition:
            opacity 700ms ease 230ms,
            transform 800ms cubic-bezier(0.22, 1, 0.36, 1) 230ms;
    }


    /* Iconos: entran desde abajo */

    .about-desktop.about-desktop--animation-ready
    .about-feature {
        transform: translateY(55px);
    }

    .about-desktop.about-desktop--animation-ready
    .about-feature:nth-of-type(1) {
        transition:
            opacity 600ms ease 390ms,
            transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 390ms;
    }

    .about-desktop.about-desktop--animation-ready
    .about-feature:nth-of-type(2) {
        transition:
            opacity 600ms ease 490ms,
            transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 490ms;
    }

    .about-desktop.about-desktop--animation-ready
    .about-feature:nth-of-type(3) {
        transition:
            opacity 600ms ease 590ms,
            transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 590ms;
    }


    /* Separadores: aparecen suavemente */

    .about-desktop.about-desktop--animation-ready
    .about-desktop__divider {
        transform: scaleY(0);
        transform-origin: center bottom;
    }

    .about-desktop.about-desktop--animation-ready
    .about-desktop__divider:nth-of-type(2) {
        transition:
            opacity 450ms ease 470ms,
            transform 550ms ease 470ms;
    }

    .about-desktop.about-desktop--animation-ready
    .about-desktop__divider:nth-of-type(4) {
        transition:
            opacity 450ms ease 570ms,
            transform 550ms ease 570ms;
    }


    /* Firus grande: entra desde la derecha */

    .about-desktop.about-desktop--animation-ready
    .about-desktop__firus {
        transform: translateX(140px);
        transition:
            opacity 850ms ease 150ms,
            transform 1000ms cubic-bezier(0.22, 1, 0.36, 1) 150ms;
    }


    /* Estado final de todos los elementos */

    .about-desktop.about-desktop--animation-ready.is-visible
    .about-desktop__logo,

    .about-desktop.about-desktop--animation-ready.is-visible
    .about-desktop__heading,

    .about-desktop.about-desktop--animation-ready.is-visible
    .about-desktop__description,

    .about-desktop.about-desktop--animation-ready.is-visible
    .about-feature,

    .about-desktop.about-desktop--animation-ready.is-visible
    .about-desktop__firus {
        opacity: 1;
        transform: translate(0, 0);
    }

    .about-desktop.about-desktop--animation-ready.is-visible
    .about-desktop__divider {
        opacity: 1;
        transform: scaleY(1);
    }


    /* =====================================================
       HOVER DE LOS TRES ICONOS
    ===================================================== */

    .about-feature {
        cursor: default;
    }

    .about-feature__icon {
        transform-origin: center center;
        transition:
            transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 260ms ease;
    }

    .about-feature__text {
        transition:
            transform 260ms ease,
            color 260ms ease;
    }

    .about-feature:hover .about-feature__icon {
        transform:
            translateY(-10px)
            rotate(-5deg)
            scale(1.12);

        filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.16));
    }

    .about-feature:hover .about-feature__text {
        transform: translateY(-4px);
        color: var(--color-red);
    }


    /*
       Cada icono se mueve ligeramente diferente
       para que no parezcan copias de la misma animación.
    */

    .about-feature:nth-of-type(2):hover
    .about-feature__icon {
        transform:
            translateY(-10px)
            rotate(4deg)
            scale(1.12);
    }

    .about-feature:nth-of-type(3):hover
    .about-feature__icon {
        transform:
            translateY(-10px)
            rotate(-4deg)
            scale(1.12);
    }
}


/* =========================================================
   ACCESIBILIDAD
   Desactiva movimientos si el sistema lo solicita
========================================================= */

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

    .about-desktop__logo,
    .about-desktop__heading,
    .about-desktop__description,
    .about-feature,
    .about-desktop__divider,
    .about-desktop__firus,
    .about-feature__icon,
    .about-feature__text {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   HISTORIAS
========================================================= */

.stories {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-yellow);
}

.stories-desktop {
    display: block;
}

.stories-mobile {
    display: none;
}


/* =========================================================
   HISTORIAS — BOTÓN GENERAL
========================================================= */

.stories-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: var(--color-red);
    color: var(--color-white);

    font-family: var(--font-display);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;

    transition:
        transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 220ms ease,
        box-shadow 220ms ease;
}

.stories-button:hover {
    transform: translateY(-4px) scale(1.035);
    filter: brightness(1.04);

    box-shadow:
        0 9px 13px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   HISTORIAS — DESKTOP
   Base del diseño: 1920 × 405
========================================================= */

@media screen and (min-width: 769px) {

    .stories-desktop {
        position: relative;
        display: block;

        width: 100%;
        aspect-ratio: 1920 / 405;

        overflow: hidden;

        background: var(--color-yellow);
        isolation: isolate;
    }


    /* -----------------------------------------------------
       TEXTURA
    ----------------------------------------------------- */

    .stories-desktop__pattern {
        position: absolute;
        z-index: 0;
        inset: 0;

        background-image:
            url("../assets/backgrounds/historias-pattern.svg");

        background-repeat: repeat;
        background-position: center;
        background-size: 470px auto;

        pointer-events: none;
    }


    /* -----------------------------------------------------
       CABEZA DE FIRUS

       El borde izquierdo respeta la misma guía de 1720 px
       utilizada en Home y Yo Soy Firus.
    ----------------------------------------------------- */

    .stories-desktop__firus {
    position: absolute;
    z-index: 3;

    top: 10%;
    transform: translateY(10%);

    left:
        max(
            20px,
            calc((100% - 1720px) / 2)
        );

    width: min(21vw, 400px);
    max-width: 400px;

    cursor: pointer;
    transform-origin: center center;
    will-change: transform;
}

    .stories-desktop__firus img {
        display: block;

        width: 100%;
        height: auto;

        max-width: none;
    }
	
	.stories-desktop__firus:hover {
    animation:
        stories-firus-spinner 850ms
        cubic-bezier(0.34, 1.56, 0.64, 1);
}
	
	@keyframes stories-firus-spinner {

    0% {
        transform:
            translateY(10%)
            rotate(0deg)
            scale(1);
    }

    20% {
        transform:
            translateY(calc(10% - 8px))
            rotate(0deg)
            scale(1.10);
    }

    75% {
        transform:
            translateY(calc(10% - 8px))
            rotate(360deg)
            scale(1.10);
    }

    100% {
        transform:
            translateY(10%)
            rotate(360deg)
            scale(1);
    }
}


    /* -----------------------------------------------------
       COLLAGE

       El collage termina en la misma guía derecha
       del área útil desktop.
    ----------------------------------------------------- */

    .stories-desktop__collage {
        position: absolute;
        z-index: 2;

        top: 0;

        right:
            max(
                20px,
                calc((100% - 1720px) / 2)
            );

        width: min(47vw, 850px);
        height: 100%;

        overflow: hidden;

        clip-path: polygon(
            17% 0,
            100% 0,
            92.5% 100%,
            0 100%
        );

        background: var(--color-yellow);
    }

    .stories-desktop__collage img {
    width: 100%;
    height: auto;
    max-width: none;

    object-fit: contain;
    object-position: center top;

    transform: none;

        transition:
            transform 850ms cubic-bezier(0.22, 1, 0.36, 1),
            filter 450ms ease;
    }

    .stories-desktop__collage:hover img {
        transform: scale(1.05);
        filter: saturate(1.04) contrast(1.02);
    }


    /* -----------------------------------------------------
       CONTENIDO

       Su borde derecho queda cerca de la diagonal izquierda
       del collage.
    ----------------------------------------------------- */

    .stories-desktop__content {
        position: absolute;
        z-index: 5;

        top: 50%;
        transform: translateY(-50%);

        right:
            calc(
                max(
                    20px,
                    (100% - 1720px) / 2
                )
                + min(47vw, 850px)
                + 70px
            );

        width: min(22vw, 395px);
        max-width: 395px;

        text-align: right;
    }


    /* -----------------------------------------------------
       TÍTULO
    ----------------------------------------------------- */

    .stories-desktop__title {
    display: block;

    width: min(100%, 315px);
    max-width: none;

    margin: 0 -22px 15px auto;
}


    /* -----------------------------------------------------
       TEXTO
    ----------------------------------------------------- */

    .stories-desktop__description {
        margin: 0;

        font-family: var(--font-body);
        font-size: clamp(16px, 1.25vw, 24px);
        font-weight: 400;
        line-height: 1.18;
        letter-spacing: -0.04em;

        text-align: right;
    }


    /* -----------------------------------------------------
       BOTÓN DESKTOP
    ----------------------------------------------------- */

    .stories-desktop .stories-button {
        min-width: 170px;
        min-height: 49px;

        margin-top: 23px;
        padding: 13px 24px;

        border-radius: 17px;

        font-size: clamp(14px, 1vw, 19px);
    }
}


/* =========================================================
   HISTORIAS — DESKTOP INTERMEDIO
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1680px) {

    .stories-desktop__firus {
        width: min(20.5vw, 345px);
    }

    .stories-desktop__collage {
        width: min(47vw, 790px);
    }

    .stories-desktop__content {
        top: 24%;

        right:
            calc(
                max(
                    20px,
                    (100% - 1720px) / 2
                )
                + min(47vw, 790px)
                - 23px
            );

        width: min(22vw, 360px);
    }

    .stories-desktop__title {
        width: min(100%, 285px);
        margin-bottom: 13px;
    }

    .stories-desktop__description {
        font-size: clamp(15px, 1.25vw, 21px);
    }

    .stories-desktop .stories-button {
        min-width: 155px;
        min-height: 44px;

        margin-top: 19px;
        padding: 11px 21px;

        border-radius: 15px;
    }
}


@media screen and (min-width: 769px) and (max-width: 1440px) {

    .stories-desktop__firus {
        top: 22%;
        width: 20%;
    }

    .stories-desktop__collage {
        width: 46.5%;
    }

    .stories-desktop__content {
        top: 23%;

        right:
            calc(
                max(
                    20px,
                    (100% - 1720px) / 2
                )
                + 46.5%
                - 21px
            );

        width: 22%;
    }

    .stories-desktop__title {
        width: 78%;
        margin-bottom: 11px;
    }

    .stories-desktop__description {
        font-size: clamp(14px, 1.22vw, 18px);
    }

    .stories-desktop .stories-button {
        min-width: 135px;
        min-height: 39px;

        margin-top: 16px;
        padding: 10px 18px;

        border-radius: 13px;

        font-size: clamp(12px, 1vw, 15px);
    }
}


/* =========================================================
   HISTORIAS — MÓVIL
   Diseño completo: 390 × 844
========================================================= */

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

    .stories-desktop {
        display: none;
    }

    .stories-mobile {
        position: relative;
        display: block;

        width: 100%;
        height: auto;
        aspect-ratio: 390 / 844;

        overflow: hidden;

        background: var(--color-yellow);
        isolation: isolate;
    }


    /* -----------------------------------------------------
       TEXTURA
    ----------------------------------------------------- */

    .stories-mobile__pattern {
        position: absolute;
        z-index: 0;
        inset: 0;

        background-image:
            url("../assets/backgrounds/historias-pattern.svg");

        background-repeat: repeat;
        background-position: center top;
        background-size: 250px auto;

        pointer-events: none;
    }


    /* -----------------------------------------------------
       TÍTULO + CABEZA

       El archivo ya contiene ambos elementos.
       Se respetan márgenes laterales del diseño móvil.
    ----------------------------------------------------- */

    /* -----------------------------------------------------
   TTULO + CABEZA INDEPENDIENTES
----------------------------------------------------- */

.stories-mobile__hero {
    position: absolute;
    z-index: 4;

    top: 5.8%;
    left: 50%;

    width: 76%;
    height: 33%;

    transform: translateX(-50%);
    pointer-events: none;
}

.stories-mobile__title {
    position: absolute;
    z-index: 1;

    top: 0;
    left: 50%;

    width: 100%;
    max-width: none;
    height: auto;

    transform: translateX(-50%);

    pointer-events: none;
    user-select: none;
}

.stories-mobile__firus {
    position: absolute;
    z-index: 2;

    top: 10%;
    left: 50%;

    display: block;

    width: 90%;
    max-width: none;
    aspect-ratio: 1 / 1;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    transform: translateX(-50%);
    transform-origin: center center;

    cursor: pointer;
    pointer-events: auto;

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.stories-mobile__firus img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;
    user-select: none;
}

.stories-mobile__firus.is-yuju-active {
    animation:
        stories-mobile-firus-spinner 850ms
        cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stories-mobile-firus-spinner {

    0% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(0deg)
            scale(1);
    }

    20% {
        transform:
            translateX(-50%)
            translateY(-8px)
            rotate(0deg)
            scale(1.1);
    }

    75% {
        transform:
            translateX(-50%)
            translateY(-8px)
            rotate(360deg)
            scale(1.1);
    }

    100% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(360deg)
            scale(1);
    }
}


    /* -----------------------------------------------------
       TEXTO Y BOTÓN
    ----------------------------------------------------- */

    .stories-mobile__content {
        position: absolute;
        z-index: 5;

        top: 42%;
        left: 7.7%;

        width: 84.6%;

        text-align: center;
    }

    .stories-mobile__description {
        margin: 0;

        font-family: var(--font-body);
        font-size: 4.45vw;
        font-weight: 400;
        line-height: 1.28;
        letter-spacing: -0.04em;
    }

    .stories-mobile__description strong,
    .stories-mobile__description span {
        display: block;
    }

    .stories-mobile__description strong {
        margin-bottom: 1.4%;

        color: var(--color-red);

        font-size: 5.35vw;
        font-weight: 700;
        line-height: 1.08;
    }


    /* -----------------------------------------------------
       BOTÓN MÓVIL
    ----------------------------------------------------- */

    .stories-button--mobile {
        width: 41.5%;
        min-width: 0;
        min-height: 0;

        aspect-ratio: 160 / 48;

        margin-top: 3%;
        padding: 0 4%;

        border-radius: 5vw;

        font-size: 3.8vw;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       COLLAGE INFERIOR
    ----------------------------------------------------- */

    .stories-mobile__background {
        position: absolute;
        z-index: 2;

        right: 0;
        bottom: 0;
        left: 0;

        display: block;

        width: 100%;
        max-width: none;
        height: auto;

        object-fit: contain;
        object-position: center bottom;

        pointer-events: none;
        user-select: none;
    }
}


/* =========================================================
   HISTORIAS — TELÉFONOS PEQUEÑOS
========================================================= */

@media screen and (max-width: 360px) {

    .stories-mobile__description {
        font-size: 4.4vw;
    }

    .stories-mobile__description strong {
        font-size: 5.3vw;
    }

    .stories-button--mobile {
        font-size: 3.75vw;
    }
}


/* =========================================================
   HISTORIAS — ACCESIBILIDAD
========================================================= */

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

    .stories-button,
    .stories-desktop__collage img {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   PERSONAJES
========================================================= */

.characters {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-sky);
    background-image:
        url("../assets/ui/cloud-small.svg"),
        url("../assets/ui/cloud-medium.svg"),
        url("../assets/ui/cloud-small.svg"),
        url("../assets/ui/cloud-medium.svg"),
        url("../assets/ui/cloud-small.svg");

    background-repeat: no-repeat;
    background-position:
        5% 7%,
        88% 10%,
        96% 29%,
        4% 54%,
        83% 88%;

    background-size:
        90px auto,
        145px auto,
        80px auto,
        140px auto,
        90px auto;
}


/* =========================================================
   PERSONAJES — ELEMENTOS GENERALES
========================================================= */

.characters-stage {
    position: relative;
    width: min(calc(100% - 80px), 1528px);
    margin: 0 auto;
}

.characters-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.characters-header-firus,
.characters-title {
    display: block;
    max-width: none;
    height: auto;
}

.characters-description {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
}

.characters-description strong,
.characters-description span {
    display: block;
}

.characters-description strong {
    color: var(--color-red);
    font-weight: 700;
}


/* =========================================================
   PERSONAJES — GALERÍA GENERAL
========================================================= */

.characters-grid {
    display: grid;
    width: 100%;
}

.character-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--color-white);
}

.character-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   PERSONAJES — INFORMACIÓN Y MICROINTERACCIONES
========================================================= */

.character-card {
    isolation: isolate;
    cursor: pointer;
}

.character-image {
    position: relative;
    z-index: 1;

    transform: scale(1);
    transform-origin: center center;

    transition:
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 450ms ease;
}


/* =========================================================
   CAPA DE INFORMACIÓN
========================================================= */

.character-info {
    position: absolute;
    z-index: 3;

    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    min-height: 34%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    padding:
        clamp(18px, 1.6vw, 30px)
        clamp(16px, 1.4vw, 26px);

    color: var(--color-white);
    text-align: center;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.70) 48%,
            rgba(0, 0, 0, 0) 100%
        );

    opacity: 0;
    transform: translateY(24px);

    pointer-events: none;

    transition:
        opacity 330ms ease,
        transform 430ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   NOMBRE
========================================================= */

.character-info h3 {
    margin: 0 0 7px;

    color: var(--color-yellow);

    font-family: var(--font-display);
    font-size: clamp(22px, 1.65vw, 31px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;

    text-shadow:
        0 2px 3px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.character-info p {
    max-width: 95%;
    margin: 0;

    font-family: var(--font-body);
    font-size: clamp(15px, 1.02vw, 19px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   ESTADO ACTIVO GENERAL
========================================================= */

.character-card:hover .character-image,
.character-card:focus-visible .character-image,
.character-card.is-active .character-image {
    transform: scale(1.075);
    filter:
        saturate(1.05)
        contrast(1.03)
        brightness(0.87);
}

.character-card:hover .character-info,
.character-card:focus-visible .character-info,
.character-card.is-active .character-info {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   FIRUS HORIZONTAL
   La información no debe ocupar demasiado espacio
========================================================= */

.character-card-wide .character-info {
    min-height: 44%;
}

.character-card-wide .character-info h3 {
    font-size: clamp(24px, 1.8vw, 34px);
}

.character-card-wide .character-info p {
    font-size: clamp(16px, 1.08vw, 20px);
}


/* =========================================================
   BORDE INTERIOR SUAVE
========================================================= */

.character-card::after {
    position: absolute;
    z-index: 4;
    inset: 0;

    border: 0 solid rgba(255, 255, 255, 0);

    content: "";
    pointer-events: none;

    transition:
        border-width 300ms ease,
        border-color 300ms ease;
}

.character-card:hover::after,
.character-card:focus-visible::after,
.character-card.is-active::after {
    border-width: 6px;
    border-color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   MÓVIL
========================================================= */

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

    .character-info {
        min-height: 43%;

        padding:
            14px
            10px
            12px;
    }

    .character-info h3 {
        margin-bottom: 5px;
        font-size: 4.8vw;
    }

    .character-info p {
        max-width: 100%;
        font-size: 3.15vw;
        line-height: 1.15;
    }

    .character-card-wide .character-info {
        min-height: 48%;
    }

    .character-card-wide .character-info h3 {
        font-size: 5.2vw;
    }

    .character-card-wide .character-info p {
        font-size: 3.45vw;
    }

    /*
       En dispositivos táctiles evitamos que el estado
       :hover quede atorado después de tocar la tarjeta.
    */

    @media (hover: none) {

        .character-card:hover .character-image {
            transform: scale(1);
            filter: none;
        }

        .character-card:hover .character-info {
            opacity: 0;
            transform: translateY(24px);
        }

        .character-card:hover::after {
            border-width: 0;
            border-color: rgba(255, 255, 255, 0);
        }

        .character-card.is-active .character-image {
            transform: scale(1.075);

            filter:
                saturate(1.05)
                contrast(1.03)
                brightness(0.87);
        }

        .character-card.is-active .character-info {
            opacity: 1;
            transform: translateY(0);
        }

        .character-card.is-active::after {
            border-width: 4px;
            border-color: rgba(255, 255, 255, 0.82);
        }
    }
}


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

.character-card:focus-visible {
    outline: 4px solid var(--color-yellow);
    outline-offset: 4px;
}

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

    .character-image,
    .character-info,
    .character-card::after {
        transition: none !important;
    }

    .character-card:hover .character-image,
    .character-card:focus-visible .character-image,
    .character-card.is-active .character-image {
        transform: none !important;
    }
}


/* =========================================================
   PERSONAJES — DESKTOP
   Distribución aprobada de cuatro columnas
========================================================= */

@media screen and (min-width: 769px) {

    .characters {
        min-height: 0;
        padding: 140px 0 150px;
    }

    .characters-stage {
        width: min(calc(100% - 80px), 1528px);
    }

    .characters-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));

        grid-template-areas:
            "intro     intro     dinky     panchan"
            "teddy     firus     firus     coco"
            "aura      rayo      sake      meztli"
            "callejero solovino  tripi     kaiser";

        gap: 16px;
    }


    /* -----------------------------------------------------
       UBICACIÓN DE CADA ELEMENTO
    ----------------------------------------------------- */

    .characters-intro {
        grid-area: intro;
    }

    .character-dinky {
        grid-area: dinky;
    }

    .character-panchan {
        grid-area: panchan;
    }

    .character-teddy {
        grid-area: teddy;
    }

    .character-firus {
        grid-area: firus;
    }

    .character-coco {
        grid-area: coco;
    }

    .character-aura {
        grid-area: aura;
    }

    .character-rayo {
        grid-area: rayo;
    }

    .character-sake {
        grid-area: sake;
    }

    .character-meztli {
        grid-area: meztli;
    }

    .character-callejero {
        grid-area: callejero;
    }

    .character-solovino {
        grid-area: solovino;
    }

    .character-tripi {
        grid-area: tripi;
    }

    .character-kaiser {
        grid-area: kaiser;
    }


    /* -----------------------------------------------------
       PROPORCIÓN DE LAS TARJETAS
    ----------------------------------------------------- */

    .character-card {
        aspect-ratio: 370 / 470;
    }

    .character-card-wide {
        aspect-ratio: 756 / 470;
    }


    /* -----------------------------------------------------
       ENCABEZADO
    ----------------------------------------------------- */

    .characters-intro {
        min-height: 0;
        padding: 0 55px 0 105px;
    }

    .characters-header-firus {
        width: min(88%, 500px);
        margin: -20px auto 0;
    }

    .characters-title {
        width: min(64%, 365px);
        margin: -7px auto 20px;
    }

    .characters-description {
        width: 100%;
        font-size: clamp(19px, 1.45vw, 27px);
        line-height: 1.22;
        letter-spacing: -0.035em;
        text-align: left;
    }

    .characters-description strong {
        margin-bottom: 3px;
    }
}


/* =========================================================
   PERSONAJES — DESKTOP INTERMEDIO
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1680px) {

    .characters {
        padding-top: 115px;
        padding-bottom: 125px;
    }

    .characters-stage {
        width: min(calc(100% - 70px), 1370px);
    }

    .characters-grid {
        gap: 14px;
    }

    .characters-intro {
        padding-right: 40px;
        padding-left: 80px;
    }

    .characters-header-firus {
        width: min(87%, 445px);
    }

    .characters-title {
        width: min(63%, 320px);
        margin-bottom: 17px;
    }

    .characters-description {
        font-size: clamp(17px, 1.42vw, 23px);
    }
}


@media screen and (min-width: 769px) and (max-width: 1440px) {

    .characters {
        padding-top: 95px;
        padding-bottom: 105px;
    }

    .characters-stage {
        width: min(calc(100% - 60px), 1200px);
    }

    .characters-grid {
        gap: 12px;
    }

    .characters-intro {
        padding-right: 30px;
        padding-left: 60px;
    }

    .characters-header-firus {
        width: 84%;
    }

    .characters-title {
        width: 61%;
        margin-bottom: 14px;
    }

    .characters-description {
        font-size: clamp(15px, 1.4vw, 20px);
    }
}


/* =========================================================
   PERSONAJES — MÓVIL
   Base del diseño: 390 px de ancho
========================================================= */

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

    .characters {
        /*
           La altura final crece de manera natural porque el
           contenido continúa mediante scroll.
        */

        min-height: 1400px;

        padding-top:
            max(
                72px,
                calc(env(safe-area-inset-top) + 28px)
            );

        padding-right:
            max(
                14px,
                env(safe-area-inset-right)
            );

        padding-bottom:
            max(
                40px,
                calc(env(safe-area-inset-bottom) + 20px)
            );

        padding-left:
            max(
                14px,
                env(safe-area-inset-left)
            );

        background-position:
            4% 4%,
            88% 3.5%,
            97% 17%,
            2% 42%,
            86% 75%;

        background-size:
            32px auto,
            58px auto,
            31px auto,
            56px auto,
            34px auto;
    }

    .characters-stage {
        width: 100%;
        margin: 0;
    }


    /* -----------------------------------------------------
       GALERÍA DE DOS COLUMNAS
    ----------------------------------------------------- */

    .characters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-template-areas:
            "intro     intro"
            "dinky     panchan"
            "teddy     coco"
            "firus     firus"
            "aura      rayo"
            "sake      meztli"
            "callejero solovino"
            "tripi     kaiser";

        column-gap: 7px;
        row-gap: 8px;
    }


    /* -----------------------------------------------------
       UBICACIÓN DE LOS ELEMENTOS
    ----------------------------------------------------- */

    .characters-intro {
        grid-area: intro;
    }

    .character-dinky {
        grid-area: dinky;
    }

    .character-panchan {
        grid-area: panchan;
    }

    .character-teddy {
        grid-area: teddy;
    }

    .character-coco {
        grid-area: coco;
    }

    .character-firus {
        grid-area: firus;
    }

    .character-aura {
        grid-area: aura;
    }

    .character-rayo {
        grid-area: rayo;
    }

    .character-sake {
        grid-area: sake;
    }

    .character-meztli {
        grid-area: meztli;
    }

    .character-callejero {
        grid-area: callejero;
    }

    .character-solovino {
        grid-area: solovino;
    }

    .character-tripi {
        grid-area: tripi;
    }

    .character-kaiser {
        grid-area: kaiser;
    }


    /* -----------------------------------------------------
       ENCABEZADO MÓVIL

       Solamente esta zona conserva distancia con el borde
       superior y con el área segura del iPhone.
    ----------------------------------------------------- */

    .characters-intro {
        width: 100%;
        min-height: 395px;
        padding: 0 4px 25px;
        align-items: center;
        text-align: center;
    }

    .characters-header-firus {
        width: 69%;
        margin: 0 auto;
    }

    .characters-title {
        width: 55%;
        margin: -2px auto 25px;
    }

    .characters-description {
        width: 94%;
        margin: 0 auto;
        font-size: 4.45vw;
        line-height: 1.25;
        letter-spacing: -0.035em;
        text-align: center;
    }

    .characters-description strong {
        margin-bottom: 4px;
        font-size: 5.05vw;
        line-height: 1.1;
    }

    .characters-description span br {
        display: none;
    }


    /* -----------------------------------------------------
       TARJETAS MÓVILES
    ----------------------------------------------------- */

    .character-card {
        width: 100%;
        aspect-ratio: 370 / 470;
    }

    .character-card-wide {
        aspect-ratio: 756 / 470;
    }

    .character-image {
        object-fit: cover;
        object-position: center;
    }
}


/* =========================================================
   PERSONAJES — TELÉFONOS PEQUEÑOS
========================================================= */

@media screen and (max-width: 360px) {

    .characters {
        padding-right:
            max(
                12px,
                env(safe-area-inset-right)
            );

        padding-left:
            max(
                12px,
                env(safe-area-inset-left)
            );
    }

    .characters-intro {
        min-height: 370px;
    }

    .characters-description {
        font-size: 4.4vw;
    }

    .characters-description strong {
        font-size: 5vw;
    }

    .characters-grid {
        column-gap: 6px;
        row-gap: 7px;
    }
}

/* =========================================================
   PERSONAJES — AJUSTES DE POSICIÓN
========================================================= */


/* =========================================================
   DESKTOP
   Encabezado dentro del espacio vacío a la izquierda
   de Dinky y Panchán
========================================================= */

@media screen and (min-width: 769px) {

    /*
       La cuadrícula comienza desde arriba.
       El encabezado se coloca encima de las dos celdas
       vacías de la primera fila.
    */

    .characters-stage {
        position: relative;
    }

    .characters-intro {
        position: absolute;
        z-index: 5;

        top: 0;
        left: 0;

        width: 50%;
        height: calc(
            (
                min(
                    calc((100vw - 80px) / 4),
                    382px
                )
            )
            * 470 / 370
        );

        padding: 32px 65px 20px 55px;

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

        text-align: center;
        pointer-events: none;
    }


    /* Firus asomado */

    .characters-header-firus {
        width: 56%;
        max-width: 430px;

        margin: 0 auto;
    }


    /* Título */

    .characters-title {
        width: 42%;
        max-width: 320px;

        margin: -4px auto 16px;
    }


    /* Texto */

    .characters-description {
        width: 69%;

        margin: 0 auto;

        font-size: clamp(17px, 1.16vw, 22px);
        line-height: 1.17;
        letter-spacing: -0.035em;

        text-align: left;
    }

    .characters-description strong {
        margin-bottom: 2px;
    }
}


/* =========================================================
   DESKTOP INTERMEDIO
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1680px) {

    .characters-intro {
        padding:
            26px
            52px
            18px
            45px;
    }

    .characters-header-firus {
        width: 55%;
    }

    .characters-title {
        width: 41%;
        margin-bottom: 14px;
    }

    .characters-description {
        width: 70%;
        font-size: clamp(15px, 1.14vw, 19px);
    }
}


@media screen and (min-width: 769px) and (max-width: 1440px) {

    .characters-intro {
        padding:
            20px
            40px
            15px
            35px;
    }

    .characters-header-firus {
        width: 54%;
    }

    .characters-title {
        width: 40%;
        margin-bottom: 12px;
    }

    .characters-description {
        width: 72%;
        font-size: clamp(14px, 1.12vw, 17px);
    }
}


/* =========================================================
   MÓVIL
   Reducir espacio entre encabezado y primeras fotografías
========================================================= */

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

    .characters-intro {
        min-height: 320px;
        padding-bottom: 10px;
    }

    .characters-title {
        margin-bottom: 21px;
    }
}


/* =========================================================
   TELÉFONOS PEQUEÑOS
========================================================= */

@media screen and (max-width: 360px) {

    .characters-intro {
        min-height: 300px;
        padding-bottom: 8px;
    }
}

/* =========================================================
   PERSONAJES — AJUSTE FINAL DEL ENCABEZADO DESKTOP
   Firus más grande, título entre las patas y texto más grande
========================================================= */

@media screen and (min-width: 769px) {

    .characters-intro {
        padding-top: 8px;
    }

    /* Firus asomado más grande */

    .characters-header-firus {
        width: 68%;
        max-width: 500px;
        margin: 0 auto;
    }

    /* El título sube para quedar entre las patas */

    .characters-title {
        position: relative;
        z-index: 2;

        width: 43%;
        max-width: 340px;

        margin:
            clamp(-28px, -2.1vw, -24px)
            auto
            17px;
    }

    /* Texto más grande */

    .characters-description {
        width: 72%;

        font-size: clamp(19px, 1.35vw, 26px);
        line-height: 1.18;
        letter-spacing: -0.04em;
    }

    .characters-description strong {
        margin-bottom: 3px;
    }
}


/* =========================================================
   PERSONAJES — AJUSTE DESKTOP INTERMEDIO
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1680px) {

    .characters-header-firus {
        width: 66%;
    }

    .characters-title {
        width: 45%;

        margin-top:
            clamp(-33px, -2vw, -22px);
    }

    .characters-description {
        width: 45%;
        font-size: clamp(17px, 1.3vw, 22px);
    }
}


@media screen and (min-width: 769px) and (max-width: 1440px) {

    .characters-header-firus {
        width: 64%;
    }

    .characters-title {
        width: 44%;

        margin-top:
            clamp(-28px, -1.9vw, -19px);

        margin-bottom: 13px;
    }

    .characters-description {
        width: 74%;
        font-size: clamp(15px, 1.28vw, 19px);
    }
}

/* =========================================================
   PERSONAJES — TEXTO EN DOS LÍNEAS DESKTOP
========================================================= */

@media screen and (min-width: 769px) {

    .characters-description {
        width: 72%;
    }

    .characters-description-copy {
        display: block;
    }

    .characters-description-copy > span {
        display: block;
        white-space: nowrap;
    }
}

/* =========================================================
   LIBROS
========================================================= */

.books {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-white);
}

.books-desktop {
    display: block;
}

.books-mobile {
    display: none;
}


/* =========================================================
   LIBROS — BOTÓN GENERAL
========================================================= */

.books-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #ffad24;
    color: var(--color-white);

    font-family: var(--font-display);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;

    transition:
        transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 220ms ease,
        box-shadow 220ms ease;
}


/* =========================================================
   LIBROS — DESKTOP
   Base del diseño: 1920 × 405
========================================================= */

@media screen and (min-width: 769px) {

    .books-desktop {
        position: relative;
        display: block;

        width: 100%;
        aspect-ratio: 1920 / 700;

        overflow: hidden;
        background: var(--color-white);
        isolation: isolate;
    }


    /* -----------------------------------------------------
       IMAGEN PRINCIPAL
    ----------------------------------------------------- */

    .books-desktop__background {
        position: absolute;
        z-index: 0;
        inset: 0;

        width: 100%;
        height: 100%;

        max-width: none;
        object-fit: cover;
        object-position: center center;

        pointer-events: none;
        user-select: none;
    }
	
	/* -----------------------------------------------------
	DEGRADADO BLANCO HACIA TRANSPARENTE
	----------------------------------------------------- */

.books-desktop::after {
    content: "";

    position: absolute;
    z-index: 1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 18%,
            rgba(255, 255, 255, 0.92) 25%,
            rgba(255, 255, 255, 0.58) 34%,
            rgba(255, 255, 255, 0.18) 43%,
            rgba(255, 255, 255, 0) 52%
        );

    pointer-events: none;
}


    /* -----------------------------------------------------
       BLOQUE DE CONTENIDO

       Respeta la misma guía horizontal de 1720 px
       utilizada en las secciones anteriores.
    ----------------------------------------------------- */

    .books-desktop__content {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: max(
        20px,
        calc((100% - var(--desktop-max-width)) / 2 + 20px)
    );

    width: 480px;

    transform: translateY(-50%);
}


    /* -----------------------------------------------------
       TÍTULO
    ----------------------------------------------------- */

    .books-desktop__title {
        margin: 0;

        color: var(--color-red);

        font-family: var(--font-display);
        font-size: clamp(27px, 2.18vw, 42px);
        line-height: 1.05;

        text-transform: uppercase;
    }


    /* -----------------------------------------------------
       TEXTO DESTACADO
    ----------------------------------------------------- */

    .books-desktop__highlight {
        margin: 22px 0 0;

        font-family: var(--font-body);
        font-size: clamp(17px, 1.28vw, 25px);
        font-weight: 700;
        line-height: 1.1;

        letter-spacing: -0.035em;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       DESCRIPCIÓN
    ----------------------------------------------------- */

    .books-desktop__description {
        margin: 22px 0 0;

        font-family: var(--font-body);
        font-size: clamp(15px, 1.08vw, 21px);
        font-weight: 400;
        line-height: 1.25;

        letter-spacing: -0.035em;
    }


    /* -----------------------------------------------------
       BOTÓN
    ----------------------------------------------------- */

    .books-desktop .books-button {
        width: 151px;
        height: 50px;

        margin-top: 17px;
        border-radius: 16px;

        font-size: clamp(15px, 1.04vw, 20px);
    }

    .books-desktop .books-button:hover {
        transform: translateY(-4px) scale(1.035);
        filter: brightness(1.04);

        box-shadow:
            0 9px 13px rgba(0, 0, 0, 0.17);
    }


    /* -----------------------------------------------------
       APPLE BOOKS
    ----------------------------------------------------- */

    .books-desktop__apple-books {
        display: block;

        width: 155px;
        margin-top: 12px;

        transform-origin: left center;

        transition:
            transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 220ms ease;
    }

    .books-desktop__apple-books img {
        display: block;
        width: 100%;
        height: auto;
    }

    .books-desktop__apple-books:hover {
        transform:
            translateY(-3px)
            scale(1.045);

        filter:
            drop-shadow(0 5px 4px rgba(0, 0, 0, 0.14));
    }
}


/* =========================================================
   LIBROS — AJUSTES DESKTOP INTERMEDIOS
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1680px) {

    .books-desktop__content {
        width: 420px;
    }

    .books-desktop__highlight {
        margin-top: 18px;
    }

    .books-desktop__description {
        margin-top: 18px;
    }

    .books-desktop .books-button {
        width: 132px;
        height: 44px;
        margin-top: 14px;
        border-radius: 14px;
    }

    .books-desktop__apple-books {
        width: 136px;
        margin-top: 9px;
    }
}


@media screen and (min-width: 769px) and (max-width: 1440px) {

    .books-desktop__content {
        width: 360px;
    }

    .books-desktop__highlight {
        margin-top: 15px;
    }

    .books-desktop__description {
        margin-top: 14px;
    }

    .books-desktop .books-button {
        width: 114px;
        height: 38px;
        margin-top: 11px;
        border-radius: 12px;
    }

    .books-desktop__apple-books {
        width: 116px;
        margin-top: 8px;
    }
}


/* =========================================================
   LIBROS — MÓVIL OCULTO TEMPORALMENTE

   Se construirá después de aprobar desktop.
========================================================= */

/* =========================================================
   LIBROS — MÓVIL
   Base del diseño: 390 × 844
========================================================= */

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

    .books-desktop {
        display: none;
    }

    .books-mobile {
        position: relative;
        display: block;

        width: 100%;
        aspect-ratio: 390 / 844;

        overflow: hidden;
        background: #79bce2;
        isolation: isolate;
    }


    /* -----------------------------------------------------
       IMAGEN DE FONDO
    ----------------------------------------------------- */

    .books-mobile__background {
        position: absolute;
        z-index: 0;
        inset: 0;

        width: 100%;
        height: 100%;

        max-width: none;
        object-fit: cover;
        object-position: center center;

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       SOMBRA / DEGRADADO SUPERIOR

       Ayuda a conservar la lectura del texto blanco
       sin alterar la parte inferior de la imagen.
    ----------------------------------------------------- */

    .books-mobile::after {
        content: "";

        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;

        width: 100%;
        height: 48%;

        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.15) 0%,
                rgba(0, 0, 0, 0.08) 42%,
                rgba(0, 0, 0, 0) 100%
            );

        pointer-events: none;
    }


    /* -----------------------------------------------------
       CONTENIDO

       7.7% equivale aproximadamente a 30 px
       dentro de un canvas de 390 px.
    ----------------------------------------------------- */

    .books-mobile__content {
        position: absolute;
        z-index: 2;

        top: 7.6%;
        left: 7.7%;

        width: 84.6%;
    }


    /* -----------------------------------------------------
       TÍTULO
    ----------------------------------------------------- */

    .books-mobile__title {
        margin: 0;

        color: var(--color-white);

        font-family: var(--font-display);
        font-size: 7.25vw;
        line-height: 1.04;

        letter-spacing: -0.025em;
        text-transform: uppercase;
    }


    /* -----------------------------------------------------
       TEXTO DESTACADO
    ----------------------------------------------------- */

    .books-mobile__highlight {
        margin: 5.8% 0 0;

        color: var(--color-black);

        font-family: var(--font-body);
        font-size: 5.15vw;
        font-weight: 700;
        line-height: 1.12;

        letter-spacing: -0.04em;
    }


    /* -----------------------------------------------------
       DESCRIPCIÓN
    ----------------------------------------------------- */

    .books-mobile__description {
        margin: 4.5% 0 0;

        color: var(--color-white);

        font-family: var(--font-body);
        font-size: 4.25vw;
        font-weight: 400;
        line-height: 1.28;

        letter-spacing: -0.04em;
    }


    /* -----------------------------------------------------
       BOTÓN
    ----------------------------------------------------- */

    .books-mobile .books-button {
        width: 28%;
        min-width: 104px;
        aspect-ratio: 108 / 47;

        margin-top: 6.2%;
        border-radius: 3.8vw;

        font-size: 4.1vw;
    }

    .books-mobile .books-button:active {
        transform: scale(0.96);
        filter: brightness(0.98);
    }


    /* -----------------------------------------------------
       APPLE BOOKS
    ----------------------------------------------------- */

    .books-mobile__apple-books {
        display: block;

        width: 38%;
        margin-top: 3.1%;

        transform-origin: left center;

        transition:
            transform 200ms ease,
            filter 200ms ease;
    }

    .books-mobile__apple-books img {
        display: block;

        width: 100%;
        height: auto;
    }

    .books-mobile__apple-books:active {
        transform: scale(0.97);
    }
}

    /* =========================================================
       LIBROS — TELÉFONOS PEQUEÑOS
    ========================================================= */

@media screen and (max-width: 360px) {

    .books-mobile__title {
        font-size: 7.15vw;
    }

    .books-mobile__highlight {
        font-size: 5.05vw;
    }

    .books-mobile__description {
        font-size: 4.15vw;
    }

    .books-mobile .books-button {
        min-width: 96px;
        font-size: 4vw;
    }
}

/* =========================================================
   VIDEOJUEGO
========================================================= */

.game {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0bb8df;
}

.game img {
    user-select: none;
}

.game-mobile {
    display: none;
}


/* =========================================================
   VIDEOJUEGO — DESKTOP
   Canvas original: 1920 × 1400
========================================================= */

@media screen and (min-width: 769px) {
	
	/* -----------------------------------------------------
   ESCENARIO INFERIOR COMPLETO

   Mueve juntos:
   parque, Firus, piedras, llantas, tronco,
   fuego y fantasmas.
----------------------------------------------------- */

    .game-desktop__scene {
        position: absolute;
        z-index: 3;
        inset: 0;

        width: 100%;
        height: 100%;

        pointer-events: none;

        transform: translateY(0%);
    }

    .game-desktop {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 1920 / 1400;
        overflow: hidden;
        isolation: isolate;
        background: #0bb8df;
    }


    /* -----------------------------------------------------
       FONDO AZUL
    ----------------------------------------------------- */

    .game-desktop__background {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        pointer-events: none;
    }


    /* -----------------------------------------------------
       NUBES
    ----------------------------------------------------- */

    .game-cloud {
        position: absolute;
        z-index: 2;
        display: block;
        max-width: none;
        height: auto;
        pointer-events: none;
        animation: game-cloud-movement 7s ease-in-out infinite;
    }

    .game-cloud--01 {
        top: 17%;
        left: 7%;
        width: 8%;
    }

    .game-cloud--02 {
        top: 12%;
        left: 23.5%;
        width: 9.5%;
        animation-delay: -2s;
    }

    .game-cloud--03 {
        top: 19%;
        right: 7.5%;
        width: 8.5%;
        animation-delay: -4s;
    }


    /* -----------------------------------------------------
       HUD
    ----------------------------------------------------- */

    .game-desktop__hud {
        position: absolute;
        z-index: 20;
        top: 9%;
        left: 4.8%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        width: 90.4%;
        pointer-events: none;
    }


    /* Corazones */

    .game-lives {
        display: flex;
        align-items: center;
        gap: clamp(7px, 0.65vw, 13px);
    }

    .game-lives img {
        display: block;
        width: clamp(37px, 3.2vw, 61px);
        max-width: none;
        height: auto;
        image-rendering: pixelated;
    }


    /* Marcador */

    .game-score {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #ffffff;
        font-family: var(--font-display);
        line-height: 0.86;
        transform-origin: center;
        animation: game-score-pulse 1.8s steps(2, end) infinite;
    }

    .game-score__title {
        font-size: clamp(24px, 2.25vw, 43px);
        line-height: 1;
        letter-spacing: 0.025em;
        white-space: nowrap;
        text-shadow:
            -3px -3px 0 #111111,
             3px -3px 0 #111111,
            -3px  3px 0 #111111,
             3px  3px 0 #111111;
    }

    .game-score__number {
    display: inline-block;

    min-width: 150px;
    margin-top: 8px;
    padding: 6px 10px 5px;

    border: 3px solid #111111;
    border-radius: 4px;

    background: #071b13;
    color: #7cff68;

    font-family: var(--font-display);
    font-size: clamp(18px, 1.55vw, 30px);
    line-height: 1;
    letter-spacing: 0.18em;
    text-align: center;
    white-space: nowrap;

    box-shadow:
        0 4px 0 #111111,
        inset 0 0 10px rgba(124, 255, 104, 0.18);

    text-shadow:
        0 0 3px rgba(124, 255, 104, 0.95),
        0 0 7px rgba(124, 255, 104, 0.65);

    image-rendering: pixelated;

    animation:
        game-score-flicker 650ms steps(2, end) infinite;
}
	
	@keyframes game-score-flicker {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.88;
        filter: brightness(1.22);
    }
}


    /* -----------------------------------------------------
       LOGO
    ----------------------------------------------------- */

    .game-desktop__logo {
        position: absolute;
        z-index: 10;
        top: 15%;
        left: 50%;
        display: block;
        width: 46%;
        max-width: 800px;
        height: auto;
        transform: translateX(-50%);
        pointer-events: none;
    }


    /* -----------------------------------------------------
       MONSTRUOS Y TEXTO
    ----------------------------------------------------- */

    .game-desktop__description {
        position: absolute;
        z-index: 10;
        top: 38%;
        left: 50%;
        display: grid;
        grid-template-columns:
            minmax(170px, 250px)
            minmax(500px, 760px)
            minmax(170px, 250px);
        align-items: center;
        justify-content: center;
        column-gap: 35px;
        width: 86%;
        transform: translateX(-50%);
    }

    .game-boss {
        display: block;
        width: 100%;
        max-width: 250px;
        height: auto;
        transform-origin: center;
        pointer-events: none;
    }

    .game-boss--monster {
        justify-self: end;
        animation: game-boss-monster 2.5s ease-in-out infinite;
    }

    .game-boss--gorilla {
        justify-self: start;
        animation: game-boss-gorilla 2.5s ease-in-out -0.6s infinite;
    }

    .game-desktop__copy {
        width: 100%;
        margin: 0;
        font-family: var(--font-body);
        font-size: clamp(18px, 1.42vw, 27px);
        font-weight: 400;
        line-height: 1.75;
        letter-spacing: -0.035em;
        text-align: center;
    }

    .game-desktop__copy b {
        font-weight: 700;
        white-space: nowrap;
    }

    .game-desktop__highlight {
        display: inline-block;
        margin: 0 3px;
        padding: 7px 17px;
        border-radius: 30px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .game-desktop__highlight--monster {
        background: #ffc62e;
        color: #dc3838;
    }

    .game-desktop__highlight--gorilla {
        background: #e6e6e6;
        color: #111111;
    }


    /* -----------------------------------------------------
       BOTÓN
    ----------------------------------------------------- */

    .game-play-button {
        display: block;
        transform-origin: center;
    }

    .game-play-button img {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        image-rendering: pixelated;
    }

    .game-play-button--desktop {
        position: absolute;
        z-index: 20;
        top: 55%;
        left: 50%;
        width: 15.5%;
        max-width: 300px;
        transform: translateX(-50%);
        animation: game-button-pulse 1.6s ease-in-out infinite;
        transition: transform 180ms ease;
    }

    .game-play-button--desktop:hover {
        transform:
            translateX(-50%)
            translateY(-5px)
            scale(1.05);
    }


    /* -----------------------------------------------------
       PARQUE

       Es una imagen completa, no background-size.
       Así no se corta la copa del árbol derecho.
    ----------------------------------------------------- */

    .game-desktop__park {
        position: absolute;
        z-index: 3;
        left: 0;
        bottom: 0;
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        pointer-events: none;
    }


    /* -----------------------------------------------------
       OBSTÁCULOS
    ----------------------------------------------------- */

    .game-obstacle {
        position: absolute;
        z-index: 8;
        display: block;
        max-width: none;
        height: auto;
        pointer-events: none;
    }

    .game-obstacle--tires {
        left: 22.3%;
        bottom: 8.4%;
        width: 6.6%;
    }

    .game-obstacle--log {
        right: 27.1%;
        bottom: 8.3%;
        width: 3.4%;
    }


    /* -----------------------------------------------------
       FIRUS SOBRE LAS PIEDRAS

       Ambos elementos viven en el mismo contenedor.
       Así Firus queda siempre alineado con las piedras.
    ----------------------------------------------------- */

    .game-jump-zone {
        position: absolute;
        z-index: 12;
        left: 43.1%;
        bottom: 7.8%;
        width: 8%;
        height: 16%;
        pointer-events: none;
    }

    .game-jump-zone__rocks {
        position: absolute;
        z-index: 1;
        left: 50%;
        bottom: 0;
        display: block;
        width: 80%;
        max-width: none;
        height: auto;
        transform: translateX(-50%);
    }

    .game-jump-zone__firus {
        position: absolute;
        z-index: 2;
        left: 50%;
        bottom: 31%;
        display: block;
        width: 75%;
        max-width: none;
        height: auto;
        transform-origin: center bottom;
        animation: game-firus-jump 1000ms ease-in-out infinite;
    }


    /* -----------------------------------------------------
       FUEGO
    ----------------------------------------------------- */

    .game-fire {
        position: absolute;
        z-index: 11;
        display: block;
        width: 3.8%;
        max-width: 74px;
        height: auto;
        opacity: 0;
        pointer-events: none;
        will-change: transform, opacity;
    }

    .game-fire--01 {
        left: 50%;
        bottom: 22%;
        animation: game-fire-shot 1.6s linear infinite;
    }

    .game-fire--02 {
        left: 49%;
        bottom: 17%;
        animation: game-fire-shot 1.6s linear -0.53s infinite;
    }

    .game-fire--03 {
        left: 51%;
        bottom: 12.5%;
        animation: game-fire-shot 1.6s linear -1.06s infinite;
    }


    /* -----------------------------------------------------
       FANTASMAS
    ----------------------------------------------------- */

    .game-ghost {
    position: absolute;
    z-index: 10;

    display: block;

    width: 3.7%;
    max-width: 70px;
    height: auto;

    opacity: 1;

    pointer-events: none;

    will-change:
        left,
        transform,
        opacity;

    transition:
        opacity 160ms ease,
        filter 160ms ease;
}
	
	.game-ghost.is-hit {
    opacity: 0;

    filter:
        brightness(2)
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.95));
}
	
	/* Fantasma superior */

    .game-ghost--01 {
    right: auto;
    left: 74%;
    bottom: 22%;
    }
	
	/* Fantasma inferior */

    .game-ghost--02 {
    right: auto;
    left: 69%;
    bottom: 14%;
    }
}


/* =========================================================
   VIDEOJUEGO — DESKTOP INTERMEDIO
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1440px) {

    .game-desktop__description {
        grid-template-columns:
            minmax(145px, 190px)
            minmax(420px, 570px)
            minmax(145px, 190px);
        column-gap: 25px;
    }

    .game-boss {
        max-width: 190px;
    }

    .game-desktop__highlight {
        padding: 5px 13px;
    }
}


/* =========================================================
   VIDEOJUEGO — MÓVIL
   Canvas de referencia: 390 × 844
========================================================= */

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

    /* -----------------------------------------------------
       CONTENEDORES
    ----------------------------------------------------- */

    .game-desktop {
        display: none;
    }

    .game {
        position: relative;
        display: block;
        width: 100%;
        min-height: 0;
        overflow: hidden;
        background: #0bb8df;
    }

    .game-mobile {
        position: relative;
        display: block;

        width: 100%;
        height: auto;
        aspect-ratio: 390 / 844;

        overflow: hidden;
        isolation: isolate;

        background: #0bb8df;
    }


    /* -----------------------------------------------------
       FONDO

       Este archivo ya contiene:
       - nubes;
       - logo;
       - parque;
       - llantas;
       - piedras;
       - tronco.
    ----------------------------------------------------- */

    .game-mobile__background {
        position: absolute;
        z-index: 0;
        inset: 0;

        display: block;

        width: 100%;
        height: 100%;
        max-width: none;

        object-fit: fill;

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       LOGO MOBILE HTML
    ----------------------------------------------------- */

    .game-mobile__logo {
    position: absolute;
    z-index: 10;

    top: 16%;
    left: 50%;

    display: block;

    width: 76%;
    max-width: none;
    height: auto;

    transform: translateX(-50%);

    pointer-events: none;
    user-select: none;
}


    /* -----------------------------------------------------
       HUD
    ----------------------------------------------------- */

    .game-mobile__hud {
        position: absolute;
        z-index: 20;

        top: 7.7%;
        left: 7.2%;

        display: flex;
        align-items: flex-start;
        justify-content: space-between;

        width: 85.6%;

        pointer-events: none;
    }


    /* Corazones */

    .game-mobile .game-lives {
        display: flex;
        align-items: center;

        gap: 1.5vw;
    }

    .game-mobile .game-lives img {
        display: block;

        width: 8.8vw;
        max-width: none;
        height: auto;

        image-rendering: pixelated;
    }



    /* =========================================================
   SCORE MÓVIL — ÚNICA VERSIÓN
========================================================= */

.game-mobile .game-score {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #ffffff;
    font-family: var(--font-display);
    line-height: 0.86;

    transform-origin: center;

    animation:
        game-score-pulse
        1.8s
        steps(2, end)
        infinite;
}

.game-mobile .game-score__title {
    display: block;

    color: #ffffff;

    font-family: var(--font-display);
    font-size: 5.2vw;
    line-height: 1;
    letter-spacing: 0.025em;
    white-space: nowrap;

    text-shadow:
        -1.5px -1.5px 0 #111111,
         1.5px -1.5px 0 #111111,
        -1.5px  1.5px 0 #111111,
         1.5px  1.5px 0 #111111;
}

.game-mobile .game-score__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22vw;
    height: 7vw;
    margin-top: 1.2vw;
    padding: 0 1vw;

    border: 0.55vw solid #111111;
    border-radius: 0.8vw;

    background: #071b13;
    color: #7cff68;

    font-family: var(--font-display);
    font-size: 4vw;
    line-height: 1;
    letter-spacing: 0.12em;
    text-align: center;
    white-space: nowrap;

    box-shadow:
        0 0.7vw 0 #111111,
        inset 0 0 2vw rgba(124, 255, 104, 0.22);

    text-shadow:
        0 0 0.7vw rgba(124, 255, 104, 0.95),
        0 0 1.4vw rgba(124, 255, 104, 0.65);

    animation:
        game-score-flicker
        650ms
        steps(2, end)
        infinite;
}





    /* -----------------------------------------------------
       MONSTRUO + GORILA + TÍTULO CURVO

       Todo está integrado en una sola imagen.
    ----------------------------------------------------- */

    .game-mobile__bosses {
        position: absolute;
        z-index: 10;

        top: 34%;
        left: 50%;

        display: block;

        width: 80%;
        max-width: none;
        height: auto;

        transform: translateX(-50%);

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       BOTÓN
    ----------------------------------------------------- */

    .game-play-button--mobile {
        position: absolute;
        z-index: 20;

        top: 58.3%;
        left: 50%;

        display: block;

        width: 49%;
        max-width: none;

        transform: translateX(-50%);
        transform-origin: center;

        animation: game-button-pulse 1.6s ease-in-out infinite;
    }

    .game-play-button--mobile img {
        display: block;

        width: 100%;
        max-width: none;
        height: auto;

        image-rendering: pixelated;
    }

    .game-play-button--mobile:active {
        transform:
            translateX(-50%)
            scale(0.96);
    }


    /* -----------------------------------------------------
       ESCENA ANIMADA INFERIOR

       El parque ya forma parte del fondo.
       Este contenedor solo incluye:
       Firus, fuego y fantasmas.
    ----------------------------------------------------- */

    .game-mobile__action {
        position: absolute;
        z-index: 12;

        left: 0;
        bottom: 17%;

        width: 100%;
        height: 17%;

        overflow: visible;

        pointer-events: none;
    }


    /* Firus */

    .game-mobile__firus {
        position: absolute;
        z-index: 5;

        left: 35%;
        bottom: 24%;

        display: block;

        width: 14.5%;
        max-width: none;
        height: auto;

        transform-origin: center bottom;

        animation:
            game-firus-jump-mobile
            850ms
            ease-in-out
            infinite;
    }


    /* Fuego */

    .game-mobile__fire {
        position: absolute;
        z-index: 4;

        display: block;

        width: 7.2%;
        max-width: none;
        height: auto;

        opacity: 0;

        pointer-events: none;
        will-change: transform, opacity;
    }

    .game-mobile__fire--01 {
        left: 44%;
        bottom: 42%;

        animation:
            game-fire-shot-mobile
            1.5s
            linear
            infinite;
    }

    .game-mobile__fire--02 {
        left: 43%;
        bottom: 23%;

        animation:
            game-fire-shot-mobile
            1.5s
            linear
            -0.5s
            infinite;
    }

    .game-mobile__fire--03 {
        left: 46%;
        bottom: 58%;

        animation:
            game-fire-shot-mobile
            1.5s
            linear
            -1s
            infinite;
    }


    /* Fantasmas */

    .game-mobile__ghost {
    position: absolute;
    z-index: 3;

    display: block;

    width: 8%;
    max-width: none;
    height: auto;

    right: auto;
    left: 100%;

    opacity: 1;

    pointer-events: none;

    will-change:
        left,
        transform,
        opacity;

    transition:
        opacity 160ms ease,
        filter 160ms ease;
}

.game-mobile__ghost--01 {
    bottom: 52%;
    animation: none;
}

.game-mobile__ghost--02 {
    bottom: 17%;
    animation: none;
}

.game-mobile__ghost.is-hit {
    opacity: 0;

    filter:
        brightness(2)
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
}
	
}


/* =========================================================
   ANIMACIONES VIDEOJUEGO
========================================================= */

@keyframes game-cloud-movement {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(18px);
    }
}


@keyframes game-score-pulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter:
            brightness(1.14)
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
    }
}


@keyframes game-boss-monster {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-2deg)
            scale(1);
    }

    50% {
        transform:
            translateY(-10px)
            rotate(2deg)
            scale(1.045);
    }
}


@keyframes game-boss-gorilla {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(2deg)
            scale(1);
    }

    50% {
        transform:
            translateY(-10px)
            rotate(-2deg)
            scale(1.045);
    }
}


@keyframes game-firus-jump {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(-1deg);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-44px)
            rotate(2deg);
    }
}


@keyframes game-firus-jump-mobile {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-1deg);
    }

    50% {
        transform:
            translateY(-14px)
            rotate(2deg);
    }
}


@keyframes game-fire-shot {

    0% {
        opacity: 0;
        transform:
            translateX(0)
            scale(0.55);
    }

    12% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translateX(250px)
            scale(1);
    }
}


@keyframes game-fire-shot-mobile {

    0% {
        opacity: 0;
        transform:
            translateX(0)
            scale(0.55);
    }

    12% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translateX(32vw)
            scale(1);
    }
}


@keyframes game-ghost-float {

    0%,
    100% {
        transform:
            translate(0, 0)
            rotate(-3deg);
    }

    50% {
        transform:
            translate(-24px, -16px)
            rotate(4deg);
    }
}


@keyframes game-ghost-float-mobile {

    0%,
    100% {
        transform:
            translate(0, 0)
            rotate(-3deg);
    }

    50% {
        transform:
            translate(-4vw, -2.7vw)
            rotate(4deg);
    }
}


@keyframes game-button-pulse {

    0%,
    100% {
        filter:
            brightness(1)
            drop-shadow(0 6px 0 rgba(0, 0, 0, 0.15));
    }

    50% {
        filter:
            brightness(1.08)
            drop-shadow(0 9px 0 rgba(0, 0, 0, 0.18));
    }
}


/* =========================================================
   VIDEOJUEGO — MOVIMIENTO REDUCIDO
========================================================= */

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

    .game-cloud,
    .game-score,
    .game-boss,
    .game-play-button,
    .game-jump-zone__firus,
    .game-fire,
    .game-ghost,
    .game-mobile__firus,
    .game-mobile__fire,
    .game-mobile__ghost {
        animation: none !important;
    }
}


/* =========================================================
   FIRULIBERS
========================================================= */

.firulibers {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.firulibers-mobile {
    display: none;
}


/* =========================================================
   FIRULIBERS — DESKTOP
   Base del diseño: 1920 × 1400
========================================================= */

@media screen and (min-width: 769px) {

    .firulibers-desktop {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 1920 / 1400;
        overflow: hidden;
        background: #ffffff;
        isolation: isolate;
    }


    /* -----------------------------------------------------
       FONDO
    ----------------------------------------------------- */

    .firulibers-desktop__background {
        position: absolute;
        z-index: 0;
        inset: 0;

        width: 100%;
        height: 100%;
        max-width: none;

        object-fit: fill;

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       TEXTO IZQUIERDO
    ----------------------------------------------------- */

    .firulibers-desktop__content {
        position: absolute;
        z-index: 20;

        top: 50%;
        left: max(
            70px,
            calc((100% - 1720px) / 2)
        );

        width: 585px;

        text-align: left;
    }

    .firulibers-desktop__title {
        margin: 0 0 22px;

        color: #cf3638;

        font-family: var(--font-display);
        font-size: clamp(56px, 4vw, 78px);
        line-height: 0.95;
        text-transform: uppercase;
    }

    .firulibers-desktop__description {
        margin: 0;

        color: #111111;

        font-family: var(--font-body);
        font-size: clamp(20px, 1.5vw, 29px);
        font-weight: 400;
        line-height: 1.18;
        letter-spacing: -0.04em;
    }

    .firulibers-desktop__description strong,
    .firulibers-desktop__description span {
        display: block;
    }

    .firulibers-desktop__description strong {
        font-weight: 700;
    }


    /* -----------------------------------------------------
       BOTÓN
    ----------------------------------------------------- */

    .firulibers-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        background: var(--color-yellow);
        color: var(--color-black);

        font-family: var(--font-display);
        line-height: 1;
        text-align: center;
        text-transform: uppercase;

        transition:
            transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 220ms ease,
            box-shadow 220ms ease;
    }

    .firulibers-button--desktop {
        width: 360px;
        min-height: 64px;

        margin-top: 20px;
        padding: 14px 24px;

        border-radius: 20px;

        font-size: clamp(24px, 1.15vw, 22px);
        white-space: nowrap;
    }

    .firulibers-button:hover {
        transform: translateY(-5px) scale(1.035);
        filter: brightness(1.03);

        box-shadow:
            0 12px 18px rgba(0, 0, 0, 0.18);
    }


    /* -----------------------------------------------------
       ELEMENTOS GENERALES
    ----------------------------------------------------- */

    .firulibers-item,
    .firulibers-social-icon,
    .firulibers-desktop__characters {
        position: absolute;
        max-width: none;
        height: auto;
    }

    .firulibers-item img {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
    }


    /* -----------------------------------------------------
       COLLAGE DE FOTOS
    ----------------------------------------------------- */

    .firulibers-desktop__collage {
        z-index: 6;

        top: 13.2%;
        left: 18%;

        width: 40%;
    }


    /* -----------------------------------------------------
       MENSAJE 01 — SIERRA
    ----------------------------------------------------- */

    .firulibers-message--01 {
        z-index: 8;

        top: 39%;
        left: 45%;

        width: 15.5%;
    }


    /* -----------------------------------------------------
       MENSAJE 02 — LARGO
    ----------------------------------------------------- */

    .firulibers-message--02 {
        z-index: 10;

        top: 22%;
        left: 58%;

        width: 13.5%;
    }


    /* -----------------------------------------------------
       MENSAJE 03 — FACEBOOK
    ----------------------------------------------------- */

    .firulibers-message--03 {
        z-index: 13;

        top: 23.5%;
        left: 68%;

        width: 14%;
    }


    /* -----------------------------------------------------
       MENSAJE 04 — PERRO CALLEJERO
    ----------------------------------------------------- */

    .firulibers-message--04 {
        z-index: 11;

        top: 38%;
        left: 67%;

        width: 15.5%;
    }


    /* -----------------------------------------------------
       MENSAJE 05 — VARIOS
    ----------------------------------------------------- */

    .firulibers-message--05 {
        z-index: 18;

        top: 32%;
        left: 78%;

        width: 15%;
    }


    /* -----------------------------------------------------
       ICONOS
    ----------------------------------------------------- */

    .firulibers-social-icon {
        z-index: 18;
        pointer-events: none;
        user-select: none;
    }

    .firulibers-social-icon--whatsapp-01 {
        top: 18.5%;
        left: 68%;

        width: 3.5%;
    }

    .firulibers-social-icon--facebook {
        top: 21.5%;
        left: 79.5%;

        width: 3.2%;
    }

    .firulibers-social-icon--whatsapp-02 {
        top: 29%;
        left: 90%;

        width: 3.5%;
    }


    /* -----------------------------------------------------
       PERSONAJES
    ----------------------------------------------------- */

    .firulibers-desktop__characters {
        z-index: 15;

        right: 1%;
        bottom: 15%;

        width: 59%;

        pointer-events: none;
        user-select: none;
    }
}


/* =========================================================
   FIRULIBERS — MÓVIL
   Base del diseño: 390 × 844
========================================================= */

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

    .firulibers-desktop {
        display: none;
    }

    .firulibers-mobile {
        position: relative;
        display: block;

        width: 100%;
        height: auto;
        aspect-ratio: 390 / 844;

        overflow: hidden;

        background: #ffffff;
        isolation: isolate;
    }


    /* -----------------------------------------------------
       FONDO
    ----------------------------------------------------- */

    .firulibers-mobile__background {
        position: absolute;
        z-index: 0;
        inset: 0;

        display: block;

        width: 100%;
        height: 100%;
        max-width: none;

        object-fit: fill;

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       CONTENIDO
    ----------------------------------------------------- */

    .firulibers-mobile__content {
        position: absolute;
        z-index: 20;

        top: 11%;
        left: 8.7%;

        width: 82.6%;

        text-align: left;
    }


    /* -----------------------------------------------------
       TÍTULO
    ----------------------------------------------------- */

    .firulibers-mobile__title {
        margin: 0 0 4.2%;

        color: #ffb627;

        font-family: var(--font-display);
        font-size: 9vw;
        line-height: 0.95;
        text-transform: uppercase;
    }


    /* -----------------------------------------------------
       TEXTO
    ----------------------------------------------------- */

    .firulibers-mobile__description {
        margin: 0;

        color: var(--color-white);

        font-family: var(--font-body);
        font-size: 5.1vw;
        font-weight: 400;
        line-height: 1.28;
        letter-spacing: -0.04em;
    }

    .firulibers-mobile__description strong,
    .firulibers-mobile__description span {
        display: block;
    }

    .firulibers-mobile__description strong {
        margin-bottom: 1%;
        font-weight: 700;
    }


    /* -----------------------------------------------------
       BOTÓN
    ----------------------------------------------------- */

    .firulibers-button--mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 80%;
        min-height: 0;
        aspect-ratio: 260 / 62;

        margin-top: 8%;
        padding: 0 4%;

        border-radius: 18vw;

        background: var(--color-yellow);
        color: var(--color-black);

        font-family: var(--font-display);
        font-size: 4.2vw;
        line-height: 1;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       MENSAJE
    ----------------------------------------------------- */

    .firulibers-mobile__message {
        position: absolute;
        z-index: 8;

        top: 39%;
        left: 4%;

        width: 60%;
        height: auto;
    }

    .firulibers-mobile__message img {
        display: block;

        width: 100%;
        max-width: none;
        height: auto;
    }


    /* -----------------------------------------------------
       ICONO WHATSAPP
    ----------------------------------------------------- */

    .firulibers-mobile__whatsapp {
        position: absolute;
        z-index: 15;

        top: 43%;
        right: 28%;

        width: 16%;
        max-width: none;
        height: auto;

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       PERRO CALLEJERO
    ----------------------------------------------------- */

    .firulibers-mobile__character {
        position: absolute;
        z-index: 12;

        right: 0.5%;
        bottom: 13%;

        width: 47%;
        max-width: none;
        height: auto;

        pointer-events: none;
        user-select: none;
    }
}

/* =========================================================
   FIRULIBERS — MICROINTERACCIONES DESKTOP
   No modifica posiciones ni tamaños aprobados
========================================================= */

@media screen and (min-width: 769px) and (hover: hover) {

    /*
       Collage y mensajes conservan exactamente su posición.
       Solamente se animan al pasar el mouse.
    */

    .firulibers-desktop__collage,
    .firulibers-message {
        cursor: pointer;
        transform-origin: center center;
        will-change: transform, filter;

        transition:
            transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 320ms ease;
    }


    /* Collage de fotos y dibujos */

    .firulibers-desktop__collage:hover {
        z-index: 30;

        transform:
            translateY(-10px)
            rotate(-1deg)
            scale(1.045);

        filter:
            drop-shadow(0 18px 14px rgba(0, 0, 0, 0.22));
    }


    /* Todos los mensajes */

    .firulibers-message:hover {
        z-index: 40;

        transform:
            translateY(-12px)
            scale(1.08);

        filter:
            drop-shadow(0 18px 14px rgba(0, 0, 0, 0.24));
    }


    /*
       Pequeñas variaciones para que no todos
       reaccionen exactamente de la misma forma.
    */

    .firulibers-message--01:hover {
        transform:
            translateY(-12px)
            rotate(-1.5deg)
            scale(1.08);
    }

    .firulibers-message--02:hover {
        transform:
            translateY(-12px)
            rotate(1.2deg)
            scale(1.08);
    }

    .firulibers-message--03:hover {
        transform:
            translateY(-12px)
            rotate(-1deg)
            scale(1.09);
    }

    .firulibers-message--04:hover {
        transform:
            translateY(-12px)
            rotate(1deg)
            scale(1.075);
    }

    .firulibers-message--05:hover {
        transform:
            translateY(-12px)
            rotate(-1.2deg)
            scale(1.08);
    }
}

/* =========================================================
   FIRULIBERS — ENTRADA MÓVIL
   Se ejecuta una sola vez al entrar en pantalla
========================================================= */

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

    /*
       Los estados iniciales solamente se activan cuando
       JavaScript agrega la clase animation-ready.
       Si JS falla, la sección permanece visible.
    */

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__content,

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__message,

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__whatsapp,

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__character {
        opacity: 0;
        will-change: transform, opacity;
    }


    /* Título, texto y botón: aparecen suavemente desde arriba */

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__content {
        transform: translateY(-24px);

        transition:
            opacity 650ms ease,
            transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
    }


    /* Mensaje: entra desde la izquierda */

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__message {
        transform:
            translateX(-42px)
            rotate(-1.5deg);

        transition:
            opacity 700ms ease 170ms,
            transform 850ms cubic-bezier(0.22, 1, 0.36, 1) 170ms;
    }


    /* WhatsApp: pequeño pop */

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__whatsapp {
        transform: scale(0.65);

        transition:
            opacity 500ms ease 420ms,
            transform 650ms cubic-bezier(0.34, 1.56, 0.64, 1) 420ms;
    }


    /* Perro Callejero: entra desde abajo y la derecha */

    .firulibers-mobile.firulibers-mobile--animation-ready
    .firulibers-mobile__character {
        transform:
            translate(38px, 34px)
            scale(0.96);

        transition:
            opacity 700ms ease 300ms,
            transform 850ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
    }


    /* Estado final aprobado */

    .firulibers-mobile.firulibers-mobile--animation-ready.is-visible
    .firulibers-mobile__content,

    .firulibers-mobile.firulibers-mobile--animation-ready.is-visible
    .firulibers-mobile__message,

    .firulibers-mobile.firulibers-mobile--animation-ready.is-visible
    .firulibers-mobile__whatsapp,

    .firulibers-mobile.firulibers-mobile--animation-ready.is-visible
    .firulibers-mobile__character {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}


/* =========================================================
   FIRULIBERS — MOVIMIENTO REDUCIDO
========================================================= */

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

    .firulibers-mobile__content,
    .firulibers-mobile__message,
    .firulibers-mobile__whatsapp,
    .firulibers-mobile__character {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   ¡HOLA FIRUS!
========================================================= */

.hello-firus{
    position:relative;
    width:100%;
    overflow:hidden;
}

.hello-firus-mobile{
    display:none;
}


/*=========================================================
  DESKTOP
=========================================================*/

.hello-firus-desktop{
    position:relative;
    width:100%;
    aspect-ratio:1920 / 700;
    overflow:hidden;
}

.hello-firus-desktop__background{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    user-select:none;
    pointer-events:none;
}

.hello-firus-desktop__content{
    position:absolute;
    left:max(20px,calc((100% - 1720px)/2 + 20px));
    top:50%;
    transform:translateY(-50%);
    width:520px;
    z-index:5;
}

.hello-firus-desktop__title{
    margin:0;
    font-family:var(--font-display);
    font-size:clamp(64px,4.6vw,78px);
    line-height:1;
    color:#ffffff;
    text-transform:uppercase;
	white-space:nowrap;
}

.hello-firus-desktop__description{
    margin:18px 0 38px;
	width:690px;
    font-family:var(--font-body);
    font-size:clamp(28px,2vw,40px);
    font-weight:700;
    line-height:1.12;
    letter-spacing:-0.03em;
	white-space:nowrap;
}

.hello-firus-button{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border-radius:22px;
    background:#fff;
    font-family:var(--font-display);
    color:#dc3838;
    transition:.25s;
}

.hello-firus-button:hover{
    transform:translateY(-3px);
}

.hello-firus-button--desktop{
    width:268px;
    height:98px;
    font-size:34px;
}


/*=========================================================
  BRAZO
=========================================================*/

.hello-firus-arm{
    position:absolute;
    z-index:4;
    pointer-events:none;
    user-select:none;
}

.hello-firus-arm--desktop{

    position:absolute;

    width:88px;

    left:69.7%;
    top:52%;

    transform-origin:13% 93%;

    animation:firus-wave 2.8s ease-in-out infinite;
}


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

@media (max-width:768px){

    .hello-firus-desktop{
        display:none;
    }

    .hello-firus-mobile{
        position:relative;
        display:block;
        width:100%;
        aspect-ratio:390 / 844;
        overflow:hidden;
    }

    .hello-firus-mobile__background{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        object-fit:cover;
        user-select:none;
        pointer-events:none;
    }

    .hello-firus-mobile__content{
    position:absolute;
    top:8.5%;
    left:50%;
    width:90%;
    transform:translateX(-50%);
    text-align:center;
    z-index:5;
}

    .hello-firus-mobile__title{
    margin:0;
    font-family:var(--font-display);
    color:#ffffff;
    text-transform:uppercase;
    font-size:10.5vw;
    line-height:1;
    white-space:nowrap;
}

    .hello-firus-mobile__description{
    width:92%;
    margin:3.5vw auto 0;
    font-family:var(--font-body);
    font-weight:700;
    font-size:4.3vw;
    line-height:1.15;
    letter-spacing:-0.03em;
}

    .hello-firus-button--mobile{
    width:58vw;
    height:16vw;
    margin-top:5.5vw;
    border-radius:5vw;
    font-size:7vw;
}

    .hello-firus-arm--mobile{
    position:absolute;
    width:9vw;
    left:45.5%;
    top:71.3%;
    transform-origin:14% 93%;
    animation:firus-wave 2.8s ease-in-out infinite;
}

}

/*=========================================================
  SALUDO DE FIRUS
=========================================================*/

@keyframes firus-wave {

    0%{
        transform:rotate(0deg);
    }

    12%{
        transform:rotate(-18deg);
    }

    24%{
        transform:rotate(8deg);
    }

    36%{
        transform:rotate(-18deg);
    }

    48%{
        transform:rotate(8deg);
    }

    60%{
        transform:rotate(-14deg);
    }

    72%{
        transform:rotate(4deg);
    }

    100%{
        transform:rotate(0deg);
    }

}

/* =========================================================
   COLABORACIONES
========================================================= */

.collaborations {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.collaborations-mobile {
    display: none;
}


/* =========================================================
   COLABORACIONES — DESKTOP
   Canvas base: 1920 × 1400
========================================================= */

.collaborations-desktop {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 1400;
    overflow: hidden;
    background: #ffffff;
}


/* ---------------------------------------------------------
   FONDO CON FIRUS
--------------------------------------------------------- */

.collaborations-desktop__background {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}


/* ---------------------------------------------------------
   ENCABEZADO
--------------------------------------------------------- */

.collaborations-desktop__header {
    position: absolute;
    z-index: 3;
    top: 5.2%;
    left: 50%;
    width: 68%;
    transform: translateX(-50%);
    text-align: center;
}

.collaborations-desktop__title {
    margin: 0;
    color: var(--color-red);
    font-family: var(--font-display);
    font-size: clamp(34px, 3.45vw, 66px);
    line-height: 1;
    text-transform: uppercase;
}

.collaborations-desktop__subtitle {
    margin: 1.2% 0 0;
    font-family: var(--font-body);
    font-size: clamp(22px, 1.85vw, 36px);
    font-weight: 700;
    line-height: 1.08;
}

.collaborations-desktop__subtitle span {
    display: inline-block;
    margin-left: 7px;
    color: #ff5878;
    font-size: 1.05em;
}

.collaborations-desktop__intro {
    margin-top: 2.1%;
}

.collaborations-desktop__highlight {
    margin: 0;
    color: var(--color-red);
    font-family: var(--font-body);
    font-size: clamp(16px, 1.28vw, 25px);
    font-weight: 700;
    line-height: 1.18;
}

.collaborations-desktop__description {
    margin: 0.45% 0 0;
    font-family: var(--font-body);
    font-size: clamp(16px, 1.22vw, 24px);
    font-weight: 400;
    line-height: 1.2;
}


/* ---------------------------------------------------------
   COLUMNAS DE OPCIONES
--------------------------------------------------------- */

.collaborations-desktop__options {
    position: absolute;
    z-index: 4;
    top: 30%;
    display: flex;
    width: 23%;
    height: 53%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.collaborations-desktop__options--left {
    left: 14.5%;
}

.collaborations-desktop__options--right {
    right: 14.5%;
}


/* ---------------------------------------------------------
   CADA OPCIÓN
--------------------------------------------------------- */

.collaboration-option {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.collaboration-option__icon {
    display: block;
    width: clamp(48px, 4.2vw, 80px);
    height: clamp(48px, 4.2vw, 80px);
    margin: 0 auto 7px;
    object-fit: contain;
}

.collaboration-option__title {
    margin: 0;
    color: var(--color-red);
    font-family: var(--font-body);
    font-size: clamp(17px, 1.42vw, 27px);
    font-weight: 700;
    line-height: 1.05;
}

.collaboration-option__description {
    margin: 5px 0 0;
    font-family: var(--font-body);
    font-size: clamp(14px, 1.1vw, 21px);
    font-weight: 400;
    line-height: 1.14;
}


/* ---------------------------------------------------------
   CTA INFERIOR
--------------------------------------------------------- */

.collaborations-desktop__cta {
    position: absolute;
    z-index: 5;
    bottom: 5.2%;
    left: 50%;
    width: 55%;
    transform: translateX(-50%);
    text-align: center;
}

.collaborations-desktop__question {
    margin: 0 0 18px;
    font-family: var(--font-body);
    font-size: clamp(20px, 1.7vw, 33px);
    font-weight: 700;
    line-height: 1.1;
}

.collaborations-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: var(--font-display);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;

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

.collaborations-button--desktop {

    min-width: 330px;
    min-height: 57px;

    padding: 16px 35px;

    border-radius: 30px;

    background: var(--color-red);
    color: var(--color-white);

    font-size: clamp(16px,1.15vw,22px);

    box-shadow:
        0 8px 18px rgba(220,56,56,.18);
}

.collaborations-button--desktop:hover{

    transform:
        translateY(-4px)
        scale(1.04);

    background:#e84747;

    box-shadow:
        0 18px 34px rgba(220,56,56,.30);
}

.collaborations-button--desktop:active{

    transform:
        translateY(-1px)
        scale(.98);
}


/* =========================================================
   COLABORACIONES — AJUSTES DESKTOP INTERMEDIOS
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1440px) {

    .collaborations-desktop__options {
        top: 29.5%;
        height: 54%;
    }

    .collaborations-desktop__options--left {
        left: 13.5%;
    }

    .collaborations-desktop__options--right {
        right: 13.5%;
    }

    .collaborations-desktop__cta {
        bottom: 4.8%;
    }

    .collaborations-button--desktop {
        min-width: 275px;
        min-height: 48px;
        padding: 13px 28px;
    }
}


/* =========================================================
   COLABORACIONES — MÓVIL
   Por ahora solamente activamos el contenedor correcto
========================================================= */

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

    .collaborations-desktop {
        display: none;
    }

    .collaborations-mobile {
        position: relative;
        display: block;
        width: 100%;
        background: #ffffff;
    }

    .collaborations-mobile__screen {
        position: relative;
        width: 100%;
        aspect-ratio: 390 / 844;
        overflow: hidden;
    }
}

/* =========================================================
   COLABORACIONES DESKTOP — AJUSTES
========================================================= */

@media screen and (min-width: 769px) {

    /* Dejar espacio superior para el menú durante el scroll */

    .collaborations-desktop__header {
        top: 10.5%;
    }


    /* Animación de los bloques informativos */

    .collaboration-option {
        transform-origin: center center;
        transition:
            transform 220ms ease,
            filter 220ms ease;
        cursor: default;
    }

    .collaboration-option:hover {
        transform:
            translateY(-8px)
            scale(1.055);
        filter:
            drop-shadow(0 8px 7px rgba(0, 0, 0, 0.12));
    }


    /* Movimiento independiente del icono */

    .collaboration-option__icon {
        transition:
            transform 260ms
            cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .collaboration-option:hover .collaboration-option__icon {
        transform:
            translateY(-5px)
            rotate(-4deg)
            scale(1.08);
    }
}

/* =========================================================
   COLABORACIONES — MÓVIL
   Dos canvas consecutivos de 390 × 844
========================================================= */

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

    .collaborations {
        background: #ffffff;
    }

    .collaborations-desktop {
        display: none;
    }

    .collaborations-mobile {
        position: relative;
        display: block;
        width: 100%;
        overflow: hidden;
        background: #ffffff;
    }

    .collaborations-mobile__screen {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 390 / 844;
        overflow: hidden;
        background: #ffffff;
    }


    /* =====================================================
       CANVAS 01 — PRESENTACIÓN
    ===================================================== */

    .collaborations-mobile__screen--intro{
    overflow:visible;
    z-index:2;
    }


    /* -----------------------------------------------------
       FONDO CON FIRUS Y FRANJA ROJA
    ----------------------------------------------------- */

    .collaborations-mobile__background {
        position: absolute;
        z-index: 1;
        inset: 0;

        display: block;

        width: 100%;
        max-width: none;
        height: 100%;

        object-fit: fill;
        object-position: center;

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       ENCABEZADO
       Respeta la zona superior del iPhone
    ----------------------------------------------------- */

    .collaborations-mobile__header {
        position: absolute;
        z-index: 5;

        top: max(8%, calc(env(safe-area-inset-top) + 22px));
        left: 50%;

        width: 91%;

        transform: translateX(-50%);
        text-align: center;
    }

    .collaborations-mobile__title {
        margin: 0;

        color: var(--color-red);

        font-family: var(--font-display);
        font-size: 9.7vw;
        line-height: 1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .collaborations-mobile__subtitle {
        margin: 2.2% 0 0;

        font-family: var(--font-body);
        font-size: 6.15vw;
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .collaborations-mobile__subtitle span {
        display: inline-block;

        margin-left: 1.3%;

        color: #ff5878;
        font-size: 1em;
        line-height: 1;
    }

    .collaborations-mobile__description {
        margin: 2.5% 0 0;

        font-family: var(--font-body);
        font-size: 4.18vw;
        font-weight: 400;
        line-height: 1.28;
        letter-spacing: -0.04em;
    }


    /* -----------------------------------------------------
       TEXTO SOBRE LA FRANJA ROJA
    ----------------------------------------------------- */

    .collaborations-mobile__red-copy {
        position: absolute;
        z-index: 5;

        top: 73.3%;
        left: 50%;

        width: 89%;

        transform: translateX(-50%);
        text-align: center;
    }

    .collaborations-mobile__red-copy p {
        margin: 0;

        font-family: var(--font-body);
        font-size: 5.25vw;
        font-weight: 700;
        line-height: 1.23;
        letter-spacing: -0.035em;
    }

    .collaborations-mobile__red-copy span,
    .collaborations-mobile__red-copy strong {
        display: block;
    }

    .collaborations-mobile__red-copy span {
        color: var(--color-yellow);
    }

    .collaborations-mobile__red-copy strong {
        margin-top: 0.5%;
        color: var(--color-white);
        font-weight: 700;
    }


    /* -----------------------------------------------------
       HUELLAS
       Cruzan visualmente de un canvas al siguiente
    ----------------------------------------------------- */

    .collaborations-mobile__footprints {
        position: absolute;
        z-index: 20;

        left: 50%;
        bottom:-78px;   /* ajusta entre -70 y -90 */

        display: block;

        width:120px;    /* mismo tamaño siempre */
        max-width: none;
        height: auto;

        transform: translateX(-50%);

        pointer-events: none;
        user-select: none;

        animation:
            collaborations-footprints-float
            1.9s
            ease-in-out
            infinite;
    }


    /* =====================================================
       CANVAS 02 — OPCIONES
    ===================================================== */

    .collaborations-mobile__screen--options{
    position:relative;
    z-index:1;
    }


    /* -----------------------------------------------------
       GRID DE ICONOS
    ----------------------------------------------------- */

    .collaborations-mobile__grid {
        position: absolute;
        z-index: 4;

        top: 8.2%;
        left: 50%;

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        column-gap: 8%;
        row-gap: 4.2%;

        width: 84%;
        height: 62%;

        transform: translateX(-50%);
    }

    .collaboration-mobile-option {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
    }

    .collaboration-mobile-option__icon {
        display: block;

        width: 41%;
        max-width: none;
        height: 57%;

        margin: 0 auto 5%;

        object-fit: contain;

        pointer-events: none;
        user-select: none;
    }

    .collaboration-mobile-option__title {
        margin: 0;

        color: var(--color-red);

        font-family: var(--font-body);
        font-size: 4.65vw;
        font-weight: 400;
        line-height: 1.08;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       CTA
    ----------------------------------------------------- */

    .collaborations-mobile__cta {
        position: absolute;
        z-index: 5;

        right: 0;
        bottom: max(14%, calc(env(safe-area-inset-bottom) + 24px));
        left: 0;

        width: 100%;
        padding: 0 8%;

        text-align: center;
    }

    .collaborations-mobile__question {
        margin: 0 0 7%;

        font-family: var(--font-body);
        font-size: 5.2vw;
        font-weight: 700;
        line-height: 1.18;
        letter-spacing: -0.04em;
    }

    .collaborations-button--mobile {
        width: 68%;
        min-width: 0;
        min-height: 0;

        aspect-ratio: 260 / 48;

        padding: 0 24%;

        border-radius: 5.5vw;

        background: var(--color-red);
        color: var(--color-white);

        font-size: 3.5vw;
        white-space: nowrap;

        box-shadow:
            0 2vw 4vw rgba(220, 56, 56, 0.18);

        transition:
            transform 180ms ease,
            box-shadow 180ms ease,
            background-color 180ms ease;
    }

    .collaborations-button--mobile:active {
        transform: scale(0.96);
        background: #e84747;
        box-shadow:
            0 1vw 2vw rgba(220, 56, 56, 0.2);
    }
}


/* =========================================================
   ANIMACIÓN DE HUELLAS
========================================================= */

@keyframes collaborations-footprints-float {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(0);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(7px);
    }
}


/* =========================================================
   COLABORACIONES — TELÉFONOS PEQUEÑOS
========================================================= */

@media screen and (max-width: 360px) {

    .collaborations-mobile__title {
        font-size: 9.4vw;
    }

    .collaborations-mobile__subtitle {
        font-size: 5.95vw;
    }

    .collaborations-mobile__description {
        font-size: 4.05vw;
    }

    .collaborations-mobile__red-copy p {
        font-size: 5.1vw;
    }

    .collaboration-mobile-option__title {
        font-size: 4.5vw;
    }

    .collaborations-mobile__question {
        font-size: 5.7vw;
    }

    .collaborations-button--mobile {
        font-size: 4.1vw;
    }
}

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

.site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #bde6f1;
}

.footer-desktop {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 1400;
    overflow: hidden;
}

.footer-mobile {
    display: none;
}


/* =========================================================
   FOOTER DESKTOP — FONDO
========================================================= */

.footer-desktop__background {
    position: absolute;
    z-index: 0;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: fill;
    pointer-events: none;
    user-select: none;
}


/* =========================================================
   FOOTER DESKTOP — LOGO Y MENSAJE
========================================================= */

.footer-desktop__header {
    position: absolute;
    z-index: 3;
    top: 5.4%;
    left: 50%;

    width: 46%;
    transform: translateX(-50%);

    text-align: center;
}

.footer-desktop__logo {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.footer-desktop__message {
    margin-top: 5.6%;
}

.footer-desktop__title,
.footer-desktop__subtitle {
    margin: 0;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.footer-desktop__title {
    color: var(--color-red);
    font-size: clamp(28px, 2.55vw, 49px);
    line-height: 1;
}

.footer-desktop__subtitle {
    margin-top: 0.7%;
    color: var(--color-black);
    font-size: clamp(27px, 2.45vw, 47px);
    line-height: 1;
}

.footer-desktop__subtitle span {
    display: inline-block;
    margin-left: 0.3em;
    color: #ff5c7d;
    font-family: var(--font-body);
    font-size: 0.8em;
    vertical-align: 0.06em;
}


/* =========================================================
   FOOTER DESKTOP — PERSONAJES
========================================================= */

.footer-desktop__characters {
    position: absolute;
    z-index: 2;
    top: 44.5%;
    left: 50%;

    width: 36%;
    max-width: none;
    height: auto;

    transform: translateX(-50%);

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   FOOTER DESKTOP — ZONA INFERIOR
========================================================= */

.footer-desktop__bottom {
    position: absolute;
    z-index: 4;
    inset: 0;
}


/* =========================================================
   FOOTER DESKTOP — NAVEGACIÓN
========================================================= */

.footer-nav {
    position: absolute;
    top: 73.3%;
    left: 7.6%;

    display: grid;
    grid-template-columns:
        140px
        125px
        145px
        100px;
    column-gap: 22px;
    row-gap: 27px;

    width: auto;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;

    color: var(--color-white);
    font-family: var(--font-body);
    font-size: clamp(13px, 1vw, 19px);
    font-weight: 500;
    line-height: 1;

    white-space: nowrap;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.footer-nav a:hover {
    transform: translateY(-3px);
    opacity: 0.82;
}

.footer-nav__contact {
    font-weight: 700;
}


/* =========================================================
   FOOTER DESKTOP — REDES
========================================================= */

.footer-social {
    position: absolute;
    top: 74.1%;
    left: 59.3%;

    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social__link {
    display: block;
    width: 42px;
    flex: 0 0 42px;

    transition: transform 180ms ease;
}

.footer-social__link img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-social__apple-books {
    display: block;
    width: 188px;
    margin-left: 3px;

    transition: transform 180ms ease;
}

.footer-social__apple-books img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-social__link:hover,
.footer-social__apple-books:hover {
    transform: translateY(-4px) scale(1.08);
}


/* =========================================================
   FOOTER DESKTOP — CASITA
========================================================= */

.footer-home {
    position: absolute;
    z-index: 6;
    top: 81.1%;
    left: 50%;

    display: block;
    width: 90px;

    transform: translateX(-50%);

    cursor: pointer;

    transition:
        transform 180ms ease,
        filter 180ms ease;
}

.footer-home__image {
    display: block;
    width: 100%;
    height: auto;
}

.footer-home:hover {
    transform:
        translateX(-50%)
        translateY(-5px)
        scale(1.07);

    filter:
        drop-shadow(0 6px 5px rgba(0, 0, 0, 0.14));
}


/* =========================================================
   FOOTER DESKTOP — CRÉDITOS
========================================================= */

.footer-credits {
    position: absolute;
    z-index: 5;
    bottom: 3.7%;
    left: 50%;

    width: 48%;
    transform: translateX(-50%);

    color: var(--color-white);
    text-align: center;
}

.footer-credits p {
    margin: 0;
}

.footer-credits__title {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.05vw, 20px);
    font-weight: 700;
    line-height: 1.15;
}

.footer-credits__copy {
    margin-top: 4px !important;

    font-family: var(--font-body);
    font-size: clamp(10px, 0.78vw, 15px);
    font-weight: 500;
    line-height: 1.2;
}

.footer-credits__links {
    margin-top: 4px !important;

    font-family: var(--font-body);
    font-size: clamp(9px, 0.7vw, 14px);
    font-weight: 500;
    line-height: 1.2;
}

.footer-credits__links a {
    font-weight: 700;
    transition: opacity 180ms ease;
}

.footer-credits__links a:hover {
    opacity: 0.75;
}


/* =========================================================
   FOOTER DESKTOP — LEGAL
========================================================= */

.footer-legal {
    position: absolute;
    right: 3.2%;
    bottom: 2.8%;

    display: flex;
    align-items: center;
    gap: 14px;

    color: rgba(255, 255, 255, 0.88);
}

.footer-legal__copy {
    max-width: 245px;
    margin: 0;

    font-family: var(--font-body);
    font-size: clamp(8px, 0.55vw, 11px);
    font-weight: 500;
    line-height: 1.25;
    text-align: right;
}

.footer-legal__button {
    min-width: 60px;
    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);

    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.footer-legal__button:hover {
    transform: translateY(-2px);
    background: var(--color-white);
    color: #9fae2f;
}


/* =========================================================
   FOOTER — MODAL LEGAL
   Se deja oculto hasta integrar JavaScript
========================================================= */

.legal-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;

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

    padding: 24px;
}

.legal-modal.is-open {
    display: flex;
}

.legal-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.legal-modal__window {
    position: relative;
    z-index: 2;

    width: min(100%, 680px);
    max-height: min(82vh, 720px);
    overflow-y: auto;

    padding: 58px 55px 48px;

    border-radius: 28px;
    background: var(--color-white);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.28);
}

.legal-modal__close {
    position: absolute;
    top: 17px;
    right: 22px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    color: var(--color-red);
    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 38px;

    cursor: pointer;
}

.legal-modal__title {
    margin: 0 0 25px;

    color: var(--color-red);
    font-family: var(--font-display);
    font-size: clamp(28px, 2.3vw, 42px);
    line-height: 1;
    text-transform: uppercase;
}

.legal-modal__content {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
}

.legal-modal__content p {
    margin: 0;
}

.legal-modal__content p + p {
    margin-top: 18px;
}

.legal-modal__content a {
    color: var(--color-red);
    font-weight: 700;
}

.legal-modal__content a {
    display: inline-block;

    text-decoration: none;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.legal-modal__content a:hover {
    transform: translateY(-2px);
    opacity: 0.78;
}


/* =========================================================
   FOOTER DESKTOP — PANTALLAS INTERMEDIAS
========================================================= */

@media screen and (min-width: 769px) and (max-width: 1680px) {

    .footer-nav {
        grid-template-columns:
            122px
            110px
            126px
            90px;

        column-gap: 18px;
        row-gap: 23px;
    }

    .footer-social {
        gap: 17px;
    }

    .footer-social__link {
        width: 37px;
        flex-basis: 37px;
    }

    .footer-social__apple-books {
        width: 168px;
    }

    .footer-home {
        width: 78px;
    }
}


@media screen and (min-width: 769px) and (max-width: 1440px) {

    .footer-nav {
        left: 7.2%;

        grid-template-columns:
            105px
            94px
            110px
            78px;

        column-gap: 14px;
        row-gap: 20px;
    }

    .footer-social {
        left: 58.8%;
        gap: 14px;
    }

    .footer-social__link {
        width: 32px;
        flex-basis: 32px;
    }

    .footer-social__apple-books {
        width: 148px;
    }

    .footer-home {
        width: 68px;
    }
}


/* =========================================================
   FOOTER MÓVIL
   Canvas: 390 × 844
========================================================= */

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

    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        position: relative;
        display: block;

        width: 100%;
        aspect-ratio: 390 / 844;
        overflow: hidden;

        background: #bde6f1;
    }


    /* -----------------------------------------------------
       FONDO
    ----------------------------------------------------- */

    .footer-mobile__background {
        position: absolute;
        z-index: 0;
        inset: 0;

        display: block;
        width: 100%;
        height: 100%;

        object-fit: fill;

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       LOGO Y MENSAJE
    ----------------------------------------------------- */

    .footer-mobile__header {
        position: absolute;
        z-index: 5;
        top: 5.5%;
        left: 50%;

        width: 82%;

        transform: translateX(-50%);
        text-align: center;
    }

    .footer-mobile__logo {
        display: block;

        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .footer-mobile__message {
        margin-top: 7%;
    }

    .footer-mobile__title,
    .footer-mobile__subtitle {
        margin: 0;

        font-family: var(--font-display);
        font-weight: 400;
        text-transform: uppercase;
    }

    .footer-mobile__title {
        color: var(--color-red);
        font-size: 5.9vw;
        line-height: 1;
        white-space: nowrap;
    }

    .footer-mobile__subtitle {
        margin-top: 1.2%;

        color: var(--color-black);
        font-size: 5.65vw;
        line-height: 1;
        white-space: nowrap;
    }

    .footer-mobile__subtitle span {
        display: inline-block;

        margin-left: 0.15em;

        font-family: Arial, sans-serif;
        font-size: 0.72em;
        vertical-align: 0.08em;
    }


    /* -----------------------------------------------------
       PERSONAJES
    ----------------------------------------------------- */

    .footer-mobile__characters {
        position: absolute;
        z-index: 3;
        top: 35.8%;
        left: 50%;

        display: block;

        width: 83%;
        height: auto;

        transform: translateX(-50%);

        pointer-events: none;
        user-select: none;
    }


    /* -----------------------------------------------------
       REDES
    ----------------------------------------------------- */

    .footer-social--mobile {
        position: absolute;
        z-index: 6;
        top: 65.8%;
        left: 50%;

        display: grid;
        grid-template-columns: repeat(6, 1fr);
        align-items: center;

        width: 82%;

        gap: 3.5vw;

        transform: translateX(-50%);
    }

    .footer-social--mobile .footer-social__link {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: auto;
        margin: 0;

        transition: transform 160ms ease;
    }

    .footer-social--mobile .footer-social__link:nth-child(5),
    .footer-social--mobile .footer-social__link:nth-child(6) {
        grid-column: auto;
    }

    .footer-social--mobile .footer-social__link img {
        display: block;

        width: 100%;
        height: auto;

        object-fit: contain;
    }

    .footer-social--mobile .footer-social__link:active {
        transform: scale(0.92);
    }


    /* -----------------------------------------------------
       CASITA
    ----------------------------------------------------- */

    .footer-home--mobile {
        position: absolute;
        z-index: 6;
        top: 75%;
        left: 50%;

        display: block;

        width: 18%;

        transform: translateX(-50%);
    }

    .footer-home--mobile .footer-home__image {
        display: block;

        width: 100%;
        height: auto;
    }

    .footer-home--mobile:active {
        transform:
            translateX(-50%)
            scale(0.93);
    }


    /* -----------------------------------------------------
       CRÉDITOS
    ----------------------------------------------------- */

    .footer-mobile__credits {
        position: absolute;
        z-index: 6;
        right: 6%;
        bottom: 5.7%;
        left: 6%;

        color: var(--color-white);
        text-align: center;
    }

    .footer-mobile__credits p {
        margin: 0;
    }

    .footer-mobile__brand {
        font-family: var(--font-body);
        font-size: 3.65vw;
        font-weight: 700;
        line-height: 1.15;
    }

    .footer-mobile__copy {
        margin-top: 1.2% !important;

        font-family: var(--font-body);
        font-size: 2.65vw;
        font-weight: 500;
        line-height: 1.25;
    }


    /* -----------------------------------------------------
       LEGAL
    ----------------------------------------------------- */

    .footer-mobile__legal-button {
        position: absolute;
        z-index: 7;
        right: 4%;
        bottom: 1.4%;

        padding: 1.2vw 3vw;

        border: 1px solid rgba(255, 255, 255, 0.82);
        border-radius: 5vw;

        background: rgba(255, 255, 255, 0.1);
        color: var(--color-white);

        font-family: var(--font-body);
        font-size: 2.5vw;
        font-weight: 700;

        cursor: pointer;
    }


    /* -----------------------------------------------------
       MODAL
    ----------------------------------------------------- */

    .legal-modal {
        padding:
            max(18px, env(safe-area-inset-top))
            18px
            max(18px, env(safe-area-inset-bottom));
    }

    .legal-modal__window {
        width: 100%;
        max-height: 84vh;

        padding: 52px 26px 34px;

        border-radius: 24px;
    }

    .legal-modal__title {
        font-size: 8vw;
    }

    .legal-modal__content {
        font-size: 14px;
        line-height: 1.5;
    }
}


/* =========================================================
   FOOTER MÓVIL — AJUSTES SEGÚN ILLUSTRATOR
   No modifica desktop
========================================================= */

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

    .footer-mobile {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 390 / 844;
        overflow: hidden;
        background: #bde6f1;
    }


    /* =====================================================
       LOGO Y FRASE
       Se bajan respetando el área segura superior del iPhone
    ===================================================== */

    .footer-mobile__header {
        top: calc(8.5% + env(safe-area-inset-top));
        width: 78%;
    }

    .footer-mobile__logo {
        width: 100%;
        margin: 0 auto;
    }

    .footer-mobile__message {
        margin-top: 4%;
    }

    .footer-mobile__title {
        font-size: 5.7vw;
        line-height: 1;
        white-space: nowrap;
    }

    .footer-mobile__subtitle {
        margin-top: 1.5%;
        font-size: 5.4vw;
        line-height: 1;
        white-space: nowrap;
    }

    .footer-mobile__subtitle span {
        font-size: 0.72em;
    }


    /* =====================================================
       ICONOS SOCIALES
       Fila superior: Instagram, YouTube, TikTok, Books
       Fila inferior: Mail, WhatsApp
    ===================================================== */

    .footer-social--mobile {
        position: absolute;
        z-index: 6;
        top: 35.5%;
        left: 50%;

        display: grid;
        grid-template-columns: repeat(4, 14.5vw);
        justify-content: center;
        align-items: center;

        width: 88%;
        column-gap: 4.5vw;
        row-gap: 4.8vw;

        transform: translateX(-50%);
    }

    .footer-social--mobile .footer-social__link {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 14.5vw;
        height: 14.5vw;
        margin: 0;
    }

    /* Mail */

    .footer-social--mobile .footer-social__link:nth-child(5) {
        grid-column: 2;
    }

    /* WhatsApp */

    .footer-social--mobile .footer-social__link:nth-child(6) {
        grid-column: 3;
    }

    .footer-social--mobile .footer-social__link img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }


    /* =====================================================
       PERSONAJES
       Más pequeños y colocados dentro del área verde
    ===================================================== */

    .footer-mobile__characters {
        position: absolute;
        z-index: 4;
        top: 53.7%;
        left: 50%;

        width: 72%;
        height: auto;

        transform: translateX(-50%);

        pointer-events: none;
        user-select: none;
    }


    /* =====================================================
       CASITA — BOTÓN HOME
    ===================================================== */

    .footer-home--mobile {
        position: absolute;
        z-index: 7;
        top: 72.3%;
        left: 50%;

        display: block;
        width: 15.5%;

        transform: translateX(-50%);
        cursor: pointer;
		
		pointer-events: auto;
		touch-action: manipulation;
}

    .footer-home--mobile .footer-home__image {
        display: block;
        width: 100%;
        height: auto;
		
		pointer-events: none;
    }

    .footer-home--mobile:active {
        transform:
            translateX(-50%)
            scale(0.92);
    }


    /* =====================================================
       BOTÓN LEGAL
       Centrado entre la casita y los créditos
    ===================================================== */

    .footer-mobile__legal-button {
        position: absolute;
        z-index: 8;
        top: 82.2%;
        right: auto;
        bottom: auto;
        left: 50%;

        min-width: 20%;
        padding: 1.7vw 4.5vw;

        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 6vw;

        background: rgba(255, 255, 255, 0.08);
        color: var(--color-white);

        font-family: var(--font-body);
        font-size: 3.2vw;
        font-weight: 700;
        line-height: 1;

        transform: translateX(-50%);
        cursor: pointer;
    }

    .footer-mobile__legal-button:active {
        transform:
            translateX(-50%)
            scale(0.94);
    }


    /* =====================================================
       CRÉDITOS
       Se suben y respetan el área segura inferior del iPhone
    ===================================================== */

    .footer-mobile__credits {
        position: absolute;
        z-index: 7;

        right: 5%;
        bottom: calc(7% + env(safe-area-inset-bottom));
        left: 5%;

        color: var(--color-white);
        text-align: center;
    }

    .footer-mobile__brand {
        margin: 0;

        font-family: var(--font-body);
        font-size: 3.55vw;
        font-weight: 700;
        line-height: 1.15;
    }

    .footer-mobile__copy {
        margin: 1.2% 0 0 !important;

        font-family: var(--font-body);
        font-size: 2.8vw;
        font-weight: 500;
        line-height: 1.25;
    }
}

/* =========================================================
   FOOTER DESKTOP — AJUSTES VISUALES FINALES
   No modifica móvil
========================================================= */

@media screen and (min-width: 769px) {

    /* =====================================================
       LOGO MÁS PEQUEÑO
    ===================================================== */

    .footer-desktop__header {
        top: 5.4%;
        width: 39%;
    }

    .footer-desktop__logo {
        width: 100%;
        margin: 0 auto;
    }


    /* =====================================================
       FRASE MÁS ARRIBA
       Al disminuir el logo, reducimos también la separación
    ===================================================== */

    .footer-desktop__message {
        margin-top: 2%;
        transform: translateY(-2px);
    }


    /* =====================================================
       PERSONAJES MÁS ARRIBA
    ===================================================== */

    .footer-desktop__characters {
        top: 42.2%;
    }


    /* =====================================================
       MENÚ CON MAYOR PESO
    ===================================================== */

    .footer-nav a {
        font-weight: 600;
    }

    .footer-nav__contact {
        font-weight: 700;
    }


    /* =====================================================
       REDES MÁS GRANDES
       Mantienen el mismo punto de ubicación
    ===================================================== */

    .footer-social__link {
        width: 50px;
        flex-basis: 50px;
    }

    .footer-social__apple-books {
        width: 210px;
    }


    /* =====================================================
       CASITA MÁS GRANDE Y UN POCO MÁS ABAJO
    ===================================================== */

    .footer-home {
        top: 82%;
        width: 112px;
    }


    /* =====================================================
       CRÉDITOS MÁS GRANDES
    ===================================================== */

    .footer-credits {
        bottom: 3.3%;
        width: 52%;
    }

    .footer-credits__title {
        font-size: clamp(16px, 1.22vw, 23px);
    }

    .footer-credits__copy {
        margin-top: 6px !important;
        font-size: clamp(12px, 0.9vw, 17px);
    }

    .footer-credits__links {
        margin-top: 6px !important;
        font-size: clamp(11px, 0.82vw, 16px);
    }

    .footer-credits__links a {
        font-weight: 700;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }


    /* =====================================================
       LEGAL MÁS GRANDE
    ===================================================== */

    .footer-legal {
        right: 3%;
        bottom: 2.6%;
        gap: 17px;
    }

    .footer-legal__copy {
        max-width: 285px;
        font-size: clamp(10px, 0.68vw, 13px);
    }

    .footer-legal__button {
        min-width: 78px;
        padding: 10px 18px;
        border-radius: 24px;
        font-size: 15px;
    }
}

/* =========================================================
   FOOTER DESKTOP — CORRECCIONES DEFINITIVAS
   Pegar al final absoluto del archivo
========================================================= */

@media screen and (min-width: 769px) {

    /* Logo Firus más pequeño */

    .site-footer .footer-desktop__header {
		top: 7.8%;
        width: 34%;
    }

    .site-footer .footer-desktop__logo {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }


    /* Menú en semibold */

    .site-footer .footer-nav a {
        font-weight: 600;
    }

    .site-footer .footer-nav__contact {
        font-weight: 700;
    }


    /* Redes más grandes, conservando su posición */

    .site-footer .footer-social__link {
        width: 52px;
        flex: 0 0 52px;
    }

    .site-footer .footer-social__apple-books {
        width: 220px;
    }


    /* Casita más grande y más abajo */

    .site-footer .footer-home {
        top: 82.8%;
        width: 120px;
    }


    /* Texto Legal más grande */

    .site-footer .footer-legal__copy {
        max-width: 310px;
        font-size: clamp(11px, 0.76vw, 15px);
        line-height: 1.3;
    }


    /* Botón Legal más grande */

    .site-footer .footer-legal__button {
        min-width: 86px;
        padding: 12px 21px;
        border-radius: 28px;
        font-size: 16px;
        line-height: 1;
    }
}

/* =========================================================
   MODAL LEGAL — FUNCIONAMIENTO Y ANIMACIÓN
========================================================= */

/* Evita que la página se mueva mientras el modal está abierto */

body.legal-modal-open {
    overflow: hidden;
}


/* Entrada suave del fondo */

.legal-modal__overlay {
    opacity: 0;
    transition: opacity 220ms ease;
}


/* Entrada suave de la ventana */

.legal-modal__window {
    opacity: 0;

    transform:
        translateY(24px)
        scale(0.96);

    transition:
        opacity 220ms ease,
        transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Estado abierto */

.legal-modal.is-open .legal-modal__overlay {
    opacity: 1;
}

.legal-modal.is-open .legal-modal__window {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* Botón cerrar */

.legal-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;

    background: transparent;

    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.legal-modal__close:hover {
    transform: rotate(8deg) scale(1.08);
    background: rgba(207, 54, 56, 0.09);
}

.legal-modal__close:active {
    transform: scale(0.92);
}


/* Correo */

.legal-modal__content a {
    text-decoration: none;
}

.legal-modal__content a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   FOOTER DESKTOP — BOTÓN LEGAL CLICABLE
========================================================= */

@media screen and (min-width: 769px) {

    .footer-desktop {
        position: relative;
    }

    .footer-desktop .footer-legal {
        position: absolute;
        z-index: 50;
        pointer-events: auto;
    }

    .footer-desktop .footer-legal__button {
        position: relative;
        z-index: 51;
        pointer-events: auto;
        cursor: pointer;
        touch-action: manipulation;
    }

    .footer-desktop__characters,
    .footer-desktop__background,
    .footer-desktop__decoration {
        pointer-events: none;
    }
}

/* =========================================================
   MODAL LEGAL — AJUSTE VISUAL DESKTOP
========================================================= */

@media screen and (min-width: 769px) {

    /* Fondo más elegante */

    .legal-modal__overlay {
        background: rgba(15, 23, 26, 0.76);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }


    /* Ventana más grande */

    .legal-modal__window {
        width: min(720px, 72vw);
        max-width: 720px;

        padding:
            54px
            58px
            52px;

        border-radius: 34px;
    }


    /* Título */

    .legal-modal__title {
        position: relative;

        margin: 0 0 28px;

        font-size: clamp(34px, 2.5vw, 48px);
        line-height: 1;
    }

    .legal-modal__title::before {
		transform: translateY(-6px) rotate(-10deg);
        content: "🐾";

        display: inline-block;

        margin-right: 13px;

        font-size: 0.72em;
        vertical-align: 0.08em;

        transform: rotate(-10deg);
    }


    /* Texto general */

    .legal-modal__content {
        font-size: clamp(16px, 1.05vw, 19px);
        line-height: 1.55;
    }

    .legal-modal__content p {
        margin: 0 0 22px;
    }

    .legal-modal__content p:last-child {
        margin-bottom: 0;
    }


    /* Correo */

    .legal-modal__content a {
        display: inline-block;

        margin-top: 3px;

        font-size: 1.08em;
        font-weight: 700;
        line-height: 1.2;

        transition:
            transform 180ms ease,
            opacity 180ms ease;
    }

    .legal-modal__content a:hover {
        transform: translateY(-2px);
        opacity: 0.82;

        text-decoration: none;
    }


    /* X más grande */

    .legal-modal__close {
        top: 22px;
        right: 24px;

        width: 46px;
        height: 46px;

        font-size: 30px;
        line-height: 1;

        border-radius: 50%;
    }
}

/* Huellita del título */

.legal-modal__title::before {

    content: "🐾";

    display: inline-block;

    margin-right: 10px;

    font-size: 0.72em;

    vertical-align: 0.08em;

    transform: rotate(-10deg);

}

/* =========================================================
   MENÚ DESKTOP FIJO DURANTE EL SCROLL
   Visible hasta Colaboraciones
   Desaparece al entrar al Footer
========================================================= */

@media screen and (min-width: 769px) {

    .header-desktop {
        position: fixed;

        z-index: 1000;

        top: 22px;
        left: 50%;

        transform: translateX(-50%);

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transition:
            opacity 280ms ease,
            transform 320ms ease,
            visibility 280ms ease;
    }


    /* Estado oculto cuando entra el Footer */

    .header-desktop.is-hidden-by-footer {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform:
            translateX(-50%)
            translateY(-28px);
    }
}

/* =========================================================
   CABEZA FLOTANTE FIRUS — MÓVIL
========================================================= */

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

    .mobile-menu-trigger {
        position: fixed;

        top: 50%;
        right: 14px;

        z-index: 1200;
		
		display: block;

        width: 74px;
        height: 74px;

        padding: 0;
        border: 0;

        background: transparent;

        transform: translateY(-50%);

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        cursor: pointer;
        touch-action: manipulation;

        transition:
            opacity 260ms ease,
            transform 300ms ease,
            visibility 260ms ease;
    }

    .mobile-menu-trigger img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: contain;

        pointer-events: none;

        filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.22));
    }


    /* Pequeña reacción al tocar */

    .mobile-menu-trigger:active {
        transform:
            translateY(-50%)
            scale(0.92);
    }


    /* Ocultar al entrar al Footer */

    .mobile-menu-trigger.is-hidden-by-footer {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform:
            translateY(-50%)
            translateX(30px)
            scale(0.9);
    }


    /* Menú móvil por encima del contenido */

    .mobile-menu {
        position: fixed;
        z-index: 1190;
    }
}