/* ============================================
   menu-publico.css - VERSIÓN UNIFICADA
   ============================================ */

/* ============================================
   VARIABLES Y BASE
   ============================================ */
:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --accent-color: #e67e22;
    --danger-color: #dc3545;
    --text-muted: #6c757d;
    --border-color: #eef2f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-color);
    color: var(--primary-color);
    padding-bottom: 40px;
}

.container-carta {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: visible !important;
}

/* ============================================
   HEADER
   ============================================ */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.logo {
    max-height: 100px;
    margin-bottom: 1rem;
    object-fit: contain;
}

h1.menu-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.menu-desc {
    color: #7f8c8d;
    font-style: italic;
    font-size: 1rem;
}

/* ============================================
   TABS DE IDIOMAS
   ============================================ */
.idiomas-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.idioma-tab {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e9ecef;
    color: #6c757d;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.idioma-tab.active {
    background: var(--danger-color);
    color: white;
}

.idioma-tab:hover:not(.active) {
    background: #dee2e6;
    color: #495057;
}

/* ============================================
   CATEGORÍA COMO UN SOLO CONTENEDOR
   ============================================ */
.categoria-section {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.categoria-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Título de categoría DENTRO del contenedor */
.categoria-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1rem 1.5rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.categoria-original,
.categoria-traducido {
    display: inline-block;
}

/* ============================================
   PLATOS - SIN BORDES INDIVIDUALES
   ============================================ */
.plato-card {
    background: transparent;
    border-radius: 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.plato-card:last-child {
    border-bottom: none;
}

.plato-card:hover {
    background: #fafbfc;
}

.plato-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.plato-nombre {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

.plato-precios {
    text-align: right;
    white-space: nowrap;
}

.precio-base {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.precio-suplemento {
    display: inline-block;
    color: var(--danger-color);
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 8px;
}

.plato-descripcion {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.25rem;
}

/* ============================================
   TEXTOS TRADUCIDOS - MISMO ESTILO QUE ORIGINAL
   ============================================ */
.traducciones {
    margin-top: 0.5rem;
}

.traducciones .t-only:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.traducciones .t-only:last-child {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* ============================================
   ALÉRGENOS
   ============================================ */
.alergenos-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.alergenos-container img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: pointer;
}

.alergenos-container img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.plato-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e9ecef;
}

.plato-footer a {
    transition: transform 0.2s ease;
}

.plato-footer a:hover {
    transform: scale(1.1);
}

/* ============================================
   SEPARADORES ENTRE PLATOS
   ============================================ */
.separador-platos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.separador-platos .linea {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, #adb5bd, #dee2e6, transparent);
}

.separador-texto {
    color: var(--danger-color);
    font-size: 1.2rem;
    font-weight: bold;
    background: #f8f9fa;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-family: serif;
}

.separador-linea {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, #adb5bd, #dee2e6, transparent);
    margin: 1.5rem 0;
}

/* ============================================
   BARRA DE NAVEGACIÓN DE CATEGORÍAS - RESPONSIVE
   ============================================ */
.categorias-nav-wrapper {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0 -20px 24px -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.categorias-nav {
    display: flex;
    gap: 8px;
}

/* DESKTOP: GRID WRAP (sin scroll) */
@media (min-width: 768px) {
    .categorias-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        overflow-x: visible;
    }

    .cat-btn {
        flex: 0 0 auto;
        padding: 8px 20px;
    }
}

/* MÓVIL: SCROLL HORIZONTAL */
@media (max-width: 767px) {
    .categorias-nav {
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: thin;
        gap: 8px;
    }

    .categorias-nav::-webkit-scrollbar {
        height: 3px;
    }

    .categorias-nav::-webkit-scrollbar-track {
        background: #e9ecef;
        border-radius: 10px;
    }

    .categorias-nav::-webkit-scrollbar-thumb {
        background: #adb5bd;
        border-radius: 10px;
    }

    .cat-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ESTILOS DE LOS BOTONES DE CATEGORÍA */
.cat-btn {
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.cat-btn:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #212529;
}

.cat-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Secciones ocultas para filtro */
.categoria-section.oculta {
    display: none !important;
}

/* ============================================
   MODAL IMAGEN
   ============================================ */
.modal-imagen .modal-dialog {
    max-width: 98vw !important;
    width: auto !important;
    margin: 0 auto !important;
}

.modal-imagen .modal-content {
    background: transparent !important;
    border: none !important;
}

.modal-imagen .modal-body {
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 90vh !important;
}

.modal-imagen #imagenModal {
    width: auto !important;
    height: auto !important;
    max-width: 98vw !important;
    max-height: 95vh !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================
   MODAL INFO RESTAURANTE
   ============================================ */
#info-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

#info-modal .modal-content {
    background: #ffffff;
    margin: 3% auto;
    padding: 2rem;
    border-radius: 24px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

#info-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

#info-modal .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

#info-modal .close-modal {
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.2s;
}

#info-modal .close-modal:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

#info-modal .back-button {
    background: var(--primary-color);
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: background 0.2s;
}

#info-modal .back-button:hover {
    background: var(--primary-dark);
}

#info-modal .info-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

#info-modal .info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

#info-modal .info-item p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container-carta {
        padding: 15px;
    }

    .header-section {
        padding: 1.5rem;
    }

    h1.menu-title {
        font-size: 1.6rem;
    }

    .categorias-nav-wrapper {
        margin: 0 -15px 20px -15px;
        padding: 10px 15px;
    }

    .categoria-title {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }

    .plato-card {
        padding: 1rem;
    }

    .plato-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .plato-precios {
        text-align: left;
        margin-top: 5px;
    }

    .idiomas-tabs {
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .idioma-tab {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Aumentar tamaño de iconos de alérgenos para dedos */
    .alergenos-container img {
        width: 28px;
        height: 28px;
    }

    #info-modal .modal-content {
        margin: 5% auto;
        padding: 1.2rem;
        width: 95%;
    }

    #info-modal .modal-header h2 {
        font-size: 1.2rem;
    }

    #info-modal .close-modal {
        width: 36px;
        height: 36px;
    }

    #info-modal .info-item {
        padding: 1rem;
    }
}

/* Soporte para scroll con dedo en móvil */
@media (hover: none) and (pointer: coarse) {
    .categorias-nav {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
}


/*************google***************/

  /* Bloquear completamente el banner */
  .skiptranslate,
  .goog-te-banner-frame,
  .goog-te-balloon-frame,
  .VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      opacity: 0 !important;
  }

  /* Evitar el desplazamiento del body */
  body {
      top: 0px !important;
      margin-top: 0px !important;
      position: relative !important;
  }

  /* Ocultar el mensaje de "Mostrar texto original" */
  .goog-te-original-text {
      display: none !important;
  }

  /* Estilos para tabs de idiomas */
  .idiomas-tabs {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      background: #f8f9fa;
      padding: 0.5rem;
      border-radius: 50px;
      margin-bottom: 1.5rem;
  }

  .idioma-tab {
      padding: 0.5rem 1.5rem;
      border: none;
      border-radius: 30px;
      font-weight: 600;
      cursor: pointer;
      background: #e9ecef;
      color: #6c757d;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
  }

  .idioma-tab.active {
      background: #dc3545;
      color: white;
  }

  .categoria-section.oculta {
      display: none !important;
  }