/* 
 * components.css - Componentes específicos
 * 
 * Componentes reutilizables con enfoque en rendimiento
 * y protección contra manipulaciones no autorizadas.
 */

/* ==========================================================================
   1. Navegación principal
   ========================================================================== */

/* Contenedor de navegación con propiedades defensivas */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-index-fixed);
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-slow);
    will-change: transform, background-color;
}

/* Estado modificado por scroll */
.nav-scrolled {
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 25, 23, 0.1);
    box-shadow: var(--shadow-md);
}

/* Elementos de navegación con comportamiento controlado */
.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.15em;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.75rem;
    text-decoration: none;
    font-family: var(--font-primary);
}

/* Indicador visual para interacciones */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* Elemento de marca con propiedades de seguridad */
.brand-name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    color: white;
    transition: color var(--transition-fast);
    display: inline-block;
}

/* Título central con manejo de contenido */
.nav-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: white;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    font-weight: 400;
}

/* Botón de reserva con validaciones integradas */
.reserva-btn {
    display: inline-block;
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-fast);
    text-decoration: none;
    background: transparent;
    font-family: var(--font-primary);
}

.reserva-btn:hover {
    background: white;
    color: var(--color-stone);
}

/* ==========================================================================
   12. Página de Equipo (Team) - Versión Bento
   ========================================================================== */

.team-hero {
    min-height: 60vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.team-container {
    background-color: var(--color-cream);
    padding: 6rem 25px;
    /* Margen lateral de 25px según solicitado */
}

.team-bento-section {
    max-width: 100%;
    /* Abarca el ancho de la página */
    margin: 0 auto 12rem auto;
    /* Más espacio entre integrantes */
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-bento-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.team-bento-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Balance asimétrico más moderno */
    grid-template-rows: auto auto;
    gap: 3rem;
    /* Espaciado obligatorio entre imágenes */
    height: 850px;
    /* Imágenes mucho más grandes */
}

/* Áreas comunes */
.bento-image-main {
    grid-row: span 2;
}

.bento-image-sub {
    height: 100%;
}

.bento-text-slot {
    padding: 2rem 0;
    /* Menos encajonado, más como una nota editorial */
    background-color: transparent;
    /* Elimina el look "empresarial" de cajas grises */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
}

/* Variación 1: Grande Izquierda, Texto Abajo Derecha */
.bento-var-1 .bento-image-main {
    grid-column: 1;
}

.bento-var-1 .bento-image-sub {
    grid-column: 2;
    grid-row: 1;
}

.bento-var-1 .bento-text-slot {
    grid-column: 2;
    grid-row: 2;
}

/* Variación 2: Texto Arriba Izquierda, Grande Derecha */
.bento-var-2 .bento-text-slot {
    grid-column: 1;
    grid-row: 1;
}

.bento-var-2 .bento-image-sub {
    grid-column: 1;
    grid-row: 2;
}

.bento-var-2 .bento-image-main {
    grid-column: 2;
}

/* Variación 3: Grande Izquierda, Texto Arriba Derecha */
.bento-var-3 .bento-image-main {
    grid-column: 1;
}

.bento-var-3 .bento-text-slot {
    grid-column: 2;
    grid-row: 1;
}

.bento-var-3 .bento-image-sub {
    grid-column: 2;
    grid-row: 2;
}

/* Variación 4: Texto Abajo Izquierda, Grande Derecha */
.bento-var-4 .bento-image-sub {
    grid-column: 1;
    grid-row: 1;
}

.bento-var-4 .bento-text-slot {
    grid-column: 1;
    grid-row: 2;
}

.bento-var-4 .bento-image-main {
    grid-column: 2;
}

/* Estilos internos de imagen */
.bento-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--color-stone);
}

.bento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    /* IMPORTANTE: Permite que el navegador use suavizado fotográfico */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Propiedad estándar para compatibilidad */
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Utilidades para encuadre de fotos (object-position) */
.obj-top {
    object-position: top;
}

.obj-bottom {
    object-position: bottom;
}

.obj-center {
    object-position: center;
}

.obj-left {
    object-position: left;
}

.obj-right {
    object-position: right;
}

/* Para ajustes finos (ej: mostrar más arriba pero no del todo al tope) */
.obj-top-20 {
    object-position: 50% 20%;
}

