/* Cerrajería del Valle — Sistema visual: negro carbón, blanco, rojo marca y marfil cálido.
   Motivos diagonales inspirados en el rótulo del Chevrolet. Sin fuentes externas ni frameworks. */
:root {
  --ink: #141414;
  --ink-2: #1f1d1c;
  --ink-3: #2b2725;
  --ivory: #f7f1e6;
  --ivory-2: #eee5d5;
  --white: #ffffff;
  --red: #c9001b;
  --red-bright: #e40722;
  --red-hover: #a60016;
  --red-text: #a90017;
  --green: #15803d;
  --green-hover: #166534;
  --green-bright: #22c55e;
  --green-soft: #ecfdf3;
  --line: #dcd4c5;
  --line-soft: rgba(20, 20, 20, .09);
  --line-dark: #383431;
  --muted: #524b44;
  --shadow-sm: 0 2px 10px rgba(20, 20, 20, .05);
  --shadow-md: 0 10px 28px rgba(20, 20, 20, .08);
  --focus-light: #00737c;
  --focus-dark: #75eee4;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 52px);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font: 1rem/1.55 var(--font);
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.callout-dark :focus-visible,
.ready :focus-visible,
.final-call :focus-visible,
.site-footer :focus-visible,
.callbar :focus-visible { outline-color: var(--focus-dark); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 12px 16px; border-radius: 8px;
  background: var(--white); color: var(--ink); font-weight: 700;
  transform: translateY(-160%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 900; letter-spacing: -.045em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.18; letter-spacing: -.03em; }
.small { font-size: .9rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; max-width: 54ch; }

.icon { width: 1.3em; height: 1.3em; flex: none; vertical-align: middle; }
.icon-sm { width: 1.05em; height: 1.05em; }

/* Botones y enlaces */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.2em; border: 2px solid transparent; border-radius: 10px;
  background: var(--red); color: var(--white); font-weight: 750; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--red-hover); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #302d2b; }
.button-ghost { background: transparent; border-color: var(--ivory); color: var(--ivory); }
.button-ghost:hover { background: rgba(247, 241, 230, .14); }
.button-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--ivory); }
.button-green { background: var(--green); color: var(--white); }
.button-green:hover { background: var(--green-hover); }
.button-subtle { background: var(--ivory); border-color: var(--line); color: var(--ink); }
.button-subtle:hover { background: var(--ivory-2); border-color: #bfb5a3; }
.button-xl { font-size: clamp(1.05rem, 2.2vw, 1.65rem); padding: .7em 1.35em; }
.button[disabled] { opacity: .65; cursor: wait; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.text-link {
  display: inline-flex; align-items: center; gap: .25em;
  color: var(--red-text); font-weight: 750; text-underline-offset: .2em;
}
.text-link:hover { color: var(--ink); }

.eyebrow { font-size: .92rem; font-weight: 760; margin: 0 0 12px; }
.eyebrow::after,
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  margin-top: 10px; background: var(--red);
}
.section-title { margin-bottom: 22px; font-style: italic; }

/* Preview banner */
.preview-banner {
  background: #2f2400; color: #ffefb3; font-size: .88rem; font-weight: 650;
  text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid #6b5300;
}
.preview-banner a { color: #ffffff; text-underline-offset: 2px; }

/* Header */
.site-header {
  position: relative; z-index: 30;
  background: var(--ink); color: var(--ivory);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(12px, 2.5vw, 32px); padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: clamp(42px, 5vw, 62px); height: auto; }
.brand-text strong {
  display: block; font-size: clamp(.84rem, 1.4vw, 1.32rem);
  font-weight: 900; letter-spacing: -.04em; line-height: .95; color: var(--white);
}
.brand-text small {
  display: block; margin-top: 4px; padding-top: 3px;
  border-top: 2px solid var(--red-bright);
  font-size: clamp(.46rem, .65vw, .64rem); font-weight: 850; letter-spacing: .04em; line-height: 1;
}

.site-nav { margin-inline: auto; }
.menu {
  display: flex; align-items: center; gap: 6px clamp(12px, 2.2vw, 36px);
  margin: 0; padding: 0; list-style: none;
}
.menu > li { position: relative; display: flex; align-items: center; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  font-weight: 700; text-decoration: none;
}
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--red-bright); text-decoration-thickness: 2px; }

