/* ============================================================
   LOS MEJORES RESTAURANTES MÁLAGA — Design System
   Paleta: rojo malagueño · arena · verde aceituna · slate
   Tipografía: Playfair Display (display) + Inter (body)
   Layout: columna central 900px, cards en grid fluido
   ============================================================ */

:root {
  --rojo:    #C8102E;
  --rojo-dk: #9e0d24;
  --arena:   #f7f3ee;
  --aceituna:#5a6e3a;
  --slate:   #3d3d3d;
  --muted:   #6b6b6b;
  --border:  #e0d9d0;
  --bg:      #ffffff;
  --bg-alt:  #f7f3ee;
  --fg:      #1e1e1e;
  --card-bg: #ffffff;
  --card-sh: 0 2px 12px rgba(0,0,0,.08);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --max:        900px;
  --radius:     10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #18181a;
    --bg-alt:  #222224;
    --fg:      #f0ede8;
    --arena:   #2a2826;
    --border:  #35322e;
    --card-bg: #222224;
    --card-sh: 0 2px 12px rgba(0,0,0,.35);
    --muted:   #9a9590;
    --slate:   #d0ccc6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:      #18181a;
  --bg-alt:  #222224;
  --fg:      #f0ede8;
  --arena:   #2a2826;
  --border:  #35322e;
  --card-bg: #222224;
  --card-sh: 0 2px 12px rgba(0,0,0,.35);
  --muted:   #9a9590;
  --slate:   #d0ccc6;
  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  padding-inline: 20px;
  padding-block: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--rojo); }
a:hover { color: var(--rojo-dk); }

/* ── Wrapper ── */
.wrap { max-width: var(--max); margin-inline: auto; }

/* ── Site header ── */
.site-header {
  background: var(--rojo);
  padding-block: 14px;
  padding-inline: 20px;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  margin-inline: -20px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-logo {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.site-logo span { font-weight: 400; opacity: .8; font-size: .85em; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: rgba(255,255,255,.85); font-size: .82rem; text-decoration: none; letter-spacing: .04em; text-transform: uppercase; }
.site-nav a:hover { color: #fff; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  padding-block: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rojo); }

/* ── Hero homepage ── */
.hero-home {
  background: linear-gradient(135deg, #1a0a0d 0%, #2d1018 60%, #1a1a0d 100%);
  padding-block: 72px 60px;
  padding-inline: 20px;
  margin-inline: -20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-home::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,16,46,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-home h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: #fff;
  line-height: 1.15;
  text-wrap: balance;
  position: relative;
}
.hero-home h1 em {
  font-style: normal;
  color: #f0b429;
}
.hero-home p {
  color: rgba(255,255,255,.72);
  font-size: clamp(.9rem, 2.5vw, 1.1rem);
  margin-top: 16px;
  max-width: 520px;
  margin-inline: auto;
  position: relative;
}
.hero-home .hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  position: relative;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 2rem;
  color: #f0b429;
  line-height: 1;
}
.hero-stat span { font-size: .78rem; color: rgba(255,255,255,.6); letter-spacing: .06em; text-transform: uppercase; }

/* ── Section títulos ── */
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  color: var(--fg);
  text-wrap: balance;
  line-height: 1.25;
}
.section-eyebrow {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 8px;
  font-weight: 600;
}
.section-lead {
  color: var(--muted);
  font-size: .95rem;
  margin-top: 8px;
  max-width: 560px;
}

/* ── Sección genérica ── */
.section { padding-block: 52px; }
.section + .section { border-top: 1px solid var(--border); }
.section-header { margin-bottom: 32px; }

/* ── Tarjeta restaurante ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-sh);
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.card-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg-alt); }
.card-img-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-municipio { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-name { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.card-tagline { font-size: .83rem; color: var(--muted); line-height: 1.4; flex: 1; }
.card-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-rating { display: flex; align-items: center; gap: 5px; font-size: .82rem; }
.card-rating .stars { color: #f59e0b; }
.card-rating strong { font-variant-numeric: tabular-nums; }
.card-badge {
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--rojo);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
}
.card-badge.verde { background: var(--aceituna); }

/* ── Municipios grid ── */
.municipios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.municipio-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .15s, border-color .15s;
}
.municipio-card:hover { background: var(--arena); border-color: var(--rojo); }
.municipio-icon { font-size: 1.5rem; }
.municipio-name { font-family: var(--ff-display); font-size: .95rem; font-weight: 700; }
.municipio-count { font-size: .75rem; color: var(--muted); }

/* ── Ficha restaurante ── */
.ficha-hero {
  background: linear-gradient(160deg, #1a0a0d 0%, #2d1018 100%);
  padding-block: 52px 44px;
  padding-inline: 20px;
  margin-inline: -20px;
  position: relative;
}
.ficha-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.ficha-eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ficha-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: #fff;
  line-height: 1.15;
  text-wrap: balance;
}
.ficha-hero .tagline { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 540px; }
.ficha-rating-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ficha-stars { color: #f59e0b; font-size: 1.1rem; }
.ficha-score { font-size: 1.3rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ficha-reviews { font-size: .82rem; color: rgba(255,255,255,.6); }
.ficha-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ficha-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Quick info ── */
.quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-block: 28px;
}
.qi-item { display: flex; gap: 10px; align-items: flex-start; }
.qi-icon { font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.qi-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.qi-value { font-size: .9rem; font-weight: 500; color: var(--fg); }
.qi-value a { color: var(--rojo); text-decoration: none; }

/* ── Prosa ficha ── */
.ficha-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 32px;
}
.ficha-body h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-block: 36px 16px;
  padding-left: 14px;
  border-left: 3px solid var(--rojo);
  line-height: 1.3;
}
.ficha-body h3 { font-size: 1rem; margin-block: 18px 6px; }
.ficha-body p { margin-bottom: 14px; }
.ficha-body ul { padding-left: 20px; margin-bottom: 14px; }
.ficha-body li { margin-bottom: 6px; }
.ficha-body strong { color: var(--fg); }

/* ── Platos ── */
.platos-grid { display: grid; gap: 14px; }
.plato {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.plato-name { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.plato-alergenos { font-size: .73rem; color: var(--muted); margin-bottom: 6px; }
.plato-desc { font-size: .88rem; color: var(--fg); }

/* ── Tabla info práctica ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 10px 8px; vertical-align: top; }
.info-table td:first-child {
  font-weight: 600;
  color: var(--muted);
  width: 38%;
  min-width: 120px;
}
.info-table td a { color: var(--rojo); text-decoration: none; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 16px; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.faq-a { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── CTA ── */
.cta-block {
  background: var(--rojo);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-block: 36px;
}
.cta-block h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
}
.cta-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-link {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.cta-link:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Ad slot ── */
.ad-slot { text-align: center; margin-block: 24px; min-height: 90px; }

/* ── Footer ── */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.5);
  padding-block: 28px;
  padding-inline: 20px;
  margin-inline: -20px;
  font-size: .8rem;
  text-align: center;
}
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.verif { font-size: .72rem; color: var(--aceituna); font-style: italic; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-nav { display: none; }
  .hero-home { padding-block: 52px 44px; }
  .cards-grid { grid-template-columns: 1fr; }
  .municipios-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-info { grid-template-columns: 1fr 1fr; }
  .info-table td:first-child { width: 42%; }
}
