/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* Identidad: Granate Clarito y Blanco */
    --primary: #9c4242;       /* Granate principal */
    --primary-dark: #7a3333;  /* Granate oscuro (hover) */
    --primary-light: #fce8e8; /* Fondo suave rosado/granate */
    
    --bg-body: #ffffff;
    --bg-gray: #f8f9fa;
    --text-main: #2c2c2c;
    --text-light: #666666;
    
    --border: #e2e2e2;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Configuración de Mesas para cálculos */
    --mesa-size: 65px;
    --mesa-gap: 14px; /* Espacio entre mesas que se cerrará al unirse */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-body); 
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll lateral en móviles */
}

html { scroll-behavior: smooth; }

/* =========================================
   NAVEGACIÓN
   ========================================= */
.main-nav {
    position: sticky; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.si {
    height: 50px;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem; 
    font-weight: 900; 
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-menu { display: flex; list-style: none; gap: 2rem; }

.nav-menu a { 
    color: var(--text-main); text-decoration: none; 
    font-weight: 600; font-size: 0.95rem; 
    transition: 0.3s; 
}
.nav-menu a:hover { color: var(--primary); }

.nav-reserva { 
    background: var(--primary); color: white !important; 
    padding: 0.7rem 1.5rem; border-radius: 6px; 
    transition: 0.3s;
}
.nav-reserva:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =========================================
   HERO / PORTADA
   ========================================= */
.hero {
    height: 65vh;
    /* Imagen elegante de gastronomía/restaurante */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/portada.png');
    background-size: cover; background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    display: flex; align-items: center; justify-content: center; 
    text-align: center; color: white;
}

.hero-content { padding: 0 20px; }

.hero-content h1 { 
    font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4rem); 
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); margin-bottom: 1rem; 
}

.hero-tagline { 
    font-size: 1.1rem; font-weight: 500; letter-spacing: 2px;
    background: var(--primary); padding: 8px 20px; 
    display: inline-block; border-radius: 50px;
    text-transform: uppercase;
}

/* =========================================
   ESTRUCTURA DE SECCIONES
   ========================================= */
.content-wrapper { max-width: 1100px; margin: 0 auto; padding: 4rem 20px; }

.section-card {
    background: white; 
    margin-bottom: 5rem;
    position: relative;
}

h2 { 
    font-family: var(--font-heading); font-size: 2.5rem; 
    color: var(--primary); margin-bottom: 1rem; 
}

.badge { 
    color: #999; text-transform: uppercase; 
    font-size: 0.75rem; letter-spacing: 3px; font-weight: bold;
    display: block; margin-bottom: 0.5rem; 
}

/* =========================================
   GRID INFORMACIÓN
   ========================================= */
.info-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; margin-top: 3rem; 
}

.info-item { 
    text-align: center; padding: 2.5rem; 
    background: var(--bg-gray); border-radius: 12px; 
    border: 1px solid var(--border); 
    transition: 0.3s;
}
.info-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }

.info-item i { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; display: block; }
.info-item span { font-weight: 700; color: var(--text-main); font-size: 1.1rem; }

/* =========================================
   MENÚ DEL DÍA
   ========================================= */
.menu-display {
    margin-top: 2rem; padding: 15px; background: white; 
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow);
    min-height: 300px; display: flex; align-items: center; justify-content: center;
}

.menu-footer { 
    margin-top: 1.5rem; color: var(--text-light); 
    font-size: 0.95rem; display: flex; align-items: center; gap: 10px; 
    background: var(--primary-light); padding: 15px; border-radius: 8px;
}
.menu-footer i { color: var(--primary); }

/* =========================================
   RESERVAS Y MAPA (Lógica Visual Compleja)
   ========================================= */

/* Formulario */
.booking-form { 
    display: flex; gap: 2rem; 
    background: var(--bg-gray); padding: 2.5rem; 
    border-radius: 12px; margin-bottom: 3rem; 
    border-left: 5px solid var(--primary);
}

