/* =================================================================
   CDA Arboletes — hoja de estilos
   Mobile-first · CSS puro · sin dependencias en tiempo de ejecución
   Paleta extraída del logo: verde de marca, azul rey, amarillo sol.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --green-900: #0c5e2e;
  --green-700: #168a40;
  --green-600: #1e9b48;
  --green-500: #2eaa56;
  --lime-500:  #79b23f;

  --blue-900:  #0c4c7e;
  --blue-700:  #0f6aaa;
  --blue-600:  #1577bd;
  --blue-500:  #2a8bd0;

  --sun-500:   #ffc400;   /* CTA principal */
  --sun-600:   #f2b000;   /* hover CTA */
  --sun-700:   #d99a00;

  /* Neutros (matiz leve hacia el verde de marca, no cálido) */
  --ink:       #0e1c16;   /* texto principal  (contraste alto) */
  --ink-soft:  #38463f;   /* texto secundario  (>=4.5:1 sobre blanco) */
  --line:      #d9e2dc;
  --line-soft: #e8eee9;
  --bg:        #f3f6f3;   /* fondo de página */
  --surface:   #ffffff;
  --surface-2: #eef3ef;

  /* Degradado de marca (verde -> azul, dirección del logo) */
  --brand-grad: linear-gradient(118deg, var(--green-600) 0%, var(--green-700) 34%, var(--blue-700) 100%);
  --brand-grad-deep: linear-gradient(118deg, var(--green-900) 0%, #0a6a3e 40%, var(--blue-900) 100%);

  /* Tipografía */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 2rem);
  --step-3:  clamp(1.95rem, 1.7rem + 1.2vw, 2.85rem);
  --step-4:  clamp(2.4rem, 1.95rem + 2.2vw, 4rem);

  /* Espaciado / radios / sombras */
  --space-section: clamp(3.75rem, 2.5rem + 5vw, 6.5rem);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14,28,22,.06), 0 2px 6px rgba(14,28,22,.05);
  --shadow-md: 0 8px 24px rgba(14,28,22,.10), 0 2px 6px rgba(14,28,22,.06);
  --shadow-lg: 0 24px 60px rgba(12,76,46,.18);
  --container: 1180px;

  /* z-index semántico */
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-mobilebar: 250;
  --z-nav: 300;
  --z-float: 400;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 0.6rem + 2.5vw, 2.5rem);
}

.section { padding-block: var(--space-section); }
.section--tint { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--green-700);
  text-transform: none;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: var(--sun-500);
}
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.section-head h2 { font-size: var(--step-3); margin-top: .5rem; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin-top: .9rem; max-width: 60ch; }