.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ivory); cursor: pointer;
}
.sub-toggle .icon { transform: rotate(90deg); transition: transform .15s ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(270deg); }
.sub-toggle:hover { background: rgba(255, 255, 255, .1); }

.submenu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  min-width: 240px; margin: 0; padding: 8px; list-style: none;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-top: 3px solid var(--red);
  border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.has-sub.is-open > .submenu,
.has-sub:focus-within > .submenu { display: grid; gap: 2px; }
.submenu a { display: block; min-height: 40px; padding: 8px 10px; border-radius: 6px; font-weight: 650; }
.submenu a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border: 1px solid var(--line-dark); border-radius: 8px;
  background: transparent; color: var(--ivory); cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.header-call { flex: none; padding-inline: 1.05em; }

/* Hero (Inicio) */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--ivory);
}
.hero-media { position: absolute; z-index: -1; inset: 0 0 0 28%; }
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(98deg, #141414 4%, rgba(20, 20, 20, .55) 28%, transparent 52%),
              linear-gradient(0deg, #141414 0%, transparent 36%);
}
.hero-media::after {
  content: ""; position: absolute; top: 0; left: 8%; width: 12%; height: 60%;
  transform: skewX(-28deg); background: linear-gradient(var(--red-bright) 30%, transparent); opacity: .9;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; }

.hero-layout {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px; align-items: end;
  min-height: clamp(500px, 45vw, 640px); padding-block: 36px;
}
.hero-copy { align-self: start; max-width: 520px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin: 0 0 16px; border-radius: 999px;
  background: rgba(21, 128, 61, .22); border: 1px solid rgba(34, 197, 94, .45);
  color: #dcfce7; font-size: .86rem; font-weight: 700;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--green-bright); box-shadow: 0 0 0 3px rgba(34, 197, 94, .24);
}
.hero h1 { font-size: clamp(2.45rem, 4.7vw, 4.55rem); font-style: italic; margin-bottom: 12px; color: var(--white); }
.hero-sub { margin-bottom: 18px; color: var(--ivory); font-size: clamp(.98rem, 1.2vw, 1.06rem); line-height: 1.48; max-width: 46ch; }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 16px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 5px 13px; border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-size: .88rem; font-weight: 760; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.hero-badge:hover { background: var(--ivory); }
.hero-stars-badge { background: rgba(20, 20, 20, .86); color: var(--white); border-color: rgba(245, 158, 11, .55); }
.hero-stars-badge:hover { background: #26221e; }
.stars-gold { color: #f59e0b; letter-spacing: .08em; font-size: .95rem; line-height: 1; }
.brand-svg { width: 18px; height: 18px; flex: none; }

/* Banda de métodos de pago */
.pay-band {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.pay-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 18px;
}
.pay-label { display: inline-flex; align-items: center; gap: 6px; font-size: .94rem; color: var(--ink); }
.pay-label .icon { color: var(--red); }
.pay-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.pay-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 4px 11px; border-radius: 7px;
  background: var(--ivory); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 700; color: var(--ink);
}
.pay-pill.pay-logo { padding: 4px 6px; background: var(--white); }
.pay-svg { display: block; height: 22px; width: auto; }

.section-intro { max-width: 64ch; color: var(--muted); margin: -10px 0 24px; font-size: 1.02rem; }

/* Negocio familiar */
.family-section {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(22px, 4vw, 48px); align-items: start;
  padding-block: 14px 34px;
}
.family-copy p { max-width: 58ch; color: var(--muted); }
.family-copy .eyebrow { color: var(--red-text); }
.trust-grid-stack { grid-template-columns: 1fr; }

/* Reseñas en portada */
.reviews-section { padding-block: 32px 28px; border-top: 1px solid var(--line); }
.reviews-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 14px 24px; margin-bottom: 22px;
}
.reviews-head p { max-width: 60ch; color: var(--muted); margin: 0; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.platform-card {
  display: grid; gap: 10px; align-content: start; padding: 22px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.platform-head { display: flex; align-items: center; gap: 12px; }
.platform-head .brand-svg { width: 28px; height: 28px; }
.platform-head h3 { margin: 0; }
.platform-stars { display: block; font-size: .95rem; letter-spacing: .12em; color: #d97706; line-height: 1.2; }
.platform-card p { margin: 0; color: var(--muted); }
.review-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 20px; }
.quote-card {
  margin: 0; padding: 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.quote-card p { margin-bottom: 10px; }
.quote-card footer { font-size: .88rem; color: var(--muted); }

.choices { display: grid; gap: 10px; max-width: 440px; margin: 0; padding: 0; list-style: none; }
.choices a, .choices button {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  width: 100%; min-height: 54px; padding: 10px 14px;
  border: 1.5px solid var(--ivory); border-radius: 11px;
  background: rgba(20, 20, 20, .92); color: var(--ivory);
  font-weight: 760; text-align: start; text-decoration: none; line-height: 1.2; cursor: pointer;
}
.choices .icon { width: 26px; height: 26px; }
.choices .chevron { width: 20px; height: 20px; }
.choices a:hover, .choices button:hover { background: #332f2d; }
.choices button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.choices button[aria-pressed="true"] .icon { color: var(--red); }

.hero-response {
  justify-self: end; width: min(100%, 490px);
  display: grid; gap: 0; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18);
  background: var(--white); color: var(--ink);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .42);
}
.response-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 20px; background: var(--green-soft); border-bottom: 1px solid #bbf7d0;
  font-size: .84rem; font-weight: 700; color: #166534;
}
.response-status { display: inline-flex; align-items: center; gap: 8px; }
.response-phone { font-weight: 800; color: var(--ink); }
.response { display: grid; gap: 12px; padding: 20px 22px 22px; }
.response + .response { border-top: 1px solid var(--line-soft); }
.js .response + .response { border-top: 0; }
.response-head { display: flex; align-items: center; gap: 14px; }
.response-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px;
  background: #fef2f2; color: var(--red); border: 1px solid #fecaca;
}
.response-icon .icon { width: 26px; height: 26px; }
.response-kicker { margin: 0 0 2px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.response h2 { font-style: normal; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; margin: 0; color: var(--ink); }
.response-text { margin: 0; color: var(--muted); line-height: 1.48; }
.response-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.response-actions .button { min-height: 46px; padding: .6em 1.15em; }

/* Servicios y tarjetas */
.services { padding-block: 44px 30px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card-feature { border-color: var(--green); border-width: 1.5px; }
.card-media { position: relative; background: var(--ink-2); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tag {
  position: absolute; bottom: 8px; left: 8px;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(20, 20, 20, .86); color: var(--ivory); font-size: .74rem; font-weight: 650;
}
.card-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 18px 20px 20px; flex: 1; }
.card-body:not(:has(.card-icon)) { grid-template-columns: 1fr; }
.card-icon {
  color: var(--red); width: 38px; height: 38px; padding: 7px; margin-top: 1px;
  border-radius: 10px; background: #fef2f2; border: 1px solid #fee2e2;
}
.card h3 { margin-bottom: 6px; }
.card p { margin-bottom: 12px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.more-services { margin-top: 28px; }
.more-services h3 { margin-bottom: 12px; }

/* Antes de llamar */
.ready {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px;
  background: var(--ink); color: var(--ivory);
  border-radius: var(--radius); border-left: 6px solid var(--red);
  padding: 18px clamp(18px, 3vw, 34px);
}
.ready h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); font-style: italic; margin: 0; color: var(--white); }
.ready ul { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.ready li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ready .icon { color: var(--red-bright); }

/* Trato directo, CTA intermedio y marcas */
.trust-strip { padding-bottom: 24px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.trust-grid li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.trust-grid .icon {
  color: var(--green); width: 38px; height: 38px; padding: 8px;
  border-radius: 10px; background: var(--green-soft); border: 1px solid #bbf7d0;
}
.trust-grid strong { display: block; margin-bottom: 2px; }
.trust-grid span { display: block; font-size: .92rem; color: var(--muted); }

.mid-cta {
  margin-top: 28px; color: var(--ivory);
  background: linear-gradient(118deg, var(--ink) 76%, var(--ink-3) 76%);
  border-top: 4px solid var(--red);
}
.mid-cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 28px; padding-block: 26px;
}
.mid-cta h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); font-style: italic; margin-bottom: 6px; color: var(--white); }
.mid-cta p { margin: 0; color: var(--ivory); max-width: 54ch; }

.brand-strip { padding-block: 28px 18px; border-top: 1px solid var(--line); }
.brand-strip-head p { max-width: 60ch; color: var(--muted); margin-bottom: 16px; }
.brand-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px; padding: 0; list-style: none;
}
.brand-chips .chip { margin: 0; }
.chip-link { text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.chip-link:hover { border-color: var(--red); color: var(--red-text); }

/* Cómo funciona */
.how { padding-block: 38px 16px; }
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin: 0; padding: 0; list-style: none;
}
.steps li {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm);
}
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 10px; background: var(--green-soft); color: var(--green);
  border: 1px solid #bbf7d0; font-weight: 900;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* Split + Cobertura + FAQ */
