/*
 *
 * Adaptive
 * Copyright (c) 2025 Adaptive Technology S.L.
 * https://adaptivetech.es
 * sapiens.css created on Wed Oct 01 2025
 * Developer: Sergio Pascual
 *
 */

/* FUENTES SOLICITADAS */
  @font-face {
      font-family: 'SpecialGothicExpandedOne-Regular';
      src: url('../assets/webfonts/SpecialGothicExpandedOne-Regular.woff') format('woff'), url('../assets/webfonts/SpecialGothicExpandedOne-Regular.woff2') format('woff2'), url('../assets/webfonts/SpecialGothicExpandedOne-Regular.svg#SpecialGothicExpandedOne-Regular') format('svg'), url('../assets/webfonts/SpecialGothicExpandedOne-Regular.eot'), url('../assets/webfonts/SpecialGothicExpandedOne-Regular.eot?#iefix') format('embedded-opentype'), url('../assets/webfonts/SpecialGothicExpandedOne-Regular.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
  }

  @font-face {
      font-family: 'InterTight-Regular';
      src: url('../assets/webfonts/InterTight-Regular.woff') format('woff'), url('../assets/webfonts/InterTight-Regular.woff2') format('woff2'), url('../assets/webfonts/InterTight-Regular.svg#InterTight-Regular') format('svg'), url('../assets/webfonts/InterTight-Regular.eot'), url('../assets/webfonts/InterTight-Regular.eot?#iefix') format('embedded-opentype'), url('../assets/webfonts/InterTight-Regular.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
  }

  @font-face {
      font-family: 'InterTight-Italic';
      src: url('../assets/webfonts/InterTight-Italic.woff') format('woff'), url('../assets/webfonts/InterTight-Italic.woff2') format('woff2'), url('../assets/webfonts/InterTight-Italic.svg../assets/webfonts/InterTight-Italic') format('svg'), url('../assets/webfonts/InterTight-Italic.eot'), url('../assets/webfonts/InterTight-Italic.eot?#iefix') format('embedded-opentype'), url('../assets/webfonts/InterTight-Italic.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
  }

  #main_app__mobile { display: none; }

  .adaptive-glass-button.buy__cta{ display: none; }

  /* Inter Tight Regular */
  .itr {
      font-family: 'InterTight-Regular' !important;
  }

  /* Special Gothic Expanded One Regular */
  .sge {
      font-family: 'SpecialGothicExpandedOne-Regular' !important;
  }

  .barba-container { will-change: opacity, transform; }
  .is-transitioning { cursor: wait; }

  :root{
    --hero-height: 160svh;                 /* recorrido dentro de la MISMA sección */
    --logo-size-a: min(90vw, 100vw);       /* estado 1 (arriba) - ancho lógico */
    --logo-size-b: min(32vw, 40vw);        /* estado 2 (abajo)  - ancho lógico */
  }

  *{ box-sizing: border-box }
  html, body{ margin:0 }
  body{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    overscroll-behavior-y: none;
  }

  body{
    background-image: url("../assets/_Background.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #624d27;
  }

  .no-animate * { transition: none !important; animation: none !important; }

  h4{ margin: 0; font-weight: 400; font-size: 20px;}

  .mb-0{ margin-bottom: 0 !important; }
  .mb-5{ margin-bottom: 5px !important; }
  .mt-0{ margin-top: 0 !important; }

  .tit__txt{
    font-size: 16px;
    font-family: 'SpecialGothicExpandedOne-Regular' !important;
    margin-bottom: 5px !important;
  }
  
  .tit__txt__cta{
    font-size: 15px;
    font-family: 'SpecialGothicExpandedOne-Regular' !important;
    text-transform: uppercase;
  }

  .desc__txt {
    font-size: 15px;
    line-height: 1.4rem;
    font-family: 'InterTight-Regular' !important;
    max-width: 560px;
    margin: 0 auto 20px auto !important;
  }

  /* === ÚNICA SECCIÓN === */
  .hero{
    position: relative;
    height: var(--hero-height);
    background: #fff;
    color: #fff;
    overflow: clip;
    touch-action: pan-y;
    text-align: center;
  }

  /* Fondo sticky (zoom -> cover) – lo anima GSAP */
  .hero__bg{
    position: sticky; top: 0;
    width: 100%; height: 100svh;
    overflow: hidden; z-index: 0;
  }
  .hero__bg img{
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.52);   /* estado 1 */
    display: block;
    will-change: transform;
  }

  /* Capa extra de background (solo opacidad) */
  .hero__bg2{
    position: absolute;           /* igual que la base */
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;                 /* debajo del contenido; por ir después en DOM queda sobre la base */
    pointer-events: none;

    /* Imagen como background */
    background-image: url("../assets/Background_@1_t.png"); /* <-- cambia ruta si difiere */
    background-size: 100%;            /* rellena */
    background-position: bottom center;/* muestra la parte de abajo */
    background-repeat: no-repeat;

    opacity: 0;                /* el fade lo controla JS */
    will-change: opacity, transform;
    transform: translateZ(0);  /* ayuda en iOS/Safari con el repintado */
  }

  /* Contenido fijo (plano único) */
  .hero__content{
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    place-items: center;
    justify-content: center;
  }

  /* Logo: GSAP escala 1 → scaleFinal (ancho lógico en CSS) */
  .hero__logo{
    width: var(--logo-size-a);
    transform-origin: 50% 0%;
    will-change: transform;
  }
  .hero__logo img{ width:100%; height:auto; display:block }

  .hero__subtitle {
    font-family: 'SpecialGothicExpandedOne-Regular' !important;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2.8em;
    text-align: center;
    /* opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease; */
  }

  /* TEXTO: ahora es ABSOLUTO para poder fijar top exacto bajo el logo */
  .hero__text{
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* el Y lo maneja GSAP con top */
    max-width: 900px;
    opacity: 0;                   /* estado 1 */
    will-change: opacity, top;
    /* sin padding-top/márgenes que metan huecos inesperados */
  }
  .hero__text h2{ margin: 0 0 .35em 0; }
  .hero__text p { margin: 0; margin-bottom: 40px;}

  /* Créditos: absolute siempre; GSAP controla top */
  .hero__credits{
    position: absolute;
    left: 0; 
    right: 0;
    padding-top: 10px;
    z-index: 2;
    display: flex; flex-direction: row; justify-content: space-around; gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    top: 0; /* JS lo fijará antes de mostrarlos */
    will-change: top;
    visibility: hidden; /* se muestra tras colocación inicial */
  }

  .hero__credits h4 {
    font-size: 15px;
  }

  /* Trigger para el scroll (icono del mouse) */
  .mouse__trigger{
    position: fixed;               /* fijo en pantalla */
    left: 50%;
    bottom: 66px;
    transform: translateX(-50%);
    z-index: 3;
    width: 20px;
    height: auto;
    opacity: 1;                    /* GSAP/JS lo animan */
    pointer-events: auto;          /* ¡importante para que reciba clics! */
    cursor: pointer;
    transition: opacity .25s ease; /* por si el navegador no soporta rAF suave */
    user-select: none;
    -webkit-user-drag: none;
  }

  /* Estilo del botón */
  .adaptive-glass-button {
    margin-top: 40px;
    display: inline-block;
    padding: 28px 22px;
    line-height: 0;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
  }

  .adaptive-glass-button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.3),
                0 6px 16px rgba(0, 0, 0, 0.45);
  }

  .adaptive-glass-button:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.4);
  }

  /* Panel “glass” reutilizable (coherente con el botón) */
  .adaptive-glass-panel{
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.35);
    color: #fff;
  }

  /* Footer fijo abajo; aparece desde abajo (el JS anima translateY) */
  .hero__footer{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3; /* por encima del fondo y del icono, alineado con el botón */
    border-radius: 16px;
    transform: translateY(100%); /* oculto por defecto: fuera de pantalla */
    opacity: 0;                  /* el JS controla su visibilidad */
    pointer-events: none;        /* se activa cuando está visible */
    transition: none;            /* todo lo anima GSAP */
  }

  /* Contenido del footer */
  .footer__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    justify-content: center;
    align-items: center;
  }

  .footer__col h5{
    margin: 0 0 6px 0;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: .9;
  }
  .footer__col p{
    margin: 0;
    font-size: .95rem;
    opacity: .85;
  }
  .footer__col.support{
    text-align: center;
  }

  .hero__ticket {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 380px;       /* ajusta según diseño */
    will-change: transform;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  /* Ticket que entra desde la izquierda y se queda en el lado izquierdo */
  .hero__ticket--left{
    position: fixed;
    bottom: 0;   /* pegado al borde inferior */
    left: 0;     /* pegado al borde izquierdo */
    z-index: 2;
    height: 580px;            /* ajusta a tu diseño */
    will-change: transform;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transform: translateX(-100%); /* (fallback visual si no corre JS) */
  }

  .ticket-hotspot {
    position: fixed;
    bottom: 320px;
    left: 190px;
    width: 120px;
    height: 24px;
    z-index: 5;
    cursor: pointer;
    background: transparent;
  }

  /* Capa de hojas (queda por debajo del contenido al estar antes en el DOM) */
  .hero__leaves{
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    perspective: 800px;
  }

  /* Cada hoja usa wrapper-máscara + img interior */
  .leaf{
    position: absolute;
    width: var(--w, 260px);
    height: var(--h, 420px);
    overflow: hidden;               /* MÁSCARA */
    will-change: transform;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
    transform-style: preserve-3d;
  }

  .leaf__img{
    position: absolute; inset: 0;
    width: 120%; height: 120%;
    left: -10%; top: -10%;
    object-fit: contain;
    will-change: filter, transform;
    transform: translateZ(0);
    transform-origin: 50% 50%;
  }

  .footer__icon{
    width: 50px;
  }

  @media (prefers-reduced-motion: reduce){
    .hero__leaves{ display:none !important; }
  }

  /* Responsive: 3→1 columnas */
  @media (max-width: 700px){
    .footer__inner{ grid-template-columns: 1fr; gap: 12px; }
  }

  @media (max-width: 640px){
    .hero__credits{
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding-inline: 16px;
      text-wrap: balance;
    }
  }

  @media (prefers-reduced-motion: reduce){
    .hero__bg img{ transform: none !important; }
    .hero__text{ opacity: 1 !important; }
  }

  /* Portátiles “estándar” (altura baja típica MacBook 13” / 14”) */
  @media (max-height: 860px) {
    :root{
      /* logo estado 2 un pelín menor */
      --logo-size-b: clamp(140px, 16vw, 240px);
    }
  }

  /* Portátiles más apretados (<= 780px de alto) */
  @media (max-height: 780px) {
    :root{
      --logo-size-b: clamp(120px, 13vw, 200px);
    }
  }

  /* Muy apretado (<= 700px de alto) */
  @media (max-height: 700px) {
    :root{
      --logo-size-b: clamp(100px, 10vw, 260px);
    }
  }

  /* Opcional: si además el ancho es pequeño, recorta un poco más */
  @media (max-width: 1366px) and (max-height: 800px){
    :root{
      --logo-size-b: clamp(100px, 18vw, 240px);
    }
  }

  :root{ --state2-lift: 190px; }
  @media (max-height: 800px){ :root{ --state2-lift: 110px; } }


  /* Menú hamburguesa */
  .adaptive__menu-icon {
    width: 65px;
    height: 65px;
    cursor: pointer;
    z-index: 50;
    position: fixed;
    top: 15px;
    right: 15px;
    /* background-color: #f9f9f9; */
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .adaptive__menu-icon .line-1,
  .adaptive__menu-icon .line-2,
  .adaptive__menu-icon .line-3 {
    height: 4px;
    width: 35px;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease-in-out;
  }
  .adaptive__menu-icon .line-1 {
    -webkit-animation: animate-line-1-rev 0.7s ease-in-out;
            animation: animate-line-1-rev 0.7s ease-in-out;
  }
  .adaptive__menu-icon .line-2 {
    margin: 7px 0;
    -webkit-animation: animate-line-2-rev 0.7s ease-in-out;
            animation: animate-line-2-rev 0.7s ease-in-out;
  }
  .adaptive__menu-icon .line-3 {
    -webkit-animation: animate-line-3-rev 0.7s ease-in-out;
            animation: animate-line-3-rev 0.7s ease-in-out;
  }
  .adaptive__menu-icon:hover .line-1,
  .adaptive__menu-icon:hover .line-2,
  .adaptive__menu-icon:hover .line-3 {
    background-color: #fff;
  }
  .adaptive__menu-icon.active .line-1,
  .adaptive__menu-icon.active .line-2,
  .adaptive__menu-icon.active .line-3 {
    background-color: #fff;
  }
  .adaptive__menu-icon.active .line-1 {
    -webkit-animation: animate-line-1 0.7s cubic-bezier(0.3, 1, 0.7, 1) forwards;
            animation: animate-line-1 0.7s cubic-bezier(0.3, 1, 0.7, 1) forwards;
  }
  .adaptive__menu-icon.active .line-2 {
    -webkit-animation: animate-line-2 0.7s cubic-bezier(0.3, 1, 0.7, 1) forwards;
            animation: animate-line-2 0.7s cubic-bezier(0.3, 1, 0.7, 1) forwards;
  }
  .adaptive__menu-icon.active .line-3 {
    -webkit-animation: animate-line-3 0.7s cubic-bezier(0.3, 1, 0.7, 1) forwards;
            animation: animate-line-3 0.7s cubic-bezier(0.3, 1, 0.7, 1) forwards;
  }

  .no-animation {
    -webkit-animation: none !important;
    animation: none !important;
  }

  @-webkit-keyframes animate-line-1 {
    0% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
      transform: translate3d(0, 12px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, 12px, 0) rotate(45deg);
    }
  }
  @keyframes animate-line-1 {
    0% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
      transform: translate3d(0, 12px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, 12px, 0) rotate(45deg);
    }
  }
  @-webkit-keyframes animate-line-2 {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(0);
      opacity: 0;
    }
  }
  @keyframes animate-line-2 {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(0);
      opacity: 0;
    }
  }
  @-webkit-keyframes animate-line-3 {
    0% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
      transform: translate3d(0, -10px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, -10px, 0) rotate(135deg);
    }
  }
  @keyframes animate-line-3 {
    0% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
      transform: translate3d(0, -10px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, -10px, 0) rotate(135deg);
    }
  }
  @-webkit-keyframes animate-line-1-rev {
    0% {
      transform: translate3d(0, 12px, 0) rotate(45deg);
    }
    50% {
      transform: translate3d(0, 12px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
  }
  @keyframes animate-line-1-rev {
    0% {
      transform: translate3d(0, 12px, 0) rotate(45deg);
    }
    50% {
      transform: translate3d(0, 12px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
  }
  @-webkit-keyframes animate-line-2-rev {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  @keyframes animate-line-2-rev {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  @-webkit-keyframes animate-line-3-rev {
    0% {
      transform: translate3d(0, -10px, 0) rotate(135deg);
    }
    50% {
      transform: translate3d(0, -10px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
  }
  @keyframes animate-line-3-rev {
    0% {
      transform: translate3d(0, -10px, 0) rotate(135deg);
    }
    50% {
      transform: translate3d(0, -10px, 0) rotate(0);
    }
    100% {
      transform: translate3d(0, 0, 0) rotate(0deg);
    }
  }

  .menu {
    position: fixed;
    top: 0;
    right: -400px;
    bottom: 0;
    height: 100vh;
    z-index: 3;
    line-height: 100vh;
    width: 400px;
    /* filter: url("#blur");
    -webkit-filter: url("#blur"); */
  }

  .menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: -20px;
    background: linear-gradient(
      to left,
      rgba(42, 35, 22, 1) 0%,
      rgba(42, 35, 22, 0.92) 20%,
      rgba(42, 35, 22, 0.0) 100%
    );
    transform-origin: 100% 0;
  }

  .menu-overlay{
    position: fixed;
    inset: 0;
    /* background: rgba(0,0,0,0.35); */
    opacity: 0;
    visibility: hidden;    /* autoAlpha de GSAP controlará esto */
    pointer-events: none;  /* se activa al abrir */
    z-index: 2;           /* por debajo del menú y del botón */
  }

  .menu-items {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
    line-height: 1;
    text-transform: uppercase;
  }
  
  .menu-item {
    display: block;
    color: #fff;
    font-size: 28px;
    padding-top: 18px;
    padding-bottom: 18px;
    padding-right: 40px;
    text-align: right;
    text-decoration: none;
    transition: all 0.25s ease-out;
  }
  
  .menu-item:hover,
  .menu-item.active{
    color: #b7b7b7;
    padding-right: 45px;
  }

  .menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    margin: 0;
  }

  .menu-toggle span {
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #7D87AE;
    font-size: 0px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
  }

  .menu-open.menu-toggle span {
    background-color: transparent;
  }

  .menu-toggle span:before,
  .menu-toggle span:after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: #7D87AE;
    content: '';
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
  }

  .menu-toggle span:before {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }

  .menu-toggle span:after {
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
  }

  .menu-open.menu-toggle span:before {
    -webkit-transform: translateY(0) rotate(-45deg);
    transform: translateY(0) rotate(-45deg);
  }

  .menu-open.menu-toggle span:after {
    -webkit-transform: translateY(0) rotate(45deg);
    transform: translateY(0) rotate(45deg);
  }

  /* Galeria */

  #gallery__container{
    background-size: cover;
    height: 100vh;
  }

  /* --- Galería --- */
  .gallery {
    padding: 24px;
    padding-bottom: 120px;
  }
  .gallery__intro {
    margin: 100px auto 24px;
    color: #fff;
  }
  .gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(8px, 1.5vw, 16px);
  }
  .gallery__item {
    grid-column: span 6; /* 2 por fila en desktop; ajusta en media queries */
    overflow: hidden; border-radius: 12px; position: relative;
  }
  .gallery__item img {
    display: block; width: 100%; height: auto; transform: scale(1.001);
    will-change: transform, opacity;
  }
  @media (min-width: 960px) {
    .gallery__item { grid-column: span 3; } /* 4 por fila */
  }

  /* --- Lightbox minimal --- */
  .glightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.85);
    display: none; opacity: 0; z-index: 9999;
  }
  .glightbox.is-open { display: block; }
  .glightbox__inner {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    max-width: min(92vw, 1400px);
    max-height: 86vh; display: grid; gap: 12px; place-items: center;
  }
  .glightbox__img { max-width: 100%; max-height: 86vh; object-fit: contain; }
  .glightbox__caption { color: #ddd; text-align: center; font-size: .95rem; }

  .glightbox__close, .glightbox__prev, .glightbox__next {
    position: absolute; top: 18px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 10px 14px;
    border-radius: 10px; cursor: pointer; backdrop-filter: blur(4px);
  }
  .glightbox__close { right: 18px; font-size: 20px; line-height: 1; }
  .glightbox__prev, .glightbox__next { top: 50%; transform: translateY(-50%); }
  .glightbox__prev { left: 12px; }
  .glightbox__next { right: 12px; }

  .hero__footer__normal {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    border-radius: 16px;
    opacity: 1;
    transition: none;
  }

  .footer__col_last{
    justify-content: end;
    display: flex;
    align-items: end;
    flex-direction: column;
  }

  .footer__col_last .footer__icon {
    width: 80px;
  }

  .footer__col_last div{
    display: flex;
    flex-direction: column;
  }

  .footer__col_last div small{
    margin-bottom: 5px;
  }

  .d-block{
    display: block !important;
  }

  figure.logo__header img {
   width: 200px;
  }

  figure.logo__header {
    margin: 0;
  }

  #nav__header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    background: linear-gradient(
      to bottom,
      rgba(42, 35, 22, 1) 0%,
      rgba(42, 35, 22, 0.92) 0%,
      rgba(42, 35, 22, 0.0) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .adaptive-glass-button.header__btn {
    margin: 0;
    right: 66px;
    position: relative;
    font-size: 15px;
    padding: 20px 20px;
  }

  .gallery__intro h1 {
    margin: 0;
  }

  .gallery__intro p {
    margin: 8px 0 0 0;
    font-size: 16px;
    max-width: 600px;
  }

  [data-animate-enter] { will-change: transform, opacity; }

  /* Text reveal */
  :root {
    --text-fill: #282114;
    --text-base: #c1b7aa;
  }

  .scroll-reveal-text {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scroll-reveal__inner {
    text-align: center;
  }

  .scroll-reveal__title {
    /* font-family: 'SpecialGothicExpandedOne-Regular'; */
    font-family: 'InterTight-Regular';
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.15;
    color: var(--text-base);
    margin: 0 auto;
  }

  .scroll-reveal__subtitle {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-top: 3rem;
    color: #888;
    line-height: 1.5;
  }

  .hero__sinopsi {
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .hero__sinopsi h1 {
    font-size: 5rem;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
  }

  .hero__sinopsi h2{
    color: #fff;
  }

  /* Evita cortes raros dentro de palabras */
  .text-animation__text,
  .final__bottom-text {
    word-break: normal;        /* no partas palabras arbitrariamente */
    overflow-wrap: normal;     /* idem */
    hyphens: manual;           /* sin guiones automáticos */
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
  }

  /* SplitText genera .word y .char: forzamos su display correcto */
  .text-animation__text .word,
  .final__bottom-text .word {
    display: inline-block;
    white-space: nowrap;       /* la palabra va toda junta */
  }

  .text-animation__text .char,
  .final__bottom-text .char {
    display: inline-block;     /* cada char puede animarse, pero vive dentro de .word */
  }

  .adaptive__down__arrow{
    height: 20vh;
    margin-top: 50px;
  }

  .pbg{
    background-image: url("../assets/paper__bg.webp");
    background-size: cover;
  }
  .pbg__inv{
    background-image: url("../assets/paper__bg_inv.webp");
    background-size: cover;
  }

  .hero__sinopsi.end h3 {
    font-size: 3rem;
    max-width: 60%;
    color: #fff;
    margin-top: 1rem;
  }

  .gradient-border {
    position: relative;
    padding-bottom: 2rem; /* deja espacio para el borde */
  }

  .gradient-border::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* grosor del borde */
    background: linear-gradient(
      to right,
      transparent,
      #ffffff 20%,
      #ffffff 80%,
      transparent
    );
  }

  .hero__sinopsi.end p {
    margin: 0;
    font-size: 1.5rem;
  }

  .hero__access {
    display: flex;
    justify-content: center;
    max-width: 73%;
    margin: 0 auto;
    text-align: center;
    padding-block: 10%;
  }

  .hero__access h1 {
    font-size: 2.2rem;
    margin: 0;
    color: #282114;
    font-family: 'SpecialGothicExpandedOne-Regular' !important;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .hero__access p {
    font-size: 1.7rem;
    color: #282114;
    margin: 1rem auto 0 auto;
  }

  .hero__access a {
    margin-top: 2rem;
    color: #282114;
    text-decoration: none;
    font-weight: bold;
  }

  .card__container {
    padding: 50px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 30px -8px black;
    max-width: 70%;
    transform: rotate(2deg);
  }

  [data-animate-enter] {
    opacity: 0;
    transform: translate3d(0, 24px, 0); /* mismo offset por defecto que tus animaciones */
    will-change: opacity, transform;
  }

  /* Si tienes globales (fuera del container de Barba) */
  [data-animate-enter-global] {
    opacity: 0;
    transform: translateY(var(--animate-enter-y, 24px));
    will-change: opacity, transform;
  }

  .hero__access [data-animate-enter] {
    transform: translate3d(0, 36px, 0); /* un poco más de recorrido */
  }

  html, body {
    height: 100%;
    overscroll-behavior-y: none;
  }

  /* Usar nuevas unidades de viewport estables en móvil */
  .section,
  .hero,
  .gallery,
  .scroll-reveal-text {
    min-height: 100svh; /* mejor que 100vh en iOS */
  }

  /* Si tienes contenedores con scroll interno, activa el scroll nativo suave */
  .scrollable {
    -webkit-overflow-scrolling: touch;
  }

  /* Pequeña optimización de composición para secciones con animaciones de entrada */
  [data-animate-enter],
  [data-animate-enter-global] {
    backface-visibility: hidden;
    transform: translateZ(0); /* crea una capa y evita parpadeos */
  }

  .hero__credits h4 {
    font-size: 15px;          /* CREDITS_FS_S2 */
    line-height: 1.2;         /* CREDITS_LH_S2 */
    margin: 0;
    min-width: 0;
    text-align: center;
    overflow-wrap: anywhere;
    will-change: transform;    /* clave para suavidad */
    transform-origin: center top !important;
  }

  /* Opcional: aislar el bloque para evitar repaints en media página */
  .hero__credits {
    contain: layout paint;     /* o al menos paint */
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
  }

  .support img {
    width: 200px;
  }

  .has-html5video .f-html,
  .has-youtube .f-html,
  .has-vimeo .f-html {
    max-width: 100%;
    max-height: 100%;
  }

  .has-html5video .fancybox__content {
    min-width: 100%;
    min-height: 100% !important;
    object-fit: cover !important;
  }

  /* ===== Galería general ===== */
  .gallery__grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
    gap: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
  }

  .gallery__item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9 !important;
  }


  /* ===== Items ===== */
  .gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1; /* cuadradas */
    background: #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  }

  /* ===== Imágenes ===== */
  .gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }

  .gallery__item:hover img {
    transform: scale(1.05);
  }

  /* ===== Responsive ===== */
  @media (max-width: 1024px) {
    .gallery__grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 10px;
    }
  }

  @media (max-width: 600px) {
    .gallery__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
  }

  .fancybox__content :focus:not(.carousel__button.is-close) {
    outline: none !important;
    box-shadow: none;
  }