/* línea de carretera como separador (motivo de marca) */
.lane-rule {
  height: 6px; border-radius: 6px; border: 0;
  background-image: repeating-linear-gradient(90deg, var(--sun-500) 0 26px, transparent 26px 48px);
  opacity: .9;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  line-height: 1;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, background-color .18s, color .18s;
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--cta {
  background: var(--sun-500); color: #1a1400;
  box-shadow: 0 6px 18px rgba(217,154,0,.4);
}
.btn--cta:hover { background: var(--sun-600); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217,154,0,.5); }
.btn--cta:active { transform: translateY(0); }
.btn--green { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--green:hover { background: var(--green-900); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn--ghost-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.2); }
.btn--wa { background: #1faf54; color: #fff; }
.btn--wa:hover { background: #178a42; transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

/* ====================================================================
   Barra utilitaria
   ==================================================================== */
.topbar {
  background: var(--brand-grad-deep);
  color: #eaf5ee;
  font-size: var(--step--1);
}
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: center; padding-block: .5rem; text-align: center; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 600; }
.topbar svg { width: 1em; height: 1em; opacity: .9; }
.topbar .dot { opacity: .45; }
@media (max-width: 560px){ .topbar .topbar-hide { display: none; } }

/* ====================================================================
   Header / navegación
   ==================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1; color: var(--green-700); }
.brand span { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }

.nav-links { display: none; align-items: center; gap: .35rem; }
.nav-links a {
  font-weight: 600; font-size: .96rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ink-soft);
  transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--green-700); background: var(--surface-2); }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* Menú móvil desplegable */
.mobile-menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.22,1,.36,1);
  background: var(--surface); border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 64px; z-index: var(--z-dropdown);
}
.mobile-menu.open { grid-template-rows: 1fr; }
.mobile-menu > div { overflow: hidden; }
.mobile-menu ul { padding: .6rem clamp(1.1rem,0.6rem+2.5vw,2.5rem) 1.2rem; display: grid; gap: .15rem; }
.mobile-menu a { display: block; padding: .85rem .6rem; font-weight: 600; border-radius: 10px; border-bottom: 1px solid var(--line-soft); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .btn { margin-top: .7rem; }

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ====================================================================
   Hero
   ==================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(118deg, rgba(12,94,46,.82) 0%, rgba(10,80,60,.75) 35%, rgba(12,76,126,.80) 100%),
    url("../img/banner.png") center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after { /* viñeta inferior para fundir con la página */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(12,76,46,.18));
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center;
  padding-block: clamp(2.6rem, 1.5rem + 5vw, 5rem);
}
.hero-copy .pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--step--1); margin-bottom: 1.1rem;
}
.hero-copy .pill svg { width: 1.05em; height: 1.05em; }
.hero h1 {
  color: #fff; font-size: var(--step-4); font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--sun-500); }
.hero .lede { font-size: var(--step-1); color: #e9f4ec; margin-top: 1.1rem; max-width: 46ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.22); }
.hero-trust div { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: #eaf5ee; }
.hero-trust svg { width: 1.3em; height: 1.3em; color: var(--sun-500); flex: none; }
.hero-trust b { color: #fff; font-family: var(--font-display); }

/* Escena ilustrada (imagen del hero) */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(8,40,24,.35)); }
.hero-photo {
  width: 100%; height: auto;
  border-radius: 26px;
  object-fit: cover;
  aspect-ratio: 520 / 440;
  box-shadow: 0 30px 60px rgba(8,40,24,.45);
  display: block;
}
.hero-chip {
  position: absolute; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: .7rem .9rem;
  display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600;
}
.hero-chip small { display: block; color: var(--ink-soft); font-weight: 500; font-size: .76rem; }
.hero-chip--approved { top: 6%; left: -2%; }
.hero-chip--approved .ic { background: #e6f6ec; color: var(--green-700); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.hero-chip--rating { bottom: 8%; right: -2%; }
.hero-chip--rating .stars { color: var(--sun-600); letter-spacing: -1px; font-size: 1rem; }
.hero-chip svg { width: 20px; height: 20px; }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}
@media (max-width: 600px){
  .hero-chip--approved { left: 2%; }
  .hero-chip--rating { right: 2%; }
  .hero-chip { font-size: .78rem; padding: .55rem .7rem; }
}

/* ====================================================================
   Franja de confianza
   ==================================================================== */
.trustbar { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.trustbar .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; padding-block: 1.8rem; }
.trustbar .item { display: flex; gap: .8rem; align-items: center; min-width: 0; }
.trustbar .item > div { min-width: 0; }
.trustbar b { font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1.1; overflow-wrap: anywhere; }
.trustbar .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); color: var(--green-700); display: grid; place-items: center; flex: none; }
.trustbar .ic svg { width: 22px; height: 22px; }
.trustbar small { color: var(--ink-soft); font-size: .85rem; }
@media (min-width: 760px){ .trustbar .container { grid-template-columns: repeat(4, 1fr); } }

/* ====================================================================
   Servicios
   ==================================================================== */
