/* =============================================================
   Farmacia del Pueblo · Neuquén · desde 1922
   Sistema de diseño: verde farmacéutico + blanco + menta
   Tipografía: Bricolage Grotesque (display) + Figtree (texto)
   ============================================================= */

:root {
  /* Verde farmacéutico (locked accent) */
  --verde-900: #0E3D24;   /* fondos profundos, headings sobre claro */
  --verde-800: #14502F;   /* heading principal */
  --verde-700: #1E6B41;   /* botones, links, texto-verde sobre claro */
  --verde-600: #2D8B57;   /* brand, decorativo */
  --verde-500: #3A9D69;
  --verde-100: #DCEFE4;
  --verde-50:  #ECF6F0;
  --verde-25:  #F5FBF7;

  /* Neutrales (un solo cálido verdoso, sin mezclar grises fríos) */
  --ink:     #14241B;     /* texto principal, ~16:1 sobre blanco */
  --ink-2:   #2C3A31;     /* texto secundario, ~11:1 */
  --ink-3:   #4C5A52;     /* texto terciario, ~6.4:1 */
  --line:    #DDE6DF;     /* bordes */
  --line-2:  #E8EFE9;
  --paper:   #F7FBF8;     /* fondo de página */
  --card:    #FFFFFF;

  /* Signo de estado */
  --rojo-info: #B23A3A;   /* errores de formulario, ~5.6:1 sobre blanco */
  --oro:       #A87A1E;   /* acento herencia, usar con cuentagotas */

  /* Tipografía */
  --ff-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ff-body:    "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Radios (lock: tarjetas 18px, inputs 10px, botones pill) */
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Sombras tintadas al verde (no drop-shadows negros) */
  --shadow-xs: 0 1px 2px rgba(20, 80, 47, 0.06);
  --shadow-sm: 0 4px 16px rgba(20, 80, 47, 0.08);
  --shadow-md: 0 14px 40px rgba(20, 80, 47, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 61, 36, 0.18);

  --maxw: 1180px;
  --maxw-narrow: 760px;

  --focus: 3px solid var(--verde-700);
  --focus-offset: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--verde-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea, button { font: inherit; color: inherit; }

:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--verde-800);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; }
h4 { font-size: clamp(1.08rem, 1.6vw, 1.22rem); font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde-700);
}
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--ink-2);
  max-width: 64ch;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--mint { background: var(--verde-50); }
.section--paper { background: var(--paper); }
.section--card { background: var(--card); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 0.7rem; }
.section-head h2 { margin-bottom: 0.7rem; }
.section-head .lead { margin-top: 0.6rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0; top: -200px;
  background: var(--verde-900);
  color: #fff;
  padding: 0.8rem 1.3rem;
  z-index: 2000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 10px 0;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--primary { background: var(--verde-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--verde-800); color: #fff; box-shadow: var(--shadow-md); }
.btn--secondary { background: #fff; color: var(--verde-800); border-color: var(--verde-100); }
.btn--secondary:hover { background: var(--verde-50); border-color: var(--verde-600); }
.btn--whatsapp { background: #0E7065; color: #fff; }
.btn--whatsapp:hover { background: #0A5A51; color: #fff; }
.btn--outline { background: transparent; color: var(--verde-800); border-color: var(--verde-600); }
.btn--outline:hover { background: var(--verde-50); border-color: var(--verde-700); }
.btn--ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 251, 248, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.nav-main { display: flex; align-items: center; gap: 0.25rem; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-list a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-list a:hover { background: var(--verde-50); color: var(--verde-800); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--verde-800); font-weight: 600; }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 16px; height: 2px;
  background: var(--verde-700);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav-cta { margin-left: 0.6rem; }
.nav-cta .btn { padding: 0.6rem 1.15rem; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  position: relative;
  z-index: 1100;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: 24px; height: 2.5px;
  background: var(--verde-800);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, background 0.2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 61, 36, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1050;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, var(--verde-100) 0%, transparent 42%),
    radial-gradient(circle at 8% 92%, var(--verde-50) 0%, transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--verde-25) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(45,139,87,0.06) 1.4px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.8rem, 6vw, 5rem);
}
.hero-content { max-width: 620px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  color: var(--verde-800);
  border: 1px solid var(--verde-100);
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1FA653;
  box-shadow: 0 0 0 4px rgba(31,166,83,0.18);
}
.hero h1 { margin-block: 1.1rem 1rem; }
.hero h1 .accent { color: var(--verde-700); }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink-2); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-3);
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--verde-700); flex: 0 0 auto; }

