/* ==========================================================================
   AEPSA México · aepsamexico.com
   Hoja de estilos única. Valores tomados del mockup aprobado (plantillas/).
   ========================================================================== */

/* Archivo (autoalojada, variable: wdth 62–125, wght 100–900) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color */
  --c-base: #184653;
  --c-dark: #0F313B;
  --c-accent: #F28C28;
  --c-accent-hover: #F59D45;
  --c-accent-shadow: #B5631A;
  --c-teal: #2A7F8F;
  --c-teal-text: #237482; /* turquesa para texto pequeño: contraste AA sobre fondos claros */
  --c-bg: #F5F2EC;
  --c-ink: #14313A;
  --c-muted: #3E5A63;
  --c-line: #E3DBCD;
  --c-sand: #FDE3CC;
  --c-ice: #E6F1F2;
  --c-ice-2: #DCEFF2;
  --c-wa: #158040; /* verde WhatsApp oscurecido para contraste AA con texto blanco */
  --c-on-dark: #D9E6E8;
  --c-on-dark-2: #C7D7DA;
  /* Tipografía */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-body: 16px;
  --fs-h2: clamp(26px, 3vw, 38px);
  --fs-h1: clamp(32px, 4.2vw, 54px);
  /* Espaciado y radios */
  --wrap: 1240px;
  --gutter: 28px;
  --r-card: 10px 36px 10px 10px;
  --r-card-lg: 10px 48px 10px 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--c-base); }
