/* GRÚAS LIMA SAC — asistencia inmediata
   Mobile first. 360–430 px es el diseño base. */

:root {
  --navy: #14243a;
  --yellow: #ffc928;
  --red: #e54848;
  --white: #ffffff;
  --mist: #f2f4f7;
  --ink: #14243a;
  --muted: #4d5b6e;
  --line: #d9dee6;
  --wa: #1d8f49;
  --header: 64px;
  --dock: 64px;
  --font: "Inter", system-ui, sans-serif;
  --pad: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 8px);
  scroll-padding-bottom: calc(var(--dock) + 12px);
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

::selection { background: var(--yellow); }

[hidden] { display: none !important; }

.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 {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 80;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
}

.skip:focus { top: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.35rem; height: 1.35rem; display: block; flex: none; }

.wrap { width: min(1080px, calc(100% - var(--pad) * 2)); margin-inline: auto; }

h1, h2, .footer-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(1.65rem, 7.2vw, 2.7rem); text-transform: uppercase; }

h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-block { width: 100%; }

.btn-yellow { background: var(--yellow); color: var(--navy); }

.btn-navy { background: var(--navy); color: var(--white); }

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--line);
}

.btn:disabled { opacity: 0.6; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header);
  padding: 8px var(--pad);
  background: var(--navy);
  color: var(--white);
}

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
}

.brand__name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand__name small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.header-actions { display: flex; gap: 6px; }

.icon-btn, .burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.burger .icon-close { display: none; }

body.nav-open .burger .icon-open { display: none; }

body.nav-open .burger .icon-close { display: block; }

.menu {
  display: none;
  position: absolute;
  z-index: 39;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--pad) 16px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.nav-open .menu { display: grid; gap: 4px; }

.menu a {
  padding: 14px 4px;
  font-weight: 700;
  font-size: 1.15rem;
}

.menu .btn { margin-top: 8px; }

/* Hero + wizard */

.top { display: grid; }

.hero__photo {
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: 62% 42%;
}

.hero__copy { padding: 12px var(--pad) 0; }

.alert-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead { margin-top: 6px; color: var(--muted); }

.hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pills li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.wizard-wrap { padding: 10px var(--pad) 16px; scroll-margin-top: calc(var(--header) + 8px); }

.wizard {
  background: var(--white);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(20, 36, 58, 0.08);
}

.wizard__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }

.wizard__head h2 { font-size: 1.25rem; margin: 0; }

.wizard__head p { color: var(--muted); font-weight: 700; font-size: 0.9rem; }

.track {
  height: 8px;
  width: 100%;
  margin: 8px 0 12px;
  border-radius: 99px;
  background: var(--mist);
  overflow: hidden;
}

.track span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--yellow);
  transition: width 0.2s ease;
}

.step h3 { font-size: 1.15rem; margin-bottom: 8px; }

.ask { margin: 14px 0 8px; font-weight: 800; }

.choices { display: grid; gap: 8px; }

.choice {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-weight: 700;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 10px 0 0;
  accent-color: var(--navy);
}

.choice:has(input:checked) {
  border-color: var(--navy);
  background: #fff8df;
  box-shadow: inset 4px 0 0 var(--yellow);
}

.choices.is-invalid .choice { border-color: var(--red); }

.field { margin-top: 12px; }

.field label, .ask { display: block; }

.field label { margin-bottom: 6px; font-weight: 800; }

.opt { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 1rem;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus, .field textarea:focus { border-color: var(--navy); outline: none; }

.field.is-invalid input,
.field.is-invalid textarea,
.choices.is-invalid { border-color: var(--red); }

.field-error { min-height: 0; margin-top: 6px; color: var(--red); font-size: 0.88rem; font-weight: 700; }

.field-error:empty { display: none; }

.hint, .geo-note { margin-top: 6px; color: var(--muted); font-size: 0.88rem; }

.geo-note { color: var(--navy); font-weight: 700; }

.field-actions { margin-top: 10px; }

.gps-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4c8;
  font-weight: 700;
  font-size: 0.9rem;
}

.gps-chip button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
}

.wizard__nav {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.summary {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.summary div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mist);
}

.summary dt { color: var(--muted); font-size: 0.78rem; font-weight: 700; }

.summary dd { margin: 2px 0 0; font-weight: 800; white-space: pre-line; }

.summary__edits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.summary__edits button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  min-height: 44px;
}

.config-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffecec;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Lower sections */

.section { padding: 28px 0; scroll-margin-top: calc(var(--header) + 8px); }

.section--navy { background: var(--navy); color: var(--white); }

.section--white { background: var(--white); }

.section--gray { background: var(--white); }

.section-lead {
  max-width: 62ch;
  margin: -4px 0 16px;
  color: var(--muted);
}

.section-lead--light { color: rgba(255, 255, 255, 0.78); }

.cards { display: grid; gap: 10px; }

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--white);
  text-align: left;
  box-shadow: 0 6px 16px rgba(20, 36, 58, 0.05);
}

.card .icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: #fff4c8;
  color: var(--navy);
}

.card strong { font-size: 1.02rem; }

.card span { color: var(--muted); font-size: 0.92rem; }

.card:active { transform: scale(0.99); }