/* Hero visual: composición editorial del escudo de marca */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.hero-crest {
  position: relative;
  width: min(420px, 92%);
  aspect-ratio: 1 / 1.02;
}
.hero-crest .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--verde-50) 0%, #fff 60%);
  border: 1px solid var(--verde-100);
  box-shadow: var(--shadow-md);
}
.hero-crest .ring--outer {
  inset: -18px;
  background: conic-gradient(from 140deg, var(--verde-600), var(--verde-700), var(--verde-500), var(--verde-700));
  filter: blur(2px);
  opacity: 0.16;
  z-index: 0;
}
.hero-crest .emblem {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 8%;
}
.hero-crest .emblem svg { width: 62%; height: auto; }
.hero-crest .since {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  color: var(--verde-800);
  background: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--verde-100);
  box-shadow: var(--shadow-xs);
  z-index: 3;
}
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--verde-800);
}
.hero-float .fi {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--verde-50);
  display: grid; place-items: center;
  color: var(--verde-700);
}
.hero-float .fi svg { width: 18px; height: 18px; }
.hero-float small { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.78rem; }
.hero-float--a { top: 4%; left: -4%; }
.hero-float--b { bottom: 14%; right: -6%; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding-block: 1.3rem;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.trust-strip .item strong { color: var(--verde-800); font-family: var(--ff-display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.trust-strip .item span { display: block; font-size: 0.82rem; color: var(--ink-3); }

/* ---------- Categorías (bento asimétrico) ---------- */
.cat-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--verde-100); }
.cat-ico {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: var(--verde-50);
  display: grid; place-items: center;
  color: var(--verde-700);
}
.cat-ico svg, .cat-ico img { width: 28px; height: 28px; }
.cat h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.cat p { font-size: 0.95rem; color: var(--ink-3); flex-grow: 1; }
.cat .cat-link {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--verde-700);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cat .cat-link::after { content: "→"; transition: transform 0.2s ease; }
.cat:hover .cat-link::after { transform: translateX(4px); }
.cat--feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--verde-800) 0%, var(--verde-700) 100%);
  border-color: transparent;
  color: #fff;
}
.cat--feature .cat-ico { background: rgba(255,255,255,0.16); color: #fff; }
.cat--feature h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cat--feature p { color: rgba(255,255,255,0.9); font-size: 1.02rem; }
.cat--feature .cat-link { color: #fff; }
.cat--feature .cat-link::after { color: #fff; }

/* ---------- Por qué (editorial de valor) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.value {
  display: flex;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.value:last-child { border-bottom: 0; }
.value-ico {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: var(--r-md);
  background: var(--verde-50);
  display: grid; place-items: center;
  color: var(--verde-700);
}
.value-ico svg, .value-ico img { width: 24px; height: 24px; }
.value h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.value p { font-size: 0.96rem; color: var(--ink-3); }
.value .tag-inline {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--verde-700);
  background: var(--verde-50);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.split > * { min-width: 0; }
.split h2 { margin-bottom: 1rem; }
.split p + p { margin-top: 0.9rem; }
.split-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

.check-list { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.check-list .ck {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--verde-50);
  color: var(--verde-700);
  display: grid; place-items: center;
  margin-top: 1px;
}
.check-list .ck svg { width: 14px; height: 14px; }

/* Card destacada (lado visual del split) */
.spot-card {
  background: linear-gradient(150deg, var(--verde-50) 0%, #fff 70%);
  border: 1px solid var(--verde-100);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.spot-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.7rem; }
.spot-card .spot-lead { font-size: 1.02rem; color: var(--ink-2); }
.spot-card .mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--verde-100);
}
.spot-card .mini-stat strong { display: block; font-family: var(--ff-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--verde-800); line-height: 1; }
.spot-card .mini-stat span { font-size: 0.82rem; color: var(--ink-3); }

/* ---------- Historia / herencia ---------- */
.heritage {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.heritage-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--verde-800), var(--verde-900));
  padding: clamp(2rem, 5vw, 3rem);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.heritage-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.10), transparent 40%),
    radial-gradient(circle, rgba(255,255,255,0.05) 1.2px, transparent 1.3px);
  background-size: auto, 26px 26px;
  pointer-events: none;
}
.heritage-media > * { position: relative; z-index: 1; }
.heritage-media .year {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.04em;
}
.heritage-media .year-sub {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 32ch;
}
.heritage-media .timeline {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.9rem;
}
.heritage-media .tl {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.heritage-media .tl:last-child { border-bottom: 0; padding-bottom: 0; }
.heritage-media .tl b { font-family: var(--ff-display); color: #fff; font-size: 1.05rem; min-width: 3.5rem; }
.heritage-media .tl span { color: rgba(255,255,255,0.82); font-size: 0.95rem; }

/* ---------- Stats banda ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-cell {
  background: #fff;
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
}
.stat-cell .num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--verde-800);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-cell .lbl { margin-top: 0.5rem; font-size: 0.92rem; color: var(--ink-3); }

/* ---------- Sucursales preview ---------- */
.branch-list { display: grid; gap: 0.9rem; }
.branch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--verde-600);
  border-radius: var(--r-md);
  padding: 1.15rem 1.3rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-left-color 0.2s ease;
}
.branch:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.branch.is-central { border-left-color: var(--oro); background: linear-gradient(100deg, var(--verde-50), #fff 70%); }
.branch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.branch-head h3 { font-size: 1.1rem; margin: 0; }
.tag {
  display: inline-block;
  background: var(--verde-700);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tag--24 { background: #0E7065; }
.branch-meta { display: grid; gap: 0.3rem; font-size: 0.93rem; color: var(--ink-3); }
.branch-meta a { font-weight: 600; }
.branch-meta .row { display: flex; gap: 0.5rem; align-items: center; }
.branch-meta .row svg { width: 16px; height: 16px; color: var(--verde-700); flex: 0 0 auto; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.8rem; max-width: var(--maxw-narrow); margin-inline: auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--verde-100); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.3rem;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--verde-800);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .chev { flex: 0 0 auto; transition: transform 0.25s ease; color: var(--verde-700); }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }

/* ---------- Mapa ---------- */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Formulario ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.contact-info { display: grid; gap: 1rem; align-content: start; }
.info-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-xs);
}
.info-card .ic {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--verde-50);
  display: grid; place-items: center;
  color: var(--verde-700);
}
.info-card .ic svg { width: 20px; height: 20px; }
.info-card .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde-700);
  margin-bottom: 0.2rem;
}
.info-card p, .info-card a { color: var(--ink-2); }