.input-box { flex: 1; }
.input-box label { display: block; margin-bottom: 10px; color: var(--text-main); font-weight: 700; }

.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); }
.input-wrapper input { 
    width: 100%; padding: 12px 12px 12px 45px; 
    border: 1px solid #ccc; border-radius: 8px; font-size: 1rem;
    transition: 0.3s; outline: none;
}
.input-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* --- CONTENEDOR SALA --- */
.sala-wrapper { 
    background: #ffffff;
    padding: 40px 20px; 
    border-radius: 20px; 
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.sala-status { 
    font-size: 0.75rem; letter-spacing: 2px; color: #aaa; margin: 15px 0; font-weight: bold; 
}
.sala-status.fondo { margin-bottom: 25px; }
.sala-status.entrada { margin-top: 25px; }

/* --- GRID DE MESAS --- */
.grid-sala { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    /* El GAP es crucial para la animación */
    gap: var(--mesa-gap); 
    max-width: 450px; margin: 0 auto;
    perspective: 1000px;
}

/* --- LOGICA DE MESAS Y MOVIMIENTO --- */
.mesa-wrap { 
    position: relative; 
    width: var(--mesa-size); height: var(--mesa-size); 
    margin: 0 auto; 
    z-index: 1;
    /* Transición suave para el movimiento vertical */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* La mesa física (cuadrado) */
.mesa-auto {
    width: 100%; height: 100%;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #ccc;
    position: relative; z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #eee; /* Efecto 3D sutil desactivado */
}

/* --- ESTADOS SELECCIONADOS --- */
.mesa-wrap.seleccionada { z-index: 10; }

.mesa-wrap.seleccionada .mesa-auto {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 10px rgba(156, 66, 66, 0.4);
}

/* --- MAGIA DE UNIÓN (MOVIMIENTO VERTICAL) --- */
/*
   Cálculo: Gap (14px) + Ajuste superposición (4px) = 18px por nivel.
   Esto hace que la mesa de abajo suba y "toque" a la de arriba.
*/
.mesa-wrap.unirse-1 { transform: translateY(-18px); z-index: 9; }
.mesa-wrap.unirse-2 { transform: translateY(-36px); z-index: 8; }
.mesa-wrap.unirse-3 { transform: translateY(-54px); z-index: 7; }

/* --- FUSIÓN VISUAL (BORDES) --- */
/* Elimina el borde superior y las curvas de las mesas que suben para que parezcan una sola */
.mesa-wrap.unirse-1 .mesa-auto,
.mesa-wrap.unirse-2 .mesa-auto,
.mesa-wrap.unirse-3 .mesa-auto {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    box-shadow: 0 4px 10px rgba(156, 66, 66, 0.4), inset 0 5px 0 rgba(0,0,0,0.05); /* Sombra interna para profundidad */
}

/* --- SILLAS --- */
.silla {
    position: absolute; width: 14px; height: 14px;
    background: #e0e0e0; border-radius: 50%;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    z-index: 1; opacity: 0.6; transform: scale(0.8);
}

/* Estado activo de silla */
.silla.activa {
    background: var(--text-main); /* Gris oscuro */
    opacity: 1; transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Posiciones (Ajustadas para no chocar con el gap) */
.s-top-1 { top: -10px; left: 10px; }    .s-top-2 { top: -10px; right: 10px; }
.s-bottom-1 { bottom: -10px; left: 10px; } .s-bottom-2 { bottom: -10px; right: 10px; }
.s-left-1 { left: -10px; top: 10px; }   .s-left-2 { left: -10px; bottom: 10px; }
.s-right-1 { right: -10px; top: 10px; } .s-right-2 { right: -10px; bottom: 10px; }


/* =========================================
   TARJETA WHATSAPP
   ========================================= */
.whatsapp-card {
    background: white; 
    border-top: 4px solid --primary;
    padding: 2rem; margin-top: 3rem; 
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex; justify-content: space-between; align-items: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-info p { margin: 0; font-size: 1.1rem; }
.status-dot { 
    display: inline-block; width: 10px; height: 10px; 
    background: var(--primary); border-radius: 50%; margin-right: 10px;
    box-shadow: 0 0 0 3px --primary-dark;
}

.btn-primary-wa {
    background: var(--primary); color: white; text-decoration: none;
    padding: 12px 25px; border-radius: 50px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s; box-shadow: 0 5px 15px --primary-dark;
}
.btn-primary-wa:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =========================================
   FOOTER
   ========================================= */
.footer { 
    background: #1a1a1a; color: white; 
    padding: 4rem 2rem; margin-top: 6rem; text-align: center; 
}

.footer-brand img { height: 50px; opacity: 0.8; margin-bottom: 1rem; }
.footer-brand p { color: #888; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }

.footer-contact { margin-top: 2rem; display: flex; flex-direction: column; gap: 10px; }
.footer-contact p { color: #ccc; }
.footer-contact i { color: var(--primary); width: 25px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .nav-menu { display: none; } /* En móvil simplificado */
    .booking-form { flex-direction: column; padding: 1.5rem; }
    .whatsapp-card { flex-direction: column; gap: 20px; text-align: center; }
    .info-grid { grid-template-columns: 1fr; }
}
/* --- SILLAS (Modificado para que sean invisibles por defecto) --- */
.silla {
    position: absolute; 
    width: 14px; 
    height: 14px;
    background: #e0e0e0; 
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    z-index: 1;
    
    /* ESTADO INICIAL: Totalmente invisibles */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5); 
}

/* ESTADO ACTIVO: Se muestran cuando tu JS añade la clase .activa */
.silla.activa {
    background: var(--text-main); /* Gris oscuro/Negro */
    opacity: 1;
    visibility: visible;
    transform: scale(1.1); /* Efecto de aparecer creciendo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mantenemos las posiciones intactas para tu JS */
.s-top-1 { top: -10px; left: 10px; }    .s-top-2 { top: -10px; right: 10px; }
.s-bottom-1 { bottom: -10px; left: 10px; } .s-bottom-2 { bottom: -10px; right: 10px; }
.s-left-1 { left: -10px; top: 10px; }   .s-left-2 { left: -10px; bottom: 10px; }
.s-right-1 { right: -10px; top: 10px; } .s-right-2 { right: -10px; bottom: 10px; }
/* --- ESTILO DE SECCIONES (Asegura el centrado) --- */
.section-card {
    background: white;
    padding: 3rem 0; /* Padding vertical para separar */
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

/* --- RESEÑAS --- */
.google-rating { 
    text-align: center; 
    margin: 2rem 0; 
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: 12px;
}
.google-rating .score { font-size: 3.5rem; font-weight: 800; color: var(--primary); display: block; }
.google-rating .stars { color: #fbbc04; font-size: 1.5rem; margin: 10px 0; }

.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}
.review-item { 
    padding: 2rem; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    background: #fff;
    box-shadow: var(--shadow);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.stars-small { color: #fbbc04; font-size: 0.8rem; }

/* --- FORMACIÓN --- */
.cursos-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
    margin-top: 2.5rem; 
}
.curso-card { 
    background: var(--primary-light); 
    padding: 2.5rem; 
    border-radius: 12px; 
    text-align: center;
    transition: 0.3s;
}
.curso-card:hover { transform: translateY(-5px); }
.curso-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.curso-card h3 { margin-bottom: 10px; color: var(--text-main); }

/* --- CONTACTO --- */
.contacto-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    margin-top: 2rem; 
}

.social-links-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin-top: 25px; 
}
.social-item { 
    padding: 15px; 
    border-radius: 8px; 
    text-decoration: none; 
    color: white; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    transition: 0.3s;
    font-size: 0.9rem;
}
.fb { background: #3b5998; } 
.ig { background: #e1306c; } 
.tk { background: #000000; } 
.wa { background: #25d366; }
.social-item:hover { opacity: 0.85; transform: scale(1.02); }

.contacto-form { display: flex; flex-direction: column; gap: 15px; }
.form-group input, .form-group textarea {
    width: 100%; 
    padding: 14px; 
    border: 1px solid #ddd; 
    border-radius: 8px;
    font-family: inherit; 
    font-size: 1rem;
    background: var(--bg-gray);
}
.btn-enviar {
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 16px;
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-enviar:hover { background: var(--primary-dark); box-shadow: 0 5px 15px rgba(156, 66, 66, 0.3); }

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .contacto-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .section-card { padding: 2rem 0; }
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 20px 0 20px;
}

.section-card:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 5rem;
    border-bottom: none;
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: block;
    box-sizing: border-box;
}

.footer-brand, 
.footer-contact {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p {
    color: #ccc;
    margin: 0;
}

.footer-contact i {
    color: #9c4242;
    width: 25px;
}

/* ==========================================================================
   SECCIÓN EXPERIENCIA: CARRUSEL FINAL (PADDING REDUCIDO + FIX ICONOS)
   ========================================================================== */

/* --- 1. TARJETA PRINCIPAL --- */
.exp-card {
    background: #fff;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- 2. CABECERA (HEADER) - MÁS COMPACTA --- */
.exp-header {
    /* Reducimos el padding para quitar el "aire" excesivo */
    padding: 1rem 1.2rem !important; 
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    cursor: pointer;
    z-index: 5;
}

/* --- 3. ICONO DEL ITEM (CÍRCULO) --- */
.icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--primary-light, #ffe5e5);
    color: var(--primary, #d32f2f);
    
    /* CENTRADO PERFECTO (GRID) */
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    
    transition: all 0.3s ease;
}

/* Reseteo del icono interno de FontAwesome */
.icon-circle i {
    display: block !important;
    line-height: 1 !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* --- 4. COLORES DE ESTADO (HOVER Y OPEN) --- */
/* Cuando pasas el ratón o abres la tarjeta: Fondo rojo, ICONO BLANCO */

.exp-header:hover .icon-circle,
.exp-card.open .icon-circle {
    background: var(--primary, #d32f2f) !important;
}

.exp-header:hover .icon-circle i,
.exp-card.open .icon-circle i {
    color: #ffffff !important; /* BLANCO PURO GARANTIZADO */
}

/* Texto del título */
.exp-header span {
    font-weight: 700;
    font-size: 1.1rem;
    flex-grow: 1;
    color: #333;
    transition: color 0.3s ease;
}
.exp-card.open .exp-header span {
    color: var(--primary, #d32f2f);
}

/* Indicador (+) a la derecha */
.toggle-indicator {
    margin-left: auto;
    color: #ccc;
    transition: transform 0.4s ease;
    /* Centrado del + */
    display: grid !important;
    place-items: center !important;
    width: 24px;
    height: 24px;
}
.exp-card.open .toggle-indicator {
    transform: rotate(45deg);
    color: var(--primary, #d32f2f);
}

/* --- 5. CONTENIDO DESPLEGABLE (ESPACIO REDUCIDO) --- */
.exp-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* PADDING LATERAL MÍNIMO: Esto hace que el carrusel se vea GRANDE */
    padding: 0 0.5rem !important; 
    
    background: #fff;
}

.exp-card.open .exp-content {
    opacity: 1;
    padding-bottom: 1.5rem; /* Espacio abajo del todo */
}

/* --- 6. CARRUSEL (ARREGLO DE IMÁGENES) --- */
.carousel-container {
    position: relative;
    width: 100% !important; /* Ocupa todo el ancho disponible */
    aspect-ratio: 16 / 10;  /* Un poco más alto para verse mejor */
    max-height: 450px;
    background: #111; /* Fondo oscuro elegante */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px; /* Separación mínima con el título */
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out; /* Animación suave */
}

/* LA CLAVE: Evita que las imágenes se compriman a 0px */
.carousel-slide {
    flex: 0 0 100% !important; 
    width: 100% !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Imagen entera sin cortes */
    display: block;
}

/* --- 7. FLECHAS DE NAVEGACIÓN (CENTRADO GRID) --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    
    /* CENTRADO INFALIBLE */
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
}

.nav-btn i {
    font-size: 1rem !important;
    color: var(--primary, #d32f2f);
    line-height: 1 !important;
    display: block !important;
    margin: 0 !important;
}

.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

/* HOVER FLECHAS: Fondo rojo, icono blanco */
.nav-btn:hover {
    background: var(--primary, #d32f2f) !important;
    transform: translateY(-50%) scale(1.1);
}
.nav-btn:hover i {
    color: #ffffff !important;
}

/* --- 8. INDICADORES (DOTS) --- */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 16px;
    border-radius: 10px;
}
/* --- AJUSTE DE ESPACIOS (4PX) Y CENTRADO DE ICONOS --- */

/* 1. Reducción de márgenes para que el carrusel sea más grande */
.exp-content {
    padding: 0 4px !important; /* El carrusel ahora toca casi el borde */
    margin-top: -5px !important; /* Elimina hueco entre título y foto */
}

.carousel-container {
    width: 100% !important;
    margin-top: 5px !important;
    border-radius: 6px; /* Bordes más finos para diseño compacto */
}

/* 2. Centrado matemático de iconos (Grid) */
.icon-circle, .nav-btn, .toggle-indicator {
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.icon-circle i, .nav-btn i, .toggle-indicator i {
    display: block !important;
    margin: 0 !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* 3. Corrección de colores (Icono blanco en activo) */
.exp-card.open .icon-circle {
    background: var(--primary, #d32f2f) !important;
}

.exp-card.open .icon-circle i,
.exp-header:hover .icon-circle i {
    color: #ffffff !important;
}

/* 4. Estilo de flechas y Hover visible */
.nav-btn {
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.nav-btn:hover {
    background: var(--primary, #d32f2f) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.nav-btn:hover i {
    color: #ffffff !important;
}

/* 5. Fix de animación del carrusel */
.carousel-track {
    display: flex !important;
    transition: transform 0.5s ease-in-out !important;
}

.carousel-slide {
    flex: 0 0 100% !important; /* Evita que las imágenes se achiquen */
}
/* =========================================
   NAVEGACIÓN (ESTILOS GLOBALES Y DESKTOP)
   ========================================= */

/* Forzamos que el botón esté oculto en pantallas grandes */
.mobile-toggle {
    display: none !important; 
}

.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   RESPONSIVE (MÓVIL - MÁX 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa solo aquí */
    .mobile-toggle {
        display: flex !important; /* Aparece en móvil */
        background: none;
        border: none;
        color: var(--primary);
        cursor: pointer;
        width: 50px;  /* Área de toque grande */
        height: 50px;
        align-items: center;
        justify-content: center;
        font-size: 2rem; 
        z-index: 1100;
    }

    /* El contenedor del nav en móvil */
    .nav-container {
        padding: 0.8rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Menú lateral móvil */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%; /* Oculto a la izquierda */
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        padding: 6rem 1.5rem 2rem 1.5rem;
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 8px;
    }

    .nav-menu.active {
        left: 0; /* Desliza hacia adentro */
    }

    /* Botones de navegación grandes para dedos */
    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1.5rem 1.2rem; /* Áreas de clic muy generosas */
        font-size: 1.4rem;      /* Texto fácil de leer */
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
        border-radius: 10px;
        border-bottom: 1px solid var(--bg-gray);
    }

    .nav-menu a:active {
        background: var(--primary-light);
    }

    /* Botón de reserva en móvil */
    .nav-reserva {
        background: var(--primary) !important;
        color: white !important;
        text-align: center;
        margin-top: 25px;
        padding: 1.8rem !important; /* Más grande para destacar */
        font-size: 1.5rem !important;
        border-bottom: none !important;
    }
}
/* ==========================================================================
   SOLUCIÓN DEFINITIVA: PADDING MÍNIMO Y CENTRADO MATEMÁTICO
   ========================================================================== */

/* 1. AJUSTE DE ESPACIOS (PADDING CASI CERO) */
.exp-content {
    padding: 0 4px !important; /* El carrusel se expande hasta el borde */
    margin-top: -10px !important; /* Elimina el hueco bajo el título */
}

.carousel-container {
    width: 100% !important;
    margin: 4px 0 !important;
    border-radius: 4px !important;
}
/* Forzamos al elemento <i> a no tener dimensiones propias que lo desvíen */
.icon-circle i, 
.nav-btn i, 
.toggle-indicator i {
    display: grid !important;
    place-items: center !important;
    width: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important; /* Evita que posiciones absolutas previas lo muevan */
    transform: none !important; /* Limpia cualquier movimiento manual anterior */
}



.nav-btn:hover {
    background: var(--primary, #d32f2f) !important;
}

.nav-btn.prev { left: 5px !important; }
.nav-btn.next { right: 5px !important; }
/* --- ELIMINACIÓN TOTAL DE MÁRGENES Y PADDING --- */

/* 1. Forzamos que el contenedor del contenido no tenga NADA de espacio lateral */
.exp-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* 2. Hacemos que el carrusel ocupe el 100% real de la tarjeta */
.carousel-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important; /* Elimina cualquier separación con el título */
    border-radius: 0 0 12px 12px !important; /* Solo redondeamos las esquinas de abajo */
}

/* 3. Ajuste del header para que el título no esté pegado al carrusel */
.exp-header {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important; /* Ajusta este valor si quieres más o menos espacio con la foto */
}

/* 4. Si las imágenes dentro tienen margen, lo quitamos */
.carousel-slide {
    padding: 0 !important;
}

.carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Cambia a 'cover' si quieres que llene todo el hueco sin bordes negros */
}
/* --- ELIMINACIÓN DE MÁRGENES EN LA TARJETA Y CONTENEDOR --- */

/* 1. Ajuste de la tarjeta exterior y el item de la rejilla */
.info-item, 
.exp-card {
    padding: 4px !important; /* Reducción drástica del margen exterior */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Ajuste del encabezado para que no se pegue a los bordes de la tarjeta */
.exp-header {
    padding: 0.8rem 10px !important; /* Un poco de aire para el texto, pero menos que antes */
    margin: 0 !important;
}

/* 3. Eliminación total de padding en el contenedor del carrusel */
.exp-content {
    padding: 0 4px !important; /* Alineado a 4px como pediste */
    margin: 0 !important;
    width: 100% !important;
}

/* 4. Carrusel a sangre (ancho total) */
.carousel-container {
    width: 100% !important;
    margin-top: 5px !important;
    border-radius: 6px !important; /* Redondeado suave para que encaje */
}

/* 5. Aseguramos que las imágenes no tengan márgenes internos */
.carousel-slide {
    padding: 0 !important;
}

.carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* Para que la imagen se vea entera sin deformar */
}
/* --- AJUSTE FINAL: IMÁGENES COMPLETAS Y PADDING 4PX --- */

/* 1. Forzar el padding de 4px en la tarjeta y el item */
.info-item, 
.exp-card {
    padding: 4px !important;
    box-sizing: border-box !important;
}

/* 2. Ajuste del contenedor de contenido */
.exp-content {
    padding: 0 4px !important; /* Mismo padding de 4px */
    margin-top: -5px !important; /* Reduce hueco con el título */
}

/* 3. Garantizar visualización completa de la imagen */
.carousel-container {
    background: #1a1a1a !important; /* Fondo para evitar huecos blancos si la foto es rara */
    border-radius: 6px !important;
}

.carousel-slide img {
    /* Muestra la imagen entera sin importar su forma original */
    object-fit: contain !important; 
    width: 100% !important;
    height: 100% !important;
}

/* 4. Ajuste de flechas para que no se salgan con el nuevo margen */
.nav-btn.prev { left: 4px !important; }
.nav-btn.next { right: 4px !important; }