.obj-top-30 {
    object-position: 50% 30%;
}

.obj-top-40 {
    object-position: 50% 40%;
}

.team-bento-section:hover .bento-img-wrapper img {
    transform: scale(1.08);
}

/* Tipografía en Bento - Estilo Editorial */
.member-label {
    font-size: 0.65rem;
    letter-spacing: 0.5em;
    /* Más aireado */
    color: var(--color-olive);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.member-name {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-stone);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-weight: 400;
    /* Menos peso para mayor elegancia */
}

.member-role {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--color-taupe);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.member-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(28, 25, 23, 0.7);
    font-weight: 300;
    max-width: 420px;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-bento-grid {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .team-bento-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }

    .bento-text-slot {
        padding: 2.5rem 1.5rem;
        order: -1;
        /* Texto siempre arriba en móvil para contexto */
    }

    .bento-image-main {
        aspect-ratio: 1;
    }

    .bento-image-sub {
        aspect-ratio: 4/3;
    }
}

/* Minimalist Site Header (KUDHVA Style) */
.site-header {
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-cream);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.header-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--color-stone);
    text-transform: uppercase;
}

.logo-slogan {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-taupe);
    text-transform: uppercase;
    margin-top: 5px;
}

.header-nav {
    display: flex;
    gap: 2.5rem;
}

.header-nav a {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-stone);
    text-transform: capitalize;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.header-nav a:hover {
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .site-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Estados de navegación para diferentes contextos */
.nav-scrolled .nav-link {
    color: var(--color-stone);
}

.nav-scrolled .brand-name {
    color: var(--color-stone);
}

.nav-scrolled .nav-title {
    color: var(--color-stone);
}

.nav-scrolled .reserva-btn {
    border-color: var(--color-stone);
    color: var(--color-stone);
}

.nav-scrolled .reserva-btn:hover {
    background: var(--color-stone);
    color: var(--color-cream);
}

/* ==========================================================================
   2. Menú móvil con controles de acceso
   ========================================================================== */

/* Contenedor principal del menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-cream);
    z-index: var(--z-index-modal-backdrop);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow: hidden;
}

/* Estado activo del menú */
.mobile-menu.active {
    transform: translateX(0);
}

/* Contenido interno con estructura segura */
.mobile-menu-content {
    padding-top: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Elemento de marca móvil */
.mobile-logo {
    margin-bottom: 3rem;
    text-align: center;
}

.mobile-logo span {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-stone);
}

/* Navegación móvil con controles táctiles */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.mobile-nav-item {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--color-stone);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-nav-item:hover {
    color: var(--color-olive);
}

/* Botón de reserva móvil */
.mobile-reserva-btn {
    border: 1px solid var(--color-stone);
    padding: 0.75rem 2rem;
    color: var(--color-stone);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.mobile-reserva-btn:hover {
    background: var(--color-stone);
    color: var(--color-cream);
}

/* Controles de cierre del menú */
.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--color-taupe);
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.mobile-close-btn:hover {
    color: var(--color-stone);
}

/* ==========================================================================
   3. Sección Hero con controles de medios
   ========================================================================== */

/* Contenedor principal del hero */
.hero-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Elemento de video con propiedades de rendimiento */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Capa de superposición para mejorar legibilidad */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            transparent 70%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

/* Contenido principal con posicionamiento seguro */
.hero-content {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor interno del contenido */
.hero-inner {
    text-align: center;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título principal con escalado responsivo */
.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.85;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

/* Subtítulo con propiedades tipográficas */
.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: white;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* Llamada a la acción con interacciones controladas */
.hero-cta {
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.cta-text {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 0.5rem;
    transition: border-color var(--transition-fast);
}

.cta-icon {
    margin-left: 1.5rem;
    transition: transform var(--transition-fast);
}

.hero-cta:hover .cta-text {
    border-color: white;
}

.hero-cta:hover .cta-icon {
    transform: translateX(0.5rem);
}

/* Indicador de scroll con animaciones controladas */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

.indicator-container {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.indicator-bar {
    width: 1.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
}

.indicator-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.125rem;
    margin-top: 0.5rem;
    animation: bounce 2s ease infinite;
}

/* ==========================================================================
   4. Sección About con estructura segura - VERSIÓN RESPONSIVA
   ========================================================================== */

/* Contenedor principal */
.about-section {
    position: relative;
    min-height: auto;
    margin-left: 0;
    overflow: hidden;
}

/* Grid para disposición de contenido */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 7fr 3fr;
        height: 100vh;
    }
}

/* Contenedor de imagen con medidas de protección */
.about-image-container {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .about-image-container {
        height: 100%;
    }
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* === CARRUSEL AUTOMÁTICO DE PROGRESO === */
.progress-carousel {
    position: relative;
    overflow: hidden;
    background-color: var(--color-stone);
    /* Evita destellos blancos durante transiciones */
}

.progress-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* 20s total loop = 5s per slide (4s fully visible, 1s crossfade) */
    animation: progressFade 20s linear infinite;
    will-change: opacity, transform;
}

/* Tiempos en negativo para que la animación empiece en paralelo pero desplazada en la línea de tiempo, evitando saltos */
.progress-slide.slide-1 {
    animation-delay: 0s;
}

.progress-slide.slide-2 {
    animation-delay: -15s;
}

.progress-slide.slide-3 {
    animation-delay: -10s;
}

.progress-slide.slide-4 {
    animation-delay: -5s;
}

@keyframes progressFade {
    0% {
        opacity: 1;
        transform: scale(1.05);
    }

    20% {
        opacity: 1;
        transform: scale(1.01);
    }

    25% {
        opacity: 0;
        transform: scale(1);
    }

    95% {
        opacity: 0;
        transform: scale(1.07);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Elemento decorativo con información contextual - VERSIÓN RESPONSIVA */
/* NOTA: El año ahora está posicionado en el HTML con clases de Tailwind */

/* Contenedor de contenido textual */
.about-content {
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    min-height: 60vh;
}

@media (min-width: 768px) {
    .about-content {
        padding: 4rem;
        min-height: 100vh;
    }
}

.about-text {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
}

/* Elementos textuales con jerarquía visual */
.about-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-taupe);
    margin-bottom: 1rem;
    display: block;
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-stone);
    margin-bottom: 2rem;
}

.about-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-paragraphs p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-stone);
}

