/* ==========================================================================
   Latino Digital Pro — Hoja de estilos principal
   HTML5 + CSS3 sin frameworks. Paleta extraída del logo oficial.
   ========================================================================== */

/* ---------- 1. Tokens de diseño ---------- */
:root {
  /* Color (muestreado del logo) */
  --navy-900: #001735;   /* base profunda */
  --navy-800: #021B3D;   /* texto "Digital" del logo */
  --navy-700: #0A284E;   /* texto "Latino" del logo */
  --navy-600: #123A6B;
  --blue-500: #0866DB;   /* azul digital (texto/enlaces sobre claro) */
  --blue-400: #0072F1;   /* barras del logo */
  --blue-200: #9CC7FF;
  --orange-500: #F97A00; /* naranja de marca (flecha / "Pro") */
  --orange-600: #F04700; /* naranja intenso de apoyo */
  --orange-100: #FFF1E3;
  --white: #FFFFFF;
  --gray-50: #F5F8FC;
  --gray-100: #EBF0F7;
  --gray-200: #DCE4EE;
  --gray-400: #8A9AB0;
  --gray-600: #4A5A70;
  --ink: #263447;

  --text: var(--ink);
  --text-muted: var(--gray-600);
  --heading: var(--navy-900);
  --line: var(--gray-200);

  /* Tipografía (pilas del sistema, sin dependencias externas) */
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Roboto, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
  --header-h: 68px;

  /* Forma */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 23, 53, 0.06), 0 2px 8px rgba(0, 23, 53, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 23, 53, 0.05), 0 12px 32px -8px rgba(0, 23, 53, 0.16);
  --shadow-lg: 0 30px 60px -20px rgba(0, 23, 53, 0.30);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--blue-400);
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol { list-style: none; }

a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: var(--white); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.4em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s var(--ease);
}
.btn .icon { width: 1.25em; height: 1.25em; }