.form-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 600; color: var(--verde-800); font-size: 0.95rem; }
.form-row label .req { color: var(--rojo-info); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #5E7268; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--verde-600);
  box-shadow: 0 0 0 3px rgba(45,139,87,0.18);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E6B41' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea { border-color: var(--rojo-info); box-shadow: 0 0 0 3px rgba(178,58,58,0.14); }
.form-row .error-msg { display: none; color: var(--rojo-info); font-size: 0.875rem; font-weight: 500; }
.form-row.has-error .error-msg { display: block; }
.form-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.3rem; }
.form-success {
  display: none;
  background: var(--verde-50);
  border: 1px solid var(--verde-600);
  color: var(--verde-800);
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.form-success.is-visible { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--verde-800) 0%, var(--verde-900) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle, rgba(255,255,255,0.04) 1.2px, transparent 1.3px);
  background-size: auto, 24px 24px;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 56ch; margin-top: 0.7rem; }
.cta-band .btn-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--verde-900);
  color: rgba(255,255,255,0.8);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
.footer-brand img { height: 46px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.78); font-size: 0.95rem; max-width: 40ch; }
.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-col li { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid; place-items: center;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--verde-600); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #0E7065;
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: 0 8px 28px rgba(14,112,101,0.4);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.whatsapp-float:hover { background: #0A5A51; color: #fff; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,112,101,0.5); text-decoration: none; }
.whatsapp-float svg { width: 24px; height: 24px; flex: 0 0 auto; }
.whatsapp-float .wf-label { display: none; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 28px rgba(14,112,101,0.4), 0 0 0 0 rgba(14,112,101,0.5); }
  70%  { box-shadow: 0 8px 28px rgba(14,112,101,0.4), 0 0 0 16px rgba(14,112,101,0); }
  100% { box-shadow: 0 8px 28px rgba(14,112,101,0.4), 0 0 0 0 rgba(14,112,101,0); }
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float { animation: wa-pulse 2.8s ease-out infinite; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(circle at 90% 10%, var(--verde-50) 0%, transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--verde-25) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.page-hero .container { display: grid; gap: 0.5rem; }
.breadcrumb { font-size: 0.9rem; color: var(--ink-3); }
.breadcrumb a { color: var(--verde-700); font-weight: 500; }
.page-hero h1 { margin-top: 0.2rem; }
.page-hero .lead { margin-top: 0.6rem; max-width: 64ch; }

/* ---------- Productos (categorías detalladas) ---------- */
.cat-section { display: grid; gap: 1rem; margin-bottom: 2.6rem; }
.cat-section:last-child { margin-bottom: 0; }
.cat-section-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.cat-section-head .cat-ico { width: 48px; height: 48px; }
.cat-section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.prod-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--verde-100); }
.prod-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.prod-card p { font-size: 0.9rem; color: var(--ink-3); }