.about-paragraphs strong {
    font-weight: 600;
}

/* Botón de acción */
.btn-about {
    display: inline-block;
    background: var(--color-stone);
    color: var(--color-cream);
    padding: 1rem 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.btn-about:hover {
    background: #2a2624;
}

/* Ajustes responsivos específicos para el año */
@media (max-width: 767px) {
    .about-image-container .absolute {
        width: 80px !important;
        height: 80px !important;
        padding: 1rem !important;
    }

    .about-image-container .big-number {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .about-image-container .absolute {
        width: 120px !important;
        height: 120px !important;
        padding: 1.5rem !important;
    }

    .about-image-container .big-number {
        font-size: 3rem !important;
    }
}

@media (min-width: 1024px) {
    .about-image-container .absolute {
        width: 180px !important;
        height: 180px !important;
        padding: 2rem !important;
    }

    .about-image-container .big-number {
        font-size: 5rem !important;
    }
}

/* ==========================================================================
   5. Sistema de cabañas con controles de interacción
   ========================================================================== */

/* Contenedor principal de la sección */
.cabins-section {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Grid de cabañas con disposición responsiva */
.cabins-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    gap: 15px;
    background-color: var(--color-cream);
}

@media (min-width: 1024px) {
    .cabins-grid {
        grid-template-columns: repeat(3, 1fr);
        height: 100vh;
        gap: 15px;
        background-color: var(--color-cream);
    }
}

/* Etiquetas laterales decorativas */
.cabin-side-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--color-taupe);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
    text-transform: uppercase;
}

.side-left {
    left: -1rem;
    transform-origin: left center;
}

.side-right {
    right: -1rem;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
}

@media (max-width: 1200px) {
    .cabin-side-label {
        display: none;
    }
}

/* Elemento individual de cabaña */
.cabin-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    isolation: isolate;
}

/* Sistema de carrusel con controles de acceso */
.cabin-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Controles de navegación del carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-control.prev {
    left: 1.25rem;
}

