/* =========================================================
   La Barbería Guerrero — Propuesta de rediseño
   Barbería clásica masculina, Torrejón de Ardoz, desde 1990.
   Estética: negro/carbón + burdeos de barbería + dorado envejecido,
   tipografía condensada de rótulo (Oswald) + cuerpo de texto (Barlow).
   Sobria, con carácter, sin animaciones juguetonas.
   ========================================================= */

:root {
  /* Marca */
  --black: #14100d;
  --charcoal: #221c17;
  --charcoal-soft: #2e2620;

  --burgundy-900: #3d0b12;
  --burgundy-700: #6e131c;
  --burgundy-500: #8d1c26;

  --gold: #b6893f;
  --gold-light: #dcb877;
  --gold-dark: #8a6a30;

  /* Neutros — papel envejecido, no blanco de "app" */
  --ink: #201a15;
  --ink-soft: #5c5248;
  --line: #ddceb4;
  --bg: #f4ece0;
  --bg-soft: #ece0cb;
  --white: #ffffff;

  --radius: 3px;
  --radius-lg: 5px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(20, 16, 13, .12);
  --shadow: 0 16px 36px rgba(20, 16, 13, .22);
  --shadow-lg: 0 26px 60px rgba(20, 16, 13, .32);

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

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; 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.1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
}

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

/* Franja rayada estilo poste de barbero: acento propio de la marca */
.barber-strip {
  height: 9px;
  background: repeating-linear-gradient(
    135deg,
    var(--burgundy-700) 0 14px,
    var(--bg) 14px 28px,
    var(--gold) 28px 32px,
    var(--bg) 32px 46px
  );
}
.barber-strip.dark {
  background: repeating-linear-gradient(
    135deg,
    var(--burgundy-500) 0 14px,
    var(--charcoal) 14px 28px,
    var(--gold) 28px 32px,
    var(--charcoal) 32px 46px
  );
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--burgundy-700);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.on-dark::before { background: var(--gold-light); }

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

.section { padding: clamp(60px, 8vw, 110px) 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: 24px; height: 2px; 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.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 14px 26px; border-radius: var(--radius);
  cursor: pointer; border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--burgundy-700); color: #fff; }
.btn-primary:hover { background: var(--burgundy-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(--burgundy-700); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.scrolled { background: rgba(20,16,13,.95); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.3); padding: 12px 0; }

.header--hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,7,5,.75), rgba(10,7,5,0));
  z-index: 0; transition: opacity .35s;
}
.header--hero.scrolled::before { opacity: 0; }
.header .nav { position: relative; z-index: 5; }
.header .brand { color: #fff; }
.header .nav-links > a { color: rgba(255,255,255,.86); }
.header .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.header .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.header .burger { color: #fff; }

.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.18rem; letter-spacing: .02em; text-transform: uppercase; }
.brand svg { width: 26px; height: 26px; color: var(--gold-light); flex-shrink: 0; }
.brand b { font-weight: 700; color: var(--gold-light); }

.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .86rem; letter-spacing: .05em; text-transform: uppercase; }
.nav-links > a { transition: color .2s; }
.nav-links > a:hover { color: var(--gold-light); }

.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 SIN padding propio (gotcha conocido):
   el padding vive en .mobile-menu-inner para que "cerrado" mida 0 de verdad. */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--black); 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 rgba(255,255,255,.1); font-family: var(--font-display); font-weight: 500; color: rgba(255,255,255,.88); text-transform: uppercase; font-size: .92rem; letter-spacing: .04em; }
