/* ==========================================================
   Restaurante Lola — «Mantel de cuadros»
   ========================================================== */
:root {
  --navy: #1F3A5F;
  --navy-dark: #152A46;
  --amber: #E8A34B;
  --amber-soft: #FCEFD8;
  --stone: #C9B79C;
  --sand: #F3EADB;
  --cream: #FCF9F4;
  --white: #FFFFFF;
  --ink: #23303F;
  --muted: #4A5868;
  --line: #E8DFD1;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(31, 58, 95, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gingham:
    linear-gradient(90deg, rgba(31, 58, 95, .085) 50%, transparent 0),
    linear-gradient(rgba(31, 58, 95, .085) 50%, transparent 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Marcadores de datos pendientes */
.placeholder {
  display: inline-block;
  background: var(--amber-soft);
  border: 1px dashed #A8661B;
  color: #6B3F0C;
  padding: 0 .35em;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 .85rem/1.2 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy-dark); box-shadow: 0 8px 20px rgba(232, 163, 75, .35); }
.btn-amber:hover { background: #F0B25F; color: var(--navy-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 0;
}
.brand {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--navy);
}
.brand-name {
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(1.55rem, 4.2vw, 2.3rem); letter-spacing: -.015em;
  white-space: nowrap;
}
.brand { flex: none; }
.brand-spoon { width: clamp(80px, 11vw, 132px); margin-top: .2rem; color: var(--navy); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s, opacity .25s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(31, 58, 95, .08);
  padding: .5rem 1.25rem 1.5rem;
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none; text-transform: uppercase;
  letter-spacing: .1em; font-size: .85rem; font-weight: 500; color: var(--navy);
}
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; }
.nav-actions .btn { flex: 1; }
.lang-switch {
  min-width: 48px; height: 44px; padding: 0 .8rem;
  border-radius: 999px; border: 1px solid var(--stone); background: #fff;
  font: 600 .8rem/1 var(--sans); letter-spacing: .1em; color: var(--navy); cursor: pointer;
}
.lang-switch:hover { background: var(--sand); }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 1.25rem;
    padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .site-header .brand-name { font-size: 2.1rem; }
  .site-nav ul { display: flex; gap: 1.25rem; }
  .site-nav li a { border: 0; padding: .4rem 0; font-size: .78rem; white-space: nowrap; }
  .site-nav li a:hover { box-shadow: inset 0 -2px 0 var(--stone); }
  .nav-actions { margin: 0; }
  .nav-actions .btn { flex: none; padding: .8rem 1.4rem; font-size: .78rem; }
}

/* ---------- Hero portada ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: #fff; background-image: var(--gingham); background-size: 56px 56px;
}
.hero-inner {
  display: grid; gap: 1.5rem; align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 { margin-bottom: .35em; }
.hero-lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--ink); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero-art { margin: 0 -1.25rem; }
.hero-art img { width: 100%; }
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1.15fr;
    min-height: min(78vh, 680px);
    padding-top: 0;
  }
  .hero-text { padding-block: 4rem; }
  .hero-art { align-self: end; margin: 2rem -4vw 0 0; }
}

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  background-color: #fff; background-image: var(--gingham); background-size: 48px 48px;
  text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.page-hero .lead {
  max-width: 46ch; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.25rem);
  background: rgba(255, 255, 255, .85); border-radius: 12px; padding: .25rem .75rem;
}
.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); background: var(--amber-soft); padding: .3rem .8rem; border-radius: 999px;
}
.sprig { width: 120px; margin: 1.25rem auto 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.25rem, 8vw, 5.5rem) 0; }
.section-tight { padding-top: 0; }
.section-title { text-align: center; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-title p { color: var(--muted); max-width: 52ch; margin: .25rem auto 0; }
.bg-white { background: #fff; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem 1.5rem;
}
.cards-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card { text-align: center; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 58, 95, .12); }
.service-card img { width: 180px; margin: 0 auto 1rem; }
.service-card h3 { margin-bottom: .35em; }
.service-card p { color: var(--muted); margin: 0 auto; max-width: 30ch; }

/* Sobre nosotros + reservas (portada) */
.split { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .split { grid-template-columns: 1.75fr 1fr; align-items: stretch; } }
.about-panel {
  background: var(--sand); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid; gap: 1.75rem; align-items: center;
}
.about-panel .frame { max-width: 280px; margin: 0 auto; filter: drop-shadow(0 12px 18px rgba(60, 35, 10, .2)); }
@media (min-width: 640px) { .about-panel { grid-template-columns: .9fr 1.1fr; } }
.about-panel p { color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--amber); }
.link-arrow::after { content: " →"; }

.booking-card h2, .booking-card h3 { text-align: center; margin-bottom: .2em; }
.booking-card > p { text-align: center; color: var(--muted); font-size: .95rem; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field legend { font-weight: 500; font-size: .92rem; color: var(--navy); }
.field .req { color: #A2531A; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  width: 100%; min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid #CDBFA8; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(232, 163, 75, .55);
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .85rem; min-height: 0; }
.hint { font-size: .85rem; color: var(--muted); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--navy); flex: none; }

