/* ==========================================================
   EVO Tecnología en Seguridad — Landing page
   Estilos basados en el Manual de Marca v1.0
   ========================================================== */

/* ---------- 1. Variables ---------- */
:root {
  /* Colores primarios */
  --navy: #0B1F4D;          /* Azul Marino EVO (dominante) */
  --navy-deep: #07122B;     /* Inicio degradado Noche EVO */
  --blue: #1D3FA3;          /* Azul EVO */
  --electric: #1F8BFF;      /* Azul Eléctrico (solo acentos) */
  /* Secundarios */
  --black: #0A0E17;         /* Negro Técnico */
  --white: #FFFFFF;
  --steel: #7B828E;         /* Gris Acero */
  --silver: #C9CED6;        /* Plata */
  /* Derivados de interfaz */
  --ink: #0B1F4D;
  --text: #3A4560;
  --muted: #6B7385;
  --line: #E1E5EC;
  --tint: #F2F4F8;
  --wa: #25D366;
  --error: #D93A3A;

  /* Degradados oficiales */
  --g-night: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  --g-pulse: linear-gradient(90deg, var(--blue) 0%, var(--electric) 100%);
  --g-silver: linear-gradient(180deg, #FFFFFF 0%, var(--silver) 100%);

  /* Tipografía */
  --f-main: "Montserrat", Arial, sans-serif;
  --f-num: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  --fs-h1: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1rem, .95rem + .3vw, 1.15rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;

  /* Espaciado */
  --s-1: .5rem; --s-2: .75rem; --s-3: 1rem; --s-4: 1.5rem;
  --s-5: 2rem; --s-6: 3rem; --s-7: 4.5rem; --s-8: 6rem;
  --section-y: clamp(4rem, 3rem + 4vw, 6.5rem);

  /* Radios (jerarquía: pequeño para controles, mayor para contenedores) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(11, 31, 77, .06), 0 2px 8px rgba(11, 31, 77, .05);
  --sh-md: 0 10px 30px -12px rgba(11, 31, 77, .25);
  --sh-lg: 0 30px 60px -25px rgba(7, 18, 43, .55);
  --glow: 0 0 0 1px rgba(31, 139, 255, .35), 0 8px 28px -8px rgba(31, 139, 255, .55);

  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-main);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.placeholder { color: var(--steel); font-style: italic; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--electric); color: var(--white); padding: .6rem 1rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-weight: 800; font-size: .9rem; letter-spacing: .02em; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--primary { background: var(--electric); color: var(--white); box-shadow: 0 6px 18px -8px rgba(31, 139, 255, .8); }
.btn--primary:hover { background: #3A99FF; transform: translateY(-2px); box-shadow: var(--glow); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(201, 206, 214, .45); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--lg { min-height: 54px; padding: .9rem 1.6rem; font-size: .95rem; }
.btn--xl { min-height: 60px; padding: 1rem 2rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.btn--block { width: 100%; }

/* ---------- 4. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, height .3s, backdrop-filter .3s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__logo img { width: auto; height: 46px; transition: height .3s var(--ease); }
.header.is-scrolled {
  --header-h: 64px;
  background: rgba(7, 18, 43, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(201, 206, 214, .12), 0 10px 30px -18px rgba(0, 0, 0, .7);
}
.header.is-scrolled .header__logo img { height: 38px; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link {
  position: relative; color: rgba(255, 255, 255, .82); font-size: .875rem; font-weight: 600; padding: .4rem 0;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--electric); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding: .6rem 1.1rem; font-size: .82rem; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(201, 206, 214, .3); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04); cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--g-night);
  color: var(--white);
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3.5rem, 7vw, 6rem);
}
/* Retícula triangular derivada del símbolo, 6% */
.hero__pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image:
    linear-gradient(60deg, transparent 49.4%, var(--silver) 49.6%, var(--silver) 50.4%, transparent 50.6%),
    linear-gradient(-60deg, transparent 49.4%, var(--silver) 49.6%, var(--silver) 50.4%, transparent 50.6%),
    linear-gradient(0deg, transparent 49.4%, var(--silver) 49.6%, var(--silver) 50.4%, transparent 50.6%);
  background-size: 80px 138.5px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 75% 40%, #000 20%, transparent 75%);
}
.hero::after { /* brillo azul controlado */
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -12vw; top: 5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(31, 139, 255, .18) 0%, transparent 65%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-num); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em;
  color: var(--silver); margin-bottom: 1.1rem;
}
.hero__kicker::before { content: ""; width: 28px; height: 2px; background: var(--electric); }
.hero__title {
  color: var(--white); font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.015em; line-height: 1.08;
  max-width: 15ch;
}
.hero__text { font-size: var(--fs-lead); color: rgba(255, 255, 255, .78); margin-top: 1.25rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero__checks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; }
.hero__checks li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--silver); }
.hero__checks .icon { color: var(--electric); stroke-width: 2.4; width: 1.1em; height: 1.1em; }