a:hover { color: var(--c-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.page { width: 100%; min-width: 0; overflow-x: clip; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--c-accent); color: var(--c-dark); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: 48px; padding-bottom: 60px; }
.pg-inicio .sec { padding-top: 56px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 8px; color: var(--c-teal-text); font-weight: 700; font-size: 15px; }
.h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.08; font-weight: 800; font-stretch: 115%; }
.pg-inicio .h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.07; }
.lead { color: var(--c-muted); font-size: 17px; max-width: 640px; }
.desk { display: flex; }
.mob { display: none; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 8px;
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none;
  cursor: pointer; border: 0; transition: transform 120ms ease;
}
.btn:active { transform: translateY(3px); }
.btn-p { background: var(--c-accent); color: var(--c-dark); box-shadow: 0 4px 0 var(--c-accent-shadow); }
.btn-p:hover { background: var(--c-accent-hover); color: var(--c-dark); }
.btn-d { background: var(--c-base); color: #FFFFFF; box-shadow: 0 4px 0 #0A222A; }
.btn-d:hover { background: #1F5A68; color: #FFFFFF; }
.btn-w { background: #FFFFFF; color: var(--c-base); box-shadow: 0 4px 0 #9FB4BA; }
.btn-w:hover { color: var(--c-dark); background: var(--c-bg); }
.btn-wa { background: var(--c-wa); color: #FFFFFF; box-shadow: 0 4px 0 #0E5A2C; }
.btn-wa:hover { background: #12733A; color: #FFFFFF; }
.btn-sm { min-height: 44px; font-size: 15px; }
.btn-round { width: 50px; padding: 0; border-radius: 50%; }
.car-btns { display: flex; gap: 8px; align-items: center; }

/* --------------------------------------------------------------------------
   Barra superior, encabezado y menú móvil
   -------------------------------------------------------------------------- */
.topbar { background: var(--c-dark); color: var(--c-on-dark-2); font-size: 13px; }
.topbar-inner { width: 100%; padding-top: 7px; padding-bottom: 7px; display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: space-between; align-items: center; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a { text-decoration: none; }
.tb-strong { color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.tb-soft { color: var(--c-on-dark-2); }
.tb-icon { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #FFFFFF; text-decoration: underline; }

.site-header { background: var(--c-base); position: relative; z-index: 6; }
.header-inner { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: 16px 36px; }
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 54px; width: auto; display: block; }
.nav-main { flex: 1 1 auto; gap: 4px 28px; font-weight: 600; font-size: 16px; flex-wrap: wrap; }
.nav-main a { text-decoration: none; color: #FFFFFF; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-main a:hover { color: #F7B57A; }
.nav-main a.is-on { color: #F7B57A; border-bottom-color: var(--c-accent); }
.header-cta { gap: 10px; flex: none; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #FFFFFF; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.nav-drop-btn svg { transition: transform 200ms ease; }
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: #F7B57A; }
.nav-drop-btn.is-on { color: #F7B57A; border-bottom-color: var(--c-accent); }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-panel { position: absolute; left: -16px; top: 100%; z-index: 20; min-width: 290px; padding: 8px; background: #FFFFFF; border-radius: 10px 28px 10px 10px; border-top: 4px solid var(--c-accent); box-shadow: 0 18px 40px rgba(6, 24, 30, 0.35); display: none; }
.nav-drop:hover .nav-drop-panel, .nav-drop.is-open .nav-drop-panel { display: block; }
.nav-drop:hover .nav-drop-btn svg { transform: rotate(180deg); }
.nav-main .nav-drop-panel a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--c-ink); text-decoration: none; }
.nav-main .nav-drop-panel a:hover, .nav-main .nav-drop-panel a[aria-current] { background: var(--c-bg); color: var(--c-base); }
.nav-drop-t { font-weight: 800; font-size: 16px; }
.nav-drop-s { font-weight: 500; font-size: 13px; color: var(--c-muted); }
/* Menú de Servicios en columnas (escritorio) */
.nav-mega { left: -24px; width: min(940px, calc(100vw - 260px)); padding: 18px 18px 14px; border-radius: 10px 36px 10px 10px; }
.nav-mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; }
.nav-mega-col { min-width: 0; }
.nav-main .nav-mega a.nav-mega-head { flex-direction: row; align-items: center; gap: 10px; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 2px solid var(--c-sand); border-radius: 8px 8px 0 0; font-weight: 800; font-size: 16px; color: var(--c-ink); }
.nav-mega-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-bg); display: inline-flex; align-items: center; justify-content: center; }
.nav-mega ul { list-style: none; margin: 0; padding: 0; }
.nav-main .nav-mega ul a { padding: 7px 8px; font-weight: 600; font-size: 15px; color: var(--c-muted); }
.nav-main .nav-mega ul a:hover, .nav-main .nav-mega ul a[aria-current] { color: var(--c-base); }
.nav-main .nav-mega a.nav-mega-all { flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--c-base); color: #FFFFFF; font-weight: 800; font-size: 15px; }
.nav-main .nav-mega a.nav-mega-all:hover, .nav-main .nav-mega a.nav-mega-all[aria-current] { background: var(--c-dark); color: #FFFFFF; }

@media (max-width: 1180px) {
  .nav-mega { width: min(640px, calc(100vw - 230px)); }
  .nav-mega-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
}

/* Acordeón de Servicios (menú móvil) */
.mnav-acc { border-bottom: 1px solid #1F4652; }
.mnav-acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 0; border: 0; background: transparent; color: #FFFFFF; font: inherit; font-weight: 700; font-size: 18px; text-align: left; cursor: pointer; }
.mnav-acc-btn.is-on { color: #F7B57A; }
.mnav-acc-btn .chev { flex: none; transition: transform 200ms ease; }
.mnav-acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mnav-acc-body { padding: 0 0 12px; }
.mnav-acc-2 { margin-left: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mnav-acc-2:last-of-type { border-bottom: 0; }
.mnav-acc-2 > .mnav-acc-btn { min-height: 48px; font-size: 16px; color: #D9E6E8; }
.mnav-acc-2 > .mnav-acc-btn[aria-expanded="true"] { color: #F7B57A; }
.mnav-line { display: inline-flex; align-items: center; gap: 10px; }
.mnav-line .nav-mega-ico { width: 30px; height: 30px; background: #FFFFFF; }
.mnav-acc-2 .mnav-acc-body { padding: 0 0 10px 40px; display: flex; flex-direction: column; }
.mnav-acc-2 .mnav-acc-body[hidden] { display: none; }
.mnav-acc-2 .mnav-acc-body a { color: #C7D7DA; text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 0 9px 12px; border-left: 2px solid #2A5D6A; }
.mnav-acc-2 .mnav-acc-body a.is-on, .mnav-acc-2 .mnav-acc-body a[aria-current] { color: #F7B57A; border-left-color: var(--c-accent); }
.mnav-acc-2 .mnav-acc-body a.mnav-line-all { color: #F9C795; font-weight: 700; }
.mnav-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 48px; border-radius: 999px; background: var(--c-accent); color: var(--c-dark); font-weight: 800; font-size: 16px; text-decoration: none; }

.mnav-group { display: flex; flex-direction: column; border-bottom: 1px solid #1F4652; padding: 14px 0 8px; }
.mnav-label { color: #FFFFFF; font-weight: 700; font-size: 18px; }
.mnav-label.is-on { color: #F7B57A; }
.mnav-group a { color: #D9E6E8; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0 10px 16px; border-left: 3px solid var(--c-accent); margin-top: 6px; }
.mnav-group a.is-on { color: #F7B57A; }

.menu-btn { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #FFFFFF; background: transparent; color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; }
.header-line { display: block; width: 100%; height: 8px; }
.mnav { background: var(--c-dark); padding: 8px 18px 20px; display: flex; flex-direction: column; border-radius: 0 0 24px 24px; }
.mnav > a { color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 18px; padding: 14px 0; border-bottom: 1px solid #1F4652; }
.mnav > a.is-on { color: #F7B57A; }
.mnav-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 15px; }
.mnav-contact a { color: #F9C795; }

/* --------------------------------------------------------------------------
   Encabezados de página (hero)
   -------------------------------------------------------------------------- */
.hero { position: relative; background: linear-gradient(180deg, #0F313B 0%, #184653 100%); color: #FFFFFF; overflow: hidden; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; display: block; }
.crumbs { font-size: 14px; color: #9FB4BA; }
.crumbs a { color: var(--c-on-dark-2); }
.crumbs a:hover { color: #FFFFFF; }
.crumbs [aria-current] { color: #F7B57A; }
.pill { margin: 0 0 12px; display: inline-flex; padding: 5px 14px; border-radius: 999px; background: var(--c-accent); color: var(--c-dark); font-size: 13px; font-weight: 800; }
.h1-hero { margin: 0; font-size: var(--fs-h1); line-height: 1.04; font-weight: 800; font-stretch: 116%; }
.hero-lead { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--c-on-dark); max-width: 560px; }
.hero-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.deco { position: absolute; border-radius: 50%; pointer-events: none; }

/* --------------------------------------------------------------------------
   Transiciones curvas entre secciones
   -------------------------------------------------------------------------- */
.dv-wrap { line-height: 0; }
.dv { display: block; width: 100%; height: 64px; }

/* --------------------------------------------------------------------------
   Imágenes y marcos curvos
   -------------------------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--c-base); }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-label { position: absolute; right: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 49, 59, 0.6); color: #FFFFFF; font-size: 11px; font-weight: 600; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Formulario unificado
   -------------------------------------------------------------------------- */
.form-card {
  min-width: 0; background: #FFFFFF; color: var(--c-ink); padding: 24px;
  border-radius: 10px 48px 10px 10px; border-top: 5px solid var(--c-accent);
  scroll-margin-top: 20px; position: relative;
}
.form-title { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 110%; }
.form-intro { margin: 4px 0 14px; font-size: 14px; color: var(--c-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fld-full { grid-column: 1 / -1; }
.fld label { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: 15px; color: var(--c-ink); background: var(--c-bg);
  border: 1px solid #CFC7B8; border-radius: 6px; padding: 9px 11px; min-height: 44px; width: 100%;
}
.fld textarea { min-height: 62px; resize: vertical; }
.fld [aria-invalid="true"] { border-color: #C0392B; background: #FFF4F2; }
.form-submit { margin-top: 16px; width: 100%; }
.form-submit[disabled] { opacity: .7; cursor: progress; }
.form-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #FFF4F2; color: #8E2A1E; font-size: 14px; font-weight: 600; }
.form-ok { position: absolute; inset: 0; background: #FFFFFF; border-radius: inherit; display: flex; gap: 14px; align-items: center; justify-content: center; padding: 28px; text-align: left; font-size: 17px; }
.form-ok[hidden] { display: none; }
.form-ok-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c-wa); display: flex; align-items: center; justify-content: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Componentes de contenido
   -------------------------------------------------------------------------- */
.sys {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 8px 12px; border-radius: 8px; background: var(--c-bg);
  border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
.sys:hover { border-color: var(--c-base); color: var(--c-base); }
.sys-w { background: #FFFFFF; min-height: 48px; padding: 10px 14px; }
.sys-sub { display: block; font-weight: 500; font-size: 14px; }
.card { background: #FFFFFF; border-radius: 10px 48px 10px 10px; box-shadow: 0 8px 24px rgba(15, 49, 59, 0.06); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tile { background: #FFFFFF; border-radius: var(--r-card); padding: 20px; }
.tile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.tile-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--c-base); display: flex; align-items: center; justify-content: center; }
.tile-t { font-weight: 800; font-size: 17px; }
.tile-d { font-size: 15px; color: var(--c-muted); }
.grid-auto { display: grid; gap: 12px; }
.prob {
  display: flex; flex-direction: column; gap: 12px; min-height: 200px; padding: 20px;
  border-radius: 10px 48px 10px 10px; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF; text-decoration: none; transition: background 200ms ease, border-color 200ms ease;
}
.prob:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-dark); }
.need {
  display: flex; flex-direction: column; gap: 10px; justify-content: space-between; min-height: 132px; padding: 18px;
  border-radius: 10px 36px 10px 10px; background: var(--c-bg); border: 2px solid transparent; text-decoration: none; color: var(--c-ink);
  transition: border-color 200ms ease;
}
.need:hover { border-color: var(--c-accent); color: var(--c-ink); }
.step-pill { background: var(--c-bg); border-radius: 999px 24px 24px 999px; padding: 14px 18px 14px 14px; display: flex; gap: 14px; align-items: center; }
.step-num { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--c-base); color: var(--c-accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.row-pill { display: flex; gap: 12px; align-items: center; border-radius: 999px 14px 14px 999px; padding: 8px 16px 8px 8px; }
.num-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent); color: var(--c-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* Tablas de datos técnicos */
.tech { border-collapse: collapse; width: 100%; }
.tech th, .tech td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--c-line); vertical-align: top; font-size: 15px; }
.tech th { width: 38%; font-weight: 700; color: var(--c-ink); }
.tech td { color: var(--c-muted); }
.tech tr:last-child th, .tech tr:last-child td { border-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tabla comparativa de los hubs */
.cmp-scroll { overflow-x: auto; border-radius: 10px 36px 10px 10px; border: 1px solid var(--c-line); }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 780px; background: #FFFFFF; }
.cmp th, .cmp td { text-align: left; padding: 14px; border-top: 1px solid var(--c-line); font-size: 15px; vertical-align: middle; background: #FFFFFF; }
.cmp thead th { background: var(--c-base); color: #FFFFFF; font-size: 14px; font-weight: 700; border-top: 0; }
.cmp tbody th { font-weight: 800; position: sticky; left: 0; z-index: 1; box-shadow: 4px 0 8px rgba(15, 49, 59, 0.05); }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; }
.cmp td.surf { color: var(--c-muted); }
.cmp .cell { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cmp .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }

/* Preguntas frecuentes */
.faq-wrap { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.faq-side { flex: 1 1 280px; max-width: 440px; }
.faq-side .h2, .pg-inicio .faq-side .h2 { font-size: clamp(26px, 2.5vw, 34px); overflow-wrap: break-word; hyphens: auto; }
.faq-list { flex: 2 1 480px; min-width: 0; max-width: 760px; border-top: 1px solid #DCD4C6; }
details { border-bottom: 1px solid #DCD4C6; }
details summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 0; font-weight: 700; font-size: 18px; position: relative; font-stretch: 105%; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: 13px; width: 32px; height: 32px; border-radius: 50%; background: var(--c-sand); color: var(--c-base); font-size: 22px; line-height: 32px; text-align: center; }
details[open] summary::after { content: '–'; background: var(--c-base); color: #FFFFFF; }
.faq-a { margin: 0 0 20px; color: var(--c-muted); }

/* Carruseles de proyectos */
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.proj-card { background: #FFFFFF; border-radius: 10px 48px 10px 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(15, 49, 59, 0.08); }
.proj-media { position: relative; border-radius: 0 0 80px 0; overflow: hidden; background: var(--c-base); }
.proj-body { padding: 14px 18px 18px; }
.proj-body h3 { margin: 10px 0 4px; font-size: 18px; font-weight: 700; }
.proj-body p { margin: 0; font-size: 14px; color: var(--c-muted); }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-ilus { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--c-muted); font-size: 12px; font-weight: 700; }

/* Marquesina de clientes */
@keyframes mq { to { transform: translateX(-50%); } }
.mqwrap { overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.mq { display: flex; gap: 14px; width: max-content; animation: mq 46s linear infinite; }
.mq.rev { animation-direction: reverse; }
.mqwrap:hover .mq { animation-play-state: paused; }
.mq-pill { flex: none; width: 190px; height: 76px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; text-align: center; padding: 0 16px; }

/* Llamado a la acción */
.cta-box { position: relative; overflow: hidden; border-radius: 10px 120px 10px 10px; background: linear-gradient(120deg, #184653 0%, #1F5A68 60%, #2A7F8F 100%); color: #FFFFFF; }
.cta-dot { position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: var(--c-accent); }
.cta-inner { position: relative; padding: 40px 36px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }

/* Navegación interna de las páginas de sistema */
.subnav-bar { position: sticky; top: 0; z-index: 5; background: #FFFFFF; border-bottom: 1px solid var(--c-line); box-shadow: 0 6px 16px rgba(15, 49, 59, 0.06); }
.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--c-base); text-decoration: none; font-weight: 700; font-size: 14px; background: var(--c-bg); }
.subnav a:hover, .subnav a.is-on { background: var(--c-base); color: #FFFFFF; }
.anchor { scroll-margin-top: 70px; }

/* Carrusel del inicio */
@keyframes bar { from { width: 0; } to { width: 100%; } }
.bar { display: block; height: 4px; background: var(--c-accent); animation: bar 6.5s linear forwards; }
.slide { grid-area: 1 / 1; transition: opacity 700ms ease, transform 700ms ease; }
.slide[aria-hidden="true"] { opacity: 0; visibility: hidden; transform: translateY(12px); }
.slide-bg { position: absolute; inset: 0; transition: opacity 1100ms ease; }
.slide-bg[data-off] { opacity: 0; }
.slide-btn { flex: 1 1 0; max-width: 200px; min-height: 44px; padding: 0 0 8px; border: 0; background: transparent; color: #A9C2C7; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.slide-btn[aria-current="true"] { color: #FFFFFF; }
.slide-btn .track-bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }

/* Pestañas de servicios del inicio */
.svc-tab { text-align: left; cursor: pointer; font: inherit; padding: 14px; border-radius: 999px 18px 18px 999px; border: 2px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); color: #FFFFFF; display: flex; gap: 12px; align-items: center; min-height: 76px; transition: background 200ms ease; }
.svc-tab[aria-selected="true"] { background: var(--c-accent); color: var(--c-dark); border-color: var(--c-accent); }
.svc-ico { flex: none; width: 50px; height: 50px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.svc-acc { border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.18); }
.svc-acc.is-open { background: var(--c-accent); border-color: var(--c-accent); }
.svc-acc > button { width: 100%; text-align: left; cursor: pointer; font: inherit; padding: 12px 14px; border: 0; background: transparent; color: #FFFFFF; display: flex; gap: 12px; align-items: center; min-height: 64px; }
.svc-acc.is-open > button { color: var(--c-dark); }
.svc-acc .chev { transition: transform 200ms ease; }
.svc-acc.is-open .chev { transform: rotate(180deg); }

/* Mapa de cobertura */
.map-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.map-tile { aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(7px, 0.75vw, 10px); font-weight: 700; position: relative; transition: background 300ms ease; }
.map-tile[data-state="sel"] { background: #FFFFFF; color: var(--c-base); }
.map-tile[data-state="other"] { background: var(--c-accent); color: var(--c-dark); }
.map-tile[data-state="eval"] { background: rgba(255, 255, 255, 0.16); color: #B9CDD1; }
.map-office { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-accent); border: 3px solid #FFFFFF; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); margin-bottom: 18px; }
.seg button { min-height: 46px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; border: 0; background: transparent; color: #FFFFFF; }
.seg button[aria-pressed="true"] { background: #FFFFFF; color: var(--c-base); }

/* Filtros de Proyectos */
.filter-btn { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; border: 2px solid #CFC7B8; background: #FFFFFF; color: var(--c-base); }
.filter-btn[aria-pressed="true"] { background: var(--c-base); color: #FFFFFF; border-color: var(--c-base); }

/* Pie de página */
.ft { background: var(--c-dark); color: var(--c-on-dark-2); font-size: 15px; }
.ft a { color: var(--c-on-dark-2); text-decoration: none; }
.ft a:hover { color: #FFFFFF; text-decoration: underline; }
.ft-grid { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.ft-h { margin: 0 0 10px; font-size: 15px; color: #FFFFFF; }
.ft-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ft-bottom { padding-top: 14px; padding-bottom: 22px; border-top: 1px solid #1F4652; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

/* Barra fija inferior en celular */
.mbar { position: sticky; bottom: 0; z-index: 10; background: var(--c-dark); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25); border-radius: 20px 20px 0 0; }
.mbar .btn { flex: 1; min-height: 48px; padding: 0 8px; font-size: 14px; box-shadow: none; border-radius: 999px; }

/* Botón para volver arriba */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 15; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #FFFFFF; background: var(--c-base); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(6, 24, 30, 0.3); opacity: 0; transform: translateY(12px); transition: opacity 200ms ease, transform 200ms ease, background 200ms ease; }
.to-top:not(.is-visible) { pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--c-accent); color: var(--c-dark); }
@media (max-width: 900px) {
  /* Encima de la barra fija inferior (Llamar · WhatsApp · Cotizar) */
  .to-top { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
}

/* Legal */
.legal-toc { flex: 0 0 280px; position: sticky; top: 20px; flex-direction: column; gap: 2px; background: var(--c-bg); border-radius: 10px 40px 10px 10px; padding: 18px; }
.legal-toc a { text-decoration: none; font-size: 15px; padding: 7px 10px; border-radius: 6px; color: var(--c-base); }
.legal-toc a:hover { background: #FFFFFF; }

/* --------------------------------------------------------------------------
   Celular (≤ 900 px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .desk { display: none !important; }
  .mob { display: flex !important; }
  .sec, .pg-inicio .sec { padding-top: 32px; padding-bottom: 40px; }
  .pg-inicio .sec { padding-top: 36px; padding-bottom: 44px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .dv { height: 34px; }
  .form-hero { flex-basis: 100% !important; }
  .stack { flex-direction: column !important; }
  .band { flex-direction: column !important; }
  .prob { min-height: 0; }
  .tech th, .tech td { padding: 12px 10px; font-size: 14px; }
  .tech th { width: 44%; }
  .hero-pad { padding-top: 28px !important; padding-bottom: 40px !important; }
  .hero-min { min-height: 0 !important; }
  .slide-ctl { position: relative !important; bottom: auto !important; margin-top: 8px; padding-bottom: 56px; }
  .tab-sub { display: none !important; }
  .cta-inner { padding: 30px 22px; }
  .cta-box { border-radius: 10px 60px 10px 10px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .track { scroll-behavior: auto; }
  .bar { animation: none; width: 100%; }
  .mq { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
