/* GrúaFácil · estilos mobile first (sin frameworks).
   Marca: azul #316da3, azul oscuro #1d2a5d, naranja de grúa #ff884a, tipografía Sen. */

:root {
  --brand: #316da3;
  --brand-dark: #245784;
  --brand-light: #538cbd;
  --navy: #1d2a5d;
  --ink: #34406a;
  --muted: #5e678c;
  --accent: #ff884a;
  --accent-dark: #f26f2a;
  --bg: #ffffff;
  --soft: #f3f6fb;
  --line: #dde4f0;
  --ok: #1b8a5a;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(29, 42, 93, 0.08);
  --font: Sen, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .95rem; }

/* ---------- Iconos ---------- */
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 34px; height: 34px; color: var(--brand); margin-bottom: 10px; }
.ico-xl { width: 56px; height: 56px; }
.ico.ok { color: var(--ok); margin-bottom: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Botón Llamar: el elemento más grande y visible de cada ficha */
.btn-call {
  width: 100%; min-height: 58px; background: var(--accent); color: var(--navy);
  font-size: 1.15rem; box-shadow: 0 4px 0 var(--accent-dark);
}
.btn-call:hover { background: var(--accent-dark); color: var(--navy); }
.btn-call .btn-tel { font-weight: 600; font-size: .95rem; opacity: .85; }
.btn-call .ico { width: 1.4em; height: 1.4em; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 62px; position: relative; }
.brand img { display: block; width: 148px; height: auto; }
.nav-toggle { position: absolute; opacity: 0; width: 44px; height: 44px; right: 8px; top: 9px; margin: 0; z-index: 3; cursor: pointer; }
.nav-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; content: ""; position: relative; transition: transform .2s; }
.nav-btn span::before { position: absolute; top: -7px; }
.nav-btn span::after { position: absolute; top: 7px; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--accent); }
.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  flex-direction: column; gap: 2px; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav a { padding: 12px 8px; color: var(--navy); font-weight: 700; text-decoration: none; border-radius: 8px; }
.nav a:hover { background: var(--soft); }
.nav .btn { margin-top: 8px; }
.nav-toggle:checked ~ .nav { display: flex; }
.nav-toggle:checked + .nav-btn span { background: transparent; }
.nav-toggle:checked + .nav-btn span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-btn span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Héroe y cabeceras de página ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--brand) 100%); color: #fff; padding: 36px 0 40px; }
.hero h1 { color: #fff; font-size: 2rem; }
.hero .lead { color: #e8eefb; font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; color: #ffd2b8; margin-bottom: .6rem; }
.finder { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin: 22px 0 14px; }
.finder label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.finder-row { display: grid; gap: 10px; }
.finder select { width: 100%; }
.hero-regions { font-size: .95rem; color: #e8eefb; margin: 0; }
.hero-regions a { color: #fff; font-weight: 700; }

.page-head { background: var(--soft); padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.page-head .lead { font-size: 1.1rem; }
.updated { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.summary { background: #fff; border-left: 5px solid var(--accent); border-radius: 8px; padding: 12px 14px; margin: 14px 0 0; box-shadow: var(--shadow); }
.crumbs { padding: 12px 0 0; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 4px; }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.crumbs ol { gap: 2px 4px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--navy); font-weight: 700; }

/* ---------- Secciones y tarjetas ---------- */
.section { padding: 30px 0; }
.section-soft { background: var(--soft); }
.grid { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card-link { display: block; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29, 42, 93, .14); color: var(--ink); }
.card-link p { margin-bottom: .6em; }
.more { color: var(--brand); font-weight: 800; }

.empresa { display: flex; flex-direction: column; gap: 12px; }
.empresa.is-featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.empresa-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.empresa-head h3 { margin: 0; flex: 1 1 100%; }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #e6eefa; color: var(--brand-dark); }
.badge-accent { background: var(--accent); color: var(--navy); }
.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.meta li { display: flex; gap: 8px; align-items: flex-start; }
.meta .ico { color: var(--brand); margin-top: .2em; }
.otros-tel { margin: 0; font-size: .92rem; color: var(--muted); }

.chips { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; font-size: .95rem; }
a.chip:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.chip-off { color: var(--muted); font-weight: 400; background: transparent; border-style: dashed; }
.chip-n { background: var(--accent); color: var(--navy); border-radius: 999px; font-size: .75rem; padding: 1px 7px; }
.prov { margin: 18px 0 8px; font-size: 1rem; color: var(--brand-dark); }
.link-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.link-list a { font-weight: 700; }

.steps { counter-reset: paso; list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: paso; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 56px; position: relative; }
.steps li::before { content: counter(paso); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.list li { margin-bottom: .45em; }

.prose h2 { margin-top: 0; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }
.toc p { font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.disclaimer { margin-top: 16px; }

.cta-band { background: var(--navy); color: #fff; padding: 28px 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #e1e8f8; margin-bottom: 14px; }
.cta-in { display: grid; gap: 8px; }

.faq { padding: 30px 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 14px 16px; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.5rem; color: var(--brand); line-height: 1.2; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 16px 14px; margin: 0; }

/* ---------- Precios ---------- */
.plans { display: grid; gap: 16px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.plan.is-featured { border: 2px solid var(--accent); }
.plan-flag { position: absolute; top: -12px; left: 18px; }
.plan h3 { font-size: 1.3rem; margin: 0; }
.price { margin: 4px 0 0; color: var(--navy); }
.price .amount { font-size: 2.2rem; font-weight: 800; }
.price .cur { color: var(--muted); font-size: .95rem; font-weight: 700; }
.plan-sum { font-weight: 700; margin-bottom: .4em; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; flex: 1; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: .97rem; }
.checks .ico { color: var(--ok); margin-top: .2em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.compare { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; }
.compare tbody th { color: var(--navy); }

/* ---------- Formulario ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.field { display: grid; gap: 6px; }
.field label, .fieldset legend { font-weight: 800; color: var(--navy); font-size: .95rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; /* 16px evita el zoom en iOS */
  color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(49, 109, 163, .2); }
.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fieldset legend { padding: 0; margin-bottom: 6px; width: 100%; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; color: var(--ink) !important; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.check-terms { align-items: flex-start; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Pie ---------- */
.site-footer { background: #121b40; color: #c9d3ee; padding: 34px 0 24px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 24px; }
.foot-brand img { background: #fff; padding: 8px 12px; border-radius: 12px; }
.foot-title { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-note { margin: 24px 0 6px; font-size: .88rem; color: #aab6d8; }
.foot-copy { margin: 0; font-size: .85rem; color: #8995bf; }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.6rem; }
  .finder-row { grid-template-columns: 1fr auto; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cta-in { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .form { padding: 26px; }
}
@media (min-width: 880px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .nav-btn, .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .nav .btn { margin: 0 0 0 8px; }
  .hero { padding: 60px 0 64px; }
  .hero .wrap > * { max-width: 760px; }
  .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