/* Composición visual */
.hero__visual { position: relative; min-height: 470px; }
.tech-frame { position: relative; }
.tech-frame__c { position: absolute; width: 22px; height: 22px; border-color: var(--electric); border-style: solid; border-width: 0; z-index: 2; pointer-events: none; }
.tech-frame__c.tl { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; }
.tech-frame__c.tr { top: -10px; right: -10px; border-top-width: 2px; border-right-width: 2px; }
.tech-frame__c.bl { bottom: -10px; left: -10px; border-bottom-width: 2px; border-left-width: 2px; }
.tech-frame__c.br { bottom: -10px; right: -10px; border-bottom-width: 2px; border-right-width: 2px; }

.hero__kit {
  position: absolute; left: 0; right: 8%; top: 13%;
  border-radius: var(--r-md); background: var(--black);
  box-shadow: var(--sh-lg);
}
.hero__kit img { border-radius: var(--r-md); width: 100%; }
.hero__kit-label {
  position: absolute; left: 14px; bottom: -16px; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--navy); border: 1px solid rgba(201, 206, 214, .2);
  padding: .4rem .75rem; border-radius: var(--r-sm);
  font-family: var(--f-num); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero__kit-label .icon { color: var(--electric); }

.phone {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  width: min(176px, 36%); aspect-ratio: 9 / 18.5;
  background: var(--black); border-radius: 30px; padding: 12px 9px;
  border: 2px solid #2A3040;
  box-shadow: inset 0 0 0 1px rgba(201, 206, 214, .15), var(--sh-lg), 0 0 60px -20px rgba(31, 139, 255, .6);
  display: flex; flex-direction: column;
}
.phone__notch { width: 34%; height: 14px; margin: 0 auto 8px; border-radius: 10px; background: #000; }
.phone__bar { display: flex; justify-content: space-between; align-items: center; font-size: .66rem; font-weight: 700; padding: 0 4px 8px; }
.live { display: inline-flex; align-items: center; gap: 4px; color: #7CE3A0; font-weight: 600; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #3DDC84; animation: blink 2s infinite; }
.phone__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cam {
  position: relative; border-radius: 8px; overflow: hidden;
  background: #1a2233;
}
.cam img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.9);
}
.cam:nth-child(4) img {
  filter: contrast(1.1) saturate(0.88) brightness(1.12);
}
.cam span {
  position: absolute; z-index: 1; left: 5px; bottom: 5px; font-size: .55rem; font-weight: 700;
  background: rgba(0, 0, 0, .55); padding: 1px 5px; border-radius: 4px;
}
.phone__tabs { display: flex; justify-content: space-around; padding-top: 9px; color: var(--steel); }
.phone__tabs .icon:first-child { color: var(--electric); }
.phone__tabs .icon { width: 16px; height: 16px; }

.chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .85rem; border-radius: var(--r-pill);
  background: rgba(11, 31, 77, .72);
  border: 1px solid rgba(201, 206, 214, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}