.carousel-control.next {
    right: 1.25rem;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.cabin-item:hover .carousel-control {
    opacity: 1;
}

/* Sistema de indicadores de posición */
.carousel-indicators {
    position: absolute;
    bottom: 1.875rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Contenido informativo de la cabaña */
.cabin-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 3.75rem 2.5rem 2.5rem;
    z-index: 5;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cabin-name {
    font-size: 1.8rem;
    font-weight: 400;
    color: white;
    margin-bottom: 0.625rem;
    font-family: var(--font-primary);
}

.cabin-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5625rem;
    max-width: 90%;
}

/* ==========================================================================
   6. Botones de reserva - Versión simplificada y flexible
   ========================================================================== */

/* Botón de acción para reservas - VERSIÓN SIMPLIFICADA */
.cabin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    height: 3rem;
    background: black;
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    padding: 0 2rem;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Versión para enlaces <a> */
a.cabin-btn {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-bottom: none !important;
}

/* Efecto hover simplificado - funciona para ambos botones y enlaces */
.cabin-btn:hover {
    background: white;
    color: black;
    border: 1px solid black;
}

/* Versión responsiva para móviles */
@media (max-width: 640px) {
    .cabin-btn {
        min-width: 8rem;
        height: 2.5rem;
        font-size: 0.7rem;
        padding: 0 1.5rem;
    }
}

/* ==========================================================================
   7. Sistema de experiencias y Galería Bento
   ========================================================================== */

/* Portada de Impacto (Dark Hero) */
.dark-hero {
    height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.dark-hero-content {
    z-index: 2;
    padding: 0 2rem;
}

.dark-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.dark-hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(0.75rem, 2vw, 1rem);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1.2s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nueva Galería Bento Inmersiva */
.bento-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 45vh);
    gap: 15px;
    padding: 30px 15px;
    background-color: var(--color-cream);
    width: 100%;
}

.bento-section-title {
    background-color: var(--color-cream);
    padding: 4rem 2rem 0;
    text-align: center;
}

.bento-section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.bento-section-title p {
    font-size: 0.9rem;
    color: var(--color-stone);
    max-width: 600px;
    margin: 0 auto;
}

.bento-slot {
    position: relative;
    overflow: hidden;
    background-color: var(--color-stone);
}

.slot-large {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .bento-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .slot-large {
        grid-row: span 1;
        height: 60vh;
    }

    .bento-slot {
        height: 40vh;
    }
}

/* Carrusel de Galería - Adaptación */
.gallery-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-carousel .carousel-track {
    display: flex;
    height: 100%;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-carousel .carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.gallery-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hotspots (Puntos de Interacción) */
.hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-olive);
}

.hotspot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: pulse-hotspot 2s infinite;
}

@keyframes pulse-hotspot {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hotspot-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 25, 23, 0.95);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.75rem;
    width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hotspot:hover .hotspot-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Overlay de información en Galería */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 10;
}

.gallery-overlay h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 80%;
}

.experiences-section {
    padding: 5rem 0;
    background-color: white;
}

@media (min-width: 768px) {
    .experiences-section {
        padding: 8rem 0;
    }
}

.experiences-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cabecera de sección */
.experiences-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .experiences-header {
        margin-bottom: 5rem;
    }
}

.experiences-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-taupe);
    margin-bottom: 1rem;
    display: block;
}

.experiences-title {
    font-size: clamp(1.875rem, 4vw, 3.75rem);
    font-weight: 400;
    color: var(--color-stone);
    margin-bottom: 1.5rem;
}

.experiences-subtitle {
    font-size: 1rem;
    color: var(--color-stone);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .experiences-subtitle {
        font-size: 1.125rem;
    }
}

/* Grid de experiencias */
.experiences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .experiences-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Tarjeta de experiencia individual */
.experience-card {
    position: relative;
    height: 25rem;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

@media (max-width: 640px) {
    .experience-card {
        height: 18.75rem;
    }
}

.experience-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.experience-card:hover .experience-image {
    transform: scale(1.05);
}

.experience-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.experience-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .experience-name {
        font-size: 1.75rem;
    }
}

.experience-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ==========================================================================
   8. Sistema de contacto con validaciones
   ========================================================================== */

/* Contenedor principal */
.contact-section {
    padding: 5rem 0;
    background-color: var(--color-cream);
}