.carousel{position:relative;box-sizing:border-box}.carousel *,.carousel *:before,.carousel *:after{box-sizing:inherit}.carousel.is-draggable{cursor:move;cursor:grab}.carousel.is-dragging{cursor:move;cursor:grabbing}.carousel__viewport{position:relative;overflow:hidden;max-width:100%;max-height:100%}.carousel__track{display:flex}.carousel__slide{flex:0 0 auto;width:var(--carousel-slide-width, 60%);max-width:100%;padding:1rem;position:relative;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.has-dots{margin-bottom:calc(0.5rem + 22px)}.carousel__dots{margin:0 auto;padding:0;position:absolute;top:calc(100% + 0.5rem);left:0;right:0;display:flex;justify-content:center;list-style:none;user-select:none}.carousel__dots .carousel__dot{margin:0;padding:0;display:block;position:relative;width:22px;height:22px;cursor:pointer}.carousel__dots .carousel__dot:after{content:"";width:8px;height:8px;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background-color:currentColor;opacity:.25;transition:opacity .15s ease-in-out}.carousel__dots .carousel__dot.is-selected:after{opacity:1}.carousel__button{width:var(--carousel-button-width, 48px);height:var(--carousel-button-height, 48px);padding:0;border:0;display:flex;justify-content:center;align-items:center;pointer-events:all;cursor:pointer;color:var(--carousel-button-color, currentColor);background:var(--carousel-button-bg, transparent);border-radius:var(--carousel-button-border-radius, 50%);box-shadow:var(--carousel-button-shadow, none);transition:opacity .15s ease}.carousel__button.is-prev,.carousel__button.is-next{position:absolute;top:50%;transform:translateY(-50%)}.carousel__button.is-prev{left:10px}.carousel__button.is-next{right:10px}.carousel__button[disabled]{cursor:default;opacity:.3}.carousel__button svg{width:var(--carousel-button-svg-width, 50%);height:var(--carousel-button-svg-height, 50%);fill:none;stroke:currentColor;stroke-width:var(--carousel-button-svg-stroke-width, 1.5);stroke-linejoin:bevel;stroke-linecap:round;filter:var(--carousel-button-svg-filter, none);pointer-events:none}html.with-fancybox{scroll-behavior:auto}body.compensate-for-scrollbar{overflow:hidden !important;touch-action:none}.fancybox__container{position:fixed;top:0;left:0;bottom:0;right:0;direction:ltr;margin:0;padding:env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);box-sizing:border-box;display:flex;flex-direction:column;color:var(--fancybox-color, #fff);-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden;z-index:1050;outline:none;transform-origin:top left;--carousel-button-width: 48px;--carousel-button-height: 48px;--carousel-button-svg-width: 24px;--carousel-button-svg-height: 24px;--carousel-button-svg-stroke-width: 2.5;--carousel-button-svg-filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4))}.fancybox__container *,.fancybox__container *::before,.fancybox__container *::after{box-sizing:inherit}.fancybox__container :focus{outline:none}body:not(.is-using-mouse) .fancybox__container :focus{box-shadow:0 0 0 1px #fff,0 0 0 2px var(--fancybox-accent-color, rgba(1, 210, 232, 0.94))}@media all and (min-width: 1024px){.fancybox__container{--carousel-button-width:48px;--carousel-button-height:48px;--carousel-button-svg-width:27px;--carousel-button-svg-height:27px}}.fancybox__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:var(--fancybox-bg, rgba(24, 24, 27, 0.92))}.fancybox__carousel{position:relative;flex:1 1 auto;min-height:0;height:100%;z-index:10}.fancybox__carousel.has-dots{margin-bottom:calc(0.5rem + 22px)}.fancybox__viewport{position:relative;width:100%;height:100%;overflow:visible;cursor:default}.fancybox__track{display:flex;height:100%}.fancybox__slide{flex:0 0 auto;width:100%;max-width:100%;margin:0;padding:48px 8px 8px 8px;position:relative;overscroll-behavior:contain;display:flex;flex-direction:column;outline:0;overflow:auto;--carousel-button-width: 36px;--carousel-button-height: 36px;--carousel-button-svg-width: 22px;--carousel-button-svg-height: 22px}.fancybox__slide::before,.fancybox__slide::after{content:"";flex:0 0 0;margin:auto}@media all and (min-width: 1024px){.fancybox__slide{padding:64px 100px}}.fancybox__content{margin:0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);padding:36px;color:var(--fancybox-content-color, #374151);background:var(--fancybox-content-bg, #fff);position:relative;align-self:center;display:flex;flex-direction:column;z-index:20}.fancybox__content :focus:not(.carousel__button.is-close){outline:thin dotted;box-shadow:none}.fancybox__caption{align-self:center;max-width:100%;margin:0;padding:1rem 0 0 0;line-height:1.375;color:var(--fancybox-color, currentColor);visibility:visible;cursor:auto;flex-shrink:0;overflow-wrap:anywhere}.is-loading .fancybox__caption{visibility:hidden}.fancybox__container>.carousel__dots{top:100%;color:var(--fancybox-color, #fff)}.fancybox__nav .carousel__button{z-index:40}.fancybox__nav .carousel__button.is-next{right:8px}@media all and (min-width: 1024px){.fancybox__nav .carousel__button.is-next{right:40px}}.fancybox__nav .carousel__button.is-prev{left:8px}@media all and (min-width: 1024px){.fancybox__nav .carousel__button.is-prev{left:40px}}.carousel__button.is-close{position:absolute;top:8px;right:8px;top:calc(env(safe-area-inset-top, 0px) + 8px);right:calc(env(safe-area-inset-right, 0px) + 8px);z-index:40}@media all and (min-width: 1024px){.carousel__button.is-close{right:40px}}.fancybox__content>.carousel__button.is-close{position:absolute;top:-40px;right:0;color:var(--fancybox-color, #fff)}.fancybox__no-click,.fancybox__no-click button{pointer-events:none}.fancybox__spinner{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:50px;height:50px;color:var(--fancybox-color, currentColor)}.fancybox__slide .fancybox__spinner{cursor:pointer;z-index:1053}.fancybox__spinner svg{animation:fancybox-rotate 2s linear infinite;transform-origin:center center;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:100%;height:100%}.fancybox__spinner svg circle{fill:none;stroke-width:2.75;stroke-miterlimit:10;stroke-dasharray:1,200;stroke-dashoffset:0;animation:fancybox-dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:currentColor}@keyframes fancybox-rotate{100%{transform:rotate(360deg)}}@keyframes fancybox-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.fancybox__backdrop,.fancybox__caption,.fancybox__nav,.carousel__dots,.carousel__button.is-close{opacity:var(--fancybox-opacity, 1)}.fancybox__container.is-animated[aria-hidden=false] .fancybox__backdrop,.fancybox__container.is-animated[aria-hidden=false] .fancybox__caption,.fancybox__container.is-animated[aria-hidden=false] .fancybox__nav,.fancybox__container.is-animated[aria-hidden=false] .carousel__dots,.fancybox__container.is-animated[aria-hidden=false] .carousel__button.is-close{animation:.15s ease backwards fancybox-fadeIn}.fancybox__container.is-animated.is-closing .fancybox__backdrop,.fancybox__container.is-animated.is-closing .fancybox__caption,.fancybox__container.is-animated.is-closing .fancybox__nav,.fancybox__container.is-animated.is-closing .carousel__dots,.fancybox__container.is-animated.is-closing .carousel__button.is-close{animation:.15s ease both fancybox-fadeOut}.fancybox-fadeIn{animation:.15s ease both fancybox-fadeIn}.fancybox-fadeOut{animation:.1s ease both fancybox-fadeOut}.fancybox-zoomInUp{animation:.2s ease both fancybox-zoomInUp}.fancybox-zoomOutDown{animation:.15s ease both fancybox-zoomOutDown}.fancybox-throwOutUp{animation:.15s ease both fancybox-throwOutUp}.fancybox-throwOutDown{animation:.15s ease both fancybox-throwOutDown}@keyframes fancybox-fadeIn{from{opacity:0}to{opacity:1}}@keyframes fancybox-fadeOut{to{opacity:0}}@keyframes fancybox-zoomInUp{from{transform:scale(0.97) translate3d(0, 16px, 0);opacity:0}to{transform:scale(1) translate3d(0, 0, 0);opacity:1}}@keyframes fancybox-zoomOutDown{to{transform:scale(0.97) translate3d(0, 16px, 0);opacity:0}}@keyframes fancybox-throwOutUp{to{transform:translate3d(0, -30%, 0);opacity:0}}@keyframes fancybox-throwOutDown{to{transform:translate3d(0, 30%, 0);opacity:0}}.fancybox__carousel .carousel__slide{scrollbar-width:thin;scrollbar-color:#ccc rgba(255,255,255,.1)}.fancybox__carousel .carousel__slide::-webkit-scrollbar{width:8px;height:8px}.fancybox__carousel .carousel__slide::-webkit-scrollbar-track{background-color:rgba(255,255,255,.1)}.fancybox__carousel .carousel__slide::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:2px;box-shadow:inset 0 0 4px rgba(0,0,0,.2)}.fancybox__carousel.is-draggable .fancybox__slide,.fancybox__carousel.is-draggable .fancybox__slide .fancybox__content{cursor:move;cursor:grab}.fancybox__carousel.is-dragging .fancybox__slide,.fancybox__carousel.is-dragging .fancybox__slide .fancybox__content{cursor:move;cursor:grabbing}.fancybox__carousel .fancybox__slide .fancybox__content{cursor:auto}.fancybox__carousel .fancybox__slide.can-zoom_in .fancybox__content{cursor:zoom-in}.fancybox__carousel .fancybox__slide.can-zoom_out .fancybox__content{cursor:zoom-out}.fancybox__carousel .fancybox__slide.is-draggable .fancybox__content{cursor:move;cursor:grab}.fancybox__carousel .fancybox__slide.is-dragging .fancybox__content{cursor:move;cursor:grabbing}.fancybox__image{transform-origin:0 0;user-select:none;transition:none}.has-image .fancybox__content{padding:0;background:rgba(0,0,0,0);min-height:1px}.is-closing .has-image .fancybox__content{overflow:visible}.has-image[data-image-fit=contain]{overflow:visible;touch-action:none}.has-image[data-image-fit=contain] .fancybox__content{flex-direction:row;flex-wrap:wrap}.has-image[data-image-fit=contain] .fancybox__image{max-width:100%;max-height:100%;object-fit:contain}.has-image[data-image-fit=contain-w]{overflow-x:hidden;overflow-y:auto}.has-image[data-image-fit=contain-w] .fancybox__content{min-height:auto}.has-image[data-image-fit=contain-w] .fancybox__image{max-width:100%;height:auto}.has-image[data-image-fit=cover]{overflow:visible;touch-action:none}.has-image[data-image-fit=cover] .fancybox__content{width:100%;height:100%}.has-image[data-image-fit=cover] .fancybox__image{width:100%;height:100%;object-fit:cover}.fancybox__carousel .fancybox__slide.has-iframe .fancybox__content,.fancybox__carousel .fancybox__slide.has-map .fancybox__content,.fancybox__carousel .fancybox__slide.has-pdf .fancybox__content,.fancybox__carousel .fancybox__slide.has-video .fancybox__content,.fancybox__carousel .fancybox__slide.has-html5video .fancybox__content{max-width:100%;flex-shrink:1;min-height:1px;overflow:visible}.fancybox__carousel .fancybox__slide.has-iframe .fancybox__content,.fancybox__carousel .fancybox__slide.has-map .fancybox__content,.fancybox__carousel .fancybox__slide.has-pdf .fancybox__content{width:100%;height:80%}.fancybox__carousel .fancybox__slide.has-video .fancybox__content,.fancybox__carousel .fancybox__slide.has-html5video .fancybox__content{width:960px;height:540px;max-width:100%;max-height:100%}.fancybox__carousel .fancybox__slide.has-map .fancybox__content,.fancybox__carousel .fancybox__slide.has-pdf .fancybox__content,.fancybox__carousel .fancybox__slide.has-video .fancybox__content,.fancybox__carousel .fancybox__slide.has-html5video .fancybox__content{padding:0;background:rgba(24,24,27,.9);color:#fff}.fancybox__carousel .fancybox__slide.has-map .fancybox__content{background:#e5e3df}.fancybox__html5video,.fancybox__iframe{border:0;display:block;height:100%;width:100%;background:rgba(0,0,0,0)}.fancybox-placeholder{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.fancybox__thumbs{flex:0 0 auto;position:relative;padding:0px 3px;opacity:var(--fancybox-opacity, 1)}.fancybox__container.is-animated[aria-hidden=false] .fancybox__thumbs{animation:.15s ease-in backwards fancybox-fadeIn}.fancybox__container.is-animated.is-closing .fancybox__thumbs{opacity:0}.fancybox__thumbs .carousel__slide{flex:0 0 auto;width:var(--fancybox-thumbs-width, 96px);margin:0;padding:8px 3px;box-sizing:content-box;display:flex;align-items:center;justify-content:center;overflow:visible;cursor:pointer}.fancybox__thumbs .carousel__slide .fancybox__thumb::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-width:5px;border-style:solid;border-color:var(--fancybox-accent-color, rgba(34, 213, 233, 0.96));opacity:0;transition:opacity .15s ease;border-radius:var(--fancybox-thumbs-border-radius, 4px)}.fancybox__thumbs .carousel__slide.is-nav-selected .fancybox__thumb::after{opacity:.92}.fancybox__thumbs .carousel__slide>*{pointer-events:none;user-select:none}.fancybox__thumb{position:relative;width:100%;padding-top:calc(100%/(var(--fancybox-thumbs-ratio, 1.5)));background-size:cover;background-position:center center;background-color:rgba(255,255,255,.1);background-repeat:no-repeat;border-radius:var(--fancybox-thumbs-border-radius, 4px)}.fancybox__toolbar{position:absolute;top:0;right:0;left:0;z-index:20;background:linear-gradient(to top, hsla(0deg, 0%, 0%, 0) 0%, hsla(0deg, 0%, 0%, 0.006) 8.1%, hsla(0deg, 0%, 0%, 0.021) 15.5%, hsla(0deg, 0%, 0%, 0.046) 22.5%, hsla(0deg, 0%, 0%, 0.077) 29%, hsla(0deg, 0%, 0%, 0.114) 35.3%, hsla(0deg, 0%, 0%, 0.155) 41.2%, hsla(0deg, 0%, 0%, 0.198) 47.1%, hsla(0deg, 0%, 0%, 0.242) 52.9%, hsla(0deg, 0%, 0%, 0.285) 58.8%, hsla(0deg, 0%, 0%, 0.326) 64.7%, hsla(0deg, 0%, 0%, 0.363) 71%, hsla(0deg, 0%, 0%, 0.394) 77.5%, hsla(0deg, 0%, 0%, 0.419) 84.5%, hsla(0deg, 0%, 0%, 0.434) 91.9%, hsla(0deg, 0%, 0%, 0.44) 100%);padding:0;touch-action:none;display:flex;justify-content:space-between;--carousel-button-svg-width: 20px;--carousel-button-svg-height: 20px;opacity:var(--fancybox-opacity, 1);text-shadow:var(--fancybox-toolbar-text-shadow, 1px 1px 1px rgba(0, 0, 0, 0.4))}@media all and (min-width: 1024px){.fancybox__toolbar{padding:8px}}.fancybox__container.is-animated[aria-hidden=false] .fancybox__toolbar{animation:.15s ease-in backwards fancybox-fadeIn}.fancybox__container.is-animated.is-closing .fancybox__toolbar{opacity:0}.fancybox__toolbar__items{display:flex}.fancybox__toolbar__items--left{margin-right:auto}.fancybox__toolbar__items--center{position:absolute;left:50%;transform:translateX(-50%)}.fancybox__toolbar__items--right{margin-left:auto}@media(max-width: 640px){.fancybox__toolbar__items--center:not(:last-child){display:none}}.fancybox__counter{min-width:72px;padding:0 10px;line-height:var(--carousel-button-height, 48px);text-align:center;font-size:17px;font-variant-numeric:tabular-nums;-webkit-font-smoothing:subpixel-antialiased}.fancybox__progress{background:var(--fancybox-accent-color, rgba(34, 213, 233, 0.96));height:3px;left:0;position:absolute;right:0;top:0;transform:scaleX(0);transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:30;user-select:none}.fancybox__container:fullscreen::backdrop{opacity:0}.fancybox__button--fullscreen g:nth-child(2){display:none}.fancybox__container:fullscreen .fancybox__button--fullscreen g:nth-child(1){display:none}.fancybox__container:fullscreen .fancybox__button--fullscreen g:nth-child(2){display:block}.fancybox__button--slideshow g:nth-child(2){display:none}.fancybox__container.has-slideshow .fancybox__button--slideshow g:nth-child(1){display:none}.fancybox__container.has-slideshow .fancybox__button--slideshow g:nth-child(2){display:block}
@media(max-width: 768px), (max-height: 650px) {
    .footer__col {
        text-align: center;
    }
    .footer__col_last {
        justify-content: center;
        align-items: center;
    }
    .adaptive-glass-button.header__btn{
        display: none;
    }
    .hero__footer__normal {
        position: relative;
        left: 0;
        right: 0;
        padding: 0;
        padding-bottom: 60px;
    }
    .gallery {
        padding: 24px;
        padding-bottom: 40px;
    }
    #main_app { 
        display: none; 
    }
    #main_app__mobile {
        display: block;
        background-image: url('../assets/bg__mobile2.webp');
        background-position: center center;
        background-size: cover;
        padding-top: 50px;
    }
    .ticket__mobile {
        transform: rotate(6deg);
        width: 39%;
        margin: 0 auto;
        position: relative;
        display: block;
    }
    .logo__mobile {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        position: relative;
        display: block;
        margin-bottom: 15px;
    }
    .mobile__credits {
        color: #fff;
        text-align: center;
    }
    .mobile__credits h4{
        font-size: 15px;
    }
    a.adaptive-glass-button.mobile__cta {
        margin: 25px auto 50px auto;
        display: block;
        position: relative;
        max-width: 80%;
    }
    .mobile__credits.director {
        margin-bottom: 15px;
    }
    .toggle-panel{
        background:#fff;
        border-radius:16px;
        box-shadow:0 4px 14px rgba(0,0,0,.1);
        padding:1rem 1.2rem;
        margin-top:1rem;
        margin-inline: 14px;
        overflow:hidden;
        max-height:0;
        opacity:0;
        transform:translateY(6px);
        transition: max-height .35s ease, opacity .3s, transform .3s;
    }
    .toggle-panel.is-open{
        max-height:500px;
        opacity:1;
        transform:translateY(0);
        margin-bottom: 40px;
    }
    #infoBox p {
        line-height: 1.3rem;
        color: #282114;
    }
    #infoBox a {
        font-weight: 500;
        color: #282114;
        text-decoration: none;
        font-family: 'InterTight-Regular';
    }
    .expand__cta {
        font-size: 19px;
        text-decoration: none;
        font-weight: 600;
        color: #fff;
        margin: 0 auto;
        position: relative;
        display: block;
        text-align: center;
        margin-top: 40px;
        background: #282114;
        max-width: 60%;
        border-radius: 10px;
        padding: 10px 20px;
    }
    .adaptive-glass-button.buy__cta {
        position: fixed;
        display: block;
        bottom: 0;
        z-index: 3;
        width: 100%;
        border-radius: 0;
        background: rgb(40 33 20);
        border: 0;
    }
    #gallery__container{ 
        display: inline;
    }
    .scroll-reveal-text {
      padding: 0vh 0.5rem;
    }
    .hero__sinopsi h1 {
        font-size: 3rem;
        margin: 0;
        color: #fff;
    }
    .hero__sinopsi.end h3 {
        font-size: 1.1rem;
        max-width: 90%;
        margin: 0 auto;
        color: #fff;
        margin-top: 1rem;
    }
    .hero__sinopsi.end p {
        font-size: 1.3rem;
    }
    .scroll-reveal__title{
        font-size: 1.5rem;
    }
    .hero__sinopsi.end{
        height: 50vh;
        margin-bottom: 30px;
    }
    .pad0{
        padding: 0 !important;
    }
    .hero__access {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 50px;
    }
    .hero__access h1 {
        font-size: 1.2rem;
    }
    .hero__access p {
        font-size: 1.2rem;
    }
    .card__container {
        padding: 20px;
        max-width: 88%;
    }
    .sm-hide {
        display: none !important;
    }
    .menu-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .gallery__item--wide {
        grid-column: 1/7;
        aspect-ratio: 16 / 9 !important;
    }
}






@media screen and (orientation: landscape) and (max-width: 1024px) {
  body::before {
    content: "Rota el dispositiu a vertical";
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    font-size: 1.2rem;
    text-align: center;
    z-index: 9999;
  }
  body {
    overflow: hidden !important;
  }
}