.split-section {
  display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center; gap: clamp(20px, 4vw, 48px); padding-block: 34px;
}
.coverage-figure { margin: 0; }
.coverage-image { width: 100%; aspect-ratio: 2.6; object-fit: cover; border-radius: var(--radius); }
.coverage-figure figcaption { margin-top: 6px; font-size: .82rem; color: var(--muted); }

.faq { border-top: 1px solid var(--line); align-items: start; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--white); border: 1px solid #968c7e; border-radius: 9px; }
.faq summary {
  cursor: pointer; font-weight: 740; padding: 12px 42px 12px 15px;
  position: relative; list-style: none; min-height: 48px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 14px; content: "+"; font-size: 1.35em; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 15px 14px; color: var(--muted); }

/* CTA final */
.final-call {
  color: var(--white);
  background: linear-gradient(118deg, var(--red) 84%, var(--red-hover) 84%);
}
.final-call .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; }
.final-call h2 { margin: 0; font-style: italic; }

/* Páginas interiores */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--ink) 72%, var(--ink-3) 72%);
  color: var(--ivory);
}
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(22px, 4.5vw, 60px); align-items: center; padding-block: clamp(28px, 4.5vw, 56px);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 4.1rem); font-style: italic; margin-bottom: 14px; color: var(--white); max-width: 19ch; }
.page-hero .lead { margin-bottom: 22px; color: var(--ivory); }
.page-hero-photo {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--ink-2); border-left: 5px solid var(--red);
}
.page-hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.page-hero-photo figcaption { padding: 7px 12px; font-size: .8rem; color: var(--ivory); background: #23201e; }

.breadcrumbs { margin-bottom: 18px; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9c9286; }
.breadcrumbs a { text-underline-offset: .2em; }

.page-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 4.5vw, 64px); align-items: start; padding-block: 40px 26px;
}
.content-block + .content-block { margin-top: 28px; }
.content-block h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); margin-bottom: 10px; }
.content-block p { max-width: 66ch; }
.sidebar { display: grid; gap: 18px; }