/* Naranja con texto marino: contraste ~7:1 (AA/AAA) */
.btn-primary {
  background: var(--orange-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px -6px rgba(240, 71, 0, 0.55);
}
.btn-primary:hover {
  background: #FF8A14;
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(240, 71, 0, 0.6);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: var(--white);
}
.btn-ghost .icon { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }

.btn-sm { min-height: 44px; padding: 0.6em 1.15em; font-size: var(--fs-xs); }
.btn-lg { min-height: 54px; padding: 0.95em 1.7em; font-size: 1rem; }
.btn { text-align: center; }

@media (max-width: 379.98px) {
  .btn-lg { padding-inline: 1rem; font-size: 0.9375rem; }
}

/* ---------- 4. Encabezado y navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -14px rgba(0, 23, 53, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 100%;
}

.brand { display: block; flex-shrink: 0; border-radius: 6px; }
.brand img { width: 142px; height: auto; }

@media (min-width: 1024px) {
  .brand img { width: 168px; }
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.8vw, 0.75rem);
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.55rem; right: 0.55rem; bottom: 8px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover { color: var(--navy-900); }
.nav-list a:hover::after,
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-list a[aria-current="true"] { color: var(--navy-900); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.9rem;
  font: 700 var(--fs-sm) / 1 var(--font-body);
  color: var(--navy-900);
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Acciones del encabezado en móvil: WhatsApp + botón de menú */
.header-actions { display: none; align-items: center; gap: var(--sp-2); }

.header-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  font: 700 var(--fs-sm) / 1 var(--font-body);
  color: var(--navy-900);
  text-decoration: none;
  background: var(--orange-500);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s;
}
.header-wa:hover { color: var(--navy-900); background: #FF8A14; }
.header-wa .icon { width: 20px; height: 20px; }

/* En pantallas muy angostas: solo iconos (los textos siguen disponibles para lectores de pantalla) */
@media (max-width: 399.98px) {
  .header-wa { padding: 0; width: 44px; }
  .header-wa-label,
  .nav-toggle-label {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
}

/* Menú móvil / tableta (solo cuando JS está activo; sin JS el menú queda visible) */
@media (max-width: 1099.98px) {
  .js .header-actions { display: flex; }
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-5);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0, 23, 53, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list li + li { border-top: 1px solid var(--gray-100); }
  .js .nav-list a {
    display: flex;
    min-height: 52px;
    padding: 0 var(--sp-2);
    font-size: 1.0625rem;
  }
  .js .nav-list a::after { left: var(--sp-2); right: auto; width: 24px; bottom: 12px; }
  .js .nav-cta { min-height: 52px; font-size: var(--fs-sm); }

  /* Sin JS: navegación en flujo normal */
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: var(--sp-3); }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- 5. Secciones: elementos comunes ---------- */
.section { position: relative; padding-block: var(--section-y); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.section-label::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.section-label-light { color: var(--blue-200); }

.section-title { font-size: var(--fs-h2); font-weight: 800; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 1.8rem + 2.5vw, 4rem); }

.section-intro {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: var(--text-muted);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(1.5rem, 0.6rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Cuadrícula tipo plano arquitectónico */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(8, 102, 219, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 102, 219, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  right: -8vw; top: -6vw;
  background: radial-gradient(circle, rgba(0, 114, 241, 0.12), transparent 65%);
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  font-size: clamp(0.6875rem, 0.64rem + 0.2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  flex-shrink: 0;
  background: var(--orange-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--orange-100);
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-title .accent {
  display: block;
  margin-top: 0.12em;
  color: var(--blue-500);
}

.hero-lead {
  max-width: 560px;
  margin-top: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-700);
}
.hero-note .icon {
  width: 22px; height: 22px;
  padding: 4px;
  color: var(--white);
  background: var(--blue-400);
  border-radius: 50%;
}

@media (max-width: 479.98px) {
  .hero-actions .btn { width: 100%; }
}

/* --- Composición visual del hero (HTML + CSS + SVG originales) --- */
.hero-visual {
  position: relative;
  margin: 0;
  padding: 1.5rem 0 2.5rem;
  max-width: 600px;
  width: 100%;
  justify-self: center;
}

.mock-browser {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--line);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); }
.mock-dots i:first-child { background: var(--orange-500); }
.mock-url {
  flex: 1;
  padding: 0.3rem 0.8rem;
  font-size: 0.6875rem;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-body { padding: clamp(1rem, 0.6rem + 1.5vw, 1.5rem); }

.mock-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: var(--sp-4);
  padding: clamp(0.9rem, 0.6rem + 1vw, 1.25rem);
  background:
    linear-gradient(rgba(8, 102, 219, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(8, 102, 219, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--gray-50);
  border-radius: var(--radius);
}

.mock-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mock-kicker {
  font-size: clamp(0.5625rem, 0.5rem + 0.25vw, 0.6875rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.mock-line { display: block; height: 9px; background: var(--navy-700); border-radius: 4px; }
.mock-line-lg { width: 100%; height: 12px; }
.mock-line-md { width: 72%; background: var(--gray-200); }
.mock-line-sm { width: 80%; height: 7px; }
.mock-line-xs { width: 55%; height: 6px; background: var(--gray-200); }
.mock-pill {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0.4rem 0.75rem;
  font-size: clamp(0.5625rem, 0.5rem + 0.25vw, 0.6875rem);
  font-weight: 700;
  color: var(--navy-900);
  background: var(--orange-500);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.mock-house { width: 100%; height: auto; }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 0.3rem + 0.8vw, 0.85rem);
  margin-top: clamp(0.75rem, 0.5rem + 0.8vw, 1rem);
}
.mock-card {
  display: block;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mock-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}
/* Miniaturas abstractas: cocina, baño, pisos */
.t1 {
  background:
    linear-gradient(var(--navy-700), var(--navy-700)) 12% 78% / 76% 22% no-repeat,
    linear-gradient(var(--orange-500), var(--orange-500)) 12% 72% / 76% 6% no-repeat,
    linear-gradient(var(--blue-200), var(--blue-200)) 20% 22% / 26% 30% no-repeat,
    linear-gradient(var(--blue-200), var(--blue-200)) 80% 22% / 26% 30% no-repeat,
    #E3ECF7;
}
.t2 {
  background:
    radial-gradient(circle at 50% 30%, var(--blue-400) 0 16%, transparent 17%),
    linear-gradient(var(--white), var(--white)) 50% 82% / 56% 26% no-repeat,
    repeating-linear-gradient(90deg, #D6E2F1 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg, #D6E2F1 0 1px, transparent 1px 14px),
    #EEF4FB;
}
.t3 {
  background:
    repeating-linear-gradient(90deg, #C98A4B 0 18%, #B97A3E 18% 20%, #D79A5C 20% 38%, #B97A3E 38% 40%),
    #C98A4B;
}
.mock-cap {
  display: block;
  padding: 5px 2px 1px;
  font-size: clamp(0.5625rem, 0.5rem + 0.2vw, 0.6875rem);
  font-weight: 700;
  color: var(--navy-700);
}

.mock-phone {
  position: absolute;
  left: -4%;
  bottom: 0;
  width: 26%;
  min-width: 96px;
  max-width: 150px;
  aspect-ratio: 9 / 18;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 9px 10px;
  background: var(--white);
  border: 5px solid var(--navy-900);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  position: absolute;
  top: 5px; left: 50%;
  width: 34%; height: 5px;
  background: var(--navy-900);
  border-radius: 4px;
  transform: translateX(-50%);
}
.phone-hero {
  display: block;
  height: 30%;
  border-radius: 8px;
  background:
    linear-gradient(160deg, transparent 55%, rgba(249, 122, 0, 0.9) 55% 62%, transparent 62%),
    linear-gradient(180deg, var(--navy-600), var(--navy-900));
}
.phone-btn {
  display: block;
  height: 14px;
  width: 70%;
  margin-top: 2px;
  background: var(--orange-500);
  border-radius: 999px;
}
.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: auto;
}
.phone-grid i { aspect-ratio: 1; border-radius: 5px; background: var(--gray-100); }
.phone-grid i:nth-child(2) { background: #DCE8F7; }
.phone-grid i:nth-child(3) { background: #F2DEC6; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-chip .icon { width: 18px; height: 18px; color: var(--blue-500); }
.chip-top { top: 0; right: -3%; }
.chip-bottom { right: 6%; bottom: 1rem; }
.chip-bottom .icon {
  width: 20px; height: 20px;
  padding: 3px;
  color: var(--white);
  background: var(--orange-500);
  border-radius: 50%;
}

.hero-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: -1.5rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
}

@media (max-width: 599.98px) {
  .hero-visual { padding: 1.25rem 0 2rem; }
  .chip-top { right: 0; }
  .chip-bottom { display: none; }
  .mock-url { display: none; }
}
/* En pantallas angostas la ilustración es pequeña: se omite el celular para que no tape nada */
@media (max-width: 599.98px) {
  .mock-phone { display: none; }
}

/* Reserva espacio para el celular ilustrado: así no tapa la primera miniatura */
@media (min-width: 600px) {
  .mock-phone { width: 22%; min-width: 0; max-width: 132px; }
  .mock-cards { margin-left: 16%; }
}
@media (min-width: 1024px) {
  .mock-phone { width: 21%; max-width: 124px; }
  .mock-cards { margin-left: 11%; }
}

@media (min-width: 1024px) {
  .hero-visual { justify-self: end; }
  .mock-phone { left: -9%; }
}


/* ---------- 7. Nosotros ---------- */
.about {
  padding-top: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  padding-bottom: calc(var(--section-y) * 0.6);
}

.about-grid {
  display: grid;
  gap: var(--sp-6) var(--sp-8);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  /* divisor alineado al contenido (no al relleno lateral) */
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

.about-text { display: grid; gap: var(--sp-4); font-size: var(--fs-lg); color: var(--text-muted); }
.about-text strong { color: var(--navy-900); }

.about-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-3);
}
.about-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-700);
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.about-points .icon { width: 16px; height: 16px; color: var(--blue-500); }

/* ---------- 8. Problemas ---------- */
.problems { background: var(--gray-50); }

.problem-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .problem-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }
@media (min-width: 1100px) { .problem-grid { grid-template-columns: repeat(4, 1fr); } }

.problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.problem-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-400));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #C9D6E6; }
.problem-card:hover::before { transform: scaleX(1); }

.problem-num {
  position: absolute;
  top: 1.1rem; right: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gray-100);
}
.problem-icon {
  width: 44px; height: 44px;
  padding: 9px;
  color: var(--blue-500);
  background: rgba(8, 102, 219, 0.08);
  border-radius: 12px;
}
.problem-card h3 { font-size: var(--fs-h3); font-weight: 700; padding-right: 2.5rem; margin-top: var(--sp-2); }
.problem-card p { font-size: var(--fs-sm); color: var(--text-muted); }

.problem-close {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
  background: var(--navy-900);
  border-radius: var(--radius);
  text-wrap: balance;
}
.close-mark {
  flex-shrink: 0;
  width: 6px;
  align-self: stretch;
  min-height: 2.5rem;
  background: var(--orange-500);
  border-radius: 4px;
}

/* ---------- 9. Servicios ---------- */
.stage {
  border-radius: var(--radius-lg);
}
.stage-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
}
.stage-head .badge { grid-column: 1 / -1; justify-self: start; max-width: 100%; white-space: normal; }
@media (min-width: 640px) {
  .stage-active .stage-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .stage-active .stage-head .badge { grid-column: 3; justify-self: end; }
}
.stage-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 12px;
}
.stage-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 800;
}
.stage-kicker {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge .icon { width: 15px; height: 15px; }
.badge-available { color: #0B5A2A; background: #E3F5EA; border: 1px solid #B8E3C8; }
.badge-soon { color: var(--navy-700); background: var(--white); border: 1px dashed var(--gray-400); }
.badge-clock {
  position: relative;
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.badge-clock::before {
  content: "";
  position: absolute;
  left: 50%; top: 1px;
  width: 2px; height: 5px;
  background: currentColor;
  transform: translateX(-50%);
  box-shadow: 2px 3px 0 -0.5px currentColor;
}

/* Etapa 1: protagonista */
.stage-active {
  padding: clamp(0.875rem, 0.4rem + 2.2vw, 2.5rem);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 114, 241, 0.10), transparent 60%),
    var(--gray-50);
  border: 1px solid var(--line);
}
.stage-active .stage-num { color: var(--navy-900); background: var(--orange-500); }

.service-grid-main {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 800px) { .service-grid-main { grid-template-columns: 1fr 1fr; } }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border-radius: var(--radius);
}
.service-card h4 { font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.5rem); font-weight: 800; line-height: 1.2; }
.service-card p { color: var(--text-muted); }

