/* ==========================================================================
   CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================================================== */
:root {
    --md-sys-typescale-body-font: 'Roboto', sans-serif;
    --pignis-negro: #000000;
    --pignis-fondo-premium: #f5f5f5; 
    --pignis-orange-liquid: #ff5722;
    --pignis-orange-hover: #e64a19;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--pignis-negro);
    font-family: var(--md-sys-typescale-body-font);
    overflow-x: hidden;
}

/* ==========================================================================
   VERSION LAPTOP / TABLET (NAVBAR ORIGINAL)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 50px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { height: 50px; object-fit: contain; }
.menu-laptop { display: flex; list-style: none; gap: 35px; }
.menu-laptop a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-celular-icono { display: none; }

.navbar.navbar-activa {
    background-color: var(--pignis-fondo-premium);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 50px;
}
.navbar.navbar-activa .menu-laptop a { color: var(--pignis-negro); }

/* ==========================================================================
   CAPA 1: INTRO FIJA
   ========================================================================== */
.contenedor-intro {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1;
}
.intro-capa-negra {
    width: 100%;
    height: 100vh;
    background-color: var(--pignis-negro);
    display: flex;
    justify-content: center;
    align-items: center;
}
.gif-intro { width: auto; height: 90vh; max-width: 100%; object-fit: contain; }

.flecha-abajo {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    width: 18px;
    height: 18px;
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    animation: saltar 2s infinite;
}
@keyframes saltar {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0) rotate(-45deg); }
    40% { transform: translateX(-50%) translateY(-15px) rotate(-45deg); }
    60% { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   CAPA 2: CONTENIDO PRINCIPAL Y EFECTO LINTERNA
   ========================================================================== */
.capa-contenido-blanco {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    background-color: var(--pignis-fondo-premium);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
}

.contenido-bloque-gta {
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.contenedor-logo-animado {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor-portada-capas {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 48vh;
    margin: 0 auto;
}

.capa-gta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.centro-atras {
    z-index: 1;
    filter: brightness(1) contrast(1);
}

.centro-atras.encender-linterna {
    filter: brightness(0.22) contrast(0.85) blur(1px);
}

.centro-adelante {
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.15));
}

.centro-adelante.encender-linterna {
    filter: drop-shadow(0px 0px 35px rgba(255, 87, 34, 1)) 
            drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.4));
    transform: scale(1.015);
}

/* ==========================================================================
   ANIMACIÓN EN CASCADA
   ========================================================================== */
.animate-item-gta {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-item-gta.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-item-gta:nth-child(1).visible { transition-delay: 0.0s; }
.footer-gta-grid .animate-item-gta:nth-child(1).visible { transition-delay: 0.25s; }
.footer-gta-grid .animate-item-gta:nth-child(2).visible { transition-delay: 0.45s; }
.footer-gta-grid .animate-item-gta:nth-child(3).visible { transition-delay: 0.65s; }

/* ==========================================================================
   GRID INFERIOR Y ESTILOS EN DESKTOP
   ========================================================================== */
.footer-gta-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding-bottom: 30px;
}

.columna-gta { display: flex; flex-direction: column; }

