/* ==========================================================================
   Cerrajería Díaz · Hoja de estilos
   Identidad: azul fachada + anillo celeste + dorado "Díaz"
   Desarrollo: proyectatunegocio.cl
   ========================================================================== */

:root {
  --ink: #0B1530;
  --ink-2: #13224A;
  --azul: #1E3FA6;
  --azul-2: #2B56D0;
  --anillo: #3FB0F2;
  --oro: #F4B41A;
  --oro-2: #DC960A;
  --cal: #F4F1EA;
  --papel: #FBFAF7;
  --gris: #5A6377;
  --gris-2: #8A92A5;
  --linea: #DED9CE;
  --linea-dark: rgba(255, 255, 255, .12);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bs-body-font-family: var(--f-sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--papel);
  --bs-link-color-rgb: 30, 63, 166;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--f-sans);
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--papel);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--azul-2); }
::selection { background: var(--oro); color: var(--ink); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--oro); color: var(--ink); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--f-sans); color: inherit; margin: 0; }

.mono-label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oro);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow-dark { color: var(--azul); }

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.section-lead { color: var(--gris); font-size: 1.075rem; max-width: 52ch; margin-bottom: 0; }

/* ---------- Botones ---------- */
.btn-primary-cd, .btn-ghost-cd, .btn-dark-cd {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem;
  font-weight: 700; font-size: 1rem; letter-spacing: .005em;
  border-radius: var(--r); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary-cd svg, .btn-call svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary-cd { background: var(--oro); color: var(--ink); box-shadow: 0 1px 0 var(--oro-2), 0 8px 24px -10px rgba(244, 180, 26, .7); }
.btn-primary-cd:hover { background: #FFC233; color: var(--ink); transform: translateY(-1px); }
.btn-ghost-cd { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn-ghost-cd:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-dark-cd { background: var(--ink); color: #fff; }
.btn-dark-cd:hover { background: var(--azul); color: #fff; }

.link-arrow {
  font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(11, 21, 48, .96);
  border-bottom: 1px solid var(--linea-dark);
  transition: box-shadow .25s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(11, 21, 48, .88); backdrop-filter: saturate(140%) blur(10px); }
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-weight: 800; font-size: 1.12rem; text-transform: uppercase;
  font-variation-settings: "wdth" 118; letter-spacing: .01em;
}
.brand-name b { color: var(--oro); font-weight: 800; }
.brand-sub {
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); margin-top: .35rem;
}

.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.main-nav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: .95rem;
  position: relative; padding: .4rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--oro);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.btn-call {
  align-items: center; gap: .5rem; min-height: 42px; padding: 0 1rem;
  background: var(--oro); color: var(--ink); font-weight: 700; border-radius: var(--r);
  text-decoration: none; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.btn-call:hover { background: #FFC233; color: var(--ink); }
.btn-call svg { width: 17px; height: 17px; }

.status-pill {
  align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
  padding: .4rem .7rem; border: 1px solid var(--linea-dark); border-radius: 100px;
  white-space: nowrap;
}
.status-pill:not([hidden]) { display: inline-flex; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-2); flex: none; }
.status-pill.is-open i { background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .16); }
.status-pill.is-closed i { background: #FF7A59; }
@media (min-width: 768px) { .status-pill.d-md-inline-flex[hidden] { display: none !important; } }

.nav-toggle {
  width: 44px; height: 44px; border: 1px solid var(--linea-dark); background: transparent; border-radius: var(--r);
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { width: 18px; height: 2px; background: #fff; display: block; }

.menu-movil { background: var(--ink); color: #fff; --bs-offcanvas-width: min(86vw, 360px); }
.menu-movil .offcanvas-header { border-bottom: 1px solid var(--linea-dark); padding: 1.25rem 1.5rem; }
.menu-movil .mono-label { color: rgba(255, 255, 255, .6); }
.menu-movil .offcanvas-body { display: flex; flex-direction: column; padding: 1rem 1.5rem 2rem; }
.menu-movil-list { list-style: none; margin: 0; padding: 0; }
.menu-movil-list a {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--linea-dark);
  color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 700; font-variation-settings: "wdth" 110;
}
.menu-movil-foot { margin-top: auto; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.menu-movil-foot a { color: var(--oro); text-decoration: none; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(120% 90% at 85% 10%, #1A3480 0%, rgba(11, 21, 48, 0) 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  color: #fff;
  padding: 56px 0 72px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--azul) 0 70%, var(--oro) 70% 100%);
}
.hero-ring {
  position: absolute; width: 760px; height: 760px; right: -260px; top: -160px;
  color: #fff; opacity: .04; pointer-events: none;
}
.hero-title {
  font-size: clamp(2.5rem, 1.4rem + 5vw, 4.6rem);
  line-height: .98;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-title .hl { color: var(--oro); position: relative; white-space: nowrap; }
.hero-lead { font-size: 1.125rem; color: rgba(255, 255, 255, .78); max-width: 54ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-ctas > a { flex: 1 1 100%; }
@media (min-width: 576px) { .hero-ctas > a { flex: 0 0 auto; } }

.proof {
  list-style: none; margin: 0; padding: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  border-top: 1px solid var(--linea-dark);
}
.proof li { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.proof li + li { padding-left: 1rem; border-left: 1px solid var(--linea-dark); }
.proof strong {
  font-size: 1.35rem; font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1.1;
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
}
.proof li > span { font-size: .82rem; color: rgba(255, 255, 255, .62); line-height: 1.35; }
.stars { color: var(--oro); letter-spacing: .08em; font-size: .78em; }
.proof .stars { font-size: .7rem; }

.hero-photo { position: relative; margin: 0; max-width: 460px; margin-left: auto; margin-right: auto; }
.hero-photo img {
  width: 100%; aspect-ratio: 476 / 560; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--r);
  border: 8px solid #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.hero-photo figcaption {
  position: absolute; left: -12px; bottom: 28px;
  display: flex; flex-direction: column; gap: .1rem;
  background: var(--oro); color: var(--ink);
  padding: .7rem 1rem; border-radius: 2px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
}
.hero-photo figcaption .tag { font-weight: 800; font-size: 1.05rem; font-variation-settings: "wdth" 112; text-transform: uppercase; line-height: 1.1; }
.hero-photo figcaption span:last-child { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Triage ---------- */
.triage { background: var(--cal); }
.triage-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden;
}
@media (min-width: 640px) { .triage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .triage-grid { grid-template-columns: repeat(3, 1fr); } }
.triage-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.75rem 1.5rem 1.5rem; background: var(--papel);
  text-decoration: none; color: var(--ink);
  transition: background-color .25s var(--ease);
  min-height: 210px;
}
.triage-card .num { font-family: var(--f-mono); font-size: .75rem; color: var(--azul); letter-spacing: .1em; }
.triage-card .t { font-size: 1.3rem; font-weight: 800; line-height: 1.15; font-variation-settings: "wdth" 106; letter-spacing: -.01em; }
.triage-card .d { color: var(--gris); font-size: .95rem; }
.triage-card .go {
  margin-top: auto; padding-top: 1rem; font-weight: 700; font-size: .9rem; color: var(--azul);
  display: inline-flex; align-items: center; gap: .5rem;
}
.triage-card .go::after { content: "→"; transition: transform .25s var(--ease); }
.triage-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--oro);
  transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease);
}
.triage-card:hover { background: #fff; color: var(--ink); }
.triage-card:hover::before { transform: scaleY(1); }
.triage-card:hover .go::after { transform: translateX(5px); }

/* ---------- Servicios ---------- */
.services { background: var(--papel); }
.services-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.chip-note {
  margin-top: 2rem; padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border-left: 3px solid var(--oro); background: var(--cal);
}
.chip-note p { margin: .4rem 0 0; font-weight: 600; line-height: 1.45; }

.service-list { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.service-list li {
  counter-increment: s;
  display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; row-gap: .2rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--linea);
}
.service-list li::before {
  content: counter(s, decimal-leading-zero);
  grid-row: 1 / span 3; font-family: var(--f-mono); font-size: .8rem; color: var(--gris-2); padding-top: .3rem;
}
.service-list .cat {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azul);
}
.service-list h3 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 104; line-height: 1.25; }
.service-list p { margin: 0; color: var(--gris); font-size: .98rem; }
@media (min-width: 768px) {
  .service-list li { grid-template-columns: 3rem 7rem 1fr; align-items: baseline; }
  .service-list li::before { grid-row: 1 / span 2; }
  .service-list .cat { grid-row: 1 / span 2; }
  .service-list h3, .service-list p { grid-column: 3; }
}

/* ---------- Proceso ---------- */
.process {
  background-color: var(--azul);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: #fff;
}
.process .eyebrow { color: var(--oro); }
.steps {
  list-style: none; margin: 0 0 3rem; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 1.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
@media (min-width: 768px) {
  .steps li { padding: 2rem 2rem 2rem 0; border-bottom: 0; }
  .steps li + li { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .25); }
}
.steps .num {
  display: block; font-weight: 800; font-size: 3rem; line-height: 1; font-variation-settings: "wdth" 120;
  color: transparent; -webkit-text-stroke: 1.5px var(--oro); margin-bottom: 1rem;
}
.steps h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; font-variation-settings: "wdth" 106; }
.steps p { margin: 0; color: rgba(255, 255, 255, .78); }

.domicilio {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center;
  background: var(--ink); border-radius: var(--r); padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 992px) { .domicilio { grid-template-columns: auto 1fr auto; gap: 2rem; padding: 2rem 2.25rem; } }
.domicilio-icon { width: 56px; height: 56px; color: var(--oro); }
.domicilio-icon svg { width: 100%; height: 100%; }
.domicilio h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .35rem; font-variation-settings: "wdth" 106; }
.domicilio p { margin: 0; color: rgba(255, 255, 255, .72); max-width: 60ch; }

