/* Base */
html { 
  font-size: 62.5%; 
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #101010;
  background: #ffffff;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  overflow-x: hidden;
}
.logo-img {
  margin-top: 1rem;

}
/* Screen reader only - oculto para SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header */
.brand {
  text-align: center;
  margin-bottom: 12px;
}

.brand h2 {
  font-weight: 600;
  letter-spacing: 3px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  color: #101010;
  text-transform: uppercase;
}

.brand h2::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 200px;
  height: 4px;
  background: #97c6f0; /* Línea azul */
  margin: 8px auto 0; /* Espaciado */
  border-radius: 2px;
}

/* Divider like the posters */
.divider {
  height: 6px;
  background: #101010;
  mask-image: linear-gradient(90deg, #000 45%, transparent 45%);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 45%);
  mask-size: 18px 6px;
  -webkit-mask-size: 18px 6px;
  border-radius: 3px;
  margin: 14px 0 28px;
}

/* Two column page layout */
.page-grid {
  display: flex;
  gap: 36px;
  align-items: start;
  width: 100%;
}

.col { 
  display: flex; 
  flex-direction: column; 
  gap: 28px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Section */
.section h2 {
  font-size: 2.4rem;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
}
.section h2::first-letter { text-transform: uppercase; }

.section .subtitle {
  color: #cecece;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* List */
.list { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #97c6f0;
  max-width: 100%;
}

.row.no-price {
  grid-template-columns: 1fr;
}
.row:last-child {
  border-bottom: none;
}
.name { 
  font-size: 1.6rem; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.price { 
  font-weight: 700; 
  font-size: 1.6rem; 
  white-space: nowrap;
}

.prices-blocked-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 2px solid #101010;
  border-radius: 10px;
  background: #f0f6fd;
  font-size: 1.4rem;
  font-weight: 600;
  color: #101010;
  text-align: center;
}

/* Alt price (pipes) */
.dual { display: inline-block; background: #97c6f0; color: #101010; border-radius: 10px; padding: 2px 8px; margin-left: 6px; font-weight: 700; }

/* Right column headline blues like poster */
.blue h2 { color: #101010; }
.blue .name strong { color: #101010; }

/* Footer strip */
.footer-note { text-align: center; margin-top: 40px; color: #cecece; font-size: 1.2rem; letter-spacing: 1px; }

/* Responsive */
@media (max-width: 900px) {
  .page-grid { 
    flex-direction: column;
    gap: 28px;
  }
  .col {
    width: 100%;
    max-width: 100%;
  }
}

/* Estilo para el logo en dispositivos móviles */
@media (max-width: 768px) {
  .logo-img {
    width: 100%; /* Ajusta el ancho del logo al 100% del contenedor */
    height: auto; /* Mantiene la proporción del logo */
    max-width: 220px; /* Establece un límite máximo de ancho */
    margin: 0 auto; /* Centra el logo horizontalmente */
    display: block; /* Asegúrate de que sea un bloque para centrar correctamente */
    margin-top: 1rem;
  }
}

/* Navbar (similar al de referencia) */
.category-navbar {
  position: sticky;
  top: 0;
  background: #ffffffd9;
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #101010;
  z-index: 1000;
  margin-bottom: 18px;
  scrollbar-color: #97c6f0 transparent; /* Color del scroll */
  scrollbar-width: thin; /* Grosor del scroll */
}

.nav-container {
  display: flex;
  gap: 4px;
  overflow: auto;
  padding: 8px 8px;
}

.nav-container::-webkit-scrollbar {
  height: 6px; /* Altura del scroll */
}

.nav-container::-webkit-scrollbar-thumb {
  background: #97c6f0; /* Color del scroll */
  border-radius: 999px;
}

.nav-container::-webkit-scrollbar-track {
  background: transparent;
}

.nav-item { font-size: 1.2rem; font-weight: 700; color: #101010; text-decoration: none; padding: 10px 14px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap; }
.nav-item:hover { background: #97c6f0; color: #101010; }
.nav-item.active { background: #101010; color: #fff; }

/* Botones reseña */
.reviews-cta { display: flex; gap: 12px; justify-content: center; margin: 14px 0 18px; }
.btn.review { display: inline-block; text-decoration: none; font-weight: 800; border-radius: 999px; padding: 12px 20px; border: 2px solid #101010; transition: all 0.2s; font-size: 1.4rem; letter-spacing: 0.3px; }
.btn.review.google { background: #4285f4; color: #fff; border-color: #1a73e8; box-shadow: 0 6px 16px rgba(66,133,244,0.35); }
.btn.review.google:hover { background: #1a73e8; transform: translateY(-1px); color:#fff; }

/* ───────── Horarios (footer) ───────── */
.site-footer { margin-top: 18px; padding: 18px 0; border-top: 1px solid #cecece; background: #fff; overflow-x: hidden; }
.footer-content { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-section { margin-bottom: 10px; }
.footer-image-section { width: 100%; margin-top: 24px; padding: 0; max-width: 100%; }
.footer-img { width: 100%; height: auto; display: block; max-width: 100%; }
.footer-title { font-size: 1.8rem; font-weight: 800; letter-spacing: 1px; margin: 0 0 10px 0; text-align: center; color: #101010; }
.horarios-table { width: 100%; max-width: 520px; margin: 0 auto; border-collapse: collapse; font-size: 1.4rem; }
.horarios-table th { background: #97c6f0; color: #101010; padding: 10px 8px; border-bottom: 2px solid #cecece; font-weight: 700; }
.horarios-table td { padding: 10px 8px; border-bottom: 1px solid #cecece; text-align: center; }
.horario-dia { text-align: left; font-weight: 700; color: #101010; }
.horario-horas { color: #101010; }
.horario-row.today { background: #101010; color: #fff; }
.horario-row.today .horario-dia, .horario-row.today .horario-horas { color: #fff; }

/* ───────── Modal de Avisos ───────── */
.aviso-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(16, 16, 16, .75); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: .3s ease; backdrop-filter: blur(6px); }
.aviso-modal.show { opacity: 1; visibility: visible; }
.aviso-content { background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); width: 420px; max-width: 92%; overflow: hidden; transform: translateY(10px); transition: .25s ease; border: 2px solid #97c6f0; }
.aviso-modal.show .aviso-content { transform: translateY(0); }
.aviso-header { position: relative; color: #101010; padding: 18px 18px 12px 18px; background: #f8f9fa; }
.aviso-emoji { font-size: 32px; display: block; margin-bottom: 6px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
.aviso-titulo { margin: 0; font-size: 1.8rem; font-weight: 800; color: #101010; }
.aviso-close { position: absolute; right: 10px; top: 10px; background: #cecece; color: #101010; border: none; border-radius: 999px; width: 32px; height: 32px; cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.aviso-close:hover { background: #97c6f0; }
.aviso-body { padding: 16px 18px 20px 18px; font-size: 1.6rem; color: #101010; background: #fff; }
.aviso-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #cecece; }
.aviso-progress-bar { height: 100%; width: 100%; background: #97c6f0; transform-origin: left; animation: avisoShrink 8s linear forwards; }
@keyframes avisoShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ───────── Miniaturas de producto ───────── */
.name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  border: 1.5px solid #97c6f0;
  transition: transform .15s ease, box-shadow .15s ease;
}

.item-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 10px rgba(151, 198, 240, .5);
}

/* ───────── Modal Imagen ───────── */
.img-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 16, 16, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  backdrop-filter: blur(6px);
}

.img-modal.show {
  opacity: 1;
  visibility: visible;
}

.img-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  transform: scale(.92);
  transition: transform .25s ease;
}

.img-modal.show .img-modal-content {
  transform: scale(1);
}

.img-modal-content img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .45);
  object-fit: contain;
}

.img-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  background: #fff;
  color: #101010;
  border: 2px solid #97c6f0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .15s;
  z-index: 1;
}

.img-modal-close:hover {
  background: #97c6f0;
  transform: scale(1.1);
}

/* Responsive thumbnails */
@media (max-width: 480px) {
  .item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }
  .img-modal-close {
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}


/* ── Alérgenos (server-side, renderAllergenIcons del core) ───────────── */
.carta-item-allergens {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.allergen-icon-wrap {
    display: inline-flex;
    align-items: center;
    width: 22px;
    height: 22px;
}
.allergen-icon-wrap img {
    width: 22px;
    height: 22px;
    display: block;
    opacity: .9;
}
.adaptable-badge {
    background: #16a34a;
    color: #fff;
    font-size: .65rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.no-allergens { display: none; }

/* ── Variantes de precio (renderizadas en la celda price) ───────────── */
/* La media y la ración NO muestran su etiqueta de texto: se distinguen
   por el color de la pastilla. Media → pastilla blanca con borde;
   Ración (y cualquier variante posterior) → pastilla azul rellena. */
.list-price-opts {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.price-opt { white-space: nowrap; }
.price-opt-name { display: none; }            /* ocultar "Media" / "Ración" */
.price-opt-value {
    display: inline-block;
    min-width: 64px;
    text-align: center;
    padding: 3px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
  }
  /* Media (1ª variante) → en blanco */
  .price-opt:first-child .price-opt-value {
    background: #ffffff;
    color: #101010;
}
/* Ración (2ª en adelante) → fondo azul redondeado */
.price-opt:not(:first-child) .price-opt-value {
    background: #97c6f0;
    color: #101010;
    border: 2px solid #97c6f0;
}

.cc-alf-btn-apply{
    background: #a4c5ec !important;
}
.cc-alf-toggle.has-filters {
    background: #a4c5ec !important;
    border-color: #a4c5ec !important;
}