.callout {
  background: var(--ivory-2); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 20px;
}
.callout h2, .callout h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: 10px; }
.callout-dark { background: var(--ink); color: var(--ivory); }
.callout-dark .checklist .icon { color: var(--red-bright); }
.callout .button { width: 100%; margin-top: 12px; }
.callout .small { margin: 10px 0 0; }

.checklist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; }
.checklist .icon { color: var(--red); margin-top: 3px; }

.chip {
  display: inline-block; padding: 5px 12px; margin: 0 6px 6px 0;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700;
}
.note { margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--red); background: var(--white); border-radius: 8px; }

.related { padding-block: 18px 44px; }
.city-check-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px; margin: 0; padding: 0; list-style: none;
}
.city-check-card {
  display: grid; gap: 8px; align-content: start; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.city-check-head { display: flex; align-items: center; gap: 10px; }
.city-check-head .icon {
  color: var(--green); width: 32px; height: 32px; padding: 6px;
  border-radius: 9px; background: var(--green-soft); border: 1px solid #bbf7d0;
}
.city-check-head h3 { margin: 0; }
.city-check-card p { margin: 0; font-size: .94rem; color: var(--muted); }
.link-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none;
}
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 50px; padding: 10px 14px;
  background: var(--white); border: 1px solid #a29788; border-radius: 9px;
  font-weight: 720; text-decoration: none;
}
.link-grid a:hover { border-color: var(--red); color: var(--red-text); }
.link-grid .icon { color: var(--red); }

