/* =========================================================
   PROTEGIDOS CONTROL · Landing
   ---------------------------------------------------------
   1. Tokens
   2. Base
   3. Componentes (botones, marca)
   4. Header / navegación
   5. Hero
   6. Características
   7. Secciones genéricas
   8. Qué hacemos
   9. Para quién
   10. Próximamente
   11. Footer
   12. Modal
   13. Animaciones
   14. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #050a16;
  --bg-2: #07101f;
  --navy: #0a1730;
  --panel: rgba(10, 20, 40, 0.62);
  --panel-solid: #0b1629;

  --blue: #1677ff;
  --blue-bright: #3b92ff;
  --blue-deep: #0b4fd6;
  --blue-glow: rgba(22, 119, 255, 0.45);

  --white: #ffffff;
  --text: #e6edf8;
  --muted: #9aa8bf;
  --muted-2: #6f7d95;

  --line: rgba(120, 160, 230, 0.14);
  --line-strong: rgba(80, 150, 255, 0.38);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent { color: var(--blue-bright); }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Componentes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s;
}

.btn .icon { transition: transform 0.3s var(--ease); }

.btn--primary {
  background: linear-gradient(180deg, #2a88ff 0%, var(--blue) 55%, #0f66e8 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(22, 119, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary:hover .icon { transform: translateX(4px); }

.btn--outline {
  background: rgba(8, 18, 38, 0.55);
  border-color: var(--line-strong);
  color: var(--blue-bright);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--outline:hover {
  border-color: var(--blue-bright);
  background: rgba(22, 119, 255, 0.12);
  color: #cfe2ff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1), 0 0 24px -6px var(--blue-glow);
}

.btn--lg { padding: 18px 34px; font-size: 16px; border-radius: 12px; }
.btn--block { width: 100%; }

/* Marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__shield {
  width: 46px;
  height: 52px;
  filter: drop-shadow(0 0 12px rgba(22, 119, 255, 0.45));
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
}
.brand__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand__sub {
  margin-top: 5px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.16em;
  color: #b8c4d8;
}
.brand--sm .brand__shield { width: 36px; height: 41px; }
.brand--sm .brand__name { font-size: 18px; }
.brand--sm .brand__sub { font-size: 14px; }

/* ---------- 4. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(4, 9, 20, 0.85) 0%, rgba(4, 9, 20, 0.55) 100%);
  border-bottom: 1px solid rgba(120, 160, 230, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s;
}
.header.is-scrolled {
  background: rgba(4, 9, 20, 0.92);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; gap: 8px; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 400;
  color: #d9e2f0;
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue-glow);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--blue-bright); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta-mobile { display: none; }

.header__cta { flex: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.6);
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 190px;
  overflow: hidden;
  isolation: isolate;
}

/* Imagen real, sin modificar: solo se posiciona */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-protegidos.png") 68% center / cover no-repeat;
  animation: heroZoom 2.4s var(--ease) both;
}

/* Capa de legibilidad por encima de la imagen (no altera el archivo) */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 8, 20, 0.9) 0%, rgba(3, 8, 20, 0.74) 28%, rgba(3, 8, 20, 0.3) 46%, rgba(3, 8, 20, 0) 60%),
    linear-gradient(180deg, rgba(3, 8, 20, 0.35) 0%, rgba(3, 8, 20, 0) 22%, rgba(3, 8, 20, 0) 62%, rgba(5, 10, 22, 0.8) 88%, var(--bg) 100%);
}

.hero__content { position: relative; }

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: #cfd8e6;
}
.hero__eyebrow i {
  font-style: normal;
  color: var(--blue-bright);
  letter-spacing: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero__title-accent {
  display: block;
  margin-top: 0.08em;
  background: linear-gradient(180deg, #4aa0ff 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--blue);
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(22, 119, 255, 0.35));
}

.hero__lead {
  max-width: 31rem;
  margin-top: 26px;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  font-weight: 400;
  color: #e3eaf5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero__actions { margin-top: 38px; }


/* ---------- 6. Características ---------- */
.features {
  position: relative;
  z-index: 2;
  margin-top: -150px;
  padding-bottom: 40px;
}

.features__panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 24, 46, 0.72) 0%, rgba(7, 15, 30, 0.86) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  position: relative;
  overflow: hidden;
}
.features__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 146, 255, 0.8), transparent);
}