@media (min-width: 768px) {
    .contact-section {
        padding: 8rem 0;
    }
}

.contact-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cabecera de sección */
.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 400;
    color: var(--color-stone);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--color-stone);
    opacity: 0.7;
}

/* Grid de disposición */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Elemento de mapa */
.contact-map {
    height: 31.25rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.25rem;
    color: var(--color-olive);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-stone);
    margin-bottom: 0.25rem;
}

.contact-item-text {
    font-size: 1rem;
    color: var(--color-stone);
    line-height: 1.6;
    opacity: 0.8;
}

.contact-link {
    font-size: 1rem;
    color: var(--color-olive);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-stone);
}

/* Llamada a la acción de contacto */
.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--color-olive);
    color: white;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    margin-top: 1rem;
}

.contact-cta:hover {
    background: #2e3a30;
    transform: translateY(-2px);
}

.cta-icon {
    font-size: 1rem;
}

/* ==========================================================================
   9. Sistema de footer con información estructurada
   ========================================================================== */

/* Contenedor principal */
.footer {
    background: var(--color-stone);
    color: var(--color-cream);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid de disposición */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

/* Elemento de marca */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-cream);
}

.footer-subtitle {
    font-size: 1.125rem;
    color: rgba(250, 247, 242, 0.7);
    font-family: 'Playfair Display', serif;
}

.footer-text {
    font-size: 0.875rem;
    color: rgba(250, 247, 242, 0.6);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Navegación del footer */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.875rem;
    color: rgba(250, 247, 242, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-cream);
}

/* Información de contacto */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-whatsapp {
    font-size: 0.875rem;
    color: #25d366;
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-top: 0.5rem;
}

.footer-whatsapp:hover {
    color: #128c7e;
}

/* Sección de redes sociales */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    color: var(--color-cream);
    font-size: 1.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    opacity: 0.8;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-4px);
    opacity: 1;
    color: white;
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Divisor visual */
.footer-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, var(--color-taupe), transparent);
    margin: 2rem 0;
}

/* Información inferior */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(250, 247, 242, 0.5);
    margin-bottom: 0.5rem;
}

.footer-location {
    font-size: 0.75rem;
    color: rgba(250, 247, 242, 0.5);
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   10. Animaciones controladas
   ========================================================================== */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* ==========================================================================
   11. Utilidades específicas para componentes
   ========================================================================== */

/* Números grandes con propósito decorativo */
.big-number {
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: 1;
    font-weight: 300;
    opacity: 0.1;
    pointer-events: none;
}

/* Botón premium para acciones destacadas */
.btn-premium {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--color-stone);
    color: var(--color-stone);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-stone);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-premium:hover {
    color: var(--color-cream);
}

.btn-premium:hover::before {
    left: 0;
}

/* Sistema de cursor personalizado */
.interactive {
    cursor: pointer;
}

.interactive:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%231c1917' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, pointer;
}


/* ==========================================================================
   11. Sistema de Morphing - VERSIÓN MINIMALISTA
   ========================================================================== */

/* Overlay minimalista - Mejorado para Hostinger */
.morph-overlay-minimal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    /* Usar z-index muy alto para asegurar que esté sobre todo */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    will-change: opacity, visibility;
    /* Optimización de rendimiento */
}

.morph-overlay-minimal.active,
.morph-overlay-minimal[data-state="open"] {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Fondo con gradiente sutil - Con prefijos vendor */
.morph-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    /* Prefijos vendor para mejor compatibilidad */
    -webkit-backdrop-filter: blur(5px);
    -moz-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.morph-overlay-minimal.active .morph-backdrop,
.morph-overlay-minimal[data-state="open"] .morph-backdrop {
    opacity: 1;
}

/* Contenido minimalista - Con prefijos vendor */
.morph-content-minimal {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    -webkit-transform: translateY(10px);
    -moz-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    -moz-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    will-change: opacity, transform;
}

.morph-overlay-minimal.active .morph-content-minimal,
.morph-overlay-minimal[data-state="open"] .morph-content-minimal {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    transform: translateY(0);
}

/* Navegación minimalista */
.morph-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.morph-nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    -webkit-transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    transform: translateX(-20px);
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: opacity, transform;
}

