/* =========================================================
   Restaurante Macarena — Propuesta de primera web
   Especialidad en huevo de avestruz y carnes exóticas, en una
   terraza de plaza peatonal en Torrejón de Ardoz. Paleta cálida
   de brasa/tierra (ascua, carbón, dorado) con un acento verde
   oliva que apunta a lo "exótico" del producto, sin caer en lo
   infantil. Sin fotografía: el negocio no tiene web propia y su
   Facebook es 100% JS, sin ni una foto rescatable — el sistema
   visual se apoya en tipografía slab con carácter, iconografía
   de línea propia (huevo, brasa, brocheta, globo terráqueo) y
   una forma de huevo como motivo decorativo recurrente.
   ========================================================= */

:root {
  /* Marca — brasa / ascua */
  --ember: #b8451f;
  --ember-dark: #7c2c11;
  --ember-light: #f4ddc9;
  --ember-050: #fbf1e6;

  --gold: #c99a3e;
  --gold-light: #e6c583;

  /* Acento "exótico" — verde oliva, discreto */
  --olive: #6b7b4f;
  --olive-light: #e8ecdf;

  /* Neutros — carbón y crudo, no blanco de "app" */
  --ink-900: #211a15;
  --ink-700: #4a3c32;
  --ink-soft: #776656;

  --cream: #faf3ea;
  --cream-soft: #f1e4d0;
  --line: #e6d6bf;
  --white: #ffffff;

  --radius: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(33, 26, 21, .08);
  --shadow: 0 16px 38px rgba(33, 26, 21, .14);
  --shadow-lg: 0 26px 64px rgba(33, 26, 21, .24);

  --maxw: 1160px;
  --ease: cubic-bezier(.19, .77, .28, 1);

  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bitter', 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-900);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Eyebrow: versalita con un guion ascua a un lado */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ember-dark);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--ember); border-radius: 2px; }

.section { padding: clamp(60px, 8vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 16px 0 14px; }
.section-head h2 em { font-style: italic; color: var(--ember); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem;
  padding: 14px 27px; border-radius: var(--radius-pill);
  cursor: pointer; border: 1.5px solid transparent; transition: transform .3s var(--ease), background .25s var(--ease), color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: 0 10px 24px rgba(184, 69, 31, .34); }
.btn-primary:hover { background: var(--ember-dark); box-shadow: 0 14px 30px rgba(184, 69, 31, .42); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-dark); }
.btn-wa { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn-wa:hover { border-color: #25D366; color: #178a45; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
/* Sin foto de fondo en el hero, así la cabecera lleva siempre el mismo tono
   claro con texto oscuro fijo: evita el problema de contraste del logo entre
   "arriba del todo" y "scrolled" (gotcha conocido en otras propuestas). */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; background: rgba(250, 243, 234, 0);
  transition: padding .35s var(--ease), background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.scrolled {
  background: rgba(250, 243, 234, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(33, 26, 21, .1); padding: 11px 0;
}

.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: 700; font-size: 1.32rem; color: var(--ink-900); }
.brand em { font-style: italic; color: var(--ember); }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; color: var(--ember); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; font-size: .93rem; color: var(--ink-700); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--ember); border-radius: 2px; transition: width .3s var(--ease); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; position: relative; background: none; border: 0; width: 26px; height: 26px; cursor: pointer; color: var(--ink-900); }
.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 (si lo llevara,
   el padding no se comprimiría 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 para que la marca y
   la hamburguesa (que también cierra el menú) queden siempre visibles y
   pulsables por encima del panel. */
.header .nav { position: relative; z-index: 5; }
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--cream); 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: 90px 24px 24px; }
.mm-link { padding: 14px 6px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink-900); font-size: 1rem; }
.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 (sin foto: tipografía + forma de huevo + textura de brasa) ---------- */
.hero {
  position: relative; padding: clamp(150px, 20vw, 190px) 0 clamp(70px, 9vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 55% at 88% 6%, var(--ember-050) 0%, transparent 62%),
    repeating-linear-gradient(135deg, rgba(33,26,21,.035) 0 1px, transparent 1px 22px),
    var(--cream);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero .eyebrow { margin-bottom: 6px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--ember); }
.hero .lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .92rem; color: var(--ink-soft); margin-bottom: 36px;
}
.hero-trust .stars { color: var(--gold); letter-spacing: 1px; font-size: 1rem; }
.hero-trust b { color: var(--ink-900); font-weight: 700; }
.hero-trust .div { width: 1px; height: 16px; background: var(--line); }

/* Fila de "datos curiosos" del huevo — sustituye a una foto que no tenemos,
   apoyándose en el propio producto diferencial en vez de fingir una imagen. */
.egg-facts { display: flex; flex-wrap: wrap; gap: 14px; }
.egg-fact {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 18px; box-shadow: var(--shadow-sm);
}
.egg-fact .ico {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ember-050); color: var(--ember-dark);
  display: grid; place-items: center; flex: 0 0 auto;
}
.egg-fact .ico svg { width: 20px; height: 20px; }
.egg-fact b { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; }
.egg-fact small { display: block; color: var(--ink-soft); font-size: .74rem; margin-top: 2px; }