.col-izq { align-items: flex-start; text-align: left; }
.disponible-gta { font-size: 1.1rem; font-weight: 500; letter-spacing: 4px; color: #555555; }
.muy-pronto-gta { font-size: 2.2rem; font-weight: 900; letter-spacing: 1px; color: var(--pignis-negro); line-height: 1.1; }

.col-centro { align-items: center; }
.boton-gta-orange {
    --md-elevated-button-container-color: var(--pignis-orange-liquid);
    --md-elevated-button-label-text-color: #ffffff;
    --md-elevated-button-hover-label-text-color: #ffffff;
    --md-elevated-button-pressed-label-text-color: #ffffff;
    --md-elevated-button-focus-label-text-color: #ffffff;
    --md-elevated-button-hover-state-layer-color: transparent;
    --md-elevated-button-pressed-state-layer-color: transparent;
    --md-elevated-button-container-shape: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 6px 28px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.boton-gta-orange:hover {
    --md-elevated-button-container-color: var(--pignis-orange-hover);
    transform: scale(1.05);
}

.col-der { align-items: flex-end; gap: 12px; }
.item-local-gta { display: flex; align-items: center; gap: 12px; }
.text-gta { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--pignis-negro); }

.img-bandera-gta {
    width: 40px;                 
    height: 24px;                
    object-fit: cover;           
    border-radius: 4px;          
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

/* ==========================================================================
   SECCIÓN 4: EXPERIENCIA PANORÁMICA PIGNIS
   ========================================================================== */
.seccion-club-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1c3628;
    z-index: 9999;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.seccion-club-modal.hidden { display: none !important; }
.seccion-club-modal::-webkit-scrollbar { display: none; }

.btn-atras-club {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10005;
    background-color: #e2bbf0;
    color: #1a1a1a;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-atras-club:hover {
    transform: scale(1.05);
    background-color: #ffffff;
}

.indicador-scroll-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 16px 18px;
    z-index: 10005;
    display: flex;
    align-items: center;
}

.barra-progreso {
    width: 0%;
    height: 6px;
    background: #ffffff;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.club-canvas-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100vh;
    width: max-content;
    padding: 70px 60px 30px 60px;
    gap: 40px;
    box-sizing: border-box;
}

.club-block {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.img-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    background: #000;
    transition: transform 0.3s ease;
}

.img-wrapper img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.btn-zoom-trigger {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 45, 38, 0.85);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-zoom-trigger::after {
    content: '⤢';
    color: #fce8a6;
    font-size: 18px;
    font-weight: bold;
}

.btn-zoom-trigger:hover { background: #fce8a6; }
.btn-zoom-trigger:hover::after { color: #111; }

.size-hero { height: 70vh; }
.size-hero-identidad { height: 65vh; }
.size-large { height: 62vh; }
.size-med { height: 45vh; }
.size-small { height: 32vh; }

.pos-top { align-self: flex-start; margin-top: 80px; }
.pos-bottom { align-self: flex-end; margin-bottom: 40px; }
.pos-center { align-self: center; }

.block-texto-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
    margin-right: 20px;
}

.titulo-gta-1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 0.92;
    color: #f5e6ba;
    text-transform: uppercase;
    margin: 0 0 18px 0;
    letter-spacing: 0.5px;
}

.cuerpo-gta-1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.block-galeria-intermedia, .block-galeria-final { gap: 25px; }
.block-identidad { gap: 35px; }

.content-identidad-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.titulo-gta-2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 0.95;
    color: #e2bbf0;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.subtitulo-gta-2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cuerpo-gta-2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #f0e6f5;
    margin: 0;
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox-modal.hidden { display: none !important; }

.btn-cerrar-lightbox {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #233a2e;
    color: #ffffff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s, background 0.2s;
}

.btn-cerrar-lightbox:hover {
    transform: scale(1.1);
    background: #e2bbf0;
    color: #000;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* ==========================================================================
   CONFIGURACIÓN RESPONSIVA EN MÓVIL (ORDEN ESTILO GTA 6)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .navbar.navbar-activa { padding: 12px 20px; }
    .logo { height: 40px; }
    .menu-laptop { display: none; }
    
    .menu-celular-icono { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 18px; cursor: pointer; }
    .menu-celular-icono span { width: 100%; height: 3px; background-color: #ffffff; border-radius: 2px; }
    .navbar.navbar-activa .menu-celular-icono span { background-color: var(--pignis-negro); }

    .gif-intro { width: 100%; height: auto; max-width: 340px; }
    
    .capa-contenido-blanco {
        padding: 20px 20px;
    }

    /* Contenedor Flex para reordenar elementos mediante 'order' */
    .contenido-bloque-gta {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        height: auto;
        min-height: 85vh;
    }

    /* Permite que los elementos de .footer-gta-grid sean hijos directos del flex */
    .footer-gta-grid {
        display: contents;
    }

    /* 1. DISPONIBLE MUY PRONTO (ARRIBA DEL TODO) */
    .col-izq {
        order: 1;
        align-items: center;
        text-align: center;
    }

    /* 2. IMAGEN CENTRAL */
    .contenedor-logo-animado {
        order: 2;
        width: 100%;
        flex-grow: 0;
    }

 /* 3. BANDERAS Y TEXTOS (ENCAJADOS EXACTAMENTE AL ANCHO DE "MUY PRONTO") */
    .col-der {
        order: 3;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 230px; /* Ancho límite alineado con los márgenes de "MUY PRONTO" */
        margin: 4px auto;
    }

    .item-local-gta {
        display: flex;
        align-items: center;
        gap: 5px; /* Espaciado compacto entre bandera y texto */
    }

    .img-bandera-gta {
        width: 24px;
        height: 15px;
        border-radius: 2px;
    }

    .text-gta {
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 1px;
    }

    /* 4. BOTÓN CONÓCENOS (AL FINAL DE TODO) */
    .col-centro {
        order: 4;
        align-items: center;
    }

    .contenedor-portada-capas { 
        height: 32vh; 
        max-width: 95%; 
    }

    .muy-pronto-gta { font-size: 1.8rem; }

    /* Ajustes Sección 4 en móviles */
    .btn-atras-club {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .indicador-scroll-container {
        top: 15px;
        left: auto;
        right: 15px;
        transform: none;
        width: 130px;
        height: 34px;
        padding: 12px 10px;
    }

    .club-canvas-horizontal {
        padding: 60px 30px 20px 30px;
        gap: 25px;
    }

    .size-hero { height: 50vh; }
    .size-hero-identidad { height: 48vh; }
    .size-large { height: 45vh; }
    .size-med { height: 35vh; }
    .size-small { height: 26vh; }

    .block-texto-1 { max-width: 320px; }
    .content-identidad-texto { max-width: 340px; }

    .titulo-gta-1 { font-size: 2.2rem; }
    .titulo-gta-2 { font-size: 2rem; }
    .cuerpo-gta-1, .cuerpo-gta-2 { font-size: 0.95rem; }
}

/* ==========================================================================
   SECCIÓN 5: ESTILOS CON PALETA Y TIPOGRAFÍA DE MARCA PIGNIS
   ========================================================================== */

.seccion-cinco-futuro.seccion-oculta {
    display: none !important;
}

.seccion-cinco-futuro {
    position: relative;
    z-index: 10;
    background-color: #2a1b2c; /* Verde oscuro exacto de la imagen */
    color: #ffffff;
    padding: 60px 20px 80px 20px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.contenedor-centrado-futuro {
    max-width: 650px;
    width: 100%;
    text-align: center; /* Centrado en PC */
    margin-bottom: 40px;
}

/* Título con estilo Punch: Mayúsculas, impacto visual y color crema */
.titulo-futuro {
    font-family: 'Impact', 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    color: #ebd8a2; /* Tono crema exacto de la imagen */
}

.cuerpo-futuro p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 14px;
    color: #ffffff; /* Blanco puro como en el diseño original */
}

/* Parrafo final destacado en negrita */
.cuerpo-futuro .resaltado-futuro {
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    margin-top: 22px;
}

/* CARROUSEL HORIZONTAL */
.slider-bloques-contenedor {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-bloques-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.slider-bloques-track::-webkit-scrollbar {
    display: none;
}

.tarjeta-bloque {
    flex: 0 0 calc(50% - 10px);
    min-width: 280px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* MARCO PROPORCIÓN EXACTA 1080x1350 (4:5) */
.marco-presentacion {
    position: relative;
    width: 100%;
    aspect-ratio: 1080 / 1350;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0b0111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.img-presentacion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.img-presentacion.activo {
    opacity: 1;
}

.flecha-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.marco-presentacion:hover .flecha-nav,
.marco-presentacion:active .flecha-nav {
    opacity: 1;
}

.flecha-izq { left: 10px; }
.flecha-der { right: 10px; }

.etiqueta-bloque {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #ebd8a2;
    text-align: center;
}

/* ALINEACIÓN JUSTIFICADA EN MÓVIL Y CENTRADA EN DESKTOP */
@media (max-width: 768px) {
    .contenedor-centrado-futuro {
        text-align: justify;
    }
    
    .titulo-futuro, 
    .resaltado-futuro {
        text-align: center;
    }

    .tarjeta-bloque {
        flex: 0 0 85%;
    }
    
    .titulo-futuro {
        font-size: 2.2rem;
    }
    
    .cuerpo-futuro p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   ESTILOS DE CRÉDITOS CON FONDO #2a1b2c
   ========================================================================== */

/* Mantiene ocultos los créditos mientras la sección 5 esté oculta */
.creditos-seccion-gta.seccion-oculta {
    display: none !important;
}

.creditos-seccion-gta {
    background-color: #2a1b2c; /* Fondo violeta oscuro solicitado */
    padding: 60px 20px 40px 20px;
    border-top: 1px solid rgba(235, 216, 162, 0.2);
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.creditos-contenedor {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.creditos-titulo-principal {
    font-family: 'Impact', 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #ebd8a2;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.creditos-linea-divisora {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ebd8a2, transparent);
    margin: 20px auto;
    width: 70%;
    opacity: 0.4;
}

.creditos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 20px;
    margin: 30px 0;
}

.credito-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.credito-rol {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.credito-nombre {
    font-family: 'Impact', 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #ebd8a2;
    text-transform: uppercase;
}

.creditos-copy {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
    margin-top: 15px;
}

/* Adaptación responsiva para móviles */
@media (max-width: 600px) {
    .creditos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .creditos-titulo-principal {
        font-size: 1.2rem;
    }
}