.morph-overlay-minimal.active .morph-nav-item,
.morph-overlay-minimal[data-state="open"] .morph-nav-item {
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    transform: translateX(0);
}

/* Retrasos escalonados */
.morph-overlay-minimal.active .morph-nav-item:nth-child(1) {
    transition-delay: 0.3s;
}

.morph-overlay-minimal.active .morph-nav-item:nth-child(2) {
    transition-delay: 0.4s;
}

.morph-overlay-minimal.active .morph-nav-item:nth-child(3) {
    transition-delay: 0.5s;
}

.morph-overlay-minimal.active .morph-nav-item:nth-child(4) {
    transition-delay: 0.6s;
}

/* Línea decorativa */
.morph-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-olive);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto hover - Con prefijos vendor */
.morph-nav-item:hover {
    color: white;
    -webkit-transform: translateX(10px);
    -moz-transform: translateX(10px);
    transform: translateX(10px);
}

.morph-nav-item:hover::before {
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    transform: scaleY(1);
}

.morph-nav-item:hover .morph-nav-arrow {
    opacity: 1;
    -webkit-transform: translateX(5px);
    -moz-transform: translateX(5px);
    transform: translateX(5px);
}

/* Números */
.morph-nav-number {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    min-width: 2rem;
    transition: color 0.3s ease;
}

.morph-nav-item:hover .morph-nav-number {
    color: var(--color-olive);
}

/* Texto */
.morph-nav-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    flex: 1;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .morph-nav-text {
        font-size: 2rem;
    }
}

/* Flecha */
.morph-nav-arrow {
    font-size: 1rem;
    color: var(--color-olive);
    opacity: 0;
    transform: translateX(0);
    transition: all 0.3s ease;
}

/* Botón de cerrar minimalista - Con prefijos vendor */
.morph-close-minimal {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    transform: rotate(90deg);
    will-change: opacity, transform;
}

.morph-overlay-minimal.active .morph-close-minimal,
.morph-overlay-minimal[data-state="open"] .morph-close-minimal {
    opacity: 1;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition-delay: 0.8s;
    -moz-transition-delay: 0.8s;
    transition-delay: 0.8s;
}

.morph-close-minimal:hover {
    border-color: white;
    color: white;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Efecto del botón trigger */
.morph-trigger {
    position: relative;
    z-index: 1;
}

/* Animación del hero cuando se activa el morphing */
.hero-container.morphing .hero-content {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Texto para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   GALERÍA CINEMÁTICA - PLAIN CSS (Sin Tailwind)
   ===================================================== */

#galleryModal {
    display: none;
    /* Hidden by default */
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#galleryModal.gallery-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

#galleryModal.gallery-visible {
    opacity: 1;
}

#galleryBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 8, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}

#closeGalleryBtn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#closeGalleryBtn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: rotate(90deg);
}

#prevGalleryBtn,
#nextGalleryBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 1rem;
    transition: all 0.3s ease;
}

#prevGalleryBtn:hover,
#nextGalleryBtn:hover {
    color: white;
    transform: translateY(-50%) scale(1.15);
}

#prevGalleryBtn {
    left: 1.5rem;
}

#nextGalleryBtn {
    right: 1.5rem;
}

#galleryInfo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    z-index: 10;
}

#galleryInfo h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 0.25rem 0;
    font-weight: 300;
    opacity: 0.9;
}

#galleryInfo p {
    font-size: 0.85rem;
    opacity: 0.5;
    letter-spacing: 0.1em;
    margin: 0;
}

#galleryImageWrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
    width: 100%;
    height: 100%;
    z-index: 5;
}

#galleryImage {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 2px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

#galleryImage.img-visible {
    opacity: 1;
}

#galleryLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
}

#galleryLoader.loader-hidden {
    display: none;
}

/* Evitar scroll cuando el modal está abierto */
body.gallery-active {
    overflow: hidden;
}

/* btn-gallery-trigger styling */
.btn-gallery-trigger {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
}

.btn-gallery-trigger:hover {
    border-color: rgba(255, 255, 255, 0.5);
    padding-left: 0.5rem;
}

.btn-gallery-trigger:hover .gallery-trigger-icon {
    opacity: 1;
    transform: translateX(4px);
}