/* Contacto y formulario */
.choose { padding-block: 38px 14px; }
.choose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.choose-card {
  display: grid; align-content: start; gap: 10px; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.choose-urgent { border-top: 5px solid var(--red); }
.choose-icon { width: 34px; height: 34px; color: var(--red); }

.quote {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 52px); align-items: start; padding-block: 28px 40px;
}
.quote-form {
  display: grid; gap: 14px; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row-3 { grid-template-columns: .7fr 1fr 1fr; border: 0; padding: 0; margin: 0; }
.field-row-3 legend { font-weight: 760; margin-bottom: 6px; padding: 0; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 700; font-size: .94rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 9px 11px;
  border: 1.5px solid #8a8073; border-radius: 8px; background: var(--white);
}
.field textarea { min-height: 84px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff5f6; }
.hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-status { min-height: 1.4em; font-weight: 680; }
.form-status.is-ok { padding: 12px 14px; border-radius: 8px; background: #e8f5ec; color: #124b26; border: 1px solid #85c49a; }
.form-status.is-err { padding: 12px 14px; border-radius: 8px; background: #fdecee; color: #8c0013; border: 1px solid #e49aa4; }
.form-status .retry { margin-top: 8px; }

/* Página QR móvil (/qr/) */
body.page-qr {
  background: var(--ivory);
  padding-bottom: 84px;
}
.qr-shell {
  width: min(100%, 460px);
  margin-inline: auto;
  min-height: 100svh;
  background: var(--ivory);
  box-shadow: 0 0 40px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.qr-hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.qr-hero-media {
  height: clamp(148px, 34vw, 185px);
  overflow: hidden;
}
.qr-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 72%;
}
.qr-slash {
  position: relative;
  height: 22px;
  margin-top: -18px;
  background: var(--ivory);
  border-top: 7px solid var(--red);
  transform: rotate(-3.2deg) scaleX(1.06);
  transform-origin: center;
}
.qr-body {
  padding: 6px 18px 28px;
  text-align: center;
}
.qr-body h1 {
  font-size: clamp(2.15rem, 9.5vw, 2.85rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 8px;
  color: var(--ink);
}
.qr-sub {
  margin: 0 0 20px;
  font-size: clamp(1rem, 4.4vw, 1.18rem);
  font-weight: 800;
  color: var(--ink);
}
.qr-ctas {
  display: grid;
  gap: 11px;
  margin-bottom: 22px;
}
.qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: clamp(1.05rem, 4.6vw, 1.24rem);
  font-weight: 800;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.qr-btn .icon { width: 1.35em; height: 1.35em; }
.qr-btn-call {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(201, 0, 27, .28);
}
.qr-btn-call:hover { background: var(--red-hover); }
.qr-btn-msg {
  background: var(--white);
  color: var(--ink);
  border: 2.5px solid var(--red);
}
.qr-btn-msg .icon { color: var(--red); }
.qr-btn-msg:hover { background: #fff5f6; }

.qr-services h2 {
  font-size: clamp(1.55rem, 7vw, 2rem);
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.qr-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.qr-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  min-height: 60px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.qr-item:hover { border-color: var(--red); transform: translateY(-1px); }
.qr-item-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 12px;
  border-right: 1.5px solid var(--red);
  color: var(--red);
}
.qr-item-ico .icon { width: 30px; height: 30px; }
.qr-item-label {
  padding-left: 14px;
  font-size: clamp(1rem, 4.3vw, 1.12rem);
  font-weight: 800;
}
.qr-item-chev { color: var(--red); width: 22px; height: 22px; }

.qr-btn-vcard {
  width: min(100%, 360px);
  margin: 4px auto 22px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--red);
  border-radius: 14px;
  font-size: clamp(.98rem, 4.2vw, 1.1rem);
}
.qr-btn-vcard .icon { color: var(--red); }
.qr-btn-vcard:hover { background: #fff5f6; }
.qr-feedback { margin: -12px 0 18px; font-size: .86rem; font-weight: 650; color: var(--green); min-height: 1.2em; }

.qr-widgets {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.qr-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.qr-badges .hero-badge {
  box-shadow: none;
  border-color: var(--line);
}
.qr-pay {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.qr-pay-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
}
.qr-pay-title .icon { color: var(--red); }
.qr-pay-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.qr-foot { font-size: .9rem; }
body.page-qr .wa-widget { bottom: 16px; }

/* Página de reseña (/resena/) */
.review-page { padding-block: clamp(32px, 5vw, 56px) 56px; max-width: 900px; }
.review-card {
  padding: clamp(24px, 4vw, 40px); text-align: center;
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--red);
  border-radius: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}
.review-card .eyebrow::after { margin-inline: auto; }
.review-card h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-style: italic; margin-bottom: 12px; }
.review-card .lead { margin-inline: auto; margin-bottom: 16px; color: var(--muted); }
.review-stars { font-size: 1.85rem; letter-spacing: .16em; color: #d97706; margin-bottom: 18px; }
.review-actions { display: grid; justify-items: center; gap: 12px; margin-bottom: 14px; }
.review-cta { min-width: min(100%, 320px); }
.review-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; margin-top: 22px;
}
.review-alt-link { color: var(--ivory); }
.review-alt-link:hover { color: var(--white); }

/* 404 */
.not-found { padding-block: 54px 64px; max-width: 820px; }
.not-found .actions { margin: 22px 0 28px; }

/* Footer + barra móvil */
.site-footer { background: var(--ink); color: var(--ivory); border-top: 1px solid var(--line-dark); }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 24px 32px; padding-block: 32px 24px;
}
.footer-title { font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: #c7bdb0; margin-bottom: 10px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer nav a { text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--white); }
.footer-meta p { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-block: 14px 20px; font-size: .82rem; color: #bdb3a5; }
.footer-legal p { margin: 0; }

.callbar { display: none; }

/* Asistente guiado de WhatsApp (esquina inferior derecha) */
.wa-widget {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wa-ico { width: 22px; height: 22px; flex: none; }
.wa-teaser {
  display: flex; align-items: center; gap: 6px;
  max-width: 270px; padding: 8px 10px 8px 14px; border-radius: 12px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  font-size: .86rem; line-height: 1.3;
}
.wa-teaser-btn {
  border: 0; background: none; padding: 0; text-align: left;
  font-weight: 680; cursor: pointer;
}
.wa-teaser-close {
  border: 0; background: none; width: 26px; height: 26px; flex: none;
  border-radius: 50%; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.wa-teaser-close:hover { background: var(--ivory); color: var(--ink); }

.wa-launcher {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: #15803d; color: var(--white); font-weight: 760;
  box-shadow: 0 10px 26px rgba(21, 128, 61, .38); cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.wa-launcher:hover { background: #166534; transform: translateY(-1px); }

.wa-panel {
  width: min(360px, calc(100vw - 24px)); max-height: min(520px, 72vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
}
.wa-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: var(--ink); color: var(--white);
  border-bottom: 3px solid var(--green-bright);
}
.wa-head-title { display: flex; align-items: center; gap: 10px; }
.wa-avatar {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: var(--green); color: var(--white);
}
.wa-head strong { display: block; font-size: .96rem; line-height: 1.15; }
.wa-head span { display: block; font-size: .78rem; color: #d6d0c5; }
.wa-close {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ivory); cursor: pointer;
}
.wa-close:hover { background: rgba(255, 255, 255, .12); }

.wa-msgs {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; overflow-y: auto; flex: 1; background: #f8f5ef;
}
.wa-msg {
  margin: 0; padding: 9px 12px; max-width: 88%; border-radius: 12px;
  font-size: .92rem; line-height: 1.4;
}
.wa-msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.wa-msg-user { align-self: flex-end; background: var(--green-soft); color: #14532d; border: 1px solid #bbf7d0; border-bottom-right-radius: 4px; font-weight: 600; }

.wa-controls { padding: 12px; background: var(--white); border-top: 1px solid var(--line-soft); }
.wa-quick { display: grid; gap: 6px; }
.wa-chip {
  width: 100%; min-height: 40px; padding: 8px 12px; text-align: left;
  background: var(--ivory); color: var(--ink); border: 1px solid var(--line); border-radius: 9px;
  font-size: .9rem; font-weight: 680; cursor: pointer;
}
.wa-chip:hover { border-color: var(--green); background: var(--green-soft); color: #14532d; }
.wa-form { display: flex; gap: 8px; }
.wa-form input {
  flex: 1; min-width: 0; min-height: 42px; padding: 8px 11px;
  border: 1.5px solid #8a8073; border-radius: 9px; background: var(--white); font-size: .92rem;
}
.wa-send-btn {
  min-height: 42px; padding: 0 14px; border: 0; border-radius: 9px;
  background: var(--green); color: var(--white); font-weight: 720; cursor: pointer;
}
.wa-send-btn:hover { background: var(--green-hover); }
.wa-final { display: grid; gap: 10px; }
.wa-go { width: 100%; }
.wa-final-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .86rem; }
.wa-reset { border: 0; background: none; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .86rem; }
.wa-reset:hover { color: var(--ink); }

/* Índice de vista previa */
.preview-index main { padding-block: 32px 56px; }
.preview-index table { width: 100%; border-collapse: collapse; margin-bottom: 28px; background: var(--white); font-size: .92rem; }
.preview-index th, .preview-index td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.preview-index th { background: var(--ivory-2); }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.status-core, .status-published { background: #e3f5e8; color: #14532d; }
.status-candidate { background: #fef3c7; color: #78350f; }

/* Responsive */
@media (max-width: 980px) {
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready { grid-template-columns: 1fr; gap: 10px; }
  .ready ul { justify-content: start; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .nav-toggle { display: inline-flex; }
  .header-call { display: none; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; border-top: 1px solid var(--line-dark); padding-top: 8px; }
  .site-nav.is-open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .menu > li { flex-wrap: wrap; justify-content: space-between; }
  .menu > li > a { flex: 1; }
  .submenu { position: static; width: 100%; box-shadow: none; margin: 4px 0 8px; }

  .hero { display: grid; }
  .hero-layout { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding-block: 24px; grid-row: 1; }
  .hero-media { position: relative; inset: auto; }
  .hero-media img { aspect-ratio: 16 / 10; object-position: 50% 58%; }
  .hero-media::before { background: linear-gradient(#141414 0%, transparent 18%); }
  .hero-media::after { display: none; }
  .hero-response { justify-self: stretch; }

  .card-grid, .card-grid-4, .trust-grid, .family-section, .platform-grid, .steps, .split-section, .page-hero-grid, .page-body, .choose-grid, .quote, .review-grid, .field-row, .field-row-3, .footer-inner {
    grid-template-columns: 1fr;
  }
  .final-call .wrap { flex-direction: column; align-items: start; }

  .callbar {
    display: block; position: fixed; z-index: 45; inset: auto 0 0;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line-dark);
  }
  .callbar .button { width: 100%; }
  .wa-widget { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wa-teaser { display: none; }
  /* Deja espacio para el botón del widget de chat si se activa */
  body.has-chat .woot-widget-bubble { bottom: calc(82px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 360px) {
  .callbar-num { display: none; }
  .response { grid-template-columns: 1fr; }
  .response-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