.chip .icon { color: var(--electric); width: 1.1em; height: 1.1em; }
.chip--a { left: 4%; top: 0; }
.chip--b { left: 6%; bottom: 16%; }
.hero__lines { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; height: 120px; z-index: 0; opacity: .5; }
.hero__lines path { fill: none; stroke: var(--electric); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero__lines circle { fill: var(--electric); }

/* Entrada orquestada del hero (único momento de movimiento en carga) */
.hero__content > *, .hero__kit, .phone, .chip {
  animation: rise .8s var(--ease) both;
}
.hero__content > :nth-child(2) { animation-delay: .06s; }
.hero__content > :nth-child(3) { animation-delay: .12s; }
.hero__content > :nth-child(4) { animation-delay: .18s; }
.hero__content > :nth-child(5) { animation-delay: .24s; }
.hero__kit { animation-delay: .2s; }
.phone { animation-delay: .38s; }
.chip--a { animation-delay: .6s; }
.chip--b { animation-delay: .72s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- 6. Barra de confianza ---------- */
.trust { background: var(--navy); color: var(--white); border-top: 1px solid rgba(201, 206, 214, .12); }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1.4rem 1rem; font-weight: 700; font-size: .95rem;
}
.trust__item + .trust__item { border-left: 1px solid rgba(201, 206, 214, .14); }
.trust__item .icon { width: 28px; height: 28px; color: var(--electric); }

/* ---------- 7. Secciones generales ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--g-night); color: var(--white); overflow: hidden; }
.section--dark .section__title { color: var(--white); }
.section--dark .section__sub { color: rgba(255, 255, 255, .75); }
.section__head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section__title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.01em; }
.section__title::after { /* línea de marca bajo cada título */
  content: ""; display: block; width: 56px; height: 4px; margin-top: 1rem; border-radius: 2px; background: var(--electric);
}
.section__sub { margin-top: 1rem; font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; }

/* ---------- 8. Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.service {
  grid-column: span 2;
  position: relative; padding: 1.75rem; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service--wide { grid-column: span 3; background: var(--g-silver); }
.service::before { /* línea técnica superior que aparece en hover */
  content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: -1px; height: 2px;
  background: var(--g-pulse); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: rgba(31, 139, 255, .35); box-shadow: var(--sh-md); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-md);
  background: var(--navy); color: var(--white); margin-bottom: 1.25rem;
  transition: background-color .3s;
}
.service:hover .service__icon { background: var(--blue); }
.service__icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: var(--fs-h3); font-weight: 700; margin-bottom: .5rem; }
.service p { font-size: .95rem; color: var(--muted); }

/* ---------- 9. Paquetes ---------- */
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pkg {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pkg:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pkg__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--electric); color: var(--white);
  font-family: var(--f-num); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 6px;
}
.pkg__badge:empty { display: none; }
.pkg__media { background: var(--black); aspect-ratio: 3 / 1; overflow: hidden; }
.pkg__media--light { background: #eef0f3; }
.pkg__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pkg:hover .pkg__media img { transform: scale(1.03); }
.pkg__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.pkg__type { font-family: var(--f-num); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.pkg__title { font-size: 1.3rem; font-weight: 800; margin-top: .25rem; }
.pkg__list { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; margin: 1.1rem 0 1.4rem; }
.pkg__list li { display: flex; gap: .45rem; font-size: .88rem; line-height: 1.4; }
.pkg__list .icon { color: var(--electric); stroke-width: 2.4; width: 1em; height: 1em; margin-top: .15em; }
.pkg__price {
  margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem;
  background: var(--navy); color: var(--white); border-radius: var(--r-md); padding: .6rem 1.1rem;
}
.pkg__price-label { font-family: var(--f-num); font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); }
.pkg__price-value { font-family: var(--f-num); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: .01em; }
.pkg__old { font-family: var(--f-num); font-weight: 600; font-size: 1.2rem; color: var(--steel); }
.pkg__promo, .pkg__note { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.pkg .btn { margin-top: 1rem; }
[hidden] { display: none !important; }

/* ---------- 10. Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; counter-reset: none; }
.steps::before { /* línea tecnológica que conecta los pasos */
  content: ""; position: absolute; left: 12%; right: 12%; top: 58px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--electric));
  transform-origin: left; transform: scaleX(var(--progress, 1));
  transition: transform 1.2s var(--ease);
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step__num { display: block; font-family: var(--f-num); font-weight: 800; font-size: 1rem; letter-spacing: .1em; color: var(--electric); margin-bottom: .5rem; }
.step__icon {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 1.25rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--electric);
  box-shadow: 0 0 0 8px var(--white);
}
.step__icon .icon { width: 28px; height: 28px; }
.step h3 { font-size: var(--fs-h3); font-weight: 800; }
.step p { margin-top: .4rem; font-size: .92rem; color: var(--muted); max-width: 24ch; margin-inline: auto; }

