/* =========================================================
   Bar-Restaurante Cañada 69 — Propuesta de rediseño
   Bar de barrio, cocina casera, negocio familiar (+30 años).
   Cálido y cercano, sin pretensiones: ladrillo/tierra + ocre,
   mantel de cuadros como textura decorativa sutil, tipografía
   slab serif cálida (menú de toda la vida) + sans legible.
   SIN FOTOGRAFÍA: el negocio no tiene web propia ni fotos reales
   accesibles online (Facebook y TripAdvisor bloquean el scraping
   ligero); en vez de fotos de stock genéricas, el sistema visual
   se apoya en iconografía de línea propia (cazuela, tapa premiada,
   terraza, salón) y el propio patrón de cuadros como motivo.
   ========================================================= */

:root {
  /* Marca */
  --brick-900: #4a1c12;
  --brick-700: #9c3a24;
  --brick-500: #b8502f;
  --brick-300: #e3a98d;
  --brick-050: #fbece3;

  --ochre: #cf9a35;
  --ochre-dark: #a97a24;
  --ochre-light: #f8e7c3;

  --olive: #6f7d43;
  --olive-light: #eaefdd;

  /* Neutros — papel/crudo cálido, no blanco de "app" */
  --ink: #2e2019;
  --ink-soft: #6b594c;
  --line: #e8d9c3;
  --cream: #fbf5ea;
  --cream-soft: #f3e6cd;
  --dark: #241611;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(46, 32, 25, .08);
  --shadow: 0 16px 38px rgba(46, 32, 25, .14);
  --shadow-lg: 0 26px 64px rgba(46, 32, 25, .24);

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

  --font-body: 'Mulish', 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);
  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.15; font-weight: 700; letter-spacing: -.005em; color: var(--ink); }

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

/* Eyebrow: etiqueta con puntada discontinua, evoca costura de mantel */
.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(--brick-700);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background-image: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px);
  color: var(--brick-500);
}

.section { padding: clamp(58px, 8vw, 108px) 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 h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 16px 0 14px; }
.section-head h2 em { font-style: italic; color: var(--brick-700); font-weight: 700; }
.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-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(--brick-700); color: #fff; box-shadow: 0 10px 24px rgba(156, 58, 36, .32); }
.btn-primary:hover { background: var(--brick-900); box-shadow: 0 14px 30px rgba(156, 58, 36, .4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ochre); color: var(--brick-700); }
.btn svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
/* Sin foto de fondo en el hero (ver nota styles), así que la cabecera no
   necesita variante "transparente sobre foto": color fijo, evitando el
   problema de contraste del logo entre inicio y "scrolled". */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; background: rgba(251, 245, 234, 0);
  transition: padding .35s var(--ease), background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.scrolled {
  background: rgba(251, 245, 234, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(46, 32, 25, .09); padding: 11px 0;
}

.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--ink); }
.brand b { color: var(--brick-700); }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; font-size: .94rem; color: var(--ink-soft); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brick-500); border-radius: 2px; transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.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); }
.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); font-size: 1rem; }
.mm-cta { justify-content: center; margin-top: 16px; }

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

/* ---------- Hero (sin foto: patrón de cuadros + iconografía) ---------- */
.hero {
  position: relative; padding: clamp(148px, 19vw, 188px) 0 clamp(64px, 8vw, 92px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 55% at 88% 4%, var(--ochre-light) 0%, transparent 62%),
    var(--cream);
}
/* Mantel de cuadros: dos rejillas de líneas finas cruzadas, muy tenues —
   evoca el mantel a cuadros del bar sin ser una foto ni un cliché visual. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(156,58,36,.05) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(156,58,36,.05) 0 2px, transparent 2px 34px);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero .eyebrow { margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--brick-700); font-weight: 700; }
.hero .lead { font-size: 1.14rem; 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: 16px; flex-wrap: wrap;
  font-size: .9rem; color: var(--ink-soft);
}
.hero-trust .trust-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--ochre-dark); flex-shrink: 0; }
.hero-trust b { color: var(--ink); font-weight: 700; }
.hero-trust .div { width: 1px; height: 18px; background: var(--line); }

/* ---------- 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; }
}

/* ---------- Sobre el negocio (texto + rasgos, sin foto) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text > p { color: var(--ink-soft); margin-bottom: 10px; font-size: 1.03rem; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.trait .trait-ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brick-050); color: var(--brick-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.trait .trait-ico svg { width: 21px; height: 21px; }
.trait h4 { font-size: 1.02rem; 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; } }

.zones { background: var(--cream-soft); position: relative; }
/* El mantel de cuadros reaparece, muy tenue, en las secciones de fondo alterno */
.zones::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    repeating-linear-gradient(0deg, rgba(156,58,36,.045) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(156,58,36,.045) 0 2px, transparent 2px 34px);
}
.zones > .wrap { position: relative; z-index: 1; }

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