/* Motivo decorativo: gran huevo en degradado, apoyado detrás del contenido */
.hero-yolk {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(46vw, 560px); aspect-ratio: 4/5;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 42%, var(--ember) 100%);
  opacity: .9; filter: blur(.5px);
  box-shadow: var(--shadow-lg);
}
.hero-yolk::after {
  content: '';
  position: absolute; inset: 10%;
  border-radius: inherit;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 55%);
}
@media (max-width: 980px) { .hero-yolk { opacity: .5; width: 58vw; right: -18%; } }
@media (max-width: 640px) { .hero-yolk { display: none; } }

/* ---------- 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; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- El restaurante (texto + gráfico decorativo, sin foto) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-graphic {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--ink-900), #362719 60%, var(--ember-dark));
  overflow: hidden; box-shadow: var(--shadow);
}
.about-graphic::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
}
.about-graphic .mark {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.about-graphic .mark svg { width: 46%; height: 46%; color: var(--gold-light); opacity: .9; }
.about-text > p { color: var(--ink-soft); margin-bottom: 8px; font-size: 1.03rem; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trait .num { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ember); font-weight: 700; flex-shrink: 0; width: 30px; }
.trait h4 { font-size: 1.03rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.trait p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } .about-graphic { aspect-ratio: 16/9; } }

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

/* ---------- Especialidades (iconos de línea, sin fotos) ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.serv {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.serv:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--ember-light); }
.serv .ico {
  width: 52px; height: 52px; border-radius: 15px; background: var(--ember-050); color: var(--ember-dark);
  display: grid; place-items: center; margin-bottom: 18px;
}
.serv .ico svg { width: 26px; height: 26px; }
.serv.featured { border-color: var(--gold-light); background: linear-gradient(180deg, var(--ember-050), #fff); }
.serv.featured .ico { background: var(--gold-light); color: var(--ember-dark); }
.serv h3 { font-size: 1.15rem; margin-bottom: 8px; }
.serv p { color: var(--ink-soft); font-size: .93rem; }
.serv .tag {
  display: inline-block; margin-top: 12px; font-family: var(--font-body); font-weight: 700; font-size: .74rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--olive); background: var(--olive-light);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ---------- El huevo de avestruz: sección curiosidad ---------- */
.process-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; counter-reset: step; }
.process-item {
  position: relative; padding: 26px 22px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.process-item .step {
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.6rem; color: var(--ember-light);
  -webkit-text-stroke: 1.5px var(--ember); display: block; margin-bottom: 10px;
}
.process-item h4 { font-size: .98rem; margin-bottom: 6px; }
.process-item p { color: var(--ink-soft); font-size: .87rem; }
.process-note { text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: .9rem; background: var(--gold-light); border-radius: var(--radius); padding: 14px 20px; }

/* ---------- Grupo Macarena ---------- */
.grupo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grupo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; }
.grupo-card .tag {
  display: inline-block; font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ember-dark); background: var(--ember-050); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.grupo-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.grupo-card p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 720px) { .grupo-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { background: var(--ink-900); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 54px) clamp(24px, 4vw, 40px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--gold-light); line-height: 1; }
.stat .lbl { color: rgba(255,255,255,.72); font-size: .88rem; margin-top: 10px; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 16px; } }

/* ---------- Info práctica ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.info-item { padding: 26px 24px; 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; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: stretch; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.contact-card > p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-line:first-of-type { border-top: 0; }
.contact-line .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--ember-050); color: var(--ember-dark); display: grid; place-items: center; flex: 0 0 auto; }
.contact-line .ico svg { width: 20px; height: 20px; }
.contact-line small { display: block; color: var(--ink-soft); font-size: .8rem; }
.contact-line b { font-size: 1.02rem; font-weight: 700; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ember-050); color: var(--ember-dark); transition: transform .3s var(--ease), background .3s, color .3s; }
.socials a:hover { transform: translateY(-4px); background: var(--ember); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 8px solid #fff; }
.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { background: var(--ink-900); }
.cta-box { text-align: center; color: #fff; }
.cta-box .eyebrow { justify-content: center; color: var(--gold-light); }
.cta-box .eyebrow::before { background: var(--gold-light); }
.cta-box h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 12px 0 14px; }
.cta-box p { color: rgba(255,255,255,.72); font-size: 1.06rem; max-width: 48ch; 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: #150f0b; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand em { color: var(--gold-light); }
.footer p { font-size: .93rem; opacity: .78; max-width: 36ch; }
.footer h5 { color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: .93rem; opacity: .82; transition: opacity .2s, color .2s; }
.footer ul a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; opacity: .68; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Llamar flotante ---------- */
/* Botón de llamada directa, no WhatsApp: el negocio no tiene WhatsApp Business
   confirmado (solo línea fija, ver config.js), así que el CTA persistente en
   pantalla debe ser "llamar" (tel:), el único canal 100% verificado hoy. */
.call-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--ember); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 1.5px solid rgba(255,255,255,.3); transition: transform .3s var(--ease), background .3s;
}
.call-float:hover { transform: scale(1.07); background: var(--ember-dark); }
.call-float svg { width: 26px; height: 26px; }

/* ---------- Página secundaria: cabecera simple (valor.html) ---------- */
.page-hero { padding: 140px 0 50px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 16px; justify-content: center; }

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