.service-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.service-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-id {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.service-card-main {
  padding: clamp(1.25rem, 1rem + 1.2vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card-main:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-main .service-icon { color: var(--white); background: linear-gradient(145deg, var(--navy-600), var(--navy-900)); }
.service-card-main .service-icon svg { color: var(--white); }
.service-card-main p { font-size: 1.0625rem; }

.service-note {
  margin-top: auto;
  padding-top: var(--sp-4);
  font-size: var(--fs-sm) !important;
  border-top: 1px solid var(--gray-100);
}

.stage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.stage-cta p { font-weight: 600; color: var(--navy-700); }

@media (max-width: 479.98px) {
  .stage-cta .btn { width: 100%; }
}

/* Etapas 2 y 3: en preparación */
.stage-future-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.stage-future {
  display: grid;
  gap: var(--sp-4);
  padding: clamp(0.875rem, 0.5rem + 1.6vw, 2rem);
  background:
    repeating-linear-gradient(135deg, rgba(10, 40, 78, 0.025) 0 10px, transparent 10px 20px),
    var(--white);
  border: 1px dashed #B9C6D6;
}
.stage-future .stage-head { margin-bottom: 0; }
.stage-future .stage-num { color: var(--navy-700); background: var(--gray-100); }

.service-card-soon {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--gray-100);
}
.service-card-soon .service-icon { width: 48px; height: 48px; color: var(--blue-500); background: rgba(8, 102, 219, 0.08); }
.service-card-soon .service-icon svg { width: 26px; height: 26px; }
.service-card-soon h4 { font-size: var(--fs-h3); }
.service-card-soon p { font-size: var(--fs-sm); }

/* Tableta: encabezado arriba, tarjetas en dos columnas */
@media (min-width: 640px) {
  .stage-future { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .stage-future .stage-head { grid-column: 1 / -1; }
  .stage-future .service-card-soon:only-of-type { grid-column: 1 / -1; }
}
/* Escritorio: encabezado a la izquierda, tarjetas a la derecha */
@media (min-width: 1024px) {
  .stage-future { grid-template-columns: 300px 1fr 1fr; align-items: start; }
  .stage-future .stage-head { grid-column: 1; grid-template-columns: auto; justify-items: start; }
  .stage-future .stage-head .badge { grid-column: 1; }
  .stage-future .service-card-soon:only-of-type { grid-column: 2 / -1; }
}

/* ---------- 10. Cómo trabajamos ---------- */
.process {
  color: #C8D5E6;
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
.process-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(156, 199, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 199, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.process .section-title { color: var(--white); }

.steps {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  counter-reset: none;
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 28px; right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-500), rgba(0, 114, 241, 0.7) 60%, rgba(0, 114, 241, 0));
  }
}

.step { position: relative; }

.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: var(--sp-5);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--navy-900);
  background: var(--orange-500);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 7px rgba(249, 122, 0, 0.45);
}
.step:not(:first-child) .step-num {
  color: var(--white);
  background: var(--navy-600);
  box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 7px rgba(156, 199, 255, 0.35);
}
.step h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--white); }
.step p { margin-top: var(--sp-2); font-size: var(--fs-sm); color: #B9C8DB; }

/* Línea vertical en móvil/tableta */
@media (max-width: 1023.98px) {
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--sp-5); padding-bottom: var(--sp-6); }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: 1 / span 2; margin-bottom: 0; }
  .step h3 { align-self: end; padding-top: 0.55rem; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 27px; top: 64px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, rgba(249, 122, 0, 0.6), rgba(0, 114, 241, 0.4));
  }
}

