/* ==========================================================================
   REDCLUB SW PANAMÁ - OFFICIAL STYLESHEET 2026
   
   DESIGN: PREMIUM ASYMMETRIC & RESPONSIVE
========================================================================== 
*/

/* --- Definición de la fuente --- */
@font-face {
    font-family: 'beyond'; /* El nombre que tú quieras darle */
    src: url('../fonts/Above\ the\ Beyond\ Script.woff2') format('woff2'),
         url('../fonts/nombre-archivo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Importante para que el texto sea visible mientras carga */
}

:root {
    --wine-red: #630d0d;
    --wine-red-light: #a11b1b;
    --wine-red-dark: #2a0505;
    --deep-black: #0a0a0a;
    --white: #ffffff; 
    --glass-bg: rgba(10, 10, 10, 0.9);
    /* Nueva variable para el gris elegante */
    --elegant-grey: rgba(255, 255, 255, 0.3);
    --gris: #a0a0a0;
    --transition-smooth: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    background-color: var(--deep-black);
    color: var(--white);
    overflow-x: hidden;
    width: 100%
}

/* ==========================================================================
   TIPOGRAFÍA Y JERARQUÍA (RALEWAY)
   ========================================================================== */

/* Regla para todos los títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700; /* Títulos siempre potentes */
    text-transform: none;
}

/* Regla para todos los párrafos */

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Ligero y elegante */
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: #e0e0e0; /* O tu color de texto preferido */
}



/* ==========================================================================
   HEADER & RESPONSIVE NAVIGATION - REDCLUB SW
   Optimizado: Estructura semántica sin dependencias externas
========================================================================== 
*/

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background: transparent;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease, border 0.4s ease;
}