/* ---------- Servicios page ---------- */
.svc-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.6rem;
}
.svc-block:last-child { margin-bottom: 0; }
.svc-block .svc-ico {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--verde-50);
  display: grid; place-items: center;
  color: var(--verde-700);
}
.svc-block .svc-ico svg, .svc-block .svc-ico img { width: 30px; height: 30px; }
.svc-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.svc-block p { margin-top: 0.6rem; }
.svc-block ul.check-list { margin-top: 1rem; }

/* ---------- Nosotros page ---------- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.value-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.value-tile .vt-ico {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--verde-50);
  display: grid; place-items: center;
  color: var(--verde-700);
  margin-bottom: 0.9rem;
}
.value-tile h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.value-tile p { font-size: 0.96rem; color: var(--ink-3); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 480px) {
  .whatsapp-float .wf-label { display: inline; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .cat-bento { grid-template-columns: repeat(2, 1fr); }
  .cat--feature { grid-column: 1 / -1; }
}

/* Tablet nav (<=900px): menú móvil */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-main {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(84vw, 360px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 5.4rem 1.4rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
    box-shadow: -20px 0 60px rgba(14, 61, 36, 0.22);
    z-index: 1080;
    overflow-y: auto;
  }
  .nav-main.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list a { display: block; padding: 0.9rem 0.6rem; font-size: 1.08rem; border-radius: var(--r-sm); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 1rem; }
  .nav-cta-mobile .btn { width: 100%; }
}
@media (min-width: 901px) {
  .nav-cta-mobile { display: none; }
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .heritage { grid-template-columns: 0.92fr 1.08fr; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
  .stat-band { grid-template-columns: repeat(4, 1fr); }
  .cat-bento { grid-template-columns: repeat(3, 1fr); }
  .cat--feature { grid-column: span 2; grid-row: span 1; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .value-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .value { border-bottom: 0; border-right: 1px solid var(--line); }
  .value:nth-child(2n) { border-right: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .whatsapp-float { animation: none; }
}
