/* Hoja de estilos única del sitio (antes estilos.css + movintegral.css, en ese orden). */

/* ===== Base ===== */
/* ===== Tokens ===== */
:root {
  --dark: #141414;
  --primary: #1E88C7;
  --primary-ink: #146a9e;
  --secondary: #1A9E6E;
  --accent: #F9A825;
  --danger: #E53935;
  --muted: #8A9197;
  --light: #F4F6F7;
  --text: #2E3436;
  --text-soft: #535d61;
  --white: #fff;
  --line: #e3e8ea;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,20,20,.06), 0 12px 32px -14px rgba(20,20,20,.22);
  --shadow-lift: 0 2px 4px rgba(20,20,20,.06), 0 22px 44px -16px rgba(20,20,20,.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 66px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--primary-ink); text-underline-offset: 3px; }
a, button, summary, input, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 28px); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--dark); font-weight: 700;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ===== Header ===== */
header {
  position: sticky; top: 14px; z-index: 20;
  margin: 14px auto 0; max-width: 1120px;
  padding: 0 max(22px, env(safe-area-inset-left));
}
.navbar {
  position: relative;
  background: rgba(20,20,20,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 10px 0 14px;
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* Logo original (PNG sin modificar). El marco solo recorta el margen blanco que rodea al logo. */
.logo-frame {
  --h: 50px;
  position: relative; display: block; flex-shrink: 0; overflow: hidden;
  height: var(--h); width: calc(var(--h) * 1.434);
  background: #fff; border-radius: 10px; box-sizing: content-box; padding: 4px 8px;
}
.logo-frame img {
  position: absolute; max-width: none; height: auto;
  width: calc(var(--h) * 1.938);
  left: calc(8px - var(--h) * 0.2636); top: calc(4px - var(--h) * 0.2248);
}
.brand-text { font-weight: 800; font-size: 1.02rem; color: var(--white); line-height: 1.1; }
.brand-text small { display: inline; margin-left: .22em; font-weight: 800; color: #9a9ea1; font-size: 1em; }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: #d6dadd; text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease;
}
nav a.nav-cta {
  background: var(--accent); color: var(--dark); font-weight: 700;
  padding: 10px 18px; margin-left: 6px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
nav a.nav-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  nav a:not(.nav-cta):hover { color: var(--white); background: rgba(255,255,255,.08); }
  nav a.nav-cta:hover { background: #ffb631; }
}

.menu-btn {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); cursor: pointer; position: relative;
  transition: transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.94); }
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform 220ms var(--ease-out);
}
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(26,158,110,.45) 0%, transparent 55%),
    linear-gradient(160deg, #0f1f2b 0%, #155f8c 55%, #1E88C7 100%);
  color: var(--white);
  padding: 170px 0 120px; margin-top: -80px;
}
.hero-inner > * { max-width: 760px; }
.tag {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px; border-radius: 999px; font-size: .86rem; font-weight: 500; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.05rem); line-height: 1.13;
  letter-spacing: -0.02em; margin-bottom: 20px; font-weight: 800; text-wrap: balance;
}
.hero p { font-size: 1.08rem; color: rgba(255,255,255,.9); margin-bottom: 32px; max-width: 640px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--dark);
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 0; cursor: pointer; user-select: none; -webkit-user-select: none;
  box-shadow: 0 10px 24px -10px rgba(249,168,37,.7);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--white); box-shadow: none; border: 1px solid rgba(255,255,255,.35); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #ffb631; }
  .btn-ghost:hover { background: rgba(255,255,255,.18); }
}

