/* Bacoa Tarragona - Carta. Estilos de marca sobre Tailwind. */

/* Fuente de marca Galano Grotesque Alt (del cliente, Drive).
   Titulos de subseccion en Pacifico (script libre, Google Fonts). */
@font-face {
  font-family: 'Galano Grotesque Alt';
  src: url('fonts/GalanoGrotesqueAlt-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Galano Grotesque Alt';
  src: url('fonts/GalanoGrotesqueAlt-SemiBold.otf') format('opentype');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F4EFE3;
  --ink: #141414;
  --orange: #EC5A2A;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Footer anclado abajo: el contenido crece y empuja el footer al fondo del
   viewport, asi no sube/baja al abrir o cerrar acordeones con poco contenido. */
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
#menu { flex: 1 0 auto; }

/* Logo oficial (SVG del Figma) */
.logo-img { height: 30px; width: auto; display: block; }
.logo-img--footer { height: 26px; filter: invert(1); }

/* Logo BACOA en baldosas: solo para el placeholder de fotos sin imagen */
.logo {
  display: inline-flex;
  gap: 4px;
}
.logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 7px;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
}
.logo--sm span { width: 26px; height: 26px; font-size: 16px; }
footer .logo span { background: var(--cream); color: var(--ink); }

/* Toggle idioma */
.lang-toggle {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.lang-btn.is-active {
  background: var(--ink);
  color: var(--cream);
}

/* Barra de seccion (acordeon) */
.sec-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 7px 12px;
  box-shadow: 2px 3px 0 var(--ink);
  cursor: pointer;
  text-align: left;
}
.sec-bar__title {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--orange);
  font-size: 18px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sec-chevron { transition: transform .2s ease; flex: none; }
.sec-bar[aria-expanded="true"] .sec-chevron { transform: rotate(180deg); }

/* Tag pill naranja */
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 2px 9px;
  border-radius: 999px;
}
.pill--dark { background: var(--ink); }
/* Tags de subseccion (p. ej. "a la parrilla o rebozada"): Galano (no heredar Pacifico), minuscula */
.subtitle .pill { font-family: 'Galano Grotesque Alt', system-ui, sans-serif; text-transform: none; letter-spacing: 0; }

/* Titulo de subseccion (script) */
.subtitle {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tarjeta de plato */
.card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(20, 20, 20, 0.06);
}
.card__media {
  position: relative;
  flex: none;
  width: 60%;
  align-self: stretch;
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5dfd0;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(236,90,42,.12), transparent 60%),
    #ece6d8;
}
.card__placeholder .logo span { width: 22px; height: 22px; font-size: 13px; opacity: .55; }

.card__badge {
  position: absolute;
  top: 8px; left: 8px;
}

.card__body { flex: 1 1 auto; min-width: 0; padding-top: 2px; display: flex; flex-direction: column; }
.card__head { }
.card__name {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__price {
  color: var(--orange);
  font-weight: 800;
  font-size: 15px;
  margin-top: 1px;
}
.card__desc {
  color: #4a463d;
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: 8px;
}

/* Lista de suplementos / extras */
.supp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  padding: 3px 0;
}
.supp-row__name { font-weight: 700; }
.supp-row__name::after {
  content: "";
  display: inline-block;
}
.supp-row__price { color: var(--orange); font-weight: 800; flex: none; }

.intro-text { font-size: 13px; font-weight: 600; color: #3b382f; }
.section-note { font-size: 12px; color: #6a665b; font-style: italic; }

/* Borde zigzag inferior */
.zigzag {
  height: 26px;
  background: url('img/band.svg') repeat-x;
  background-size: auto 100%;
}

/* Animacion de despliegue */
.sec-content { overflow: hidden; }
.sec-content[hidden] { display: none; }

/* Siempre 1 columna; en pantallas grandes la tarjeta crece (foto grande + contenido al lado) */
.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 768px) {
  .items-grid { gap: 28px; }
  .sec-bar__title { font-size: 20px; }
  .card { gap: 24px; padding: 16px; }
  /* Proporción del diseñador: foto 3/5, contenido 2/5. La foto llena la altura. */
  .card__media { width: 60%; max-width: none; aspect-ratio: auto; align-self: stretch; min-height: 240px; border-radius: 14px; }
  .card__name { font-size: 18px; }
  .card__price { font-size: 18px; }
  .card__desc { font-size: 14px; }
}
@media (min-width: 1024px) {
  .subtitle { font-size: 30px; }
  .card__media { min-height: 280px; }
  .card__name { font-size: 20px; }
  .card__price { font-size: 20px; }
  .card__desc { font-size: 15px; }
}