/* ---------- 11. Monitoreo (flujo) ---------- */
.monitor .hero__pattern { -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 50%, #000 15%, transparent 70%); }
.monitor__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.monitor__feats { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.monitor__feats li {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem;
  padding: .55rem 1rem; border-radius: var(--r-pill); border: 1px solid rgba(201, 206, 214, .25); background: rgba(255, 255, 255, .04);
}
.monitor__feats .icon { color: var(--electric); }

.flow {
  position: relative; display: flex; justify-content: space-between; gap: .5rem;
  padding: 3rem 1.75rem; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(201, 206, 214, .16);
}
.flow__track {
  position: absolute; left: calc(1.75rem + 38px); right: calc(1.75rem + 38px); top: calc(3rem + 38px); height: 2px;
  background: repeating-linear-gradient(90deg, rgba(201, 206, 214, .45) 0 6px, transparent 6px 12px);
}
.flow__pulse {
  position: absolute; top: -3px; left: 0; width: 60px; height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, transparent, var(--electric));
  filter: drop-shadow(0 0 6px var(--electric));
  opacity: 0;
}
.flow.is-live .flow__pulse { animation: travel 3.2s var(--ease) infinite; }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 60px); opacity: 0; }
}
.flow__node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .75rem; flex: 1; text-align: center; }
.flow__icon {
  width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px;
  background: var(--navy); border: 1px solid rgba(201, 206, 214, .28); color: var(--silver);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .8);
  transition: color .4s, border-color .4s, box-shadow .4s;
  transition-delay: calc(var(--i) * .18s);
}
.flow__icon .icon { width: 30px; height: 30px; }
.flow.is-live .flow__icon { color: var(--white); border-color: rgba(31, 139, 255, .55); }
.flow__node--end .flow__icon { background: var(--g-pulse); color: var(--white); border-color: transparent; }
.flow.is-live .flow__node--end .flow__icon { box-shadow: 0 0 0 6px rgba(31, 139, 255, .15), 0 12px 30px -10px rgba(31, 139, 255, .8); }
.flow__node span { font-family: var(--f-num); font-weight: 700; font-size: 1rem; letter-spacing: .04em; color: var(--silver); }