/* ---------- 11. Preguntas frecuentes ---------- */
.faq-grid { display: grid; gap: var(--sp-6) var(--sp-8); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq-help { margin-top: var(--sp-4); color: var(--text-muted); }
.faq-help a {
  display: inline-block;
  padding: 12px 2px;
  margin: -12px -2px;
  font-weight: 700;
}

.faq-list { display: grid; gap: var(--sp-3); }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.faq-item[open] { border-color: #BFD0E4; box-shadow: var(--shadow-md); }
.faq-item:hover { border-color: #BFD0E4; }

.faq-item summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 1.15rem 3.75rem 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.15rem; top: 50%;
  width: 30px; height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background:
    linear-gradient(var(--navy-900), var(--navy-900)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy-900), var(--navy-900)) center / 2px 12px no-repeat,
    var(--gray-50);
  transition: transform 0.3s var(--ease), background-color 0.25s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--navy-900), var(--navy-900)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy-900), var(--navy-900)) center / 2px 12px no-repeat,
    var(--orange-500);
}
.faq-item summary:focus-visible { outline-offset: -3px; }

.faq-answer { padding: 0 1.35rem 1.3rem; color: var(--text-muted); }
.faq-answer p { max-width: 60ch; }

/* ---------- 12. Contacto ---------- */
.contact {
  color: #C8D5E6;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 60%);
  overflow: hidden;
  isolation: isolate;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 92% 8%, rgba(249, 122, 0, 0.12), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(0, 114, 241, 0.25), transparent 40%);
}
.contact-bg::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 520px; height: 520px;
  border: 2px solid rgba(249, 122, 0, 0.25);
  border-radius: 50%;
}

