/* =========================================================
   Restaurante Plaza — Propuesta de rediseño
   Marisquería y cocina casera desde 1980, Torrejón de Ardoz.
   Estética elegante y cálida: salvia, taupe, crema y dorado —
   inspirada en el propio comedor real (paredes taupe, sillas
   salvia, apliques dorados), no en una plantilla genérica.
   ========================================================= */

:root {
  /* Marca */
  --sage-900: #2f3a2c;
  --sage-700: #55684f;
  --sage-500: #7c9271;
  --sage-300: #b3c2a8;
  --sage-050: #eef2ea;

  --taupe-700: #6d6259;
  --taupe-300: #cbbfb0;

  --gold: #ab8a4c;
  --gold-light: #d9bd80;
  --terracotta: #a5533c;

  /* Neutros — crema cálido, no blanco de "app" */
  --ink: #292420;
  --ink-soft: #5e564c;
  --line: #e4dcca;
  --bg: #fbf8f2;
  --bg-soft: #f2ebdc;
  --bg-dark: #1c2418;
  --white: #ffffff;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 5px 16px rgba(41, 36, 32, .08);
  --shadow: 0 16px 38px rgba(41, 36, 32, .14);
  --shadow-lg: 0 26px 64px rgba(41, 36, 32, .22);

  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 600; letter-spacing: -.01em; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: .92rem;
  letter-spacing: .04em; color: var(--gold);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }

.section { padding: clamp(60px, 8vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--gold); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.04rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: var(--radius);
  cursor: pointer; border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sage-700); color: #fff; }
.btn-primary:hover { background: var(--sage-900); }
.btn-wa { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: #25D366; color: #1a8f47; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--sage-900); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 20px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.scrolled { background: rgba(251,248,242,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(41,36,32,.1); padding: 12px 0; }

/* Header sobre el hero (foto): velo oscuro mientras no se hace scroll */
.header--hero:not(.scrolled)::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,16,10,.62), rgba(20,16,10,0));
  z-index: 0;
}
.header--hero:not(.scrolled) .brand,
.header--hero:not(.scrolled) .nav-links > a,
.header--hero:not(.scrolled) .burger { color: #fff; }
.header--hero:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.header--hero:not(.scrolled) .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.header.scrolled .brand,
.header.scrolled .nav-links > a,
.header.scrolled .burger { color: var(--ink); }

.header .nav { position: relative; z-index: 5; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; }
.brand b { font-weight: 700; color: var(--gold-light); font-style: italic; }
.header.scrolled .brand b { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: .94rem; }
.nav-links > a { transition: color .2s; }
.nav-links > a:hover { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; position: relative; background: none; border: 0; width: 28px; height: 28px; cursor: pointer; }
.burger svg { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; transition: opacity .2s; }
.burger .icon-close { opacity: 0; }
.header.menu-open .burger .icon-menu { opacity: 0; }
.header.menu-open .burger .icon-close { opacity: 1; }

/* El panel exterior anima max-height y NO lleva padding propio: el padding no
   se comprime por debajo de max-height y dejaría una barra visible tapando la
   cabecera incluso "cerrado". El padding real vive en .mobile-menu-inner.
   z-index por debajo de .header .nav (5) para que marca+hamburguesa (que
   también cierra el menú) queden siempre visibles y pulsables encima. */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--bg-dark); box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.mobile-menu.open { max-height: 100vh; overflow-y: auto; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; padding: 92px 24px 24px; }
.mm-link { padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 500; color: rgba(255,255,255,.9); font-size: .98rem; }
.mm-cta { justify-content: center; margin-top: 16px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(18,14,9,.32) 0%, rgba(18,14,9,.52) 55%, rgba(18,14,9,.88) 100%), url('img/comedor-general.jpg') center 40% / cover no-repeat;
}
.hero-inner { color: #fff; max-width: 680px; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.7rem); margin: 20px 0 18px; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 600; }
.hero .lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 32px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.hero-since { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.68); font-size: .88rem; letter-spacing: .02em; flex-wrap: wrap; }
.hero-since b { color: var(--gold-light); font-family: var(--font-display); font-size: 1.1rem; }
.hero-since .div { width: 1px; height: 20px; background: rgba(255,255,255,.3); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ---------- Historia (texto + foto) ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .section-head { margin-bottom: 28px; }
.about-text > p { color: var(--ink-soft); margin-bottom: 24px; font-size: 1.02rem; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trait .num { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); font-weight: 600; flex-shrink: 0; width: 26px; }
.trait h4 { font-size: 1rem; margin-bottom: 4px; }
.trait p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .about-photo { aspect-ratio: 16/9; } }