/* ===== Sections ===== */
section { padding: 92px 0; }
section.alt { background: var(--white); }
.eyebrow { color: var(--primary-ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem); color: var(--dark);
  margin-bottom: 14px; line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance;
}
h3 { color: var(--dark); font-size: 1.06rem; margin-bottom: 8px; line-height: 1.3; }
.lead { max-width: 680px; margin-bottom: 40px; color: var(--text-soft); font-size: 1.02rem; text-wrap: pretty; }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.float-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
section.alt .float-card { background: var(--light); box-shadow: none; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 18px; }
.i-blue { background: #e4f2fa; } .i-green { background: #e2f5ee; } .i-amber { background: #fff3d9; } .i-red { background: #fde5e4; }
.float-card p { color: var(--text-soft); font-size: .95rem; }

/* ===== Table ===== */
.table-wrap { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--dark); color: var(--white); font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
tbody th { color: var(--dark); font-weight: 700; width: 22%; background: #fafbfb; }
tbody tr:last-child > * { border-bottom: 0; }
td { color: var(--text-soft); }

/* ===== Página de trámite ===== */
.decree {
  max-width: 820px; margin: 8px 0 28px; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; color: var(--dark); font-weight: 500; text-wrap: pretty;
}
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%; background: var(--dark); color: var(--white); font-weight: 700;
}

.notice { background: #fff8ec; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 12px; font-size: .92rem; margin-top: 24px; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
details { background: var(--light); border-radius: 14px; border: 1px solid var(--line); }
summary {
  cursor: pointer; font-weight: 700; color: var(--dark); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; min-height: 56px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 220ms var(--ease-out);
}
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.details-body { padding: 0 22px 20px; }
.details-body p { color: var(--text-soft); font-size: .95rem; }
details[open] .details-body { animation: faq-in 220ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-alt { list-style: none; display: grid; gap: 10px; }
.contact-alt a {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none;
  color: var(--dark); padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}
.contact-alt svg { width: 20px; height: 20px; color: #1fa855; }

form {
  background: var(--white); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 30px; display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .86rem; font-weight: 600; color: var(--dark); }
input, textarea {
  width: 100%; padding: 13px 16px; font-size: 16px; /* 16px evita el zoom en iPhone */
  border: 1px solid #cfd6da; border-radius: 12px; background: #fbfcfc;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input::placeholder, textarea::placeholder { color: #9aa3a8; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30,136,199,.15); background: var(--white); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 120px; resize: vertical; }
input, textarea { scroll-margin-top: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 600; min-height: 1.5em; font-size: .95rem; }
.form-msg.ok { color: var(--secondary); }
.form-msg.err { color: var(--danger); }

/* ===== Footer ===== */
footer { background: var(--dark); color: #b7bec3; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .88rem; }
footer p + p { margin-top: 10px; }
footer a { color: #d6dadd; }
.foot-name { color: var(--white); }
.foot-logo { display: inline-flex; margin-bottom: 16px; }
.foot-logo .logo-frame { --h: 110px; padding: 10px 16px; border-radius: 14px; }
.foot-logo .logo-frame img { left: calc(16px - var(--h) * 0.2636); top: calc(10px - var(--h) * 0.2248); }

/* ===== WhatsApp ===== */
.wa-float {
  position: fixed; z-index: 30;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.75);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:active { transform: scale(0.94); }
.wa-float.is-hidden { opacity: 0; transform: scale(0.9); pointer-events: none; }

/* ===== Reveal (solo con JS activo) ===== */
.js [data-reveal] > * { opacity: 0; transform: translateY(12px); }
.js [data-reveal].is-in > * {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.js [data-reveal].is-in > :nth-child(2) { transition-delay: 60ms; }
.js [data-reveal].is-in > :nth-child(3) { transition-delay: 110ms; }
.js [data-reveal].is-in > :nth-child(4) { transition-delay: 150ms; }

.hero-inner > * { animation: hero-in 560ms var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: 60ms; }
.hero-inner > :nth-child(3) { animation-delay: 120ms; }
.hero-inner > :nth-child(4) { animation-delay: 170ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(20,20,20,.97); border-radius: 22px; padding: 10px;
    border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lift);
    opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
    visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  nav a { padding: 14px 16px; font-size: 1rem; border-radius: 14px; }
  nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  /* La tabla se convierte en tarjetas apiladas */
  .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .req-table, .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; width: 100%; }
  .req-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .req-table tr { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
  .req-table tbody th { background: var(--dark); color: var(--white); padding: 14px 18px; border: 0; width: 100%; }
  .req-table td { padding: 14px 18px; }
  .req-table td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-ink);
  }
}

@media (max-width: 560px) {
  header { top: 10px; margin-top: 10px; padding: 0 12px; }
  .brand-text small { display: none; }
  .hero { padding: 140px 0 84px; }
  .hero-actions .btn { flex: 1 1 100%; }
  section { padding: 64px 0; }
  .lead { margin-bottom: 28px; }
  .float-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  form { padding: 22px; border-radius: 20px; }
  .wa-float { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > *, details[open] .details-body { animation: fade 200ms ease both; }
  .js [data-reveal] > * { transform: none; }
  .js [data-reveal].is-in > * { transition: opacity 200ms ease; transition-delay: 0s !important; }
  nav { transform: none !important; }
}
@keyframes fade { from { opacity: 0; } }


/* ===== Marca Movintegral (ajusta la base) ===== */
/* =========================================================
   Movintegral — colores de marca tomados del logo
   Tinta del semáforo, sus tres luces y las flechas verde/azul.
   Se carga después de estilos.css.
   ========================================================= */
:root {
  --mv-ink: #1b1b1b;
  --mv-ink-soft: #3a3d40;
  --mv-gray: #5f6468;          /* texto secundario (5.9:1 sobre blanco) */
  --mv-gray-logo: #9a9ea1;     /* gris de "Consultores" (solo decorativo) */
  --mv-red: #E8352F;
  --mv-amber: #F5B000;
  --mv-green: #14A06B;
  --mv-green-ink: #0e7a51;     /* verde para texto (5.3:1) */
  --mv-blue: #1E88C7;
  --mv-blue-ink: #146a9e;      /* azul para texto y enlaces (6.0:1) */
  --mv-paper: #ffffff;
  --mv-mist: #f4f6f7;
  --mv-line: #e2e6e8;
  --mv-off: #d7dbde;           /* luz apagada */

  --dark: var(--mv-ink);
  --primary: var(--mv-blue);
  --primary-ink: var(--mv-blue-ink);
  --secondary: var(--mv-green);
  --accent: var(--mv-amber);
  --danger: var(--mv-red);
  --light: var(--mv-paper);
  --text: var(--mv-ink);
  --text-soft: var(--mv-gray);
  --line: var(--mv-line);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27,27,27,.05), 0 10px 30px -14px rgba(27,27,27,.18);
  --shadow-lift: 0 2px 6px rgba(27,27,27,.06), 0 22px 44px -18px rgba(27,27,27,.28);
  --header-h: 76px;
}

/* ===== Superficies del navegador ===== */
html { scrollbar-color: #b9bec2 var(--mv-mist); accent-color: var(--mv-green); }
::selection { background: rgba(245,176,0,.35); color: var(--mv-ink); }
input, textarea { caret-color: var(--mv-blue); }
:focus-visible { outline: 3px solid var(--mv-blue); outline-offset: 3px; }
body { background: var(--mv-paper); color: var(--mv-ink); font-feature-settings: "tnum" 0; }
a { color: var(--mv-blue-ink); }

/* ===== Barra superior: blanca, a todo el ancho ===== */
header { top: 0; margin: 0; max-width: none; padding: 0; }
.navbar {
  max-width: none; height: var(--header-h); border-radius: 0;
  background: rgba(255,255,255,.94); border: 0; border-bottom: 1px solid var(--mv-line);
  box-shadow: none; padding: 0 max(22px, calc((100% - 1076px) / 2));
}
.logo-frame { --h: 58px; padding: 0; background: transparent; border-radius: 0; }
.logo-frame img { left: calc(var(--h) * -0.2636); top: calc(var(--h) * -0.2248); }
nav a { color: var(--mv-ink-soft); font-weight: 600; }
nav a.nav-cta { background: var(--mv-ink); color: #fff; border-radius: 10px; padding: 11px 18px; }
@media (hover: hover) and (pointer: fine) {
  nav a:not(.nav-cta):hover { color: var(--mv-ink); background: var(--mv-mist); }
  nav a.nav-cta:hover { background: #33373a; }
}
.nav-ext, .foot-more { display: inline-flex; align-items: center; gap: 4px; }
.nav-ext svg, .foot-more svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--mv-blue); }
.foot-more { font-weight: 600; }
.foot-more svg { color: currentColor; }
.menu-btn { background: var(--mv-mist); }
.menu-btn span { background: var(--mv-ink); }

/* ===== Hero ===== */
.hero {
  margin-top: 0; padding: 88px 0 96px; color: var(--mv-ink);
  background: var(--mv-paper);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero-inner > * { animation: none; }               /* el texto se ve de inmediato */
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mv-mist); border: 1px solid var(--mv-line); color: var(--mv-ink-soft);
  font-weight: 600; font-size: .85rem; border-radius: 999px; padding: 7px 14px 7px 10px;
}
.hero .tag svg { width: 16px; height: 16px; color: var(--mv-red); flex-shrink: 0; }
.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 800; color: var(--mv-ink); margin-bottom: 22px; max-width: 13ch;
}
.light-dot {
  display: inline-block; width: .2em; height: .2em; margin-left: .06em; border-radius: 50%;
  background: var(--mv-green); vertical-align: .05em;
  box-shadow: 0 0 0 .07em rgba(20,160,107,.18);
}
.hero p { color: var(--mv-gray); font-size: 1.15rem; line-height: 1.55; max-width: 40ch; margin-bottom: 32px; }

.btn {
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  background: var(--mv-ink); color: #fff; font-weight: 700; box-shadow: none;
}
.btn-ghost { background: var(--mv-paper); color: var(--mv-ink); border: 1.5px solid var(--mv-line); }
.btn-ghost svg { width: 20px; height: 20px; color: #1fa855; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #33373a; }
  .btn-ghost:hover { background: var(--mv-mist); border-color: #cfd5d8; }
}

/* Flechas de marca (decorativas, del logo) */
.hero-mark { justify-self: end; width: min(100%, 460px); }
.hero-mark img { display: block; width: 100%; height: auto; }

/* ===== Secciones ===== */
section { padding: 104px 0; }
section.alt { background: var(--mv-mist); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; font-weight: 800; color: var(--mv-ink); margin-bottom: 18px; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--mv-gray); font-size: 1.08rem; max-width: 56ch; }

/* Decreto citado */
.decree-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.decree {
  margin: 0; padding: 30px 32px; max-width: none;
  background: var(--mv-mist); border: 1px solid var(--mv-line); border-radius: var(--radius);
  font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.5; font-weight: 600; color: var(--mv-ink);
}
.decree cite {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-style: normal; font-size: .88rem; font-weight: 600; color: var(--mv-gray);
}
.decree cite svg { width: 18px; height: 18px; color: var(--mv-blue); flex-shrink: 0; }

/* ===== Movilidad: tres componentes en columnas, separadas por línea fina ===== */
.mob-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid #d9dee1; }
.mob-list li { padding: 32px 32px 8px 0; }
.mob-list li + li { padding-left: 32px; border-left: 1px solid #d9dee1; }
.mob-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px; }
.mob-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mob-blue  { background: rgba(30,136,199,.12); color: var(--mv-blue-ink); }
.mob-green { background: rgba(20,160,107,.12); color: var(--mv-green-ink); }
.mob-amber { background: rgba(245,176,0,.18); color: #7a5800; }
.mob-list h3 { font-size: 1.2rem; margin-bottom: 8px; }
.mob-list p { color: var(--mv-gray); max-width: 34ch; }

/* Ícono al lado del título, no encima */
.def, .mob-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; }
.def .mob-icon, .mob-list .mob-icon { width: 40px; height: 40px; border-radius: 10px; margin: 0; }
.def .mob-icon svg, .mob-list .mob-icon svg { width: 21px; height: 21px; }
.def h3, .mob-list h3 { margin: 0; }
.def p, .mob-list p { grid-column: 1 / -1; margin-top: 14px; }

/* ===== Portada del dominio: qué es implantación / regularización ===== */
.def-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid #d9dee1; }
.def { padding: 32px 40px 8px 0; }
.def + .def { padding-left: 40px; padding-right: 0; border-left: 1px solid #d9dee1; }
.def h3 { font-size: 1.3rem; margin-bottom: 10px; }
.def p { color: var(--mv-gray); max-width: 52ch; }
.def-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); background: var(--mv-mist); border: 1px solid var(--mv-line);
}
.def-cta p { color: var(--mv-ink-soft); max-width: 60ch; font-weight: 500; }
@media (max-width: 720px) {
  .def-grid { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 24px; }
  .def, .def + .def { padding: 24px 0; border-left: 0; border-top: 1px solid #d9dee1; }
  .def-cta { padding: 22px; }
  .def-cta .btn { width: 100%; }
}

/* ===== Portada del dominio: lista de ciudades ===== */
.city-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.city-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--mv-line);
  color: var(--mv-ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms ease, border-color 160ms ease;
}
.city-card:active { transform: scale(0.98); }
.city-card { padding: 0 0 24px; overflow: hidden; }
.city-card > span { padding: 0 24px; }
.city-img { display: block; width: calc(100% - 20px); height: auto; aspect-ratio: 3 / 2; margin: 10px 10px 8px; border-radius: 18px; }
.hero-mark img { border-radius: 24px; }
.city-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.city-norm { color: var(--mv-gray); font-size: .95rem; }
.city-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--mv-blue-ink); }
.city-go svg { width: 18px; height: 18px; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) {
  .city-card:hover { border-color: #cfd5d8; box-shadow: var(--shadow-lift); }
  .city-card:hover .city-go svg { transform: translateX(3px); }
}
.city-more { margin-top: 20px; color: var(--mv-gray); }

/* ===== Bloque "¿Solo necesitas el estudio?" ===== */
.solo { background: var(--mv-ink); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.solo::before {               /* franja con los colores de las flechas del logo */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--mv-green) 0 50%, var(--mv-blue) 50% 100%);
}
.solo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.solo-item { display: flex; flex-direction: column; padding-right: 48px; }
.solo-item + .solo-item { padding: 0 0 0 48px; border-left: 1px solid rgba(255,255,255,.14); }
.solo h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; }
.solo p { color: #c3c8cb; font-size: 1.04rem; max-width: 46ch; margin-bottom: 24px; }
.solo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.solo .btn { padding: 0 18px; white-space: nowrap; }
.btn-light { background: #fff; color: var(--mv-ink); }
.btn-ghost-dark { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost-dark svg { width: 20px; height: 20px; color: #25d366; }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #e9ecee; }
  .btn-ghost-dark:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
}

/* ===== Pasos como semáforo: rojo → amarillo → verde ===== */
.signal { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; margin-top: 48px; }
.signal::before, .signal::after {
  content: ""; position: absolute; left: 22px; right: calc(33.333% - 22px); top: 21px; height: 4px; border-radius: 4px;
}
.signal::before { background: var(--mv-off); }
.signal::after {
  background: linear-gradient(90deg, var(--mv-red), var(--mv-amber) 50%, var(--mv-green));
  transform-origin: left center; transform: scaleX(1);
}
.signal li { position: relative; }
.step-light {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 50%; font-weight: 800; font-size: 1.2rem; color: var(--mv-ink);
  background: var(--mv-off); box-shadow: 0 0 0 6px var(--mv-mist);
}
/* La luz encendida es una capa encima que solo cambia opacidad y escala (va por GPU) */
.step-light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--c); box-shadow: 0 6px 18px -4px var(--c);
}
.signal li:nth-child(1) { --c: var(--mv-red); }
.signal li:nth-child(2) { --c: var(--mv-amber); }
.signal li:nth-child(3) { --c: var(--mv-green); }
.signal h3 { font-size: 1.25rem; margin-bottom: 8px; }
.signal p { color: var(--mv-gray); max-width: 30ch; }

/* ===== Semáforo en ciclo continuo (6 s): rojo → amarillo → verde, pausa y reinicia ===== */
.js .signal[data-reveal] > * { opacity: 1; transform: none; }
.signal::after { animation: sig-line 6s linear infinite; }
.signal li:nth-child(1) .step-light::before { animation: sig-1 6s ease-out infinite; }
.signal li:nth-child(2) .step-light::before { animation: sig-2 6s ease-out infinite; }
.signal li:nth-child(3) .step-light::before { animation: sig-3 6s ease-out infinite; }

/* La línea se descubre (no se estira), así cada color queda bajo su luz */
@keyframes sig-line {
  0%, 8%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  80%, 92% { clip-path: inset(0 0 0 0); opacity: 1; }
  100%     { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes sig-1 {
  0%   { opacity: 0; transform: scale(.85); }
  4%   { opacity: 1; transform: scale(1.08); }
  8%   { transform: scale(1); }
  92%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes sig-2 {
  0%, 44% { opacity: 0; transform: scale(.85); }
  48%  { opacity: 1; transform: scale(1.08); }
  52%  { transform: scale(1); }
  92%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes sig-3 {
  0%, 79% { opacity: 0; transform: scale(.85); }
  83%  { opacity: 1; transform: scale(1.08); }
  87%  { transform: scale(1); }
  92%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes sig-c1 {
  0%, 8%   { transform: scaleY(0); opacity: 1; }
  44%, 92% { transform: scaleY(1); opacity: 1; }
  100%     { transform: scaleY(1); opacity: 0; }
}
@keyframes sig-c2 {
  0%, 48%  { transform: scaleY(0); opacity: 1; }
  79%, 92% { transform: scaleY(1); opacity: 1; }
  100%     { transform: scaleY(1); opacity: 0; }
}
/* ===== Contacto ===== */
form { border-radius: 20px; border: 1px solid var(--mv-line); box-shadow: var(--shadow); }
label { color: var(--mv-ink-soft); font-weight: 600; }
input, textarea { border-radius: 10px; border-color: #cdd3d7; background: #fff; }
input::placeholder, textarea::placeholder { color: #697075; }
input:focus, textarea:focus { border-color: var(--mv-blue); box-shadow: 0 0 0 4px rgba(30,136,199,.16); }
.form-msg.ok { color: var(--mv-green-ink); }
.contact-alt a { border-radius: 12px; background: #fff; border-color: var(--mv-line); color: var(--mv-ink); overflow-wrap: anywhere; }
.contact-alt a svg { flex-shrink: 0; }

/* ===== Pie ===== */
footer { background: var(--mv-ink); color: #b4b9bd; }
footer a { color: #e6e9eb; }
.foot-logo .logo-frame { --h: 96px; padding: 10px 14px; background: #fff; border-radius: 14px; }
.foot-logo .logo-frame img { left: calc(14px - var(--h) * 0.2636); top: calc(10px - var(--h) * 0.2248); }
.wa-float { background: #25d366; }

/* ===== Mapa interactivo de Colombia (portada) ===== */
.co-map { display: block; width: 100%; height: auto; overflow: visible; font-family: "Montserrat", sans-serif; }
.co-sea { fill: #e8f3fa; }
.co-land { fill: #d6eadf; stroke: #9fcbb4; stroke-width: 2.5; stroke-linejoin: round; }
.co-sea-label { fill: #7fa9c4; font-size: 12px; font-weight: 600; letter-spacing: .04em; font-style: italic; }
.map-city { cursor: pointer; outline: none; }
.map-line { stroke: var(--mv-ink); stroke-width: 1.5; stroke-dasharray: 3 3; fill: none; opacity: .55; }
.map-pin { fill: var(--c); stroke: #fff; stroke-width: 3.5; transform-box: fill-box; transform-origin: center; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.map-pulse { fill: var(--c); transform-box: fill-box; transform-origin: center; opacity: 0; animation: map-pulse 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite; animation-delay: calc(var(--i) * 0.48s); }
.map-label rect { fill: #fff; stroke: var(--mv-line); stroke-width: 1; transition: fill 180ms ease, stroke 180ms ease; }
.map-label text { fill: var(--mv-ink); font-size: 18px; font-weight: 800; transition: fill 180ms ease; }
.map-label { transform-box: fill-box; transform-origin: left center; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
/* Entrada: cada ciudad aparece en su turno */
.js .map-city { animation: map-in 520ms cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(150ms + var(--i) * 110ms); }
@keyframes map-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes map-pulse { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
/* Ciudad activa (mouse o teclado) */
.map-city:hover .map-pin, .map-city:focus-visible .map-pin { transform: scale(1.35); }
.map-city:hover .map-label rect, .map-city:focus-visible .map-label rect { fill: var(--mv-ink); stroke: var(--mv-ink); }
.map-city:hover .map-label text, .map-city:focus-visible .map-label text { fill: #fff; }
.map-city:hover .map-label, .map-city:focus-visible .map-label { transform: translateX(4px); }
.map-city:hover .map-line, .map-city:focus-visible .map-line { opacity: 1; stroke-dasharray: none; }
.map-city:active .map-label { transform: translateX(4px) scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .map-pulse { animation: none; opacity: 0; }
  .js .map-city { animation: none; }
}

.foot-cities { margin-top: 12px; line-height: 2; }
.foot-cities strong { color: #fff; margin-right: 4px; }
.foot-cities [aria-current] { color: #fff; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .decree-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-mark { justify-self: start; width: min(100%, 440px); }
  nav { background: #fff; border: 1px solid var(--mv-line); border-radius: 16px; left: 12px; right: 12px; }
  nav a { color: var(--mv-ink); }
}
@media (max-width: 720px) {
  .solo { padding: 56px 0; }
  .solo-pair { grid-template-columns: minmax(0, 1fr); }
  .solo-item { padding: 0; }
  .solo-item + .solo-item { padding: 40px 0 0; margin-top: 40px; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .solo-actions .btn { flex: 1 1 100%; }
  .mob-list { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 28px; }
  .mob-list li, .mob-list li + li { padding: 24px 0; border-left: 0; border-top: 1px solid #d9dee1; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; }
  .mob-icon { grid-row: span 2; margin: 0; }
  .signal { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .signal::before, .signal::after { display: none; }
  .signal li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; }
  .step-light { grid-row: span 2; margin: 0; }
  /* Conector vertical entre luces */
  .signal li:not(:last-child)::before {
    content: ""; position: absolute; left: 21px; top: 46px; bottom: -30px; width: 4px; border-radius: 4px;
    background: var(--c); transform-origin: center top;
  }
  .signal li:nth-child(1)::before { animation: sig-c1 6s linear infinite; }
  .signal li:nth-child(2)::before { animation: sig-c2 6s linear infinite; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .logo-frame { --h: 50px; }
  .navbar { padding: 0 14px; }
  .hero { padding: 48px 0 64px; }
  section { padding: 72px 0; }
  .decree { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Sin movimiento: el semáforo queda encendido y quieto */
  .signal::after, .signal li::before, .step-light::before { animation: none !important; opacity: 1; transform: none; clip-path: none; }
}