.feature {
  position: relative;
  padding: 34px 20px 32px;
  text-align: center;
  transition: background-color 0.4s var(--ease);
}
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.feature::after {
  content: "";
  position: absolute;
  inset: auto 22% 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-bright);
  box-shadow: 0 0 16px 2px var(--blue-glow);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.feature:hover { background: rgba(22, 119, 255, 0.06); }
.feature:hover::after { transform: scaleX(1); }

.feature__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  transition: transform 0.45s var(--ease);
}
.feature__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(22, 119, 255, 0.55));
}
.feature:hover .feature__icon { transform: translateY(-4px); }

.feature h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 10px;
}
.feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 7. Secciones genéricas ---------- */
.section { position: relative; padding: 130px 0; }

.section__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px var(--blue-glow);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--white);
}

.section__lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 8. Qué hacemos ---------- */
.about {
  background:
    radial-gradient(60% 60% at 85% 40%, rgba(22, 119, 255, 0.12), transparent 70%),
    var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.about .section__lead { max-width: 34rem; }

.pillars {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.pillars li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pillars .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  color: var(--blue-bright);
  background: rgba(22, 119, 255, 0.1);
  border: 1px solid var(--line-strong);
  stroke-width: 1.8;
}
.pillars span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.pillars strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}

/* Maqueta de consola */
.console {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 27, 52, 0.9), rgba(7, 14, 28, 0.95));
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(22, 119, 255, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(59, 146, 255, 0.6), transparent 40%, transparent 70%, rgba(59, 146, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.console__bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22324f;
}
.console__bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #6ee7a8;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 1.8s infinite;
}

.console__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px 20px 8px;
}
.console__stats div {
  padding: 16px;
  border-radius: 12px;
  background: rgba(22, 119, 255, 0.06);
  border: 1px solid var(--line);
}
.console__stats small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.console__stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.console__log { padding: 14px 20px 22px; }
.console__log li {
  display: grid;
  grid-template-columns: 104px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(120, 160, 230, 0.08);
  font-size: 14px;
}
.console__log li:last-child { border-bottom: 0; }
.console__log .who { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__log .where { color: var(--muted); font-size: 13px; }
.console__log time { color: var(--muted-2); font-size: 13px; font-variant-numeric: tabular-nums; }

.tag {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.tag--in { color: #7cc0ff; background: rgba(22, 119, 255, 0.14); }
.tag--out { color: #c3cbe0; background: rgba(160, 175, 210, 0.12); }
.tag--auth { color: #6ee7a8; background: rgba(52, 211, 153, 0.12); }

/* ---------- 9. Para quién ---------- */
.audience {
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(22, 119, 255, 0.1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid rgba(120, 160, 230, 0.06);
  border-bottom: 1px solid rgba(120, 160, 230, 0.06);
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.place {
  position: relative;
  padding: 34px 30px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 27, 52, 0.7), rgba(8, 16, 32, 0.7));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.place::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(22, 119, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.place:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -24px rgba(22, 119, 255, 0.5);
}
.place:hover::before { opacity: 1; }

.place__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 14px;
  color: var(--blue-bright);
  background: rgba(22, 119, 255, 0.1);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 20px rgba(22, 119, 255, 0.12);
}
.place__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.place h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.place p { color: var(--muted); font-size: 15px; }
.place__num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(120, 160, 230, 0.28);
}

/* ---------- 10. Próximamente ---------- */
.soon { padding: 140px 0; }

.soon__card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 40px 76px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 30, 62, 0.9), rgba(6, 13, 28, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 120px -40px rgba(22, 119, 255, 0.5);
  overflow: hidden;
  isolation: isolate;
}
.soon__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 160, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 230, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.soon__glow {
  position: absolute;
  z-index: -1;
  top: -40%;
  left: 50%;
  width: 640px;
  height: 640px;
  margin-left: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.35), transparent 65%);
  animation: glow 6s ease-in-out infinite;
}
.soon__shield {
  width: 74px;
  height: 84px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 22px rgba(22, 119, 255, 0.7));
}
.soon__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.34em;
  color: #b8c4d8;
}
.soon__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 30%, #9cc6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--white);
  -webkit-text-fill-color: transparent;
}
.soon__text {
  max-width: 34rem;
  margin: 20px auto 40px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
}