/* ---------- 12. Control de acceso ---------- */
.access__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.tech-frame--dark { border-radius: var(--r-lg); background: #eef0f3; box-shadow: var(--sh-md); }
.tech-frame--dark img { border-radius: var(--r-lg); width: 100%; }
.access__list { display: grid; gap: .25rem; margin: 1.75rem 0 2rem; }
.access__list li { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.access__list li:last-child { border-bottom: 0; }
.access__list .icon { width: 42px; height: 42px; padding: 9px; border-radius: var(--r-md); background: var(--tint); color: var(--blue); }
.access__list strong { display: block; color: var(--ink); font-weight: 700; }
.access__list span { font-size: .9rem; color: var(--muted); }

/* ---------- 13. ¿Por qué EVO? ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: stretch; }
.why__quote {
  margin: 0; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--r-lg);
  background: var(--g-night); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.why__quote::after { /* línea técnica a 45° */
  content: ""; position: absolute; right: -20px; top: 52px; width: 45%; height: 2px; background: var(--electric); opacity: .6;
  box-shadow: -60px 14px 0 0 rgba(201, 206, 214, .25);
}
.why__quote .icon { width: 44px; height: 44px; color: var(--electric); }
.why__quote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); font-weight: 700; line-height: 1.35; color: var(--white); max-width: 22ch; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why__list li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line);
}
.why__list .icon { width: 26px; height: 26px; color: var(--electric); margin-top: 2px; }
.why__list h3 { font-size: 1rem; font-weight: 700; }
.why__list p { font-size: .88rem; color: var(--muted); margin-top: .15rem; }

/* ---------- 14. Hogar / Negocio ---------- */
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.segment {
  padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--r-lg);
  background: var(--g-silver); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.segment__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.segment__icon { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--navy); color: var(--white); }
.segment__icon .icon { width: 28px; height: 28px; }
.segment h3 { font-size: 1.6rem; font-weight: 800; }
.segment > p { font-size: 1.02rem; color: var(--text); max-width: 42ch; }
.segment ul { display: grid; gap: .65rem; margin: 1.5rem 0 1.75rem; }
.segment li { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; color: var(--ink); }
.segment li .icon { color: var(--blue); }
.segment__link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9rem; color: var(--blue);
  padding-bottom: 2px; border-bottom: 2px solid currentColor;
}
.segment__link:hover { color: var(--electric); }
.segment--dark { background: var(--g-night); border-color: transparent; }
.segment--dark h3, .segment--dark li { color: var(--white); }
.segment--dark > p { color: rgba(255, 255, 255, .78); }
.segment--dark li .icon { color: var(--electric); }
.segment--dark .segment__icon { background: var(--g-pulse); }
.segment--dark .segment__link { color: var(--white); }
.segment--dark .segment__link:hover { color: var(--electric); }

/* ---------- 15. CTA ---------- */
.cta { padding-block: var(--section-y); background: var(--tint); }
.cta__box {
  text-align: center; padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: var(--r-lg); background: var(--g-night); color: var(--white);
  box-shadow: var(--sh-lg); overflow: visible;
}
.cta__box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(31, 139, 255, .22), transparent 70%); }
.cta__title { position: relative; color: var(--white); font-size: var(--fs-h2); font-weight: 800; max-width: 22ch; margin-inline: auto; }
.cta__text { position: relative; margin: 1.1rem auto 0; max-width: 56ch; color: rgba(255, 255, 255, .78); font-size: var(--fs-lead); }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.25rem; }