/* ---------- Servicios (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(--brick-300); }
.serv .ico {
  width: 52px; height: 52px; border-radius: 15px; background: var(--brick-050); color: var(--brick-700);
  display: grid; place-items: center; margin-bottom: 18px;
}
.serv .ico svg { width: 26px; height: 26px; }
.serv.featured .ico { background: var(--ochre-light); color: var(--ochre-dark); }
.serv h3 { font-size: 1.14rem; 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(--brick-700); background: var(--brick-050);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ---------- Menú del día (precios reales) ---------- */
.set-menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.set-menu { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; background: var(--white); }
.set-menu.highlight { border-color: var(--ochre); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--ochre-light), #fff); }
.set-menu .price-tag { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--brick-700); float: right; }
.set-menu h4 { font-size: 1.16rem; margin-bottom: 6px; padding-right: 76px; }
.set-menu .set-note { color: var(--ink-soft); font-size: .86rem; margin-bottom: 16px; }
.set-menu ul { list-style: none; color: var(--ink-soft); font-size: .92rem; display: grid; gap: 8px; }
.set-menu li { padding-left: 16px; position: relative; }
.set-menu li::before { content: '—'; position: absolute; left: 0; color: var(--ochre-dark); }

/* Especialidades de la casa: categorías reales sin precios inventados */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 40px; }
.spec-item { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.spec-item .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--olive-light); color: var(--olive); display: grid; place-items: center; flex-shrink: 0; }
.spec-item .ico svg { width: 20px; height: 20px; }
.spec-item span { font-weight: 700; font-size: .96rem; }

.menu-note {
  background: var(--cream-soft); border-left: 3px solid var(--ochre);
  padding: 18px 24px; margin-top: 30px; color: var(--ink-soft); font-size: .92rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.menu-note b { color: var(--brick-700); }

/* ---------- Premio destacado ---------- */
.award-box {
  display: flex; align-items: center; gap: 28px; background: var(--dark); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 44px); position: relative; overflow: hidden;
}
.award-box::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(207,154,53,.08) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(207,154,53,.08) 0 2px, transparent 2px 34px);
}
.award-box > * { position: relative; z-index: 1; }
.award-ico { width: 74px; height: 74px; border-radius: 20px; background: rgba(207,154,53,.16); color: var(--ochre); display: grid; place-items: center; flex-shrink: 0; }
.award-ico svg { width: 38px; height: 38px; }
.award-box h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.award-box p { color: rgba(255,255,255,.78); font-size: .96rem; max-width: 56ch; }
.award-box .eyebrow { color: var(--ochre); margin-bottom: 8px; }
@media (max-width: 620px) { .award-box { flex-direction: column; text-align: center; align-items: center; } }

/* ---------- Stats ---------- */
.stats { background: var(--brick-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,.14); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.6rem); color: var(--ochre); 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); } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 18px; } }

/* ---------- Info práctica ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-item .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--brick-050); color: var(--brick-700); display: grid; place-items: center; flex-shrink: 0; }
.info-item .ico svg { width: 20px; height: 20px; }
.info-item h4 { font-size: 1rem; margin-bottom: 3px; font-family: var(--font-body); font-weight: 700; }
.info-item p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Celebraciones ---------- */
.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: 28px 24px; text-align: center; }
.celeb-card .ico { width: 52px; height: 52px; border-radius: 15px; background: var(--ochre-light); color: var(--ochre-dark); display: grid; place-items: center; margin: 0 auto 16px; }
.celeb-card .ico svg { width: 26px; height: 26px; }
.celeb-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.celeb-card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 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(--brick-050); color: var(--brick-700); 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(--brick-050); color: var(--brick-700); transition: transform .3s var(--ease), background .3s, color .3s; }
.socials a:hover { transform: translateY(-4px); background: var(--brick-700); 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 { text-align: center; }
.cta-box {
  background: linear-gradient(135deg, var(--brick-700), var(--brick-900));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 76px) 24px; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 34px);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box .eyebrow { color: var(--ochre-light); justify-content: center; }
.cta-box .eyebrow::before { color: rgba(255,255,255,.6); }
.cta-box h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 12px 0 14px; }
.cta-box p { font-size: 1.06rem; opacity: .9; max-width: 48ch; margin: 0 auto 28px; }
.cta-box .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-box .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.22); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); 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 b { color: var(--ochre); }
.footer .brand small { color: rgba(255,255,255,.5); }
.footer p { font-size: .93rem; opacity: .78; max-width: 36ch; }
.footer h5 { color: #fff; font-family: var(--font-display); 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(--ochre); }
.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: no hay número de WhatsApp Business
   verificado para el negocio (solo teléfono fijo 912 31 16 66 en todos los
   directorios consultados), así que el CTA persistente es "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(--brick-700); 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(--brick-900); }
.call-float svg { width: 26px; height: 26px; }

/* ---------- Página secundaria (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: 126px; }
}
