/* =========================================================
   ANTIGUAFEST — ESCRITORIO Y MÓVIL

   ESCRITORIO:
   Fondo y acciones de compra y registro en images/NuevasImagenes/.

   MÓVIL:
   Fondo y acciones en images/NuevasImagenes/.
   Recursos anteriores de la landing en images/Mobil/.

   POSICIONES:
   Un valor mayor en -top baja el elemento.
   Un valor menor lo sube.

   1cqw equivale al 1% del ancho de la página.
   ========================================================= */

.preventa-salto-movil {
    display: none;
}

.landing .compra-wrapper a {
    display: block;
    width: 100%;
    border-radius: 999px;
}

.landing .compra-wrapper a:hover {
    filter: brightness(1.1);
}

.landing .compra-wrapper a:focus-visible {
    outline: 3px solid #42e1dd;
    outline-offset: 5px;
}

.landing .header-registration img {
    filter: saturate(1.6);
}

/* ESCRITORIO */

@media (min-width: 601px) {
    .landing {
        /* TAMAÑOS */
        --fecha-ancho: 27%;
        --early-bird-ancho: 35.2%;
        --registro-ancho: 22.5%;
        --compra-centro: 29.8%;
        --registro-centro: 72.7%;
        --descripcion-ancho: 56%;
        --intro-playlists-ancho: 86%;

        /* POSICIONES */
        --fecha-top: 14.8cqw;
        --descripcion-top: 20.7cqw;
        --early-bird-top: 36.8cqw;
        --registro-top: 44.3cqw;
        --carrusel-top: 59.3cqw;
        --intro-top: 86cqw;
        --playlists-top: 95.2cqw;
        --historia-top: 148.7cqw;
        --preventa-top: 182.6cqw;

        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        container-type: inline-size;

        background-image:
            url("../images/NuevasImagenes/Background_Landing-Playlist-Desktop.png");
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 100% 100%;
    }

    .landing .landing-content {
        position: relative;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        aspect-ratio: 982 / 2048;
        container-type: inline-size;
    }

    .landing .event-header,
    .landing .event-header .header-registration,
    .landing .header-registration .compra-entrada,
    .landing .festival-experience {
        display: contents;
    }

    .landing .event-header .event-date,
    .landing .header-registration .early-bird,
    .landing .header-registration .registration-wrapper,
    .landing .header-registration .compra-titulo,
    .landing .header-registration .compra-wrapper,
    .landing .festival-experience #af-descripcion,
    .landing .festival-experience .festival-carousel,
    .landing .festival-experience .festival-playlist-intro,
    .landing .featured-playlists {
        position: absolute;
        left: 50%;
        margin: 0;
        transform: translateX(-50%);
    }

    .landing .event-header .event-logo {
        /* El fondo de escritorio ya incluye el logo. */
        display: none;
    }

    .landing .event-header .event-date {
        top: var(--fecha-top);
        width: var(--fecha-ancho);
    }

    .landing .festival-experience #af-descripcion {
        top: var(--descripcion-top);
        width: var(--descripcion-ancho);
        height: auto;
    }

    .landing #af-descripcion>img {
        content: url("../images/Texto-que-es-AF.png");
        width: 100%;
        height: auto;
        transform: none;
    }

    .landing .header-registration .early-bird {
        top: var(--early-bird-top);
        left: var(--registro-centro);
        width: var(--early-bird-ancho);
    }

    .landing .header-registration .early-bird>img {
        content: url("../images/NuevasImagenes/Accede%20al%20Early%20Bird@4x.png");
    }

    .landing .header-registration .compra-titulo {
        top: var(--early-bird-top);
        left: var(--compra-centro);
        width: 26%;
        height: auto;
    }

    .landing .header-registration .compra-wrapper,
    .landing .header-registration .registration-wrapper {
        top: var(--registro-top);
        width: var(--registro-ancho);
    }

    .landing .header-registration .compra-wrapper {
        left: var(--compra-centro);
    }

    .landing .header-registration .registration-wrapper {
        left: var(--registro-centro);
    }

    /* RAYOS ORIGINALES */
    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::before,
    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::after {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        width: 22%;
        aspect-ratio: 295 / 311;
        clip-path: none;
        background-color: transparent;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::before {
        right: calc(100% + 7%);
        left: auto;
        background-image: url("../images/NuevasImagenes/Rayo%20izquierdo@4x.png");
    }

    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::after {
        left: calc(100% + 7%);
        right: auto;
        background-image: url("../images/NuevasImagenes/Rayo%20derecho@4x.png");
    }

    /* CARRUSEL */
    .landing .festival-experience .festival-carousel {
        top: var(--carrusel-top);
        width: 70%;
        height: 23.5cqw;
    }

    .landing .festival-carousel .carousel-stage {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.4cqw;
        width: 100%;
        height: 23.5cqw;
        margin: 0;
    }

    .landing .festival-carousel .carousel-photo--center {
        flex: 0 0 auto;
        width: 23.5cqw;
        height: 23.5cqw;
    }

    .landing .festival-carousel .carousel-photo--side {
        display: block;
        flex: 0 0 auto;
        width: 18.5cqw;
        height: 18.5cqw;
    }

    .landing .festival-carousel .carousel-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .landing .festival-carousel .carousel-arrow {
        top: 50%;
        width: 5cqw;
        transform: translateY(-50%);
    }

    .landing .festival-carousel .carousel-arrow--previous {
        left: -7cqw;
        right: auto;
    }

    .landing .festival-carousel .carousel-arrow--next {
        right: -7cqw;
        left: auto;
    }

    /* TEXTO AMARILLO */
    .landing .festival-experience .festival-playlist-intro {
        top: var(--intro-top);
        width: var(--intro-playlists-ancho);
        height: auto;
    }

    .landing .festival-playlist-intro>img {
        content: url("../images/Empieza-a-escuchar@4x.png");
        display: block;
        width: 100%;
        height: auto;
    }

    /* PLAYLISTS */
    .landing .featured-playlists {
        top: var(--playlists-top);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        width: 94.9%;
        gap: 2.2cqw;
    }

    .landing .featured-right {
        display: flex;
        flex-direction: column;
        gap: 1.7cqw;
    }

    /* AÑOS ANTERIORES */
    .landing .history-section {
        position: absolute;
        top: var(--historia-top);
        left: 0;
        width: 100%;
        margin: 0;
    }

    .landing .history-title {
        width: 82%;
        margin: 0 auto;
    }

    .landing .history-playlists {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 76%;
        gap: 3cqw;
        margin: 2.5cqw auto 0;
    }

    /* PREVENTA */
    .landing .presale-section {
        position: absolute;
        top: var(--preventa-top);
        left: 0;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .landing .presale-title {
        width: 60%;
        margin: 0 auto;
    }

    .landing .countdown {
        width: 51%;
        height: 11cqw;
        margin: 2cqw auto 0;
    }

    /* Intensificar el amarillo de la fecha en ambas versiones */
    .event-date img {
        filter: saturate(1.6);
    }

    /* Intensificar el amarillo del título de preventa */
    .presale-title img {
        filter: saturate(1.6);
    }
}

/* MÓVIL */

@media (max-width: 600px) {
    .landing {
        /* TAMAÑOS */
        --logo-ancho: 74%;
        --fecha-ancho: 60%;
        --descripcion-ancho: 100%;
        --compra-titulo-ancho: 61.5%;
        --early-bird-ancho: 61.5%;
        --botones-ancho: 47%;
        --intro-playlists-ancho: 85%;
        --portadas-ancho: 82%;

        /* POSICIONES */
        --logo-top: 6cqw;
        --fecha-top: 41cqw;
        --descripcion-top: 62cqw;
        --compra-titulo-top: 104.5cqw;
        --compra-boton-top: 123.6cqw;
        --early-bird-top: 151.2cqw;
        --registro-top: 177.2cqw;
        --carrusel-top: 215cqw;
        --intro-top: 272cqw;

        --wailers-top: 299.3cqw;
        --lab-top: 394cqw;
        --af2027-top: 444cqw;

        --historia-top: 502cqw;
        --af2026-separacion: 28cqw;
        --af2025-separacion: 95cqw;

        --preventa-top: 667cqw;

        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        container-type: inline-size;

        background-image:
            url("../images/NuevasImagenes/Background_Landing-Playlist-Mobil.png");
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 100% 100%;
    }

    /*
   * Conserva la proporción del fondo móvil.
   * Las posiciones escalan con el ancho del teléfono.
   */
    .landing .landing-content {
        position: relative;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        aspect-ratio: 267 / 2048;
        container-type: inline-size;
    }

    .landing .event-header,
    .landing .event-header .header-registration,
    .landing .header-registration .compra-entrada,
    .landing .festival-experience,
    .landing .featured-playlists,
    .landing .featured-right {
        display: contents;
    }

    /* PIEZAS CENTRADAS */
    .landing .event-header .event-logo,
    .landing .event-header .event-date,
    .landing .festival-experience #af-descripcion,
    .landing .header-registration .compra-titulo,
    .landing .header-registration .compra-wrapper,
    .landing .header-registration .early-bird,
    .landing .header-registration .registration-wrapper,
    .landing .festival-experience .festival-carousel,
    .landing .festival-experience .festival-playlist-intro {
        position: absolute;
        left: 50%;
        margin: 0;
        transform: translateX(-50%);
    }

    /* LOGO */
    .landing .event-header .event-logo {
        top: var(--logo-top);
        width: var(--logo-ancho);
    }

    /* FECHA */
    .landing .event-header .event-date {
        top: var(--fecha-top);
        width: var(--fecha-ancho);
    }

    /* DESCRIPCIÓN CENTRADA EN LA FRANJA */
    .landing .festival-experience #af-descripcion {
        top: var(--descripcion-top);
        width: var(--descripcion-ancho);
        height: auto;
    }

    .landing #af-descripcion>img {
        content: url("../images/Mobil/Texto-que-es-AF.png");
        display: block;
        width: 100%;
        height: auto;
        transform: none;
    }

    /* COMPRA Y REGISTRO */
    .landing .header-registration .compra-titulo {
        top: var(--compra-titulo-top);
        width: var(--compra-titulo-ancho);
    }

    .landing .header-registration .compra-wrapper {
        top: var(--compra-boton-top);
        width: var(--botones-ancho);
    }

    .landing .header-registration .early-bird {
        top: var(--early-bird-top);
        width: var(--early-bird-ancho);
    }

    .landing .header-registration .registration-wrapper {
        top: var(--registro-top);
        width: var(--botones-ancho);
    }

    /* RAYOS ORIGINALES MÓVILES */
    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::before,
    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::after {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        width: 26%;
        aspect-ratio: 295 / 311;
        clip-path: none;
        background-color: transparent;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::before {
        right: calc(100% + 10%);
        left: auto;
        background-image:
            url("../images/NuevasImagenes/Rayo%20izquierdo@4x.png");
    }

    .landing .header-registration :is(.compra-wrapper, .registration-wrapper)::after {
        left: calc(100% + 10%);
        right: auto;
        background-image:
            url("../images/NuevasImagenes/Rayo%20derecho@4x.png");
    }

    /* CARRUSEL MANUAL */
    .landing .festival-experience .festival-carousel {
        top: var(--carrusel-top);
        width: 100%;
        height: 50cqw;
    }

    .landing .festival-carousel .carousel-stage {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50cqw;
        height: 50cqw;
        margin: 0 auto;
    }

    .landing .festival-carousel .carousel-photo--center {
        flex: 0 0 auto;
        width: 50cqw;
        height: 50cqw;
        border-radius: 1.5cqw;
    }

    .landing .festival-carousel .carousel-photo--side {
        display: none;
    }

    .landing .festival-carousel .carousel-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .landing .festival-carousel .carousel-arrow {
        top: 50%;
        width: 12cqw;
        min-width: 44px;
        min-height: 44px;
        padding: 2cqw;
        transform: translateY(-50%);
    }

    .landing .festival-carousel .carousel-arrow--previous {
        left: 4cqw;
        right: auto;
    }

    .landing .festival-carousel .carousel-arrow--next {
        right: 4cqw;
        left: auto;
    }

    /* INTRODUCCIÓN A LAS PLAYLISTS */
    .landing .festival-experience .festival-playlist-intro {
        top: var(--intro-top);
        width: var(--intro-playlists-ancho);
    }

    .landing .festival-playlist-intro>img {
        content: url("../images/Mobil/Empieza-a-escuchar_1@4x.png");
        display: block;
        width: 100%;
        height: auto;
    }

    /* PLAYLISTS PRINCIPALES */
    .landing .featured-playlists>.playlist,
    .landing .featured-right>.playlist {
        position: absolute;
        left: 9%;
        width: var(--portadas-ancho);
        margin: 0;
    }

    .landing .featured-playlists>.playlist-wailers {
        top: var(--wailers-top);
    }

    .landing .featured-right>.playlist:first-child {
        top: var(--lab-top);
    }

    .landing .featured-right>.playlist:nth-child(2) {
        top: var(--af2027-top);
    }

    .landing .playlist-cover {
        width: 100%;
        border-radius: 2.5cqw;
    }

    /* ENLACES A PLATAFORMAS */
    .landing .music-links,
    .landing .playlist-wailers .music-links,
    .landing .history-playlists .music-links {
        margin-top: 2cqw;
    }

    .landing .music-caption {
        width: 17cqw;
        margin-bottom: 1cqw;
    }

    .landing .music-platforms {
        display: flex;
        align-items: center;
        gap: 3cqw;
    }

    .landing .music-platforms a {
        display: flex;
        align-items: center;
        width: 15cqw;
        min-height: 24px;
    }

    .landing .music-platforms a[data-service="deezer"] {
        width: 14cqw;
    }

    /* AÑOS ANTERIORES */
    .landing .history-section {
        position: absolute;
        top: var(--historia-top);
        left: 0;
        width: 100%;
        margin: 0;
    }

    .landing .history-title {
        width: 70%;
        margin: 0 auto;
    }

    .landing .history-playlists {
        display: contents;
    }

    .landing .history-playlists>.playlist {
        position: absolute;
        left: 9%;
        width: var(--portadas-ancho);
        margin: 0;
    }

    .landing .history-playlists>.playlist:first-child {
        top: var(--af2026-separacion);
    }

    .landing .history-playlists>.playlist:nth-child(2) {
        top: var(--af2025-separacion);
    }

    .landing .history-playlists .playlist-cover {
        border-radius: 4cqw;
    }

    /* PREVENTA Y CONTADOR */
    .landing .presale-section {
        position: absolute;
        top: var(--preventa-top);
        left: 0;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .landing .presale-title {
        display: none;
    }

    .landing #presale-title {
        position: static;
        width: 90%;
        height: auto;
        margin: 0 auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
        color: var(--yellow);
        font: 1000 6cqw / 1.22 system-ui, sans-serif;
        text-transform: uppercase;
    }

    .landing .preventa-salto-movil {
        display: initial;
    }

    .landing .countdown {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 84%;
        height: 18cqw;
        gap: 2cqw;
        margin: 4cqw auto 0;
    }

    .landing .time-card {
        min-width: 0;
        padding: 1.5cqw 0.5cqw;
    }

    .landing .number {
        font-size: 9cqw;
        line-height: 1;
    }

    .landing .label {
        margin-top: 1.5cqw;
        font-size: 1.8cqw;
    }

    /* Intensificar el amarillo de la fecha en ambas versiones */
    .event-date img {
        filter: saturate(1.6);
    }
}

@media (max-width: 600px) {
  .landing {
    background-image: url("../images/NuevasImagenesMobil/Background_Landing-Playlist-Mobil.png");
  }
}

@media (max-width: 600px) {
  .landing .history-title {
    transform: translateY(-12px);
  }
}