/* =====================================================================
   Menu QR Maruanas — Identidad visual
   Paleta: negro + blanco + acento dorado (#c9a96e)
   Tipografía: Playfair Display (display), Cormorant Garamond (body),
               Allura (script), Inter (UI / cuerpo largo)
   ===================================================================== */

:root {
  --bg:        #0f0f0f;
  --bg-panel: #1a1a1a;
  --bg-panel-2: #141414;
  --fg:        #f4ecd8;
  --fg-muted:  #a39a85;
  --accent:    #c9a96e;
  --line:      rgba(201, 169, 110, 0.25);
  --radius:    6px;
  --maxw:      860px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Cormorant Garamond", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ====================== HOME ====================== */

.home-hero {
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
}
.home-hero__logo {
  max-width: 280px;
  width: 60%;
  height: auto;
}
.home-hero__sub {
  font-family: "Allura", cursive;
  font-size: 1.8rem;
  color: var(--accent);
  margin: .3rem 0 0;
  letter-spacing: .02em;
}

.lang-toggle {
  display: flex; justify-content: center;
  gap: .2rem; margin: 1.2rem 0 .5rem;
  font-family: "Inter", sans-serif;
  font-size: .8rem; letter-spacing: .08em;
}
.lang-toggle a {
  padding: .35rem .7rem;
  text-decoration: none; color: var(--fg-muted);
  border: 1px solid transparent; border-radius: 4px;
  transition: color .15s, border-color .15s;
}
.lang-toggle a.active, .lang-toggle a:hover {
  color: var(--accent); border-color: var(--accent);
}

.menu-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 800px; margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}
.menu-card {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 2.4rem 1rem 1.6rem;
  min-height: 180px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg); text-decoration: none;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.menu-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.menu-card__icon {
  font-size: 2.8rem; margin-bottom: .4rem;
  filter: grayscale(.3);
}
.menu-card__nombre {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ====================== DETAIL ====================== */

.detail-hero {
  padding: 2rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.detail-hero .back {
  position: absolute;
  left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); text-decoration: none;
  font-size: 1.3rem;
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.detail-hero .back:hover { border-color: var(--accent); }
.detail-hero__logo {
  max-height: 38px; width: auto; opacity: .95;
  margin-bottom: .5rem;
}
.detail-hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin: 0;
  font-size: 2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.detail-hero__sub {
  font-family: "Allura", cursive;
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: -.3rem;
}

.menu-detalle {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

.cat {
  margin: 2.2rem 0 1rem;
}
.cat h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1.05rem;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--fg);
  padding-bottom: .55rem;
  position: relative;
}
.cat h2::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
}

.items { list-style: none; padding: 0; margin: 0; }
.item {
  display: flex;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px dashed var(--line);
}
.item:last-child { border-bottom: none; }

.item__foto { display: none; }
.item__body { flex: 1; min-width: 0; }
.item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .15rem;
}
.item__nombre {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}
.item__precio {
  font-family: "Inter", sans-serif;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
}
.item__tags {
  display: inline-flex;
  gap: .3rem;
  margin-left: .35rem;
  vertical-align: middle;
}
.tag {
  font-size: .78rem;
  line-height: 1;
  padding: 0;
  background: transparent;
  cursor: default;
}
.tag[title] { border-bottom: 1px dotted var(--fg-muted); }
.item__desc {
  margin: .15rem 0 0;
  color: var(--fg-muted);
  font-size: .92rem;
  font-style: italic;
  line-height: 1.35;
}

/* ====================== FOOTER (opcional, para horarios) ====================== */

.menu-footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: .85rem;
  color: var(--fg-muted);
}
.menu-footer strong {
  display: block;
  color: var(--fg);
  letter-spacing: .08em;
  margin-bottom: .2rem;
}
.menu-legend {
  margin-top: .8rem;
  font-size: .8rem;
  color: var(--fg-muted);
}
.menu-legend span { margin: 0 .7rem; }

/* ====================== INFO BAR (arriba del detalle) ====================== */

.info-bar {
  max-width: var(--maxw);
  margin: 1.5rem auto 0;
  padding: 1.2rem 1.25rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  color: var(--fg-muted);
}
.info-bar__block {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1 1 220px;
}
.info-bar__label {
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
}
.info-bar__value {
  color: var(--fg);
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: .15rem;
}
.info-bar__small {
  font-size: .78rem;
  color: var(--fg-muted);
}
.leg-icon {
  width: 16px; height: 16px;
  vertical-align: middle;
  margin-right: .25rem;
  filter: invert(72%) sepia(23%) saturate(780%) hue-rotate(3deg) brightness(92%) contrast(87%); /* tinte dorado sobre el SVG negro */
}

/* Botón descarga PDF */
.btn-pdf {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  letter-spacing: .06em;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.btn-pdf:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ====================== TAGS (iconos al lado del nombre del plato) ====================== */

.item__tags {
  display: inline-flex;
  gap: .3rem;
  margin-left: .4rem;
  vertical-align: middle;
  align-items: center;
}
.tag-icon {
  width: 16px; height: 16px;
  vertical-align: middle;
  filter: invert(72%) sepia(23%) saturate(780%) hue-rotate(3deg) brightness(92%) contrast(87%); /* dorado */
}
.tag-icon--vg {
  filter: invert(68%) sepia(22%) saturate(590%) hue-rotate(62deg) brightness(92%) contrast(85%); /* verde suave */
}
.tag--txt {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .1rem .35rem;
  border-radius: 3px;
  background: rgba(201,169,110,.15);
  color: var(--accent);
  line-height: 1;
  vertical-align: middle;
}
.tag--new { background: rgba(100,180,255,.15); color: #8cbef3; }
.tag--rec { background: rgba(255,200,90,.15); color: #ffcf7a; }

/* ====================== RESPONSIVE INFO BAR ====================== */

@media (max-width: 640px) {
  .info-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .8rem;
  }
  .info-bar__block { flex: initial; }
  .btn-pdf { align-self: flex-start; }
}

/* ====================== CATEGORIA CON FOTO (banner lateral) ====================== */

.cat--with-photo {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.cat__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
}
.cat__content { min-width: 0; }

/* Mobile: foto como banner horizontal arriba del contenido */
@media (max-width: 700px) {
  .cat--with-photo {
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .cat__photo {
    aspect-ratio: 16 / 7;
    position: static;
    max-height: 160px;
  }
}

/* Remover el item__foto si queda en el HTML por error */
.item__foto { display: none; }