.services-grid { display: grid; gap: 1.1rem; }
.service {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.service .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1rem; color: #fff; }
.service .ic svg { width: 26px; height: 26px; }
.service h3 { font-size: var(--step-1); }
.service p { color: var(--ink-soft); margin-top: .5rem; font-size: .96rem; }
.ic--green { background: var(--green-700); }
.ic--blue { background: var(--blue-700); }
.ic--sun { background: var(--sun-600); color: #1a1400; }
.ic--ink { background: var(--ink); }

/* destacado RTM — texto blanco izquierda, foto derecha */
.service--feature {
  grid-column: 1 / -1;
  background: var(--brand-grad);
  color: #fff;
  border: 0;
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.feature-text {
  padding: clamp(1.6rem, 1rem + 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1rem; justify-content: center;
}
.service--feature h3 { color: #fff; font-size: var(--step-2); }
.service--feature p  { color: #e9f4ec; font-size: var(--step-0); max-width: 52ch; }
.service--feature .ic { background: rgba(255,255,255,.18); color: #fff; }
.feature-list { display: grid; gap: .6rem; margin-top: .2rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; color: #eef7f1; font-size: .96rem; }
.feature-list svg { width: 1.2em; height: 1.2em; color: var(--sun-500); flex: none; margin-top: .15rem; }

.feature-img-wrap { overflow: hidden; min-height: 280px; }
.feature-img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service--feature { grid-template-columns: 1.1fr 0.9fr; }
  .feature-img-wrap { min-height: unset; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================================
   Tarifas RTM (interactivo)
   ==================================================================== */
.rates { background: var(--surface); }
.rates-shell {
  display: grid; gap: 1.6rem; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.2rem, .8rem + 2vw, 2rem);
}
.rate-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.rate-tab {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: all .18s;
}
.rate-tab svg { width: 1.25em; height: 1.25em; }
.rate-tab:hover { border-color: var(--green-500); color: var(--green-700); }
.rate-tab[aria-selected="true"] {
  background: var(--green-700); border-color: var(--green-700); color: #fff;
  box-shadow: 0 6px 16px rgba(12,76,46,.25);
}

.rate-panel { display: grid; gap: 1.4rem; min-width: 0; }
.rate-headline { display: grid; gap: .35rem; min-width: 0; }
.rate-headline .cat { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; }
.rate-headline .desc { color: var(--ink-soft); font-size: .96rem; }

.price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; min-width: 0; }
.price-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.2rem; text-align: left; box-shadow: var(--shadow-sm); min-width: 0;
}
.price-card .label { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.price-card .amount {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; margin-top: .3rem;
}
.price-card--max .amount { color: var(--blue-700); }
.price-card--min .amount { color: var(--green-700); }

.rate-detail { display: grid; gap: 1rem; min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); min-width: 0; }
.detail-table { width: 100%; min-width: 340px; border-collapse: collapse; font-size: .92rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.detail-table caption { text-align: left; font-weight: 700; font-family: var(--font-display); padding: .4rem 0 .6rem; }
.detail-table th, .detail-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.detail-table thead th { background: var(--surface-2); font-size: .82rem; color: var(--ink-soft); text-transform: none; }
.detail-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.detail-table tr:last-child td { border-bottom: 0; }

.rate-note {
  display: flex; gap: .7rem; align-items: flex-start;
  background: #fff7e0; border: 1px solid #ffe39c; border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .9rem; color: #5a4a14;
}
.rate-note svg { width: 1.3em; height: 1.3em; color: var(--sun-700); flex: none; margin-top: .1rem; }
.rate-note b { color: #3d3208; }

.rate-included { display: flex; flex-wrap: wrap; gap: .5rem; }
.rate-included span {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .35rem .75rem;
}
.rate-included svg { width: 1em; height: 1em; color: var(--green-600); }

.rate-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

@media (min-width: 820px){
  .rate-panel { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .price-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================================
   SOAT
   ==================================================================== */
.soat { background: var(--surface); color: var(--ink); }
.soat-grid { display: grid; gap: 2rem; align-items: center; }
.soat-copy h2 { color: var(--ink); font-size: var(--step-3); }
.soat-copy .lede { color: var(--ink-soft); font-size: var(--step-1); margin-top: .9rem; max-width: 48ch; }
.soat-points { display: grid; gap: .7rem; margin-top: 1.6rem; }
.soat-points li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.soat-points svg { width: 1.3em; height: 1.3em; color: var(--green-600); flex: none; margin-top: .15rem; }
.soat-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.soat-card {
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem,1rem+2vw,2rem);
  box-shadow: var(--shadow-lg);
}
.soat-card h3 { font-size: var(--step-1); }
.soat-card .muted { color: var(--ink-soft); font-size: .9rem; margin-top: .3rem; }
.soat-price-list { margin-top: 1.2rem; display: grid; gap: .6rem; }
.soat-price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem .2rem; border-bottom: 1px dashed var(--line); }
.soat-price-list li:last-child { border-bottom: 0; }
.soat-price-list .v { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--blue-700); white-space: nowrap; }
.soat-price-list .k small { display:block; color: var(--ink-soft); font-weight: 500; font-size: .78rem; }
.soat-card .fineprint { font-size: .8rem; color: var(--ink-soft); margin-top: 1rem; }
@media (min-width: 900px){ .soat-grid { grid-template-columns: 1.05fr .95fr; } }

/* ====================================================================
   Proceso (secuencia real numerada)
   ==================================================================== */
.steps { display: grid; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.step {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem; position: relative; box-shadow: var(--shadow-sm);
}
.step .n {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--green-700); margin-bottom: 1rem;
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); margin-top: .45rem; font-size: .95rem; }
@media (min-width: 760px){ .steps { grid-template-columns: repeat(4, 1fr); } }

/* ====================================================================
   Agendamiento (formulario)
   ==================================================================== */
.booking { background: var(--surface); }
.booking-grid { display: grid; gap: 2rem; align-items: start; }
.booking-aside h2 { font-size: var(--step-3); }
.booking-aside p { color: var(--ink-soft); font-size: var(--step-1); margin-top: .9rem; max-width: 42ch; }
.booking-aside .why { margin-top: 1.6rem; display: grid; gap: .9rem; }
.booking-aside .why li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; }
.booking-aside .why svg { width: 1.35em; height: 1.35em; color: var(--green-600); flex: none; margin-top: .1rem; }
.booking-aside .callme {
  margin-top: 1.8rem; padding: 1.1rem 1.2rem; background: var(--surface-2); border-radius: var(--radius);
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
}
.booking-aside .callme b { font-family: var(--font-display); font-size: 1.15rem; color: var(--green-700); }

.form-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 1rem + 2vw, 2rem); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field label .req { color: #c0392b; }
.control {
  width: 100%; padding: .8rem .95rem; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.control::placeholder { color: #8a978f; }
.control:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(30,155,72,.15); }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338463f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.field.invalid .control { border-color: #d64531; box-shadow: 0 0 0 3px rgba(214,69,49,.12); }
.field .error { display: none; color: #c0392b; font-size: .82rem; margin-top: .35rem; font-weight: 600; }
.field.invalid .error { display: block; }
.field-row { display: grid; gap: 1.05rem; }
@media (min-width: 540px){ .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; text-align: center; }

.form-success {
  display: none; text-align: center; padding: 1rem .5rem;
}
.form-success.show { display: block; }
.form-success .ic { width: 64px; height: 64px; border-radius: 50%; background: #e6f6ec; color: var(--green-700); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .ic svg { width: 34px; height: 34px; }
.form-success h3 { font-size: var(--step-2); }
.form-success p { color: var(--ink-soft); margin: .6rem 0 1.4rem; }
@media (min-width: 940px){ .booking-grid { grid-template-columns: .85fr 1.15fr; } }

/* ====================================================================
   Ubicación
   ==================================================================== */
.location { background: var(--bg); }
.loc-grid { display: grid; gap: 1.8rem; align-items: start; }
.loc-info h2 { font-size: var(--step-3); }
.loc-block { margin-top: 1.5rem; display: grid; gap: 1.2rem; }
.loc-item { display: flex; gap: .9rem; align-items: flex-start; }
.loc-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--green-700); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.loc-item .ic svg { width: 22px; height: 22px; }
.loc-item b { font-family: var(--font-display); display: block; }
.loc-item span, .loc-item a { color: var(--ink-soft); }
.loc-item a:hover { color: var(--green-700); }
.hours { margin-top: .3rem; font-size: .94rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); max-width: 320px; }
.hours div:last-child { border-bottom: 0; }
.hours .open { color: var(--green-700); font-weight: 700; }
.hours .closed { color: var(--ink-soft); }

.coverage { margin-top: 1.6rem; }
.coverage h3 { font-size: var(--step-1); margin-bottom: .7rem; }
.coverage-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.coverage-tags span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .4rem .85rem; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); min-height: 320px; background: var(--surface-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (min-width: 900px){ .loc-grid { grid-template-columns: 1fr 1fr; } }

/* ====================================================================
   FAQ
   ==================================================================== */
.faq { background: var(--surface); }
.faq-list { display: grid; gap: .8rem; max-width: 800px; }
.faq-item { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.2rem; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.faq-q .chev { width: 24px; height: 24px; flex: none; transition: transform .25s; color: var(--green-700); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }

/* ====================================================================
   CTA final
   ==================================================================== */
.finalcta {
  background:
    linear-gradient(118deg, rgba(12,94,46,.85) 0%, rgba(10,80,60,.80) 40%, rgba(12,76,126,.85) 100%),
    url("../img/seguridadvial.png") center center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.finalcta h2 { color: #fff; font-size: var(--step-3); max-width: 18ch; margin-inline: auto; }
.finalcta p { color: #e9f4ec; font-size: var(--step-1); margin: 1rem auto 0; max-width: 50ch; }
.finalcta .hero-actions { justify-content: center; }

/* ====================================================================
   Footer
   ==================================================================== */
.site-footer { background: var(--ink); color: #c6d2cb; padding-block: clamp(2.5rem,2rem+2vw,3.5rem) 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; font-family: var(--font-display); }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin-bottom: .7rem; }
.footer-contact svg { width: 1.15em; height: 1.15em; color: var(--sun-500); flex: none; margin-top: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; font-size: .82rem; color: #91a299; }
@media (min-width: 760px){ .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ====================================================================
   WhatsApp flotante + barra móvil
   ==================================================================== */
.wa-float {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(78px, 8vw, 26px); z-index: var(--z-float);
  width: 60px; height: 60px; border-radius: 50%; background: #1faf54; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31,175,84,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faf54;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .wa-float::after { animation: none; } }

/* barra inferior fija (solo móvil) */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
.mobilebar .btn { padding: .8rem; font-size: .95rem; }
@media (min-width: 720px){ .mobilebar { display: none; } body { /* sin reservar espacio inferior */ } }
@media (max-width: 719px){ body { padding-bottom: 68px; } }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* contenido siempre visible aunque JS no cargue */
.no-js .reveal { opacity: 1; transform: none; }

/* ====================================================================
   Quiénes somos
   ==================================================================== */
.nosotros-grid {
  display: grid; gap: 1.4rem;
}
@media (min-width: 760px) { .nosotros-grid { grid-template-columns: repeat(3, 1fr); } }

.nosotros-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.nosotros-ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1rem; color: #fff;
}
.nosotros-ic.ic--green { background: var(--green-700); }
.nosotros-ic.ic--blue  { background: var(--blue-700); }
.nosotros-ic.ic--sun   { background: var(--sun-600); color: #1a1400; }
.nosotros-ic svg { width: 28px; height: 28px; }
.nosotros-card h3 { font-size: var(--step-1); margin-bottom: .7rem; }
.nosotros-card p  { color: var(--ink-soft); font-size: .96rem; }

.nosotros-values { display: grid; gap: .6rem; list-style: none; padding: 0; }
.nosotros-values li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.nosotros-values svg { width: 1.1em; height: 1.1em; color: var(--green-600); flex: none; margin-top: .15rem; }

.resena {
  margin-top: 2.5rem; background: var(--surface-2); border-left: 4px solid var(--green-600);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem;
  max-width: 820px; color: var(--ink-soft); font-size: var(--step-0); line-height: 1.7;
}
.resena .eyebrow { margin-bottom: .5rem; display: block; }

/* ====================================================================
   Tarifas — tarjeta "precio a consultar"
   ==================================================================== */
.price-consult-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: .5rem;
}
.price-consult-card b { font-family: var(--font-display); font-size: 1rem; display: block; margin-bottom: .3rem; }
.price-consult-card p { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.price-consult-icon { color: #1faf54; flex: none; width: 32px; margin-top: .1rem; }
.price-consult-icon svg { width: 28px; height: 28px; }

/* ====================================================================
   SOAT card simplificada
   ==================================================================== */
.soat-card--simple { text-align: center; }
.soat-card--simple .soat-card-ic { color: var(--green-700); margin: 0 auto 1rem; display: block; }
.soat-card--simple h3 { font-size: var(--step-2); }
.soat-card--simple .muted { margin-top: .6rem; }

/* Pasos — variante 3 columnas */
@media (min-width: 760px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* ====================================================================
   Calculadora de multa RTM
   ==================================================================== */
.calc-shell {
  display: grid; gap: 1.8rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
}
@media (min-width: 820px) { .calc-shell { grid-template-columns: 1fr 1fr; } }

.calc-label {
  display: block; font-weight: 700; font-size: .95rem; margin-bottom: .7rem;
  color: var(--ink);
}
.calc-input {
  width: 100%; padding: .9rem 1rem; background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink);
  font-size: 1.05rem; margin-bottom: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.calc-input:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(30,155,72,.15);
}
.calc-btn { margin-top: .2rem; }
.calc-disclaimer {
  font-size: .8rem; color: var(--ink-soft); margin-top: 1rem; line-height: 1.5;
}

/* resultado */
.calc-result-side {
  min-height: 220px; display: flex; align-items: center; justify-content: center;
}
.calc-placeholder {
  text-align: center; color: var(--ink-soft); display: flex;
  flex-direction: column; align-items: center; gap: .8rem;
}
.calc-placeholder svg { opacity: .35; }
.calc-placeholder p { font-size: .95rem; max-width: 26ch; }

.calc-error { color: #c0392b; font-weight: 600; text-align: center; }

.calc-ok {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #e6f6ec; border: 1px solid #a8ddb8; border-radius: var(--radius);
  padding: 1.2rem; color: var(--green-900);
}
.calc-ok svg { flex: none; color: var(--green-700); }
.calc-ok b { font-family: var(--font-display); display: block; margin-bottom: .3rem; }

.calc-output { width: 100%; display: grid; gap: 1.2rem; }
.calc-dias {
  text-align: center; padding: 1rem;
  background: var(--bg); border-radius: var(--radius); border: 1.5px solid var(--line);
}
.calc-num {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.calc-label-num { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

.calc-breakdown { display: grid; gap: .5rem; }
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .6rem .2rem; border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}
.calc-row:last-child { border-bottom: 0; }
.calc-row--muted { color: var(--ink-soft); font-size: .85rem; }
.calc-row--total {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  border-top: 2px solid var(--line); border-bottom: 0; padding-top: .8rem; margin-top: .3rem;
  color: var(--green-900);
}
.calc-cta-block {
  background: var(--bg); border-radius: var(--radius); padding: 1.1rem;
  border: 1px solid var(--line-soft);
}
.calc-cta-block p { font-size: .9rem; margin-bottom: .8rem; }

/* ====================================================================
   Blog
   ==================================================================== */
.blog-grid {
  display: grid; gap: 1.4rem;
}
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(4, 1fr); } }

.blog-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.blog-card-head {
  display: grid; place-items: center; padding: 1.8rem;
  color: #fff; min-height: 100px;
}
.blog-card-head--green { background: var(--brand-grad); }
.blog-card-head--blue  { background: linear-gradient(118deg, var(--blue-700), var(--blue-900)); }
.blog-card-head--sun   { background: linear-gradient(118deg, var(--sun-600), #b87400); color: #1a1400; }
.blog-card-head--ink   { background: linear-gradient(118deg, var(--ink), #263d31); }

.blog-card-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.blog-card-body .blog-toggle { margin-top: auto; }
.blog-card-body .btn--cta { margin-top: .2rem; }

.blog-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: .25rem .65rem; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--green-700); border: 1px solid var(--line);
}
.blog-tag--blue { color: var(--blue-700); }
.blog-tag--sun  { color: #8a5c00; }
.blog-tag--ink  { color: var(--ink-soft); }

.blog-card h3 {
  font-size: var(--step-1); line-height: 1.2; margin: 0;
}
.blog-preview p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.blog-full { display: grid; gap: .8rem; margin-top: .3rem; }
.blog-full h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  margin-top: .4rem; color: var(--green-700);
}
.blog-full p  { color: var(--ink-soft); font-size: .9rem; line-height: 1.65; margin: 0; }
.blog-full ul { padding-left: 1.1rem; display: grid; gap: .4rem; }
.blog-full li { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }

.blog-toggle {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem;
  font-size: .88rem; padding: .5rem .9rem;
}
.blog-toggle svg { transition: transform .25s; }

/* ====================================================================
   SOAT — foto real de atención
   ==================================================================== */
.soat-photo-wrap {
  display: flex; flex-direction: column; gap: 1rem;
}
.soat-photo {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-lg);
  display: block;
}
.soat-photo-cta {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.soat-photo-cta p {
  color: var(--ink-soft); font-size: .92rem; margin-bottom: .8rem;
}