.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 ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(10,7,5,.4) 0%, rgba(10,7,5,.6) 55%, rgba(10,7,5,.92) 100%), url('img/interior-panoramica.jpg') center 38% / 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 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { font-family: var(--font-body); font-size: 1.14rem; color: rgba(255,255,255,.84); max-width: 540px; margin-bottom: 30px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.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-trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: rgba(255,255,255,.72); font-size: .92rem; }
.hero-trust .stars { color: var(--gold-light); letter-spacing: 2px; font-size: 1.05rem; }
.hero-trust b { color: #fff; }
.hero-trust .div { width: 1px; height: 18px; 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; }

/* ---------- Nuestra historia (texto + foto) ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; 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; filter: saturate(.9); }
.about-text .section-head { margin-bottom: 26px; }
.about-text > p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.02rem; }
.about-text > p.quote { font-family: var(--font-display); text-transform: none; letter-spacing: 0; font-size: 1.2rem; color: var(--burgundy-700); font-style: normal; margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--gold); }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: 24px; }
.trait { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trait .num { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-dark); font-weight: 600; flex-shrink: 0; width: 26px; }
.trait h4 { font-size: .98rem; margin-bottom: 4px; text-transform: none; }
.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); }

/* ---------- Servicios y precios: estilo cartel de barbería ---------- */
.services-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 54px; }
.service-ico-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; text-align: center; }
.service-ico-card .ico { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--burgundy-700); }
.service-ico-card .ico svg { width: 100%; height: 100%; }
.service-ico-card h4 { font-size: .92rem; margin-bottom: 6px; }
.service-ico-card p { color: var(--ink-soft); font-size: .84rem; }

.price-board {
  background: var(--black); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.price-board-head { text-align: center; margin-bottom: 30px; }
.price-board-head .eyebrow { justify-content: center; color: var(--gold-light); }
.price-board-head .eyebrow::before { display: none; }
.price-board-head .eyebrow::after { content: ''; width: 24px; height: 2px; background: var(--gold-light); }
.price-board-head h3 { color: #fff; font-size: 1.4rem; margin-top: 10px; }
.price-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 50px; }
.price-item {
  display: flex; align-items: baseline; gap: 8px; padding: 14px 0;
  border-bottom: 1px dotted rgba(255,255,255,.22);
}
.price-item .name { font-family: var(--font-display); font-weight: 500; color: #fff; font-size: .96rem; text-transform: uppercase; letter-spacing: .02em; }
.price-item .name small { display: block; font-family: var(--font-body); font-weight: 400; color: rgba(255,255,255,.55); font-size: .78rem; margin-top: 3px; text-transform: none; letter-spacing: 0; }
.price-item .leader { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.22); margin-bottom: 5px; min-width: 14px; }
.price-item .amount { font-family: var(--font-display); font-weight: 600; color: var(--gold-light); white-space: nowrap; font-size: 1.02rem; }
@media (max-width: 820px) { .price-cols { grid-template-columns: 1fr; } }

.price-note { text-align: center; margin-top: 26px; color: rgba(255,255,255,.5); font-size: .84rem; }

/* ---------- Stats ---------- */
.stats { background: var(--charcoal); border-radius: var(--radius-lg); padding: 44px 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.8rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--gold-light); }
.stats .lbl { color: rgba(255,255,255,.6); font-size: .82rem; 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), filter .3s; filter: saturate(.92); }
.gallery-teaser figure:hover img, .gallery figure:hover img { transform: scale(1.05); filter: saturate(1); }
@media (max-width: 720px) { .gallery-teaser { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 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 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item h4 { font-size: .95rem; margin-bottom: 8px; text-transform: none; }
.info-item p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- 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.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.contact-card > p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line .ico { width: 20px; height: 20px; color: var(--burgundy-700); flex-shrink: 0; }
.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: 26px 0 22px; 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(--burgundy-700); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--burgundy-700); color: #fff; border-color: var(--burgundy-700); }
.socials svg { width: 17px; height: 17px; }

.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; filter: grayscale(.25) contrast(1.05); }
.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(--black); }
.cta-box { text-align: center; color: #fff; }
.cta-box .eyebrow { justify-content: center; }
.cta-box .eyebrow::after { content: ''; width: 24px; height: 2px; background: var(--gold-light); }
.cta-box h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 14px 0; }
.cta-box p { color: rgba(255,255,255,.68); max-width: 500px; margin: 0 auto 26px; font-family: var(--font-body); }
.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(--black); color: rgba(255,255,255,.6); padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; 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: 12px; }
.footer p { font-size: .88rem; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp / llamada flotante ---------- */
/* El negocio invita explícitamente a contactar "también vía wassat" en su
   web actual (mismo número que el teléfono de reservas), así que el botón
   flotante puede ser WhatsApp — ver nota en config.js. */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 1.5px solid rgba(255,255,255,.25); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,7,5,.95);
  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: 3px; }
.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; }
}
