:root {
    --bg-main: #0a0a0a;       /* Fondo Principal */
    --bg-surface: #141414;    /* Fondo de Tarjetas */
    
    /* EL NUEVO VERDE CASONA */
    --gold: #2ECC71;          
    --gold-glow: rgba(46, 204, 113, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --red-danger: #ff5252;
    --green-success: #00e676;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: var(--bg-main); 
    color: var(--text-primary); 
    font-family: 'Montserrat', sans-serif; 
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* --- ESTILOS GENERALES (Menú Público) --- */
.hero-optimizado { height: 35vh; position: relative; overflow: hidden; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; background: #000; box-shadow: 0 10px 40px -10px black; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 0; animation: zoomBg 20s infinite alternate; }
@keyframes zoomBg { from { transform: scale(1); } to { transform: scale(1.1); } }
.overlay { position: relative; z-index: 1; width: 100%; height: 100%; background: linear-gradient(to top, #0a0a0a 5%, rgba(0,0,0,0.5)); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.logo-area h1 { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 2.5rem; margin: 0; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }

.search-wrapper { padding: 0 20px; margin-top: -25px; position: relative; z-index: 20; }
.search-box { background: rgba(30, 30, 30, 0.9); backdrop-filter: blur(15px); border: var(--glass-border); border-radius: 50px; display: flex; align-items: center; padding: 5px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#search-input { width: 100%; padding: 12px 0; background: transparent; border: none; color: white; font-size: 1rem; outline: none; }

.filters-container { position: sticky; top: 0; z-index: 90; background: rgba(10, 10, 12, 0.9); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.filters { display: flex; gap: 10px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.filter-btn { background: transparent; color: #888; border: 1px solid rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 100px; white-space: nowrap; cursor: pointer; transition: 0.3s; }
.filter-btn.active { background: var(--gold); color: black; border-color: var(--gold); font-weight: 800; transform: scale(1.05); box-shadow: 0 0 15px rgba(212,175,55,0.4); }

.container { padding: 25px 20px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.card { background: var(--bg-surface); border-radius: 20px; overflow: hidden; border: var(--glass-border); position: relative; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.3); opacity: 1 !important; transform: translateY(0) !important; }
.img-box { height: 160px; background: #222; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.info { padding: 15px; }
.card h3 { font-size: 1rem; color: white; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { color: var(--gold); font-weight: 700; }
.badge-destacado { position: absolute; top: 10px; right: 10px; background: var(--gold); color: black; padding: 4px 8px; border-radius: 10px; font-size: 0.6rem; font-weight: 800; z-index: 10; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
.modal.active { display: flex; }
.modal-content { background: #181818; width: 100%; max-width: 450px; border-radius: 25px; border: 1px solid #333; overflow: hidden; position: relative; }
.close-btn-float { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); color: white; width: 35px; height: 35px; border-radius: 50%; text-align: center; line-height: 35px; cursor: pointer; z-index: 20; }
.btn-big-action { width: 100%; background: var(--gold); border: none; padding: 15px; border-radius: 12px; font-weight: 800; cursor: pointer; margin-top: 15px; transition: 0.3s; }
.btn-big-action:hover { box-shadow: 0 5px 20px var(--gold-glow); transform: translateY(-2px); }
.input-stylish { width: 100%; padding: 12px; background: #222; border: 1px solid #444; color: white; border-radius: 8px; font-size: 1rem; outline: none; transition: 0.3s; }
.input-stylish:focus { border-color: var(--gold); background: #2a2a2a; }

/* =========================================
   ESTILOS EXCLUSIVOS ADMIN & LOGIN (NUEVOS)
   ========================================= */

body.admin-body { 
    background: radial-gradient(circle at 50% -20%, #1a1a20, #000); 
    min-height: 100vh; 
}

/* LOGIN */
.login-wrapper {
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px;
    background: #0a0a0a; /* Fondo negro liso como antes */
    position: relative;
}
/* Hemos eliminado el ::before que causaba el difuminado */

.login-card {
    position: relative; z-index: 2;
    background: rgba(30, 30, 35, 0.9); border: 1px solid rgba(255,215,0,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); padding: 40px 30px;
    border-radius: 20px; width: 100%; max-width: 400px; text-align: center;
}
.login-logo { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 2rem; margin-bottom: 5px; text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.login-subtitle { color: #888; font-size: 0.85rem; margin-bottom: 30px; letter-spacing: 1px; }

.input-group { margin-bottom: 20px; text-align: left; position: relative; }
.input-group label { display: block; font-size: 0.8rem; color: var(--gold); margin-bottom: 5px; margin-left: 5px; font-weight: 600; }

/* ADMIN DASHBOARD */
.admin-header {
    background: rgba(20, 20, 20, 0.95); padding: 15px 20px; position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(10px); box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.admin-title { font-family: 'Playfair Display', serif; color: white; margin: 0; font-size: 1.5rem; }
.admin-badge { background: linear-gradient(45deg, var(--gold), #b8860b); color: black; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; margin-left: 10px; }

.dashboard-grid { 
    display: grid; gap: 20px; padding: 20px; 
    grid-template-columns: 1fr; /* Móvil por defecto */
}
@media(min-width: 768px) { .dashboard-grid { grid-template-columns: 350px 1fr; align-items: start; } }

/* Zonas del Admin */
.upload-zone, .inventory-zone { 
    background: #1a1a20; padding: 25px; border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}

.file-upload-wrapper {
    position: relative; height: 120px; border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    flex-direction: column; cursor: pointer; transition: 0.3s; background: rgba(0,0,0,0.2);
}
.file-upload-wrapper:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }
.file-upload-wrapper input { opacity: 0; position: absolute; width: 100%; height: 100%; cursor: pointer; }
.file-upload-text { color: #888; font-size: 0.8rem; margin-top: 10px; }

/* Lista de Inventario */
.inventory-list { margin-top: 10px; }
.inventory-item { 
    display: flex; align-items: center; gap: 15px; padding: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.08); background: #1f1f23;
    border-radius: 8px; margin-bottom: 10px; transition: 0.2s; 
}
.inventory-item:hover { transform: translateX(5px); border-left: 3px solid var(--gold); }

.item-thumb { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid #333; }
.item-meta { flex-grow: 1; }
.item-title { font-weight: 600; font-size: 0.95rem; color: white; display: block; }
.item-price { color: var(--gold); font-size: 0.9rem; font-weight: bold; }
.item-status { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; margin-left: 8px; text-transform: uppercase; font-weight: 700; }
.status-ok { background: rgba(0,230,118,0.15); color: var(--green-success); }
.status-bad { background: rgba(255,82,82,0.15); color: var(--red-danger); }

/* Botones de acción */
.action-btn-group { display: flex; gap: 8px; }
.icon-btn { 
    width: 36px; height: 36px; border-radius: 8px; border: none; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; background: #2a2a30; color: #aaa; transition: 0.2s;
}
.icon-btn:hover { color: white; transform: translateY(-2px); }
.btn-star:hover { color: var(--gold); border: 1px solid var(--gold); }
.btn-edit:hover { background: #333; color: white; }
.btn-del:hover { background: rgba(255,82,82,0.2); color: var(--red-danger); }

/* Media Queries */
@media (max-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .container { padding: 15px 12px; }
    .card h3 { font-size: 0.9rem; }
    .short-desc { display: none; }
}
/* --- AGREGA ESTO AL FINAL DE TU STYLE.CSS --- */

/* Ajuste específico para que la foto del modal no sea gigante en el móvil */
@media (max-width: 768px) {
    .modal-img-full {
        /* Reducimos la altura de 280px a 180px en celulares */
        height: 180px !important; 
        
        /* Mantiene la imagen recortada y centrada para llenar el espacio sin deformarse.
           Si prefieres ver la foto COMPLETA sin recortes (aunque queden bandas negras a los lados),
           cambia 'cover' por 'contain'. */
        object-fit: cover !important; 
        
        /* Ajustamos el desvanecido inferior para esta nueva altura */
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%) !important;
    }
    
    /* Ajustamos el cuerpo del texto para que suba más */
    .modal-body {
        margin-top: -50px !important; /* Sube más el texto sobre la imagen */
        padding-top: 0 !important;
    }
}
/* --- style.css (Añadir al final) --- */

/* Estilo para productos agotados en el menú */
.card.agotado {
    opacity: 0.7; /* Se ve un poco más transparente */
    filter: grayscale(80%); /* Se ve en blanco y negro */
    pointer-events: none; /* No se puede hacer clic */
}

.badge-agotado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background-color: #ff5252;
    color: white;
    padding: 10px 20px;
    font-weight: 900;
    font-size: 1.2rem;
    border: 2px solid white;
    border-radius: 8px;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* --- style.css - Notificaciones Elegantes (Toasts) --- */

#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* Centrado arriba */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none; /* Para poder hacer clic "a través" si no hay toasts */
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* Animación de entrada */
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* Borde izquierdo de color según tipo */
.toast.success { border-left: 4px solid var(--gold); }
.toast.error { border-left: 4px solid var(--red-danger); }

.toast-icon { font-size: 1.2rem; }
.toast-msg { flex-grow: 1; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}/* Ajuste del Logo Original */
.main-logo {
    max-width: 280px; /* Controla el ancho máximo */
    height: auto;
    display: block;
    margin: 0 auto 10px auto; /* Lo centra */
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.4)); /* Le da un brillo verde suave */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .main-logo {
        max-width: 220px; /* Un poco más pequeño en celular */
    }
}/* --- ARREGLO FINAL LOGO Y HEADER --- */

.logo-area {
    text-align: center;
    width: 100%;
    z-index: 10;
}

.main-logo {
    max-width: 280px;  /* Tamaño ideal para celulares */
    height: auto;
    display: block;
    margin: 0 auto;    /* Centrado */
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.5)); /* Brillo verde */
}

/* Si la pantalla es muy grande (PC), el logo crece un poco */
@media (min-width: 768px) {
    .main-logo {
        max-width: 350px;
    }
}
/* --- ESTILO PORTADA: PARED + LOGO CENTRADO --- */
/* --- ESTILO PORTADA: LUCES + TEXTO NEÓN --- */

/* --- ESTILO TIPO "La Casona" (Texto Abajo Izquierda) --- */

.hero-casona {
    position: relative;
    height: 35vh;          /* Altura del encabezado */
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-bottom: 2px solid #2ECC71;
}

/* La Foto de Fondo */
.hero-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* IMPORTANTE: Enfocamos ARRIBA para que salgan las luces */
    object-position: top center; 
    
    z-index: 0;
}

/* El Contenedor del Texto (Overlay) */
/* --- AJUSTE: SOMBRA SUAVE Y TRANSPARENTE --- */

/* --- AJUSTE FINAL: FOTO NÍTIDA + SIN FONDO NEGRO --- */

/* --- AJUSTE PUNTO MEDIO: DESENFOQUE AL 20% (2px) --- */

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texto abajo */
    padding: 25px;
    
    /* Sombra negra muy suave (solo 20% de oscuridad) para ayudar a leer */
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);

    /* EL TOQUE MÁGICO: Desenfoque suave (2px = aprox 20%) */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(2px); /* Para que funcione en iPhone */
    
    z-index: 1;
}

/* --- ESTILO TÍTULO PRINCIPAL (BODONI PREMIUM) --- */
/* Imita el alto contraste de serifa moderna (Didot/Bodoni) */
.brand-text h1 {
    /* La fuente Didot (o su similar) es la mejor opción para este estilo */
    font-family: 'Didot', 'Playfair Display', serif;
    
    color: #2ECC71;
    font-size: 4rem;      /* Un tamaño más imponente */
    margin: 0;
    line-height: 0.8;     /* Interlineado muy apretado (efecto de lujo) */
    font-weight: 500;     /* El peso medio resalta el contraste delgado/grueso */
    
    /* Separar las letras para darle aire y elegancia (rasgo clave Bodoni) */
    letter-spacing: 5px;  
    
    /* Aseguramos que se vean las mayúsculas para el efecto premium */
    text-transform: uppercase; 
    
    /* Sombra verde neón intensa */
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.8), 2px 2px 4px #000;
}

/* --- ESTILO SUBTÍTULO (Conservamos el estilo grueso) --- */
.brand-text p {
    font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
    letter-spacing: 2px; /* Un poco más de espacio */
    font-weight: 700;
    text-transform: uppercase; 
    text-shadow: 1px 1px 3px #000;
}
/* LA FOTO DE FONDO */
.hero-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;     
    
    /* EL SECRETO: Esto enfoca la parte de ARRIBA (las luces) */
    object-position: top center; 
    
    z-index: 0;
}

/* OSCURECIMIENTO (Para que se lea el texto) */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* 65% de oscuridad */
    backdrop-filter: blur(1px);      /* Un desenfoque muy sutil */
    z-index: 1;
}

/* EL TÍTULO "La CASONA" */
.title-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.casona-text {
    font-family: 'Playfair Display', serif; /* La misma tipografía del cartel */
    color: #2ECC71;      /* El Verde Casona exacto */
    font-size: 3.5rem;   /* Tamaño grande */
    margin: 0;
    line-height: 1;
    font-weight: 700;    /* Negrita */
    
    /* EFECTO NEÓN: Sombra verde brillante alrededor de las letras */
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.6);
}

/* Ajuste para que en celulares no se vea exageradamente grande */
@media (max-width: 480px) {
    .casona-text {
        font-size: 2.8rem;
    }
}

/* La Foto de la Pared */
.hero-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Cubre todo sin deformarse */
    z-index: 0;
}

/* Oscurecimiento para leer el logo */
.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Oscuridad al 60% */
    z-index: 1;
}

/* El Logo */
.logo-hero {
    position: relative;
    z-index: 10;           /* Encima de todo */
    width: 280px;          /* Tamaño del logo */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8)); /* Sombra negra para separar del fondo */
}
.logo-casona {
    display: block;
    margin: 0 auto 8px auto;
    width: 90px;
    height: auto;
}
/* ===== LOGO LA CASONA – NIVEL LETRERO REAL ===== */

.logo-casona {
    position: absolute;
    top: 80px;                 /* altura correcta respecto al texto */
    left: 50%;
    transform: translateX(-375%); /* ⬅️ CORRIDO A LA IZQUIERDA */
    
    width: 140px;              /* tamaño real tipo cartel */
    height: auto;
    z-index: 5;

    /* SIMULACIÓN DE LÍNEAS MÁS GRUESAS */
    filter:
        drop-shadow(0 0 0.6px #39ff14)
        drop-shadow(0 0 0.6px #39ff14)
        drop-shadow(0 0 1.2px #39ff14);
}
@media (max-width: 480px) {
    .logo-casona {
        width: 110px;
        top: 14px;
        transform: translateX(-60%);
    }
}
/* --- NUEVA PORTADA CON LOGO IMAGEN --- */

.hero-casona {
    position: relative;
    height: 35vh; /* Altura de la portada */
    width: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Esto asegura que se vean los bombillos de arriba */
    object-position: top center; 
    z-index: 0;
}

/* --- OPTIMIZACIÓN PREMIUM DEL FONDO --- */

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* CAMBIO: Bajamos de 0.65 a 0.4 para aclarar la pared */
    /* Añadimos un degradado ligero para que la base sea un poco más oscura que el tope */
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.0) 0%, 
        rgba(0, 0, 0, 0.0) 100%
    );
    
    /* Mantenemos el difuminado (blur) que da la elegancia */
    backdrop-filter: blur(2px); 
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    
    /* TOQUE PREMIUM: Aumentamos un poco el brillo y contraste de la foto original */
    filter: brightness(1.3) contrast(1.05);
    z-index: 0;
}

.logo-container {
    position: relative;
    z-index: 10;
    width: 85%; /* Ajusta el ancho del logo en pantalla */
    max-width: 350px; /* Tamaño máximo para que no se vea gigante */
}

.logo-header {
    width: 100%;
    height: auto;
    /* Sombra suave para darle profundidad al logo sobre la pared */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
}
/* --- SISTEMA DE POSICIONAMIENTO LIBRE PARA EL LOGO --- */

.logo-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; /* Permite hacer clic en lo que haya debajo */
}

.logo-movible {
    position: absolute;
    z-index: 50;
    pointer-events: auto;
    
    /* 1. TAMAÑO DEL LOGO */
    width: 325px; /* Cambia este valor para hacerlo más grande o pequeño */
    height: auto;

    /* 2. POSICIÓN (MODIFICA ESTOS DOS VALORES) */
    /* 'left' controla de izquierda a derecha (0% es izquierda, 100% derecha) */
    /* 'top' controla de arriba a abajo (0% es arriba, 100% abajo) */
    
    left: 90%;    /* Ejemplo: 80% lo mueve a la derecha */
    top: 53%;     /* Ejemplo: 20% lo mueve cerca de las luces */

    /* 3. AJUSTE FINO (Centrado interno) */
    transform: translate(-50%, -50%) rotate(4.5deg); 
    
    /* Efecto de brillo neón */
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.0));
}

/* Ajuste para que en el celular no se pierda */
@media (max-width: 768px) {
    .logo-movible {
        width: 80px;  /* Un poco más pequeño en móvil */
        left: 75%;    /* Ajusta aquí también la posición para móvil si es necesario */
        top: 25%;
    }
}

/* --- HEADER UNIFICADO (PC y MÓVIL) --- */
.hero-casona {
    position: relative;
    height: 35vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
}

/* Fondo Premium con Mayor Claridad */
.hero-bg-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(1.7) contrast(1.1); /* Pared más clara como pediste */
    z-index: 0;
}

.dark-overlay {
    position: absolute;
    inset: 0;
    /* Degradado sutil para dar profundidad */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    backdrop-filter: blur(1.3px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

/* El grupo que contiene logo y letras */
.brand-group {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* MODIFICA ESTO: Un valor negativo lo sube. */
    /* Prueba con -30px o -50px hasta que esté a la altura que te guste */
    margin-top: -50px;
}

/* Título Premium Adaptable */
.brand-text h1 {
    font-family: 'Didot', 'Playfair Display', serif;
    color: #2ECC71;
    /* Tamaño fluido: se adapta al ancho de pantalla */
    font-size: clamp(2.5rem, 10vw, 4.5rem); 
    margin: 0;
    line-height: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.4), 2px 2px 5px #000;
}

.brand-text p {
    color: #ffffff;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    font-weight: 800;
    margin-top: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px #000;
}

/* EL LOGO SIN FONDO (Anclado al letrero) */
.logo-unificado {
    width: clamp(140px, 30vw, 425px); /* Tamaño proporcional */
    height: auto;
    
    /* CONTROL DE POSICIÓN LIBRE */
    /* Modifica estos valores para subirlo o moverlo a los lados */
    margin-bottom: -30%; /* Acerca o aleja el logo del texto 'La CASONA' */
    margin-left: 40%;   /* Lo mueve a los lados */
    
    /* Tu inclinación preferida */
    transform: rotate(4.5deg); 
    
    /* Brillo neón suave */
    filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.0));
}

/* Ajustes finos para pantallas muy pequeñas (Móvil) */
@media (max-width: 480px) {
    .brand-group {
        margin-top: 0px;
        transform: translateY(35px); /* Baja todo el bloque un poco */
    }
    .logo-unificado {
        margin-bottom: -19%; /* En móvil lo pegamos un poco más */
    }
}
/* --- ESTILO PIE DE PÁGINA Y BOTÓN ADMIN --- */
footer {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(to top, #000, #0a0a0a);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-branding p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.agency-tag {
    font-weight: 300;
    letter-spacing: 1px;
}

.agency-link {
    color: var(--gold); /* Usa el verde #2ECC71 */
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
}

.agency-link:hover {
    text-shadow: 0 0 10px var(--gold-glow);
}

/* El Botón de Acceso Gerencial Estilo Premium */
.admin-button-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 10px 20px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.admin-button-premium:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.admin-button-premium .material-icons {
    font-size: 1rem;
}
.filters-container {
    position: sticky; /* Se queda fijo al subir */
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px); /* Efecto cristal premium */
    padding: 15px 0;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.filter-btn {
    transition: all 0.4s ease; /* Cambio de color suave */
}

.filter-btn.active {
    background: #2ECC71 !important; /* El verde de Agency Seniors */
    color: #000 !important;
    font-weight: 800;
    transform: scale(1.05);
}
/* --- DISEÑO DE CATEGORÍAS HORIZONTALES LA CASONA --- */

.category-section {
    margin-bottom: 35px;
}

.category-title-casona {
    color: #fff;
    font-size: 1.4rem;
    padding: 0 20px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif; /* Estilo elegante */
    border-left: 4px solid #2ECC71; /* Detalle verde Casona */
    margin-left: 10px;
}

/* --- 1. DISEÑO DE CUADRÍCULA (2 en móvil, adaptable en PC) --- */
.horizontal-scroll {
    display: grid;
    /* Forzamos 2 columnas en móviles y pantallas pequeñas */
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
    padding: 15px;
    overflow: visible;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Oculta scroll en Chrome/Safari */
}
/* 2. EL BLOQUE QUE ME PREGUNTAS (Solo para PC y tablets) */
/* Esto evita que en pantallas grandes los 2 platos se estiren feo */
@media (min-width: 768px) {
    .horizontal-scroll {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    }
}
/* --- 2. TARJETAS CON PUNTAS OVALADAS (El look que tenías antes) --- */
.card-casona {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    background: #1a1a1a;
    
    /* Aumentamos el radio para que se vea ovalado y no triangular */
    border-radius: 28px !important; 
    
    /* Muy importante para que la imagen también se reredondee */
    overflow: hidden !important; 
    
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.card-casona:active {
    transform: scale(0.95);
}

.card-img-container {
    width: 100%;
    height: 140px; /* Altura fija para que todas sean iguales */
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-destacado {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2ECC71;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
}

.card-body {
    padding: 12px;
}

.card-body h3 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    color: #2ECC71; /* Verde Casona */
    font-weight: 800;
    font-size: 1.1rem;
}

.card-add {
    background: #2ECC71;
    color: #000;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;

}
/* --- ESTILO DEL HORARIO --- */
.header-info {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.horario-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.1); /* Fondo verde muy suave */
    border: 1px solid rgba(46, 204, 113, 0.3); /* Borde verde sutil */
    color: #2ECC71; /* Texto verde Casona */
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.horario-badge .material-icons {
    font-size: 1rem;
}

/* Animación sutil de pulso para indicar que está abierto */
.horario-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #2ECC71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #2ECC71;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
.rating-badge {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    margin-bottom: 15px;
    transition: 0.3s;
}
.btn-opinion-small {
    background-color: #2ECC71;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
}

.btn-opinion-small:active {
    transform: scale(0.95);
}
/* REPARACIÓN DEL TAMAÑO DE LA IMAGEN EN EL MODAL */

.modal-card {
    width: 90%;
    max-width: 420px; /* Limita el ancho en computadoras */
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden; /* Corta la imagen para que respete las esquinas redondeadas */
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-image-container {
    width: 100%;
    height: 250px; /* ESTO controla que no se vea gigante hacia abajo */
    overflow: hidden;
    position: relative;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto sin estirarla, rellenando el espacio */
    display: block;
}

.modal-info-container {
    padding: 20px;
    background: #1a1a1a;
}

/* Estilo para el botón verde que se estiraba */
.btn-dejar-opinion-principal {
    width: 100%;
    background-color: #2ECC71;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
}
/* --- ESTILO PARA PRODUCTOS AGOTADOS --- */

/* Hace que la tarjeta sea opaca y no se pueda clicar */
.card-casona.is-agotado {
    opacity: 0.55;
    filter: grayscale(0.8);
    pointer-events: none; /* Evita que se abra el detalle al tocarlo */
}

/* El cartel de AGOTADO sobre la imagen */
.badge-agotado-casona {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background-color: var(--red-danger); /* Usa el rojo definido en tus variables */
    color: white;
    padding: 8px 16px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 4px;
    z-index: 15;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid white;
    text-transform: uppercase;
}