.contact-grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); } }

.contact .section-title { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
.contact-lead { margin-top: var(--sp-5); font-size: var(--fs-lg); color: #DCE6F2; max-width: 560px; }
.contact-sub { margin-top: var(--sp-3); margin-bottom: var(--sp-6); color: #B9C8DB; }

@media (max-width: 599.98px) {
  .btn-block-mobile { width: 100%; }
}

.contact-card {
  padding: clamp(0.5rem, 0.3rem + 1vw, 1rem) clamp(1.25rem, 1rem + 1vw, 2rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: clamp(1rem, 0.85rem + 0.5vw, 1.35rem);
}
.contact-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  color: var(--orange-500);
  background: rgba(249, 122, 0, 0.12);
  border-radius: 12px;
}
.contact-icon svg { width: 24px; height: 24px; }

.contact-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-200);
}
.contact-meta a,
.contact-meta strong {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
}
.contact-meta strong { font-weight: 600; line-height: 1.45; }
.contact-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-radius: 4px;
}
.contact-meta a:hover { color: var(--orange-500); text-decoration: underline; }
.contact :focus-visible { outline-color: var(--orange-500); }

/* ---------- 13. Pie de página ---------- */
.site-footer {
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: var(--fs-sm);
  background: var(--gray-50);
  border-top: 4px solid var(--orange-500);
}

.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: var(--sp-7); } }

.footer-brand img { width: 220px; height: auto; margin-bottom: var(--sp-4); }
.footer-brand p { color: var(--text-muted); max-width: 320px; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: var(--navy-900) !important; }
.footer-domain { margin-top: var(--sp-3); font-weight: 700; color: var(--blue-500) !important; }

@media (min-width: 600px) and (max-width: 1023.98px) {
  .footer-brand { grid-column: 1 / -1; }
}

.footer-title {
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.footer-col ul { display: grid; gap: var(--sp-1); }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--blue-500); text-decoration: underline; }
.footer-muted { color: var(--text-muted); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: var(--sp-5);
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--text-muted);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--navy-700);
  text-decoration: none;
}
.to-top .icon { transform: rotate(-90deg); }
.to-top:hover { color: var(--blue-500); }

/* ---------- 14. Animaciones de aparición ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .problem-grid .reveal:nth-child(2),
  .js .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .problem-grid .reveal:nth-child(3),
  .js .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .problem-grid .reveal:nth-child(4),
  .js .steps .reveal:nth-child(4) { transition-delay: 0.24s; }
  /* una vez visibles, las tarjetas recuperan sus transiciones de hover sin retraso */
  .js .problem-card.reveal.is-visible {
    transition: opacity 0.7s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  }
  .js .problem-card.reveal.is-visible:hover { transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