.table-hint {
  display: flex; gap: .8rem; align-items: center;
  border: 1px dashed var(--stone); border-radius: 10px; padding: .7rem .9rem;
  font-size: .88rem; color: var(--muted);
}
.table-hint svg { width: 40px; flex: none; color: var(--navy); }

/* Plano de sala */
.floor-wrap { border: 0; padding: 0; margin: 0; min-width: 0; }
.floor-wrap legend { margin-bottom: .5rem; }
.floor {
  position: relative;
  background: var(--cream); border: 2px solid var(--stone); border-radius: 16px;
  padding: 2.25rem 1rem 1rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
}
.floor::before {
  content: attr(data-label); position: absolute; top: .55rem; left: 1rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.table-opt { position: relative; display: block; cursor: pointer; }
.table-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.table-opt > span {
  display: grid; place-items: center; aspect-ratio: 1;
  border: 2px solid var(--navy); border-radius: 12px; background: #fff;
  font-weight: 600; font-size: .9rem; color: var(--navy);
  transition: background-color .2s, transform .2s;
}
.table-opt.round > span { border-radius: 50%; }
.table-opt.wide { grid-column: span 2; }
.table-opt.wide > span { aspect-ratio: auto; height: 100%; min-height: 56px; }
.table-opt:hover > span { background: var(--sand); }
.table-opt input:checked + span { background: var(--amber); transform: scale(1.04); box-shadow: 0 6px 14px rgba(232, 163, 75, .4); }
.table-opt input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }
.no-pref { margin-top: .75rem; }
.no-pref span { aspect-ratio: auto !important; padding: .65rem 1rem; border-radius: 999px !important; }
.no-pref input:checked + span { transform: none; }

.form-status {
  margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 12px;
  background: #EEF3F9; border-left: 4px solid var(--navy);
}
.form-status[hidden] { display: none; }
.form-status h3 { font-size: 1.2rem; }
.form-status ul { margin: .5rem 0 0; padding-left: 1.2rem; }

.booking-layout { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .booking-layout { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.aside-card + .aside-card { margin-top: 1.5rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.75rem; margin-bottom: 1rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber); color: var(--navy-dark); font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.1rem; font-weight: 500; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; margin-left: auto; flex: none;
  width: .6rem; height: .6rem;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-icon {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand);
}
.faq-icon svg { width: 1.1rem; color: var(--navy); }
.faq-item .faq-body { padding: 0 1.1rem 1.1rem 4.1rem; color: var(--muted); }
.faq-item .faq-body p:last-child { margin: 0; }

.home-bottom { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .home-bottom { grid-template-columns: 1fr 1.25fr; } }

/* ---------- Contacto ---------- */
.contact-card { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 640px) { .contact-card { grid-template-columns: 1fr 1.1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list svg { width: 22px; flex: none; margin-top: .2rem; color: var(--navy); }
.contact-list strong { display: block; color: var(--navy); font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
.map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map figcaption { font-size: .8rem; color: var(--muted); padding: .5rem .75rem; background: #fff; }

/* ---------- Bloques de contenido ---------- */
.feature { display: grid; gap: 2rem; align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 5rem); }
.feature-media {
  background: #fff; background-image: var(--gingham); background-size: 36px 36px;
  border-radius: var(--radius); border: 1px solid var(--line);
  padding: clamp(1.5rem, 5vw, 3rem); display: grid; place-items: center;
}
.feature-media img { width: min(320px, 100%); }
.feature-text p { color: var(--muted); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature.reverse .feature-media { order: 2; }
}
.values { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { text-align: center; }
.value-num {
  font-family: var(--serif); font-size: 2.5rem; color: var(--amber); line-height: 1;
  display: block; margin-bottom: .5rem; font-weight: 700;
  -webkit-text-stroke: 1px #A8661B;
}
.value p { color: var(--muted); margin: 0; }

.cta-band {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.5rem); text-align: center;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .05) 50%, transparent 0),
    linear-gradient(rgba(255, 255, 255, .05) 50%, transparent 0);
  background-size: 44px 44px;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 50ch; margin: 0 auto 1.5rem; color: #E6ECF4; }

/* ---------- Pie ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  border-radius: 36px 36px 0 0;
  padding: 3rem 0 1.5rem; margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-inner { display: grid; gap: 1.75rem; justify-items: center; text-align: center; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; }
.footer-brand .brand-spoon { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-nav li + li::before { content: "|"; color: var(--stone); margin: 0 1rem; }
.footer-nav a { color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }
.footer-tagline { color: #DCE3EC; margin: 0; }
.copyright { text-align: center; color: #CBD5E1; font-size: .88rem; margin: 2rem 0 0; }
.footer-sprig { position: absolute; bottom: 1.25rem; width: 130px; opacity: .8; }
.footer-sprig.left { left: 1.5rem; }
.footer-sprig.right { right: 1.5rem; transform: scaleX(-1); }
@media (max-width: 700px) { .footer-sprig { display: none; } }
@media (min-width: 1000px) {
  .footer-inner { grid-template-columns: auto 1fr auto; justify-items: stretch; text-align: left; align-items: center; }
  .footer-brand { justify-self: start; }
  .footer-tagline { justify-self: end; }
}

/* Utilidades */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