.section--white .card {
  background: var(--mist);
  box-shadow: none;
}

.flow { display: grid; gap: 14px; }

.flow li { display: flex; gap: 12px; align-items: flex-start; }

.flow span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
}

.flow p { margin-top: 4px; color: rgba(255, 255, 255, 0.78); }

.coverage { display: grid; gap: 16px; }

.zone-list { display: grid; gap: 8px; }

.zone-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  font-weight: 700;
}

.zone-list small { display: block; color: var(--muted); font-weight: 600; }

.disclaimer {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  color: var(--muted);
}

.map {
  margin: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
}

.map svg { width: 100%; height: auto; display: block; }

.map-label { fill: var(--navy); font-size: 11px; font-weight: 700; font-family: var(--font); }

.map-water { fill: #6d7f96; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; font-family: var(--font); }

.map figcaption { padding: 10px 12px 12px; color: var(--muted); font-size: 0.85rem; }

.trust { display: grid; gap: 12px; }

.trust li { display: flex; gap: 12px; align-items: flex-start; }

.trust .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: #fff4c8;
  color: var(--navy);
}

.trust p { margin-top: 4px; color: var(--muted); }

.tips { display: grid; gap: 12px; }

.tips li { display: flex; gap: 12px; align-items: flex-start; }

.tips .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: #fff4c8;
  color: var(--navy);
}

.tips p { margin-top: 4px; color: var(--muted); }

.faq { display: grid; gap: 8px; }

.faq details {
  border-radius: 14px;
  background: var(--white);
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details[open] { box-shadow: inset 4px 0 0 var(--yellow); }

.faq details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.cta-band { display: grid; gap: 12px; justify-items: start; }

.cta-band p { max-width: 46ch; color: rgba(255, 255, 255, 0.78); }

.cta-band .btn { min-width: 220px; }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 28px 0 18px; }

.footer-grid { display: grid; gap: 16px; }

.footer-brand { color: var(--white); font-size: 1.3rem; }

.site-footer a { display: inline-block; padding: 6px 0; font-weight: 700; }

.site-footer nav { display: grid; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }

.socials a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.dock {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  box-shadow: 0 -8px 24px rgba(20, 36, 58, 0.12);
}

.dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--dock);
  border: 0;
  background: transparent;
  font-weight: 800;
}

.dock button:first-child { background: var(--navy); color: var(--white); }

.dock button:last-child { background: var(--wa); color: var(--white); }

.fab {
  display: none;
  position: fixed;
  z-index: 35;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(20, 36, 58, 0.2);
}

.toaster {
  position: fixed;
  z-index: 60;
  top: calc(var(--header) + 8px);
  left: var(--pad);
  right: var(--pad);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(20, 36, 58, 0.25);
}

.toast--err { background: #3d1518; border: 1px solid var(--red); }

.toast p { flex: 1; font-weight: 650; }

.toast button { border: 0; background: transparent; color: var(--yellow); font-weight: 800; }

.noscript {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 70;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
}

body.nav-open { overflow: hidden; }

body.nav-open .dock { visibility: hidden; }

.js .rise {
  animation: rise 0.28s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 720px) {
  .hero__photo { height: 220px; }

  .hero__copy { padding: 20px var(--pad) 8px; }

  .hero__cta { margin-top: 16px; }

  .choices--grid { grid-template-columns: 1fr 1fr; }

  .choices--3 { grid-template-columns: repeat(3, 1fr); }

  .cards { grid-template-columns: 1fr 1fr; }

  .wizard__nav { grid-template-columns: auto 1fr; }

  .wizard__nav .btn-ghost { min-width: 120px; }

  .toaster { left: auto; width: min(380px, calc(100% - 32px)); right: 16px; }
}

@media (min-width: 960px) {
  html { scroll-padding-bottom: 16px; }

  body { padding-bottom: 0; }

  .dock { display: none; }

  .fab { display: grid; }

  .burger { display: none; }

  .menu {
    display: flex;
    position: static;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .menu a { padding: 6px 0; font-size: 0.84rem; font-weight: 700; white-space: nowrap; }

  .menu .btn { margin: 0 0 0 4px; min-height: 40px; padding: 8px 10px; font-size: 0.84rem; }

  .top {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: start;
    width: min(1080px, calc(100% - 96px));
    margin: 20px auto 8px;
    gap: 20px;
  }

  .hero {
    overflow: hidden;
    border-radius: 24px;
    background: var(--navy);
    color: var(--white);
  }

  .hero__photo { height: 240px; }

  .hero__copy { padding: 22px; }

  .lead { color: rgba(255, 255, 255, 0.78); }

  .pills li { background: rgba(255, 255, 255, 0.12); }

  .hero__cta { grid-template-columns: 1fr 1fr; }

  .hero .btn-navy {
    background: transparent;
    color: var(--white);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  }

  .wizard-wrap { padding: 0; }

  .wizard { position: sticky; top: calc(var(--header) + 16px); }

  .coverage { grid-template-columns: 1.1fr 0.9fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.3fr 1fr 0.9fr; align-items: start; }

  .trust, .tips { grid-template-columns: 1fr 1fr; }

  .faq { grid-template-columns: 1fr 1fr; align-items: start; }

  .cta-band { justify-items: start; max-width: 640px; }

  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