/* ---------- 16. Contacto / formulario ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact__list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-md); background: var(--navy); color: var(--white); }
.contact__list span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.contact__list a, .contact__list strong { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.contact__list a:hover { color: var(--electric); }

.form {
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-md);
  display: grid; gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field__opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--tint);
  font-size: 1rem; /* evita zoom en iOS */
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F4D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--electric); background: var(--white); box-shadow: 0 0 0 4px rgba(31, 139, 255, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #FFF7F7; }
.field__error { font-size: .8rem; color: var(--error); min-height: 0; font-weight: 600; }
.field__error:empty { display: none; }

.check { display: flex; align-items: center; gap: .75rem; font-size: .92rem; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; border: 1.5px solid var(--silver); background: var(--tint);
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.check__box .icon { width: 16px; height: 16px; color: var(--white); stroke-width: 2.6; opacity: 0; }
.check input:checked + .check__box { background: var(--electric); border-color: var(--electric); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--electric); outline-offset: 2px; }

.form__submit[disabled] { opacity: .7; cursor: progress; }
.form__status { font-size: .9rem; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #13844A; }
.form__status.is-error { color: var(--error); }

/* ---------- 17. Footer ---------- */
.footer { background: var(--black); color: rgba(255, 255, 255, .7); padding-top: clamp(3.5rem, 6vw, 5rem); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand img { width: 190px; }
.footer__slogan { margin-top: 1rem; color: var(--silver); font-weight: 500; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid rgba(201, 206, 214, .2); color: var(--silver); transition: color .2s, border-color .2s, background-color .2s;
}
.footer__social a:hover { color: var(--white); border-color: var(--electric); background: rgba(31, 139, 255, .12); }
.footer__title { color: var(--white); font-family: var(--f-num); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .6rem; }
.footer a:hover { color: var(--white); }
.footer__contact li { display: flex; align-items: center; gap: .6rem; }
.footer__contact .icon { color: var(--electric); }
.footer .placeholder { color: var(--steel); }
.footer__bottom { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(201, 206, 214, .12); font-size: .82rem; color: var(--steel); }

/* ---------- 18. Widget WhatsApp flotante ---------- */
.wa-widget {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.wa-widget__panel {
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100vw - 2.5rem));
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.wa-widget__panel[hidden] { display: none; }
.wa-widget__head {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; background: #075e54; color: #fff;
}
.wa-widget__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255, 255, 255, .15); flex-shrink: 0;
}
.wa-widget__avatar .icon { width: 1.25rem; height: 1.25rem; stroke: none; fill: currentColor; }
.wa-widget__meta { min-width: 0; flex: 1; }
.wa-widget__title {
  display: block; font-family: var(--f-main); font-weight: 700; font-size: .8125rem;
  line-height: 1.25; letter-spacing: .01em;
}
.wa-widget__status { display: block; font-size: .6875rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.wa-widget__head-close {
  padding: .35rem; border: 0; border-radius: 50%; background: transparent;
  color: rgba(255, 255, 255, .85); cursor: pointer; line-height: 0;
}
.wa-widget__head-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.wa-widget__head-close .icon { width: 1rem; height: 1rem; }
.wa-widget__body {
  position: relative; min-height: 9.5rem; padding: 1rem .75rem;
  background: #e5ddd5;
}
.wa-widget__body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, #6b7280 1px, transparent 0);
  background-size: 18px 18px;
}
.wa-widget__bubble {
  position: relative; max-width: 92%; margin: 0;
  padding: .5rem .75rem; border-radius: 1rem; border-top-left-radius: .375rem;
  background: #fff; color: #1a1a1a; font-size: .8125rem; line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
.wa-widget__form {
  display: flex; align-items: flex-end; gap: .5rem;
  padding: .75rem; border-top: 1px solid rgba(0, 0, 0, .06); background: #f0f2f5;
}
.wa-widget__input {
  flex: 1; min-height: 2.5rem; max-height: 6rem; resize: none;
  padding: .5rem .75rem; border: 1px solid rgba(0, 0, 0, .1); border-radius: .75rem;
  background: #fff; color: #111; font: inherit; font-size: .8125rem; line-height: 1.35;
  outline: none;
}
.wa-widget__input::placeholder { color: rgba(0, 0, 0, .4); }
.wa-widget__input:focus { border-color: rgba(37, 211, 102, .85); box-shadow: 0 0 0 1px rgba(37, 211, 102, .35); }
.wa-widget__send {
  display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0;
  height: 2.5rem; padding: 0 .875rem; border: 0; border-radius: var(--r-pill);
  background: var(--wa); color: #fff; font-weight: 700; font-size: .875rem;
  cursor: pointer; transition: background .2s, opacity .2s;
}
.wa-widget__send .icon { width: .875rem; height: .875rem; }
.wa-widget__send:hover:not(:disabled) { background: #20bd5a; }
.wa-widget__send:disabled { opacity: .4; cursor: not-allowed; }
.wa-widget__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: auto; height: 58px; padding: 0 1.2rem 0 1rem; border: 0;
  border-radius: var(--r-pill); background: var(--wa); color: #fff; cursor: pointer;
  font-weight: 800; font-size: .92rem;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5), 0 0 0 4px rgba(37, 211, 102, .18);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
}
.wa-widget__toggle .icon { width: 28px; height: 28px; stroke-width: 1.8; flex-shrink: 0; }
.wa-widget__toggle-label { white-space: nowrap; }
.wa-widget__toggle:hover {
  transform: translateY(-3px);
  background: #20bd5a;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .55), 0 0 0 6px rgba(37, 211, 102, .22);
}
.wa-widget__icon--close { display: none; }
.wa-widget.is-open .wa-widget__icon--wa { display: none; }
.wa-widget.is-open .wa-widget__icon--close { display: block; }
.wa-widget.is-open .wa-widget__toggle-label { display: none; }
.wa-widget.is-open .wa-widget__toggle {
  width: 58px; padding: 0; justify-content: center;
}

/* ---------- 19. Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .steps::before { --progress: 0; }
.js .steps.is-visible::before { --progress: 1; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { gap: 1.1rem; }
  .nav__link { font-size: .82rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .header__logo img { height: 40px; }
  .header { background: rgba(7, 18, 43, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem clamp(1.1rem, 4vw, 2rem) 2rem;
    background: var(--navy-deep); border-top: 1px solid rgba(201, 206, 214, .12);
    overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; font-size: 1.1rem; padding: 1rem 0; border-bottom: 1px solid rgba(201, 206, 214, .1); }
  .nav__link::after { display: none; }
  .nav__cta { min-height: 54px; font-size: .95rem; }
  body.menu-open { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; aspect-ratio: 1.25 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid rgba(201, 206, 214, .14); }

  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service--wide { grid-column: span 1; }
  .service:last-child { grid-column: span 2; }

  .packages { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }

  .monitor__grid, .access__grid, .why, .contact { grid-template-columns: 1fr; }
  .access__media { max-width: 620px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__visual { aspect-ratio: 1 / 1.05; }
  .hero__kit { right: 4%; top: 13%; }
  .phone { width: 34%; }
  .chip { font-size: .68rem; padding: .45rem .7rem; }
  .chip--b { left: 0; bottom: 12%; }

  .trust__item { flex-direction: column; gap: .5rem; font-size: .85rem; text-align: center; padding: 1.1rem .6rem; }

  .services { grid-template-columns: 1fr; }
  .service, .service--wide, .service:last-child { grid-column: auto; }

  .pkg__list { grid-template-columns: 1fr; }
  .pkg__media { aspect-ratio: 2.4 / 1; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 1.1rem; text-align: left; padding: 0 0 1.75rem; }
  .step__num { grid-column: 2; margin: 0; }
  .step__icon { grid-row: 1 / span 3; grid-column: 1; margin: 0; }
  .step h3, .step p { grid-column: 2; }
  .step p { margin-inline: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 68px; bottom: 4px; width: 2px; background: linear-gradient(var(--electric), var(--blue)); }

  /* Flujo vertical en móvil */
  .flow { flex-direction: column; gap: 1.1rem; padding: 1.75rem 1.5rem; }
  .flow__track { left: calc(1.5rem + 28px); right: auto; top: calc(1.75rem + 28px); bottom: calc(1.75rem + 28px); width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(201, 206, 214, .45) 0 6px, transparent 6px 12px); }
  .flow__pulse { display: none; }
  .flow__node { flex-direction: row; gap: 1rem; text-align: left; }
  .flow__icon { width: 56px; height: 56px; border-radius: 14px; }
  .flow__icon .icon { width: 26px; height: 26px; }

  .why__list { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .cta__actions .btn { width: 100%; }
  .btn--xl { letter-spacing: .06em; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .wa-widget__toggle-label { display: none; }
  .wa-widget__toggle { width: 58px; padding: 0; justify-content: center; }
  .wa-widget:not(.is-open) .wa-widget__toggle { width: 58px; }

}

/* ---------- 21. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flow__pulse { display: none; }
}