/* ---------- 11. Footer ---------- */
.footer {
  background: #03070f;
  border-top: 1px solid rgba(120, 160, 230, 0.08);
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding-bottom: 40px;
}
.footer__tagline {
  color: var(--muted);
  font-size: 15px;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.footer__nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.footer__nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s;
}
.footer__nav a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(120, 160, 230, 0.06);
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- 12. Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease both;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #0d1c36, #070f20);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(22, 119, 255, 0.5);
  animation: modalIn 0.45s var(--ease) both;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.modal__close:hover { color: var(--white); border-color: var(--line-strong); }

.modal__body { padding: 40px 34px 34px; }
.modal__body[hidden] { display: none; }
.modal__shield {
  width: 44px;
  height: 50px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 14px rgba(22, 119, 255, 0.6));
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  padding-right: 30px;
}
.modal__body > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.form { margin-top: 26px; display: grid; gap: 16px; }
.field span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #c3cde0;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(3, 8, 18, 0.7);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8bf' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.field select option { background: #0b1629; }
.field input::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.15);
}
.field input.is-invalid { border-color: #ff6b7d; }
.form__error { min-height: 1em; font-size: 13px; color: #ff8a98; }
.form__error:empty { display: none; }
.form .btn { margin-top: 6px; }

.modal__success { text-align: center; }
.modal__success .btn { margin-top: 26px; }
.modal__success h2 { padding-right: 0; }
.success__check {
  width: 72px;
  height: 72px;
  margin: 6px auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6ee7a8;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.success__check .icon { width: 34px; height: 34px; stroke-width: 1.8; }

/* ---------- 13. Animaciones ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes heroZoom {
  from { transform: scale(1.06); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes glow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 14. Responsive ---------- */

/* Pantallas grandes: se mantiene el logo de la pared siempre visible */
@media (min-width: 1600px) {
  .hero__bg { background-position: center 60%; }
}

/* Notebook */
@media (max-width: 1200px) {
  .header__inner { gap: 24px; }
  .nav__link { padding: 10px 12px; font-size: 15px; }
  .nav__link::after { left: 12px; right: 12px; }
  .header__cta { padding: 11px 16px; font-size: 14px; }
  .feature { padding: 30px 14px 28px; }
  .feature h3 { font-size: 16px; }
}

/* Tablet horizontal: CTA del header compacto, características en 3 columnas */
@media (max-width: 1080px) {
  .header__cta span { display: none; }
  .header__cta { padding: 11px; }
  .header__cta .icon { width: 22px; height: 22px; }

  .features__panel { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(4)::before { display: none; }
  .feature:nth-child(n + 4) { border-top: 1px solid var(--line); }

  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about .section__lead { max-width: 40rem; }
  .console { max-width: 640px; }
}

/* Tablet vertical y celular: menú hamburger + hero apilado */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .container { padding: 0 24px; }

  .brand__shield { width: 38px; height: 43px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 14px; }

  .header__cta { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    padding: 28px 24px 40px;
    background: #040914;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link {
    padding: 18px 4px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; white-space: normal; padding: 16px 20px; }

  /*
    Hero en vertical: el texto va arriba sobre el azul noche y la foto
    ocupa la franja inferior, encuadrada sobre el vehículo, la barrera
    y el logo PROTEGIDOS CONTROL de la pared para que nada los tape.
  */
  .hero {
    align-items: flex-start;
    padding: calc(var(--header-h) + 36px) 0 0;
    min-height: auto;
    flex-direction: column;
    background: #071228;
  }
  .hero__bg {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(340px, 72vw, 620px);
    margin-top: -40px;
    background-position: 88% center;
    background-size: cover;
  }
  .hero__shade {
    top: auto;
    bottom: 0;
    height: clamp(340px, 72vw, 620px);
    background:
      linear-gradient(180deg, #071228 0%, rgba(7, 18, 40, 0.55) 14%, rgba(3, 8, 20, 0) 30%, rgba(3, 8, 20, 0) 72%, var(--bg) 100%);
  }
  .hero__content { order: 1; z-index: 1; }

  .features { margin-top: -40px; }
  .features__panel { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(n)::before { display: block; }
  .feature:nth-child(odd)::before { display: none; }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .audience__grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 96px 0; }
  .soon { padding: 96px 0; }

  .footer__tagline { padding-left: 0; border-left: 0; flex-basis: 100%; order: 2; }
  .footer__nav { margin-left: 0; order: 3; flex-wrap: wrap; gap: 14px 24px; }
}

/* Celular */
@media (max-width: 560px) {
  .container { padding: 0 20px; }

  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: 0.14em; gap: 4px 6px; margin-bottom: 14px; }
  .hero__title { font-size: clamp(34px, 10.4vw, 46px); }
  .hero__lead { margin-top: 18px; font-size: 16px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { width: 100%; }
  .hero__bg {
    height: clamp(300px, 92vw, 420px);
    margin-top: -24px;
    /* encuadre: vehículo + logo de la pared */
    background-position: 92% center;
  }
  .hero__shade { height: clamp(300px, 92vw, 420px); }

  .features { margin-top: -30px; padding-bottom: 20px; }
  .feature { padding: 26px 12px 24px; }
  .feature__icon { width: 48px; height: 48px; margin-bottom: 12px; }
  .feature__icon svg { width: 38px; height: 38px; }
  .feature h3 { font-size: 15px; }
  .feature p { font-size: 13px; }

  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }

  .pillars span { font-size: 14px; }

  .console__stats { gap: 8px; padding: 16px 14px 4px; }
  .console__stats div { padding: 12px 10px; }
  .console__stats strong { font-size: 22px; }
  .console__stats small { font-size: 11px; }
  .console__log { padding: 8px 14px 16px; }
  .console__log li { grid-template-columns: auto 1fr auto; gap: 10px; font-size: 13px; }
  .console__log .where { display: none; }

  .audience__grid { grid-template-columns: 1fr; gap: 14px; }
  .place { padding: 26px 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
  .place__icon { grid-row: span 2; margin-bottom: 0; width: 52px; height: 52px; }
  .place h3 { font-size: 18px; margin-bottom: 2px; }
  .place p { font-size: 14px; }
  .place__num { top: 18px; right: 20px; font-size: 12px; }

  .soon__card { padding: 56px 22px 50px; border-radius: 22px; }
  .soon__brand { font-size: 12px; letter-spacing: 0.26em; }
  .soon__title { font-size: clamp(30px, 10.5vw, 44px); }
  .soon .btn--lg { width: 100%; white-space: normal; padding: 16px 20px; font-size: 14px; }

  .modal__body { padding: 34px 22px 26px; }
}

/* Celulares muy chicos */
@media (max-width: 360px) {
  .features__panel { grid-template-columns: 1fr; }
  .feature::before { display: none !important; }
  .feature:nth-child(n + 2) { border-top: 1px solid var(--line); }
}

/* Notebooks con poca altura */
@media (min-width: 901px) and (max-height: 760px) {
  .hero { padding-bottom: 170px; }
  .hero__title { font-size: clamp(38px, 4.6vw, 62px); }
  .hero__lead { margin-top: 18px; font-size: 17px; }
  .hero__actions { margin-top: 26px; }
  .features { margin-top: -130px; }
}