.glass-header.scrolled {
    padding: 15px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ajustes del Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo img {
    max-height: 90px;
    width: auto;
    display: block;
    transition: max-height 0.4s ease;
}

.glass-header.scrolled .logo img {
    max-height: 50px;
}

/* Navegación */
.nav-container {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    color: var(--white);
    text-decoration: none;
    margin-left: 35px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: var(--wine-red-light);
}

/* Menú Toggle (Móvil) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Estilo del botón Reservar */
.nav-list li .nav-cta {
    background-color: var(--wine-red-light);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-left: 35px;
    display: inline-block; 
}

.nav-list li .nav-cta:hover {
    background-color: #b02630;
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   MEDIA QUERIES - TABLETS & MOBILE RESPONSIVE
========================================================================== 
*/

@media (max-width: 1024px) {
    .glass-header { padding: 20px 40px; }
    .nav-list li a { margin-left: 20px; font-size: 0.75rem; }
}

@media (max-width: 768px) {
    .glass-header { padding: 20px; }
    .menu-toggle { display: flex; }

    /* Menú móvil optimizado para evitar scroll horizontal */
    .nav-container {
        display: none;
        position: fixed;
        top: 0;
        right: -100%; /* Cambiado para transición suave desde fuera */
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--deep-black);
        padding-top: 100px;
        z-index: 999;
        flex-direction: column;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-container.active {
        display: flex;
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-list li a, .nav-list li .nav-cta {
        margin: 15px 0;
        font-size: 1rem;
        display: block;
    }

    .nav-list li .nav-cta {
        margin-left: 0;
        padding: 12px 40px;
    }

    /* Transformación a X */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .logo img { max-height: 60px; }
}

@media (max-width: 480px) {
    .glass-header { padding: 15px; }
    .logo img { max-height: 50px; }
}

/* ==========================================================================
   HERO SECTION - REDCLUB SW
========================================================================== 
*/

.hero {
    height: 100vh;
    background: radial-gradient(circle, var(--wine-red) 0%, var(--wine-red-dark) 40%, var(--deep-black) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Ajuste del Logo Imagen */
.logo-hero-img {
    max-width: 500px;
    width: 90%; 
    height: auto;
    animation: fadeInScale 1.5s ease-out;
    margin-bottom: 10px;
}

/* Oculta elementos visualmente pero los mantiene accesibles para SEO y lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Hero Tagline */
.hero-tagline {
    font-family: 'beyond', sans-serif;
    font-weight: 500;
    /* Un tamaño mayor es necesario para que esta fuente se lea bien */
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
    letter-spacing: 0px; 
    text-transform: none; 
    margin-top: 30px;
    text-align: center;
    color: var(--white);
    width: 100%;
    line-height: 1.2;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--white);
    border-radius: 20px;
    display: block;
    position: relative;
    opacity: 0.5;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* ==========================================================================
   MEDIA QUERIES - HERO RESPONSIVE
========================================================================== 
*/

/* TABLETS (Hasta 1024px) */
@media (max-width: 1024px) {
    .logo-hero-img {
        max-width: 400px;
    }
    .hero-tagline {
        font-size: 0.85rem;
    }
}

/* MOBILE (Hasta 768px) */
@media (max-width: 768px) {
    .logo-hero-img {
        max-width: 320px;
    }
    .hero-tagline {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
}

/* SMALL MOBILE (Hasta 480px) */
@media (max-width: 480px) {
    .logo-hero-img {
        max-width: 260px;
    }
    .hero-tagline {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    .hero {
        padding: 10px;
    }
}


/* ==========================================================================
   SOBRE NOSOTROS (FONDO NEGRO - DISEÑO PREMIUM)
========================================================================== 
*/

.section-dark {
    padding: 160px 0;
    background-color: var(--deep-black);
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.about-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.eyebrow {
    color: var(--wine-red-light);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.premium-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.text-wine { color: var(--wine-red-light); }

.premium-p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.premium-p strong { color: var(--white); font-weight: 600; }

.premium-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item { display: flex; align-items: center; gap: 15px; }

.feature-dot {
    width: 8px;
    height: 8px;
    background-color: var(--wine-red-light);
    border-radius: 50%;
}

.feature-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin: 0;
}

/* Contenedor Visual */
.about-visual-box {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.main-img-wrapper {
    width: 90%; 
    height: 550px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.6s ease;
    position: relative;
}

.img-placeholder-lg {
    width: 100%;
    height: 100%;
    background-image: url('../img/entrada.jpeg');
    background-size: cover;
    background-position: center;
}

.main-img-wrapper:hover { transform: scale(1.02); }

/* Etiqueta flotante */
.experience-tag {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: var(--white);
    color: var(--deep-black);
    padding: 30px 40px;
    border-radius: 2px;
    text-align: center;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.7);
    z-index: 3;
    border-top: 4px solid var(--wine-red);
}

.tag-year {
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    display: block;
    color: var(--wine-red);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.experience-tag p {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: var(--wine-red-light);
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    margin: 0;
}

/* Ajustes Responsivos */
@media (max-width: 992px) {
    .section-dark { 
        padding: 100px 0; 
    }
    .about-premium-grid { 
        grid-template-columns: 1fr; gap: 60px; 
    }
    .about-visual-box { 
        justify-content: center; 
    }
    
    /* Efecto "más delgado" en móvil */
    .main-img-wrapper {
        width: 100%; 
        height: 350px; /* Reducimos altura para estilizar */
    }
}

@media (max-width: 480px) {
    .experience-tag {
        padding: 20px 25px; /* Reducimos padding de la etiqueta */
    }
    .tag-year { 
        font-size: 1.1rem;
     }
    .experience-tag p { 
        font-size: 0.6rem; letter-spacing: 1px;
     }
}


/* ==========================================================================
   SECCIÓN EVENTOS - REDCLUB SW (COMPLETO Y CORREGIDO)
========================================================================== 
*/

.section-red {
    padding: 160px 0;
    background: radial-gradient(circle, var(--wine-red) 0%, var(--wine-red-dark) 40%, var(--deep-black) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-eyebrow {
    color: var(--wine-red-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

/* CARROUSEL CONTAINER */

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.events-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none;
    width: 100%;
    scroll-behavior: smooth; 
    will-change: scroll-position;
}

.events-carousel::-webkit-scrollbar {
    display: none;
}

/* NAVEGACIÓN (Botones Corregidos) */

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--white);
    color: var(--deep-black);
}

.nav-btn.prev { 
    left: 20px; 
}
.nav-btn.next { 
    right: 20px; 
}

/* GLASSMORPHISM CARD */

.event-card {
    width: 300px;
    height: 480px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
    scroll-padding-left: 20px;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* IMAGEN Y OVERLAY - Ajuste para mostrar imagen completa */

.event-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 'contain' muestra la imagen completa sin recortar */
    object-fit: contain;
    /* Fondo negro para rellenar los espacios vacíos si la imagen no es 1:1 */
    background-color: #000;
    z-index: 1;
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

/* FECHA */

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 8px 12px;
    text-align: center;
    border-radius: 4px;
    border-left: 3px solid var(--wine-red-light);
}

.event-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
}

.event-date .month {
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CUERPO DE TARJETA */

.event-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 3;
}

.event-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--white);
}

.event-body p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.location-tag {
    color: var(--wine-red-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.btn-card-action {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: 0.3s;
    background: transparent; 
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.event-card:hover .btn-card-action {
    background: var(--wine-red-light);
    border-color: var(--wine-red-light);
}

.swipe-hint {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--white);
    opacity: 0.6;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
    .nav-btn { display: none; }
}

@media (max-width: 768px) {
    .section-red { padding: 80px 0; }
    .events-header { margin-bottom: 40px; }
    
    .carousel-wrapper { 
        padding: 0; 
        width: 100%;
        overflow: hidden;
    }
    
    .events-carousel {
        display: flex;
        overflow-x: auto;
        padding: 20px 20px; 
        gap: 20px; 
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px; 
    }
    
    .event-card {
        width: 280px;
        flex-shrink: 0;
        scroll-snap-align: center; 
        margin: 0; 
    }

    .swipe-hint {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        color: var(--white);
        opacity: 0.6;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        pointer-events: none;
        animation: pulse 2s infinite;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* ==========================================================================
   ESTILO BOTÓN CALENDARIO - SECCIÓN EVENTOS
========================================================================== 
*/

.calendar-action-container {
    text-align: center;
    margin-top: 40px;
}

.btn-calendar-link {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calendar-link:hover {
    background: var(--wine-red-light);
    color: var(--black);
    border-color: var(--white);
}

/* Ajuste para que se vea bien en móviles */
@media (max-width: 576px) {
    .btn-calendar-link {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   SECCIÓN REGLAMENTOS - SECTION-DARK (ESTILO PREMIUM)
========================================================================== 
*/

.section-dark {
    padding: 120px 0;
    background-color: var(--deep-black);
    color: var(--white);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.rule-card {
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid var(--wine-red-light);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efecto de elevación solo para dispositivos de escritorio (con mouse) */
@media (min-width: 1025px) {
    .rule-card:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: var(--wine-red-light);
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(184, 15, 48, 0.2);
    }
}

.rule-card i {
    font-size: 2rem;
    color: var(--wine-red-light);
    margin-bottom: 25px;
    display: block;
}

.rule-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
}

.rule-card p {
    font-size: 0.9rem;
    color: var(--gris);
    line-height: 1.7;
    font-weight: 300;
}

/* RESPONSIVE DESIGN PARA REGLAMENTOS */

@media (max-width: 1024px) {
    /* Tablet: 2 columnas */
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Móvil: 2 columnas, diseño ultra compacto para evitar estiramientos */
    .section-dark {
        padding: 80px 0;
    }

    .rules-grid {
        grid-template-columns: repeat(2, 1fr); /* Mantenemos las 2 columnas */
        gap: 12px; /* Reducimos el espacio entre tarjetas para aprovechar el ancho */
        margin-top: 40px;
    }

    .rule-card {
        padding: 20px 12px; /* Reducimos el relleno interno para que el texto respire */
        border-radius: 15px; /* Suavizamos un poco el borde para pantallas pequeñas */
    }

    .rule-card i {
        font-size: 1.4rem; /* Iconos más compactos */
        margin-bottom: 12px;
    }

    .rule-card h3 {
        font-size: 0.85rem; /* Título optimizado para espacios estrechos */
        margin-bottom: 8px;
        letter-spacing: 0.5px; /* Menos espacio entre letras para que quepa mejor */
        line-height: 1.2;
    }

    .rule-card p {
        font-size: 0.75rem; /* Texto legible pero sin forzar saltos de línea extremos */
        line-height: 1.5;
    }
}

/* ==========================================================================
   SECCIÓN VESTIMENTA - SECTION-RED (CARTAS COMPACTAS E IMAGEN COMPLETA)
========================================================================== 
*/

.section-red {
    padding: 120px 0;
    background-color: var(--wine-red);
    color: var(--white);
}

.dress-code-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.dress-card {
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.4s ease;
    /* Efecto Cristal Oscuro */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Personalidad de cada tarjeta */
.dress-card.forbidden {
    border-top: 3px solid rgba(0, 0, 0, 0.6);
}

.dress-card.allowed {
    border-top: 3px solid rgba(255, 255, 255, 0.5); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contenedor más compacto con fondo tipo "marco" */
.dress-image-wrapper {
    width: 100%;
    height: 320px; /* Altura controlada para no estirar la carta verticalmente */
    background-color: rgba(0, 0, 0, 0.3); /* Fondo oscuro para enmarcar la imagen si sobran los lados */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Transición Editorial en la Imagen */
.dress-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

.dress-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* La magia aquí: muestra la imagen COMPLETA siempre */
    object-position: center; 
    transition: transform 0.5s ease;
}

/* Efecto hover elegante para desktop */
@media (min-width: 1025px) {
    .dress-card:hover {
        transform: translateY(-5px);
    }
    .dress-card:hover .dress-image-wrapper img {
        transform: scale(1.04);
    }
}

/* Espaciado interno para el contenido ajustado para ser más compacto */
.dress-card-content {
    padding: 35px;
}

.dress-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: none;
    letter-spacing: 1.5px;
}

.dress-list {
    list-style: none;
    padding: 0;
}

.dress-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.dress-list li i {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.theme-note {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dress-code-grid {
        grid-template-columns: 1fr;
    }
    .dress-image-wrapper {
        height: 280px; /* Altura aún más compacta en móviles */
    }
    .dress-card-content {
        padding: 25px;
    }
}

/* ==========================================================================
   SECCIÓN FAQ - SECTION-DARK (ESTILO PREMIUM CON TRANSICIÓN SUAVE)
========================================================================== 
*/

.section-dark {
    padding: 120px 0;
    background-color: var(--black);
    color: var(--white);
}

.about-content-box {
    text-align: center;
    margin-bottom: 60px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border-left: 4px solid transparent; /* Base para el borde lateral */
}

/* Efecto al estar activo */
.faq-item.active {
    border-color: var(--wine-red);
    border-left: 4px solid var(--wine-red);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 25px;
    text-align: left;
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Hover con pequeño movimiento hacia la derecha */
.faq-question:hover {
    color: var(--wine-red);
    padding-left: 30px;
}

/* Flecha animada */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--wine-red);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

/* Transición suave de la respuesta */
.faq-answer {
    max-height: 0;
    opacity: 0; /* Añadimos opacidad para un efecto más elegante */
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.3s ease, 
                opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    /* "scrollHeight" es una propiedad que mide el contenido exacto */
    /* Lo manejaremos desde JS para que sea perfecto sin importar el largo */
    opacity: 1;
    padding-bottom: 25px;
}

/* Ajuste de tu clase premium-p */
.faq-answer .premium-p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.8;
}

/* RESPONSIVE */

/* Tablets (iPad, tablets grandes) */
@media (max-width: 1024px) {
    .section-dark {
        padding: 100px 0;
    }
    .faq-grid {
        padding: 0 20px; /* Evita que las tarjetas toquen los bordes de la pantalla */
    }
}

/* Móviles y dispositivos pequeños */
@media (max-width: 768px) {
    .section-dark {
        padding: 80px 0;
    }
    
    .faq-item {
        border-radius: 12px;
    }

    .faq-question {
        padding: 20px 15px; /* Menor padding lateral para aprovechar el ancho */
        font-size: 0.95rem; /* Ligeramente más pequeño para evitar saltos de línea forzados */
        line-height: 1.4;
    }

    .faq-question:hover {
        padding-left: 15px; /* Mantiene consistencia */
    }
}

/* Dispositivos muy pequeños (menos de 480px) */
@media (max-width: 480px) {
    .about-content-box .premium-title {
        font-size: 1.8rem; /* Título más compacto para que no se corte */
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 18px 12px;
    }

    .faq-answer .premium-p {
        font-size: 0.9rem; /* Texto de respuesta más legible en pantallas diminutas */
    }
}

/* ==========================================================================
   SECCIÓN GALERÍA - SECTION-RED (GRID MOSAICO)
========================================================================== 
*/

.section-red {
    padding: 120px 0;
    background-color: var(--wine-red);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000; /* Fondo negro para que los espacios de 'contain' se vean integrados */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* Cambiado a 'contain' para mostrar la imagen total sin recortar */
    object-fit: contain;
    transition: transform 0.6s ease;
}

/* Clases para controlar la orientación de la imagen (mantienen su función para posicionamiento) */
.img-vertical img { 
    object-position: center; 
} 
.img-horizontal img { 
    object-position: center; 
}

/* Efecto Hover */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Clases de Grid Layout */
.item-large { 
    grid-row: span 2; 
}
.item-wide { 
    grid-column: span 2; 
}

/* RESPONSIVE: Slider optimizado para imágenes completas */
@media (max-width: 1024px) {
    .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        margin-top: 40px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch; 
    }

    /* Ocultamos scrollbar en navegadores Webkit */
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        min-width: 80%; 
        scroll-snap-align: center;
        flex-shrink: 0;
        height: 300px;
        background-color: var(--black); 
        border-radius: 20px;
        overflow: hidden;
        display: flex; 
        align-items: center;
        justify-content: center;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: contain; 
        transition: transform 0.3s ease;
    }

    .item-large, .item-wide {
        grid-row: auto;
        grid-column: auto;
    }
}


@media (max-width: 480px) {
    .gallery-item {
        min-width: 90%;
        height: 250px;
    }
}

/* ==========================================================================
   SECCIÓN DE VIDEO INDEPENDIENTE (VERTICAL)
========================================================================== 
*/

#galeria-video {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0; /* Ajusta el padding según tus necesidades */
}

.video-wrapper {
    width: 100%;
    max-width: 360px; /* Ancho máximo para mantener la estética vertical */
    aspect-ratio: 9 / 16; /* Define la verticalidad */
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ocultar en escritorio si así lo deseas, o dejarlo visible */
@media (min-width: 1025px) {
    #galeria-video {
        padding: 100px 0;
    }
}

/* ==========================================================================
   SECCIÓN UBICACIÓN - SECTION-DARK (SIN FILTROS)
========================================================================== 
*/

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-map {
    width: 100%;
    overflow: hidden;
    /* Filtro eliminado para mantener colores naturales */
    transition: transform 0.3s ease;
}

/* Ajuste para que el iframe sea responsivo dentro del contenedor */
.location-map iframe {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.contact-details {
    margin-top: 30px;
}

/* RESPONSIVE OPTIMIZADO */
@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content-box {
        margin-bottom: 20px;
        text-align: center; /* Alineación centrada para tablets/móvil */
    }
}

@media (max-width: 768px) {
    .location-map {
        height: 300px; /* Altura más equilibrada para móviles */
    }
    
    /* Aseguramos que la info sea legible en pantallas pequeñas */
    .contact-details .premium-p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   FOOTER - DISEÑO COMPLETO Y MÓDULOS
========================================================================== 
*/

.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* --- Elementos de Imagen y Texto --- */
.footer-brand-img {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--wine-red-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-p {
    opacity: 0.7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* --- Iconos (Redes y Contacto) --- */
.footer-links i, 
.footer-p i {
    color: var(--wine-red-light);
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* --- Lista de Enlaces (Redes Sociales) --- */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--wine-red-light);
}

/* --- Logos de Certificación --- */
.footer-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Estilo para el contenedor del enlace */
.footer-logos a {
    display: inline-block;
    line-height: 0; /* Elimina espacio extra debajo del logo */
    transition: transform 0.4s ease;
}

.footer-logos a:hover {
    transform: scale(1.05); /* Pequeño efecto al pasar el mouse */
}

/* Estilo del logo */
.f-logo {
    width: 70px;
    height: auto;
    cursor: pointer;
    display: block; /* Asegura que la imagen sea bloque */
}

/* --- Footer Bottom (Extremos) --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.85rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom .footer-p {
    margin-bottom: 0;
    pointer-events: none;
}

.footer-credits {
    color: var(--white);
    opacity: 0.7;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-link-credit {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--wine-red-light);
}

.footer-link-credit:hover {
    opacity: 1;
    color: var(--wine-red-light);
    text-decoration: none;
    border-bottom-color: var(--white);
}

/* --- RESPONSIVE --- */
/* Tablets: 2 columnas */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

/* Móviles: 1 columna centrada */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logos {
        justify-content: center;
    }
    
    .footer-brand-img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-p, .footer-links li {
        justify-content: center;
    }

    /* En móviles, centramos el bottom y los apilamos */
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
========================================================================== 
*/

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Color oficial de WhatsApp */
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Asegura que esté por encima de todo */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e; /* Tono más oscuro al pasar el cursor */
    color: var(--white);
}

/* Ajuste responsivo: en móviles un poco más pequeño si es necesario */
@media (max-width: 576px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* ==========================================================================
   MODAL DE RESERVA - DISEÑO CORREGIDO
========================================================================== 
*/

/* --- Modal base (oculto por defecto) --- */
.modal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.85); 
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Clase que aplicaremos con JS para mostrarlo */
.modal.is-active {
    display: flex;
}

.modal-content {
    background: var(--black);
    margin: auto; 
    padding: 40px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh; 
    overflow-y: auto; 
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: center;
    box-sizing: border-box;
}


.modal-content .premium-title {
    font-size: 1.5rem; 
    margin-bottom: 25px;
    color: var(--white);
    display: block;
}

.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--wine-red-light);
}

/* --- Formulario --- */
#reservaForm {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Cambio: Asegura que todo ocupe el ancho sin centrar */
    width: 100%;
}

/* Estilos unificados para inputs, selects y textarea */
#reservaForm input, 
#reservaForm select,
#reservaForm textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--white);
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    font-family: inherit;
}

/* Estilos específicos para el textarea */
#reservaForm textarea {
    resize: vertical;
    min-height: 80px;
    vertical-align: top; /* Cambio: Fuerza al texto a empezar arriba */
    text-align: left;    /* Cambio: Asegura alineación a la izquierda */
    line-height: 1.5;    /* Cambio: Control de espacio vertical */
}

#reservaForm input:focus, 
#reservaForm select:focus,
#reservaForm textarea:focus {
    border-color: var(--wine-red-light);
    outline: none;
}

.btn-reserva {
    width: 100%;
    padding: 14px;
    background: var(--wine-red-light);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-reserva:hover {
    filter: brightness(1.2);
}

#char-counter {
    color: var(--white);
    opacity: 0.6;
    display: block;
    margin-top: -5px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-align: right;
}

/* ==========================================================================
   AJUSTES RESPONSIVE PARA MODAL DE AGENDA (TABLETS Y MÓVILES)
========================================================================== 
*/

@media (max-width: 576px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        /* Garantiza que el contenido no se salga horizontalmente */
        box-sizing: border-box; 
    }

    .modal-content .premium-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-right: 30px;
        text-align: left;
        line-height: 1.3;
        /* Asegura que palabras muy largas se corten o salten de línea correctamente */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Aseguramos que los párrafos también se adapten */
    .modal-content p, 
    .modal-content label {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5; /* Mejora la legibilidad en textos largos */
    }

    /* Ajuste de la X para pantallas pequeñas */
    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 20px;
        /* Aseguramos que la X sea fácil de tocar */
        padding: 5px;
    }

    /* Ajuste para que los inputs sean fáciles de tocar en móvil */
    .modal-content input, 
    .modal-content select, 
    .modal-content textarea {
        font-size: 16px; /* Evita zoom automático en iOS */
        padding: 12px;
        width: 100%; /* Asegura que ocupen el espacio disponible */
        box-sizing: border-box;
    }

    /* Ajuste del contador de caracteres */
    #char-counter {
        font-size: 0.75rem;
        text-align: right;
        display: block;
        margin-top: 5px;
    }
}

/* Ajuste intermedio para Tablets */
@media (min-width: 577px) and (max-width: 768px) {
    .modal-content {
        width: 80%;
        padding: 35px;
    }
}

/* ==========================================================================
   AJUSTE FINO PARA EL CALENDARIO DENTRO DEL MODAL
========================================================================== 
*/

#calendarioModal .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    width: 100%;
    margin: 20px auto 0;
}

.calendar-day {
    /* Mantenemos el aspecto cuadrado */
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.calendar-day.empty-day {
    background: transparent;
    border: none;
}

.calendar-day span {
    font-size: 0.5rem;
    font-weight: normal;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 2px;
    white-space: nowrap;
}

/* Estilos de marcación */
.calendar-day.event-day {
    background: #252525;
    border: 1px solid var(--wine-red-light);
    color: var(--wine-red-light);
}

.calendar-day.event-day-sun {
    background: var(--wine-red-light);
    color: var(--white);
    border: none;
}

/* ==========================================================================
   AJUSTE RESPONSIVE (MÓVIL)
========================================================================== 
*/

@media (max-width: 480px) {
    #calendarioModal .modal-content {
        padding: 15px; /* Ajuste para mayor espacio en pantallas estrechas */
    }

    .calendar-day {
        font-size: 0.65rem; /* Ajuste ligero para que los números no se corten */
    }

    .calendar-day span {
        font-size: 0.45rem; /* Ajuste proporcional del texto inferior */
    }
}