:root {
    --bg-dark: #0a0a0a;
    --card-bg: #151515;
    --gold: #d4af37;
    --rojo: #c00000;
    --white: #ffffff;
    --gray-text: #a0a0a0;
}

body.carta-body {
    background-color: var(--bg-dark);
    color: var(--white);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Navbar */

.carta-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(0,0,0,0.95);

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    padding: 0 20px;
    box-sizing: border-box;

    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-back {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav-logo-central {
    height: 45px;
    margin: 0 auto;
}

.btn-reservar-nav {
    background: var(--gold);
    color: black;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: transform 0.25s ease, background 0.25s ease;
}

.btn-reservar-nav:hover {
    background: #c9a62f;
    transform: translateY(-2px);
}



/* Estilo del botón de bandera */
.idioma-selector {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: #ce9b2c; /* Color dorado como tu botón RESERVAR */
    padding: 5px 12px;
    border-radius: 5px;
    color: black;
    font-weight: bold;
    font-family: sans-serif;
    gap: 8px;
    transition: 0.3s;
}

.idioma-selector:hover {
    background: #f1b943;
}

.idioma-selector img {
    width: 20px;
    border-radius: 2px;
}



.idiomas-container {
    display: flex;
    gap: 10px; /* Espacio entre los botones */
    margin-bottom: 10px; /* Ajusta según donde lo hayas puesto en el nav */
}

/* Reutilizamos tu estilo anterior */
.idioma-selector {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: #ce9b2c;
    padding: 5px 10px;
    border-radius: 5px;
    color: black;
    font-weight: bold;
    font-family: sans-serif;
    gap: 5px;
    transition: 0.3s;
    font-size: 14px;
}

.idioma-selector:hover {
    background: #f1b943;
}

.idioma-selector img {
    width: 18px;
}


/* Evita el resaltado azul de Google al traducir */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}


/* OCULTAR LA BARRA DE GOOGLE QUE SALE ARRIBA */
body {
    top: 0 !important;
}
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
    display: none !important;
}
.goog-te-balloon-frame {
    display: none !important;
}
.skiptranslate {
    display: none !important;
}


/* Header */
.carta-header {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.5), var(--bg-dark)), url('img/mesas.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.header-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; margin-bottom: 5px; }
.header-content p { color: var(--gold); font-style: italic; letter-spacing: 1px; }

/* Filtros */
.filter-container {
    background: var(--bg-dark);
    position: sticky;
    top: 80px;
    z-index: 999;
    padding: 20px 0;
    border-bottom: 2px solid var(--gold);
}

.filter-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding: 0 5%;
    scrollbar-width: none;
}

.filter-btn {
    background: #1a1a1a;
    color: var(--white);
    border: 1px solid #333;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.75rem;
    transition: 0.3s;
}

.filter-btn.active { background: var(--gold); color: black; border-color: var(--gold); }

/* Grid */
.menu-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.category-section { margin-bottom: 60px; }
.category-title {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.category-title::after { content: ""; flex: 1; height: 1px; background: #333; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.menu-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid #222;
}

.menu-card:hover { transform: translateY(-10px); border-color: var(--gold); }

.card-img-wrapper { position: relative; height: 200px; background: #222; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.badge-rec {
    position: absolute; top: 10px; left: 10px;
    background: var(--gold); color: black;
    padding: 4px 10px; font-size: 0.65rem; font-weight: 700; border-radius: 4px;
}

.card-info { padding: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.card-header h3 { font-size: 1.1rem; text-transform: uppercase; margin: 0; }
.price { color: var(--gold); font-weight: 700; font-size: 1.1rem; }

/* Animaciones */
.hidden { display: none; }
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }



/* PANEL DESPEGABLE MODAL PLATO */
/* PANEL DESPLEGABLE (MODAL) */
/* ===== MODAL CENTRADO PLATO ===== */

.plato-modal {
    
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.plato-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.plato-modal-content {
    background: #111;
    width: 90%;
    max-width: 420px; /* 🔥 clave */
    max-height: 90vh; /* evita que sea gigante */
    border-radius: 18px;
    padding: 30px;
    position: relative;
    animation: zoomIn 0.4s ease;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.detail-item:last-child {
    display: none; /* Borrar categoria de Nivel de picante */
}

.plato-modal-content img {
    max-width: 100%;
    max-height: 100%;       /* 🔥 controla el tamaño */
    object-fit: cover;   /* recorta elegante */
    border-radius: 16px 16px 0 0;
    margin-bottom: 0px
}


@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
}

.plato-modal img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}

.plato-modal h2 {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.plato-modal p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-details {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.detail-item {
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.detail-item strong {
    color: var(--gold);
    font-size: 0.85rem;
    display: block;
}

/* BOTÓN */
.modal-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-btn:hover {
    background: #c9a62f;
}

.modal-precio {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: #000;
    padding: 6px 14px;
    font-weight: 700;
    border-radius: 20px;
    font-size: 1rem;
}