/* ==========================================================================
   Netscom – estilos (mobile first)
   Marca: azul marino #03327b, celeste #1a9bf0 (del CSS actual), Kanit + Barlow
   ========================================================================== */

:root {
  --navy: #03327b;          /* principal: botones y encabezados */
  --navy-700: #022a68;
  --navy-900: #0a245c;      /* pie */
  --navy-950: #071a44;
  --celeste: #1a9bf0;       /* acento (íconos, líneas, detalles) */
  --celeste-600: #0b78c2;   /* celeste con contraste para texto sobre blanco */
  --celeste-100: #e3f2fd;
  --ink: #16213e;           /* texto principal */
  --muted: #55627e;         /* texto secundario */
  --line: #e2e8f2;
  --soft: #f4f8fc;          /* fondo de secciones alternas */
  --white: #fff;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --error: #c62828;
  --ok: #1b7f3b;

  --font-title: "Kanit", system-ui, sans-serif;
  --font-text: "Barlow", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(3, 50, 123, .04), 0 1px 6px rgba(3, 50, 123, .03);
  --shadow: 0 4px 18px rgba(3, 50, 123, .06);
  --shadow-lg: 0 12px 32px rgba(3, 50, 123, .12);

  --container: 1680px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--celeste-600); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; color: var(--navy-950); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.45rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--container); }
.container--narrow > * { max-width: 800px; } /* columna de lectura alineada a la izquierda con el título */
.center { text-align: center; }
.visually-hidden { 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; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }


/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--font-title); font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(3, 50, 123, .14); }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--celeste-100); color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--celeste-600); margin-bottom: 1rem;
}
.eyebrow .icon { color: var(--celeste); }
.eyebrow--light, .eyebrow--light .icon { color: #8fd0ff; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
/* Fondo con desenfoque en una capa aparte: si se aplica al header, el menú
   móvil (position: fixed) queda encerrado en el alto del header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(3, 50, 123, .08); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); } /* alto fijo: si cambia al scrollear, el contenido salta y el header tiembla */
.brand img { width: 168px; height: auto; transition: width .3s var(--ease); }
.site-header.is-scrolled .brand img { width: 150px; }

.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: #fff; overflow-y: auto;
  padding: 12px var(--gutter) 32px;
  /* Oculto con fundido (no con translateX, que ensancha la página en celular) */
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .3s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav__list { list-style: none; }
.nav__list > li { position: relative; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.nav__link {
  flex: 1; display: block; padding: 14px 0;
  font-family: var(--font-title); font-weight: 400; font-size: 1.1rem;
  color: var(--navy-950); text-decoration: none;
}
.nav__link[aria-current="page"] { color: var(--celeste-600); }
.sub-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--navy); cursor: pointer; }
.sub-toggle .icon { transition: transform .25s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { list-style: none; width: 100%; display: none; padding: 0 0 10px; }
.nav__sub.is-open { display: block; }
.nav__sub a { display: flex; align-items: center; gap: .6em; padding: 9px 4px; color: var(--muted); text-decoration: none; font-size: 1rem; }
.nav__sub a .icon { color: var(--celeste); }
.nav__sub a:hover { color: var(--navy); }
.nav__cta { margin-top: 22px; width: 100%; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f5f9fe 0%, #fff 100%); }
.hero { overflow: visible; } /* deja ver el desplegable del formulario; el fondo de red no se sale */
.hero__network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero > .container, .page-hero > .container { position: relative; }
.hero { padding: 36px 0 48px; }
.hero__grid { display: grid; gap: 32px; align-items: start; }
.hero__title { margin-bottom: .45em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__actions--center { justify-content: center; }
.hero__actions--center .btn { flex: 0 1 auto; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips a {
  display: inline-flex; align-items: center; gap: .45em; padding: 7px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--navy); text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.hero__chips a:hover { border-color: var(--celeste); box-shadow: var(--shadow-sm); }
.hero__chips .icon { color: var(--celeste); width: 1.1em; height: 1.1em; }
.hero__proof { color: var(--muted); font-size: .98rem; margin: 0; }
.hero__proof strong { color: var(--navy); }
.hero--service .breadcrumbs, .hero--contact .breadcrumbs { margin-bottom: 18px; }

.page-hero { padding: 36px 0 44px; }
.page-hero__title { max-width: 22em; }
.page-hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 44em; margin: 0; }
.page-hero--small { padding-bottom: 12px; }
.page-hero--thanks { padding: 80px 0; }
.page-hero--thanks .page-hero__lead { margin: 0 auto; }
.thanks__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--celeste-100); color: var(--navy); margin-bottom: 18px; }
.thanks__icon .icon { width: 36px; height: 36px; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; padding: 0; font-size: .92rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #a6b2c8; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }

.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.checklist li { display: flex; gap: .6em; align-items: flex-start; }
.checklist .icon { color: #fff; background: var(--celeste); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.checklist--plain .icon { color: var(--celeste); background: var(--celeste-100); }

/* ---------- Formulario (etiquetas flotantes) ---------- */
.form-card {
  position: relative; border-radius: 18px; padding: 26px 20px 20px;
  /* Efecto vidrio: blanco semitransparente con desenfoque de lo que queda detrás */
  background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 34px rgba(3, 50, 123, .10);
}
.form-card__title { font-size: 1.35rem; margin-bottom: .3em; }
.form-card__lead { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.form-card__title + .form { margin-top: 14px; }
.form { display: grid; gap: 10px; }
.form__row { display: grid; gap: 10px; }
/* Evita que contenidos largos (p. ej. opciones del select) ensanchen las grillas en celular */
.hero__grid > *, .split > *, .form__row > *, .cards > *, .areas > *, .includes > * { min-width: 0; }
.field { position: relative; min-width: 0; }
.field > * { min-width: 0; }
.field__input, .cselect__btn {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 19px 20px 4px;
  font: inherit; font-size: 1rem; line-height: 1.35; color: var(--ink); text-align: left; text-overflow: ellipsis;
  background-color: rgba(255, 255, 255, .86); border: 1px solid #d3dce9; border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.field__input:hover, .cselect__btn:hover { border-color: #b4c3d8; }
textarea.field__input { min-height: 88px; padding: 22px 18px 8px; border-radius: 18px; resize: vertical; }
.field__input:focus, .cselect__btn:focus-visible, .cselect.is-open .cselect__btn {
  outline: none; background-color: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 155, 240, .16);
}
/* La etiqueta descansa dentro del campo y sube al enfocarlo o completarlo */
.field__label {
  position: absolute; left: 21px; top: 13px; z-index: 1; max-width: calc(100% - 56px);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none;
  font-size: .96rem; line-height: 1.35; color: #6b7891; transform-origin: left top;
  transition: transform .18s var(--ease), color .18s;
}
.field__label small { font-size: .85em; color: #95a1b5; }
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field.is-filled .field__label,
.field--select:focus-within .field__label {
  transform: translateY(-8px) scale(.74); color: var(--navy); font-weight: 600;
}
.field__input::placeholder { color: transparent; }
/* Desplegable de servicio (nativo en táctil, con estilo propio en escritorio) */
.chevron-bg, select.field__input, .cselect__btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303327b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 18px;
}
select.field__input { appearance: none; padding-right: 50px; cursor: pointer; }
.field--area .field__label { left: 19px; }
.field--select:not(.is-filled) select.field__input { color: transparent; }
.field--select:not(.is-filled) select.field__input option, .field--select:not(.is-filled) select.field__input optgroup { color: var(--ink); }
.cselect__native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cselect { position: relative; min-width: 0; }
.cselect__btn { padding-right: 50px; overflow: hidden; cursor: pointer; }
.cselect__value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__btn.is-placeholder .cselect__value { visibility: hidden; }
.cselect__list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(420px, 90vw);
  max-height: 320px; overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.cselect__group { padding: 10px 10px 4px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--celeste-600); }
.cselect__group:first-child { padding-top: 4px; }
.cselect__option { padding: 8px 10px 8px 12px; border-radius: 8px; cursor: pointer; font-size: .96rem; line-height: 1.35; color: var(--ink); }
.cselect__option.is-active { background: var(--soft); color: var(--navy); }
.cselect__option[aria-selected="true"] { color: var(--navy); font-weight: 600; background: var(--celeste-100); }
/* Errores */
.field__input[aria-invalid="true"], .cselect__native[aria-invalid="true"] + .cselect .cselect__btn { border-color: var(--error); }
.field__input[aria-invalid="true"] ~ .field__label { color: var(--error); }
.field__error { display: block; margin-top: 4px; padding-left: 20px; color: var(--error); font-size: .85rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--ok); }
.form__legal { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }
.form .btn { min-height: 48px; margin-top: 4px; border-radius: 999px; }
.btn--send .icon { transition: transform .25s var(--ease); }
.btn--send:hover .icon { transform: translateX(4px); }
/* Confirmación al enviar */
.form-card__success { text-align: center; padding: 28px 8px 18px; }
.form-card__success:focus { outline: none; }
.form-card__success-title { font-family: var(--font-title); font-weight: 600; font-size: 1.35rem; color: var(--navy); margin: 14px 0 6px; }
.form-card__success-text { color: var(--muted); margin: 0; }
.success-check { width: 76px; height: 76px; display: block; margin: 0 auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke: var(--ok); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s var(--ease) forwards; }
.success-check path { stroke: var(--ok); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .success-check circle, .success-check path { animation: none; stroke-dashoffset: 0; }
  .field__label { transition: none; }
}

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: radial-gradient(1200px 500px at 85% 0%, #0d4aa8 0%, var(--navy) 45%, var(--navy-950) 100%); color: #dfe9f8; }
.section--navy h2 { color: #fff; }
.section__title { text-align: center; margin-bottom: .4em; }
.section__title::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--navy); margin: 14px auto 0; }
.section--navy .section__title::after { background: var(--celeste); }
.section__title--left { text-align: left; }
.section__title--left::after { margin-left: 0; }
.section__lead { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 32px; }
.section__title + .cards, .section__title + .logo-grid, .section__title + .includes, .section__title + .benefits, .section__title + .faq { margin-top: 28px; }

.prose h2 { margin-top: 0; }
.prose p, .prose li { color: #2d3954; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose h2 + p { margin-top: .4em; }
.container--narrow.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }

.split { display: grid; gap: 32px; align-items: center; }
.section--plain { background: #fff; }
/* Corte suave entre secciones: tinte celeste muy leve con filete arriba y abajo */
.section--tint {
  background: linear-gradient(180deg, #eaf3fc 0%, #f5f9fe 100%);
  border-top: 1px solid #dbe7f5; border-bottom: 1px solid #dbe7f5;
}
.section--tint + .section--navy, .section--navy + .section--tint { border-top: 0; }
/* Hero de la home con foto: velo azul más denso del lado del titular */
.hero--photo {
  background:
    linear-gradient(90deg, rgba(7, 26, 68, .84) 0%, rgba(5, 36, 94, .66) 40%, rgba(3, 50, 123, .42) 100%),
    url("../img/fotos/hero-home-960.webp") center / cover no-repeat;
  background-color: var(--navy-950);
}
@media (min-width: 960px) {
  .hero--photo {
    background:
      linear-gradient(90deg, rgba(7, 26, 68, .82) 0%, rgba(5, 36, 94, .58) 38%, rgba(3, 50, 123, .18) 100%),
      url("../img/fotos/hero-home.webp") center / cover no-repeat;
    background-color: var(--navy-950);
  }
}
.hero--photo .hero__title { color: #fff; text-shadow: 0 2px 18px rgba(2, 12, 36, .45); }
.hero--photo .hero__lead { color: #fff; text-shadow: 0 1px 12px rgba(2, 12, 36, .55); }
.hero--photo .eyebrow, .hero--photo .eyebrow .icon { color: #fff; text-shadow: 0 1px 10px rgba(2, 12, 36, .55); }
.hero--photo .form-card { box-shadow: 0 18px 48px rgba(2, 12, 36, .35); }
.form-aside h2 { margin-bottom: .35em; }
.form-aside__lead { color: var(--muted); font-size: 1.08rem; }
.form-aside .checklist { margin: 22px 0 28px; gap: 12px; }
.form-aside__contact { border-top: 1px solid var(--line); padding-top: 22px; }
.form-aside__label { font-family: var(--font-title); font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.form-aside__contact .contact-list { margin-bottom: 20px; }
.page-hero__row { display: grid; gap: 24px; align-items: end; }
.page-hero__row .page-hero__title { margin-bottom: .35em; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--soft); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.photo-pair .photo img { aspect-ratio: 1; }
.photo--wide img { aspect-ratio: 16 / 9; }
/* Flota: una foto grande y dos chicas debajo */
.fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fleet__main { grid-column: 1 / -1; }
.photo { transition: transform .35s var(--ease), box-shadow .35s; }
.fleet .photo:hover, .photo-pair .photo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fleet-note { display: inline-flex; gap: .5em; align-items: center; margin-top: 4px; font-weight: 600; color: var(--navy); }
.fleet-note .icon { width: 22px; height: 22px; color: var(--celeste); }

/* ---------- Clientes ---------- */
.clients-hero { padding-top: 48px; }
.clients-hero__head { display: grid; gap: 18px; align-items: center; margin-bottom: 28px; }
.clients-hero__lead { color: var(--muted); max-width: 30rem; margin: 8px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; }
.stat dt { font-size: .8rem; color: var(--muted); order: 2; }
.stat dd { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: clamp(1.6rem, 6vw, 2.4rem); color: var(--navy); line-height: 1.1; }
.stat { display: flex; flex-direction: column-reverse; }
.stats--inline { grid-template-columns: repeat(2, minmax(0, 160px)); margin-top: 24px; }

.logo-grid { list-style: none; display: grid; gap: 12px; }
.logo-grid li { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; transition: box-shadow .25s, transform .25s var(--ease); }
.logo-grid li:hover { box-shadow: var(--shadow-sm); border-color: #cfe3f6; }
.logo-grid img { width: 100%; max-height: 110px; object-fit: contain; }
.logo-grid--clients { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
.logo-grid--clients li { padding: 8px; }
@media (min-width: 640px) { .logo-grid--clients { gap: 12px; } .logo-grid--clients li { padding: 14px; } }
.logo-grid--all { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.logo-grid--all li { padding: 6px; }
.logo-grid--brands { display: flex; flex-wrap: wrap; justify-content: center; }
.logo-grid--brands li { width: calc((100% - 24px) / 3); }
.logo-grid--brands img { max-height: 70px; }
/* Bloque de marcas: arriba en la página, compacto y con el resto desplegable */
.section--brands { background: #fff; border-top: 1px solid var(--line); }
.section--brands .section__lead { margin-bottom: 0; }
.section--brands .section__title + .section__lead + .logo-grid { margin-top: 24px; }
.brands-more { margin-top: 12px; }
.brands-more > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: .35em;
  width: max-content; margin: 6px auto 0; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; color: var(--navy); border: 1.5px solid #cfe0f3; background: #fff; transition: background-color .2s, border-color .2s;
}
.brands-more > summary::-webkit-details-marker { display: none; }
.brands-more > summary:hover { background: var(--celeste-100); border-color: var(--celeste); }
.brands-more > summary .icon { width: 18px; height: 18px; transition: transform .25s; }
.brands-more[open] > summary .icon { transform: rotate(180deg); }
.brands-more[open] > summary { margin-bottom: 14px; }
.brands-areas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.brands-areas__label { width: 100%; text-align: center; color: var(--muted); font-size: .92rem; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  color: var(--navy); background: var(--celeste-100); border: 1px solid #cde6fb; text-decoration: none; transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
@media (min-width: 640px) { .brands-areas__label { width: auto; } }

.trust { border-block: 1px solid var(--line); background: #fff; padding: 28px 0; }
.trust__inner { display: grid; gap: 18px; align-items: center; grid-template-areas: "label" "logos" "btn"; }
.trust__label { grid-area: label; text-align: center; }
.marquee { grid-area: logos; }
.trust__btn { grid-area: btn; justify-self: center; }
.trust__label { margin: 0; font-family: var(--font-title); font-weight: 500; font-size: 1.15rem; line-height: 1.3; color: var(--navy-950); }
.btn--sm { min-height: 40px; padding: .45em 1.1em; font-size: .92rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { list-style: none; display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__list img { width: auto; height: 56px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.marquee__list li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.testimonials__title { font-size: 1.35rem; text-align: center; margin: 56px 0 0; }

/* Carrusel de testimonios: fila con scroll-snap; los botones pasan de a una "página" */
.tcarousel { --t-gap: 20px; --t-per: 1; margin-top: 28px; }
.testimonials {
  display: flex; gap: var(--t-gap); margin: 0; padding: 22px 2px 6px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.testimonials::-webkit-scrollbar { display: none; }
.testimonials:focus-visible { outline-offset: 4px; }
.testimonial { flex: 0 0 calc((100% - (var(--t-per) - 1) * var(--t-gap)) / var(--t-per)); scroll-snap-align: start; display: flex; }
.testimonial figure { display: flex; flex-direction: column; width: 100%; margin: 0; }

/* Globo de comentario con "colita" hacia el autor */
.testimonial__bubble {
  position: relative; flex: 1; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #d6e4f3; border-radius: 18px;
  padding: 30px 24px 22px; box-shadow: 0 6px 22px rgba(3, 50, 123, .07);
  transition: transform .25s, box-shadow .25s;
}
.testimonial__bubble::after {
  content: ""; position: absolute; left: 34px; bottom: -10px; width: 18px; height: 18px;
  background: #fff; border-right: 1px solid #d6e4f3; border-bottom: 1px solid #d6e4f3;
  transform: rotate(45deg); border-bottom-right-radius: 4px;
}
.testimonial:hover .testimonial__bubble { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(3, 50, 123, .11); }
.testimonial__quote {
  position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; padding: 10px;
  border-radius: 50%; background: var(--celeste); fill: #fff; box-shadow: 0 4px 12px rgba(26, 155, 240, .35);
}
.testimonial__area { margin: 0 0 10px; font-family: var(--font-title); font-weight: 500; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--celeste-600); }
.testimonial__text { flex: 1; margin: 0; }
.testimonial__text p { margin: 0; color: var(--ink); line-height: 1.6; }
.testimonial__autor { display: flex; align-items: center; gap: 12px; padding: 20px 0 0 22px; font-size: .95rem; }
.testimonial__avatar {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; color: #fff; background: var(--navy);
}
.testimonial__avatar--1 { background: var(--celeste-600); }
.testimonial__avatar--2 { background: #0d4aa8; }
.testimonial__who { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial__who strong { color: var(--navy); font-weight: 700; }
.testimonial__who span { color: var(--muted); }

.tcarousel__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.tcarousel__nav[hidden] { display: none; }
.tcarousel__btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--navy); background: #fff; color: var(--navy); transition: background .2s, color .2s, opacity .2s;
}
.tcarousel__btn .icon { width: 20px; height: 20px; transform: rotate(90deg); }
.tcarousel__btn--next .icon { transform: rotate(-90deg); }
.tcarousel__btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.tcarousel__btn:disabled { opacity: .35; cursor: default; }
.tcarousel__dots { display: flex; gap: 8px; }
.tcarousel__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: #c5d6ea; cursor: pointer; transition: width .25s, background .25s; }
.tcarousel__dot[aria-current="true"] { width: 28px; background: var(--celeste); }
@media (min-width: 700px) { .tcarousel { --t-per: 2; } }
@media (min-width: 1024px) { .tcarousel { --t-per: 3; --t-gap: 24px; } }
.placeholder-note { margin-top: 24px; padding: 16px 18px; border: 2px dashed #c9d6ea; border-radius: var(--radius-sm); color: var(--muted); background: #fff; font-size: .95rem; }
.placeholder-note strong { color: var(--navy); display: block; }

/* ---------- Tarjetas ---------- */
.cards { list-style: none; display: grid; gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, border-color .3s;
  --mx: 50%; --my: 0%;
}
/* Línea de "señal" en el borde superior */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), #0d4aa8);
  transform-origin: left; transform: scaleX(1);
}
.card--featured::before { height: 4px; }
/* Brillo suave que sigue al cursor (main.js actualiza --mx y --my) */
.card:hover { box-shadow: var(--shadow); border-color: #cfe3f6; background: radial-gradient(280px circle at var(--mx) var(--my), rgba(26, 155, 240, .08), transparent 65%), #fff; }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--celeste-100); color: var(--celeste-600); margin-bottom: 16px; }
.card__icon .icon { width: 28px; height: 28px; }
.card__title { font-size: 1.2rem; margin-bottom: .4em; }
.card__link { color: var(--navy-950); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--celeste); outline-offset: 2px; }
.card__text { color: var(--muted); margin-bottom: 16px; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--navy); }
.card__more .icon { transition: transform .2s var(--ease); width: 1.1em; }
.card:hover .card__more .icon { transform: translateX(4px); }
.card--cta { background: linear-gradient(160deg, #eef6fe 0%, #fff 100%); border-style: dashed; border-color: #b9d8f3; justify-content: center; }
.card--cta::before { display: none; }
.card--cta .btn { align-self: flex-start; }

/* Áreas */
.areas { display: grid; gap: 16px; margin-top: 28px; }
.area { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.area__title { font-size: 1.1rem; color: var(--navy); margin-bottom: .6em; }
.area__list { list-style: none; display: grid; gap: 2px; }
.area__list a { display: flex; align-items: center; gap: .65em; padding: 9px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
.area__list a:hover { background: var(--soft); color: var(--navy); }
.area__list .icon { color: var(--celeste); }

/* Qué incluye / beneficios */
.includes { display: grid; gap: 16px; }
.includes__block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.includes__block h3 { color: var(--navy); }
.benefits { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.benefit { flex: 1 1 100%; }
.benefit { padding: 4px 0; }
.benefit__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--celeste-100); color: var(--celeste-600); margin-bottom: 12px; }
.benefit__icon .icon { width: 24px; height: 24px; }
.benefit__title { font-size: 1.1rem; margin-bottom: .3em; }
.benefit p { color: var(--muted); margin: 0; }

.mv { display: grid; gap: 16px; }
.mv__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.mv__title { font-size: 1.5rem; }
.mv__item p { color: #2d3954; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; align-items: start; }
.faq__col { display: grid; gap: 10px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 14px 20px; } .faq__col { gap: 14px; } }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { border-color: #cfe3f6; box-shadow: var(--shadow-sm); }
.faq__q { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; font-family: var(--font-title); font-weight: 500; font-size: 1.05rem; color: var(--navy-950); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { color: var(--celeste); transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__a { padding: 0 18px 4px; color: #2d3954; }

/* Pertenencias */
.memberships__label { font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.memberships { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.memberships li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; place-items: center; }
.memberships--center { max-width: 640px; margin: 24px auto 0; }
.memberships--stack { grid-template-columns: 1fr; max-width: 440px; }
.split__media--end { display: flex; flex-direction: column; align-items: stretch; }
@media (min-width: 1024px) {
  .split__media--end { align-items: center; }
  .split__media--end .memberships__label, .split__media--end .memberships { width: 100%; max-width: 360px; }
}
.memberships--stack li { padding: 14px 20px; }
.memberships--stack img { width: 100%; max-width: 300px; }
.section__more { margin-top: 32px; }

/* Contacto y mapa */
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: .7em; align-items: flex-start; }
.contact-list .icon { color: var(--celeste); margin-top: 3px; }
.contact-list--big { margin: 18px 0 24px; font-size: 1.05rem; }
.contact-list--big a { font-weight: 600; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: #dfe8f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23c9d6ea' stroke-width='1'/%3E%3C/svg%3E"); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.map--wide { width: 100%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: inline-flex; gap: .5em; align-items: center; padding: 12px 20px; border-radius: 999px; border: 0; background: #fff; color: var(--navy); font: 600 1rem var(--font-text); box-shadow: var(--shadow); cursor: pointer; }

.social { list-style: none; display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s, transform .2s; }
.social a:hover { background: var(--celeste); color: #fff; transform: translateY(-2px); }
.social--dark a { background: var(--celeste-100); color: var(--navy); }
.social--dark a:hover { background: var(--navy); color: #fff; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #0b4aa6 100%); color: #e6efff; padding: 44px 0; }
.cta-band__inner { display: grid; gap: 20px; align-items: center; }
.cta-band__title { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-950); color: #b9c7e2; font-size: .98rem; }
.site-footer a { color: #dfe9f8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.site-footer__logo { width: 170px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.site-footer__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #8ea1c7; margin: 20px 0 10px; }
.site-footer__memberships { display: flex; gap: 10px; }
.site-footer__memberships img { background: #fff; border-radius: 8px; padding: 6px; width: 150px; }
.site-footer__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 12px; }
.site-footer__title a { color: #fff; }
.site-footer__col ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.site-footer .contact-list .icon { color: #8fd0ff; }
.site-footer .social { display: flex; margin-bottom: 0; }
.site-footer__bottom { background: #050f2b; padding: 16px 0; font-size: .9rem; text-align: center; }
.site-footer__bottom p { margin: 0; }

/* ---------- Flotantes: WhatsApp + chat ---------- */
.floating { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: opacity .25s, transform .25s; }
.floating.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.floating__wa, .chat__toggle {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
  transition: transform .2s var(--ease), background-color .2s;
}
.floating__wa { background: var(--wa); width: 66px; height: 66px; }
.floating__wa:hover { background: var(--wa-dark); color: #fff; transform: scale(1.06); }
.floating__wa .icon { width: 36px; height: 36px; }
.chat__toggle { background: var(--navy); width: 50px; height: 50px; }
.chat__toggle:hover { transform: scale(1.06); }
.chat__toggle .icon { width: 24px; height: 24px; }
.chat { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat__panel {
  width: min(360px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 180px));
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; justify-content: space-between; gap: 12px; background: var(--navy); color: #fff; padding: 14px 16px; }
.chat__title { margin: 0; font-family: var(--font-title); font-weight: 500; font-size: 1.05rem; }
.chat__sub { margin: 0; font-size: .82rem; color: #b9d4f5; }
.chat__close { border: 0; background: none; color: #fff; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; }
.chat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.chat__msg { margin: 0; padding: 10px 12px; border-radius: 12px; max-width: 88%; font-size: .96rem; line-height: 1.45; }
.chat__msg--bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.chat__msg--user { background: var(--navy); color: #fff; align-self: flex-end; }
.chat__actions { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chat__actions a { font-size: .88rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--navy); text-decoration: none; background: #fff; }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat__input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; border: 1.5px solid #ccd6e6; border-radius: 999px; }
.chat__input:focus { outline: none; border-color: var(--celeste); }
.chat__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .55s ease var(--reveal-d, 0ms), translate .6s var(--ease) var(--reveal-d, 0ms); }
.js .reveal.is-visible { opacity: 1; translate: none; }

/* Subrayado de títulos que se dibuja */
.js .section__title.reveal::after, .js .reveal .section__title::after { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .25s; }
.js .section__title.reveal.is-visible::after, .js .reveal.is-visible .section__title::after { transform: scaleX(1); }

/* Tarjetas: la línea superior se completa al aparecer */
.js .card.reveal::before { transform: scaleX(0); transition: transform .8s var(--ease) calc(var(--reveal-d, 0ms) + .15s); }
.js .card.reveal.is-visible::before { transform: scaleX(1); }

/* Íconos lineales que se trazan solos (pathLength=1 lo agrega main.js) */
.js .reveal .icon--draw * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) calc(var(--reveal-d, 0ms) + .2s); }
.js .reveal.is-visible .icon--draw * { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .js .reveal .icon--draw * { stroke-dashoffset: 0; }
  .js .section__title.reveal::after, .js .reveal .section__title::after, .js .card.reveal::before { transform: none; }
  .hero__network { display: none; }
  .testimonials { scroll-behavior: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; gap: 20px 32px; padding: 0; }
  .marquee__list[aria-hidden] { display: none; }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 640px) {
  .form-card { padding: 22px 24px; }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .logo-grid--clients { grid-template-columns: repeat(3, 1fr); }
  .logo-grid--all { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .logo-grid--brands li { width: calc((100% - 36px) / 4); }
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .benefit { flex: 0 1 calc((100% - 24px) / 2); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .includes--2, .includes--3 { grid-template-columns: repeat(2, 1fr); }
  .mv { grid-template-columns: 1fr 1fr; }
  .stats { gap: 14px; }
}

/* ==========================================================================
   Escritorio
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 84px; }
  body { font-size: 1.1rem; }
  .section { padding: 88px 0; }
  .section--tight { padding: 56px 0; }
  .brand img { width: 200px; }
  .site-header.is-scrolled .brand img { width: 170px; }

  /* Menú horizontal */
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; opacity: 1; visibility: visible; overflow: visible; padding: 0; background: none; display: flex; align-items: center; gap: 22px; }
  .nav__list { display: flex; gap: 2px; }
  .nav__list > li { border: 0; flex-wrap: nowrap; }
  .nav__link { padding: 10px 10px; font-size: 1rem; position: relative; }
  .nav__link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--celeste); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .sub-toggle { width: 22px; height: 22px; margin-left: -6px; }
  .sub-toggle .icon { width: 16px; height: 16px; }
  .nav__sub {
    display: block; position: absolute; top: 100%; left: 0; min-width: 300px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub, .nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { padding: 9px 12px; border-radius: 8px; }
  .nav__sub a:hover { background: var(--soft); }
  .nav__cta { margin: 0; width: auto; min-height: 44px; padding: .55em 1.3em; white-space: nowrap; }

  /* Portada: ocupa la pantalla (sin el encabezado) y centra columnas y formulario */
  .hero { padding: 32px 0; display: flex; align-items: center; min-height: min(calc(100vh - var(--header-h)), 820px); }
  .hero > .container { width: 100%; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
  .hero__actions .btn { flex: 0 1 auto; }
  .page-hero { padding: 56px 0 64px; }

  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split__media { order: -1; }
  .split--form { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
  .page-hero__row { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .page-hero__row .stats { min-width: 520px; }

  .clients-hero__head { grid-template-columns: 1fr auto; }
  .stats { min-width: 480px; }
  .logo-grid--clients { grid-template-columns: repeat(6, 1fr); }
  .logo-grid--clients li { padding: 18px; }
  .logo-grid--all { grid-template-columns: repeat(6, 1fr); }
  .logo-grid--brands li { width: calc((100% - 60px) / 6); }
  .trust__inner { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "label logos" "btn logos"; gap: 12px 40px; }
  .trust__label { text-align: left; align-self: end; }
  .trust__btn { justify-self: start; align-self: start; }

  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards { gap: 22px; }
  .card--featured { padding: 30px 26px; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .benefits { gap: 32px; }
  .benefit { flex-basis: calc((100% - 96px) / 4); }
  .includes--3 { grid-template-columns: repeat(3, 1fr); }

  .cta-band__inner { grid-template-columns: 1fr auto; }
  .map--wide { aspect-ratio: 16 / 7; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
  .floating { right: 24px; bottom: 24px; }
}

/* Escritorio chico (1024–1199): menú más compacto para que entre en una línea */
@media (min-width: 1024px) and (max-width: 1199px) {
  .brand img, .site-header.is-scrolled .brand img { width: 150px; }
  .nav { gap: 12px; }
  .nav__link { padding: 10px 7px; font-size: .95rem; }
  .nav__link::after { left: 7px; right: 7px; }
  .nav__cta { padding: .5em 1em; font-size: .92rem; }
  .hero__grid { gap: 36px; }
}

/* Celular: botones flotantes más chicos para tapar menos contenido */
@media (max-width: 639px) {
  .benefit { text-align: center; }
  .benefit__icon { margin-left: auto; margin-right: auto; }
  .floating { right: 12px; bottom: 12px; gap: 10px; }
  .floating__wa { width: 54px; height: 54px; }
  .floating__wa .icon { width: 30px; height: 30px; }
  .chat__toggle { width: 44px; height: 44px; }
  .chat__toggle .icon { width: 21px; height: 21px; }
}

@media (min-width: 1280px) {
  .logo-grid--all { grid-template-columns: repeat(8, 1fr); }
}

/* Impresión básica */
@media print {
  .site-header, .floating, .hero__network, .form-card, .cta-band { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Home: acentos en azul fuerte
   ========================================================================== */
/* Contadores en azul */
.page-home .clients-hero .stat {
  background: radial-gradient(140% 120% at 85% 0%, #0d4aa8 0%, var(--navy) 55%, var(--navy-950) 100%);
  border: 0; box-shadow: 0 8px 22px rgba(3, 50, 123, .18);
}
.page-home .clients-hero .stat dt { color: #b9cdeb; }
.page-home .clients-hero .stat dd { color: #fff; }

/* Sección azul con red animada de fondo ("Más soluciones, por área") */
.section--network { position: relative; overflow: hidden; }
.section--network > .container { position: relative; }
.section--navy .area { background: rgba(255, 255, 255, .06); border-color: rgba(143, 208, 255, .22); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.section--navy .area__title { color: #fff; }
.section--navy .area__list a { color: #dfe9f8; }
.section--navy .area__list a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.section--navy .area__list .icon { color: #8fd0ff; }

/* Barra superior azul con datos de contacto (no queda fija) */
.topbar { background: var(--navy-950); color: #cfdcf2; font-size: .88rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 38px; }
.topbar__list { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; margin: 0; color: #cfdcf2; text-decoration: none; white-space: nowrap; }
a.topbar__item:hover { color: #fff; }
.topbar__item .icon { width: 1.05em; height: 1.05em; color: #8fd0ff; }
.topbar__item--place, .topbar__mail { display: none; }
@media (min-width: 700px) { .topbar__mail { display: list-item; } }
@media (min-width: 1024px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__item--place { display: inline-flex; }
}

/* Pantallas grandes: el contenido crece junto con la caja ancha (tipografía y
   espacios en rem). La caja (px) no cambia, así los márgenes se mantienen. */
@media (min-width: 1400px) { html { font-size: 108%; } }
@media (min-width: 1680px) { html { font-size: 115%; } }