/* ---------- Local ---------- */
.local { background: var(--papel); }
.local-photo { margin: 0; height: 100%; }
.local-photo img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 30% 85%; border-radius: var(--r);
}
.local-data { margin: 2rem 0 1.5rem; border-top: 1px solid var(--linea); }
.local-data > div {
  display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--linea);
}
.local-data dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); font-weight: 500; padding-top: .2rem; }
.local-data dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.local-data a { color: var(--ink); text-decoration-color: var(--oro); text-decoration-thickness: 2px; }

.map-box {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 220px; flex: 1;
  background:
    linear-gradient(rgba(30, 63, 166, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 63, 166, .08) 1px, transparent 1px),
    var(--cal);
  background-size: 22px 22px;
  border: 1px solid var(--linea);
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 700; color: var(--ink); font-size: 1rem;
}
.map-load::before {
  content: ""; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--azul); box-shadow: inset 0 0 0 6px var(--azul), inset 0 0 0 11px #fff; margin-bottom: .4rem;
}
.map-load:hover span:last-child { text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Opiniones ---------- */
.reviews { background: var(--papel); padding-bottom: 88px; }
.reviews-band {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center;
  padding: 2rem 1.75rem; border: 2px solid var(--ink); border-radius: var(--r); background: #fff;
}
@media (min-width: 768px) { .reviews-band { grid-template-columns: auto 1fr auto; gap: 2.5rem; padding: 2rem 2.5rem; } }
.reviews-score { display: flex; flex-direction: column; line-height: 1; }
.reviews-score .big { font-size: 4rem; font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -.03em; }
.reviews-score .stars { font-size: 1.05rem; margin-top: .4rem; }
.reviews-text { margin: 0; font-size: 1.1rem; color: var(--gris); max-width: 46ch; }
.reviews-text strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { background: var(--cal); }
.faq-list { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--linea); --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; border-top: 2px solid var(--ink); }
.faq-list .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--linea); }
.faq-list .accordion-button {
  background: transparent; box-shadow: none; padding: 1.35rem 0; color: var(--ink);
  font-weight: 700; font-size: 1.12rem; font-family: var(--f-sans); font-variation-settings: "wdth" 104;
}
.faq-list .accordion-button::after {
  background-image: none; content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; width: auto; height: auto;
  color: var(--azul); transform: none; transition: transform .25s var(--ease);
}
.faq-list .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.faq-list .accordion-button:not(.collapsed) { color: var(--azul); background: transparent; }
.faq-list .accordion-button:focus { box-shadow: none; }
.faq-list .accordion-button:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.faq-list .accordion-body { padding: 0 2.5rem 1.5rem 0; color: var(--gris); font-size: 1.02rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .section-lead { color: rgba(255, 255, 255, .7); }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--linea-dark); }
.contact-lines li { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--linea-dark); }
.contact-lines .mono-label { color: rgba(255, 255, 255, .5); }
.contact-lines a, .contact-lines span:not(.mono-label) { color: #fff; font-weight: 700; font-size: 1.12rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--oro); }

.quote-form {
  background: var(--papel); color: var(--ink); border-radius: var(--r);
  padding: 1.75rem 1.25rem; border-top: 6px solid var(--oro);
}
@media (min-width: 576px) { .quote-form { padding: 2.25rem; } }
.quote-form label, .quote-form legend {
  display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--ink);
}
.quote-form .opt { font-weight: 400; color: var(--gris); }
.quote-form input[type="text"], .quote-form input[type="tel"], .quote-form select, .quote-form textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff; border: 1.5px solid var(--linea); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.quote-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B1530' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 12px; padding-right: 2.4rem;
}
.quote-form textarea { min-height: 96px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(30, 63, 166, .15);
}
.quote-form .is-invalid { border-color: #C2410C !important; }
.quote-form ::placeholder { color: var(--gris-2); }
.lugar { border: 0; padding: 0; margin: 0; }
.lugar .radio {
  display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .98rem;
  padding: .75rem .9rem; border: 1.5px solid var(--linea); border-radius: var(--r); margin: 0 0 .5rem; cursor: pointer; background: #fff;
}
.lugar .radio em { font-style: normal; color: var(--gris); font-weight: 400; }
.lugar .radio:has(input:checked) { border-color: var(--azul); background: rgba(30, 63, 166, .04); }
.lugar input { accent-color: var(--azul); width: 18px; height: 18px; margin: 0; flex: none; }
@media (min-width: 576px) { .lugar { display: grid; grid-template-columns: 1fr 1fr; column-gap: .75rem; } .lugar legend { grid-column: 1 / -1; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: .92rem; color: var(--gris); }
.form-msg.is-error { color: #C2410C; }
.form-msg.is-ok { color: #157347; }

/* ---------- Footer ---------- */
.site-footer { background: #070E22; color: rgba(255, 255, 255, .6); padding: 48px 0 calc(48px + 72px); border-top: 1px solid var(--linea-dark); }
@media (min-width: 992px) { .site-footer { padding-bottom: 48px; } }
.brand-footer .brand-mark { width: 34px; height: 34px; }
.footer-nap { font-size: .95rem; }
.footer-small { font-size: .82rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--oro); }

/* ---------- Barra de acción móvil ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--linea-dark);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .3s var(--ease);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .5);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 58px; font-weight: 700; text-decoration: none; color: #fff; background: var(--ink);
}
.action-bar a.wa { background: var(--oro); color: var(--ink); }
.action-bar svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 992px) { .action-bar { display: none; } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Ajustes móviles (390 px) ---------- */
@media (max-width: 575.98px) {
  :root { --header-h: 64px; }
  .section { padding: 64px 0; }
  .reviews { padding-bottom: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .28em; }
  .hero { padding: 36px 0 56px; }
  .hero-lead { font-size: 1.02rem; }
  .proof { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .proof li:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid var(--linea-dark); flex-direction: row; align-items: baseline; gap: .6rem; }
  .proof strong { font-size: 1.2rem; }
  .hero-photo figcaption { left: 12px; bottom: 20px; }
  .triage-card { min-height: 0; padding: 1.4rem 1.25rem; }
  .local-data > div { grid-template-columns: 1fr; gap: .2rem; }
  .local-photo img { min-height: 0; aspect-ratio: 4 / 3.4; }
}

/* Protección: evita arrastrar imágenes sin afectar la lectura */
img { -webkit-user-drag: none; user-select: none; }