.zones { background: var(--bg-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }

/* ---------- Espacios ---------- */
.espacio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.espacio-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.espacio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.espacio-card .photo { aspect-ratio: 4/3; overflow: hidden; }
.espacio-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.espacio-card:hover .photo img { transform: scale(1.06); }
.espacio-card .body { padding: 22px 24px 26px; }
.espacio-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.espacio-card p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- La Carta ---------- */
.plato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 54px; }
.plato { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/5; }
.plato img { width: 100%; height: 100%; object-fit: cover; }
.plato-caption { position: absolute; inset: auto 0 0 0; padding: 18px 16px; background: linear-gradient(180deg, transparent, rgba(20,16,10,.9)); color: #fff; }
.plato-caption .tag { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-light); margin-bottom: 3px; font-weight: 600; }
.plato-caption h3 { font-size: 1.04rem; color: #fff; font-weight: 600; }

.menu-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; }
.menu-category { margin-bottom: 38px; break-inside: avoid; }
.menu-category h3 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600;
  color: var(--sage-900); padding-bottom: 10px; border-bottom: 2px solid var(--gold); margin-bottom: 6px;
}
.menu-list { list-style: none; }
.menu-item { display: flex; align-items: baseline; gap: 8px; padding: 11px 0; border-bottom: 1px dotted var(--line); }
.menu-item .name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .97rem; }
.menu-item .name small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }
@media (max-width: 820px) { .menu-cols { grid-template-columns: 1fr; } }

.menu-note {
  background: var(--bg-soft); border-left: 3px solid var(--gold);
  padding: 18px 24px; margin-top: 10px; color: var(--ink-soft); font-size: .92rem;
}
.menu-note b { color: var(--sage-900); }

/* ---------- Bodega ---------- */
.bodega-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.bodega-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; }
.bodega-photo img { width: 100%; height: 100%; object-fit: cover; }
.bodega-text > p { color: var(--ink-soft); margin-bottom: 20px; }
.bodega-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bodega-chip { font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--sage-900); background: var(--sage-050); border-radius: var(--radius-pill); padding: 9px 18px; }
@media (max-width: 880px) { .bodega-grid { grid-template-columns: 1fr; gap: 30px; } .bodega-photo { aspect-ratio: 16/9; } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-dark); border-radius: var(--radius-lg); padding: 46px 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stats .num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; color: var(--gold-light); }
.stats .lbl { color: rgba(255,255,255,.62); font-size: .85rem; margin-top: 8px; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 18px; } }

/* ---------- Galería ---------- */
.gallery-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-teaser figure, .gallery figure { border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-teaser img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-teaser figure:hover img, .gallery figure:hover img { transform: scale(1.06); }
@media (max-width: 720px) { .gallery-teaser { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Celebraciones: menús de grupo reales ---------- */
.occasions { background: var(--bg-soft); }
.celeb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.celeb-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.celeb-card.highlight { border-color: var(--gold); box-shadow: var(--shadow-sm); background: linear-gradient(180deg, #fff, var(--sage-050)); }
.celeb-card .price-tag { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--sage-900); }
.celeb-card h4 { font-size: 1.02rem; margin: 6px 0 12px; }
.celeb-card p { font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.celeb-card .incl { margin-top: 12px; font-size: .78rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Info práctica ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.info-item { padding: 26px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item h4 { font-size: 1rem; margin-bottom: 8px; }
.info-item p { color: var(--ink-soft); font-size: .9rem; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td { padding: 10px 4px; border-bottom: 1px dotted var(--line); font-size: .94rem; }
.hours-table td:first-child { color: var(--ink-soft); }
.hours-table td:last-child { text-align: right; font-family: var(--font-display); font-weight: 600; }
.hours-table tr:last-child td { border-bottom: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 46px); }
.contact-card .eyebrow { margin-bottom: 16px; }
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; }
.contact-card > p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line .ico { font-size: 1.15rem; width: 24px; text-align: center; flex: 0 0 auto; }
.contact-line small { display: block; color: var(--ink-soft); font-size: .8rem; }
.contact-line b { font-size: 1rem; font-weight: 600; }
.contact-actions { display: flex; gap: 12px; margin: 24px 0 20px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--sage-900); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }
.socials svg { width: 17px; height: 17px; }

.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.map-card iframe { width: 100%; height: 100%; border: 0; min-height: 320px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { background: var(--bg-dark); }
.cta-box { text-align: center; color: #fff; }
.cta-box .eyebrow { justify-content: center; }
.cta-box .eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--gold); }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0; font-weight: 500; }
.cta-box p { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 28px; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-box .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer { background: var(--sage-900); color: rgba(255,255,255,.72); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: .94rem; letter-spacing: .04em; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--gold-light); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand b { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Llamar flotante ---------- */
/* Botón de llamada directa, no WhatsApp: el negocio menciona "contacta por
   WhatsApp" pero no publica ningún enlace wa.me ni número de WhatsApp
   Business real (solo tel: en todo el sitio), así que el CTA persistente
   debe ser "llamar", el único canal 100% verificado hoy. */
.call-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: var(--sage-700); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 1.5px solid rgba(255,255,255,.2); transition: transform .3s var(--ease);
}
.call-float:hover { transform: scale(1.06); background: var(--sage-900); }
.call-float svg { width: 26px; height: 26px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18,14,9,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .hero { padding-top: 90px; }
}
