/* =========================================================
   Alpha 43 — Landing styles v2 · Dark Tech Edition
   ========================================================= */

/* Permite animar el ángulo del haz de borde con transición suave */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg:           #060c14;
  --bg-alt:       #0b1622;
  --bg-card:      rgba(14, 26, 50, 0.65);
  --bg-card-h:    rgba(14, 26, 50, 0.9);
  --bg-header:    rgba(6, 12, 20, 0.88);
  --text:         #d0e8f8;
  --text-soft:    rgba(180, 212, 240, 0.72);
  --text-muted:   rgba(180, 212, 240, 0.42);
  --white:        #ffffff;
  --accent:       #20c4b1;
  --accent-2:     #2dd4bf;
  --electric:     #00d4ff;
  --navy:         #0d1b2a;
  --navy-2:       #16324f;
  --border:       rgba(32, 196, 177, 0.18);
  --border-h:     rgba(32, 196, 177, 0.55);
  --grad:         linear-gradient(135deg, #16324f 0%, #0d3b6e 50%, #20c4b1 100%);
  --grad-accent:  linear-gradient(90deg, #20c4b1 0%, #00d4ff 100%);
  --grad-text:    linear-gradient(90deg, #2dd4bf 10%, #00d4ff 90%);
  --glow-sm:      0 0 12px rgba(32,196,177,.35);
  --glow:         0 0 24px rgba(32,196,177,.5), 0 0 48px rgba(32,196,177,.2);
  --glow-lg:      0 0 40px rgba(32,196,177,.65), 0 0 80px rgba(32,196,177,.28);
  --sh-sm:        0 4px 20px rgba(0,0,0,.4);
  --sh:           0 12px 40px rgba(0,0,0,.5);
  --sh-lg:        0 24px 64px rgba(0,0,0,.6);
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --container:    1180px;
  --header-h:     72px;
  --font:         'Poppins', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--electric); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1rem; color: var(--text-soft); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Scroll Progress ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-accent);
  z-index: 9999;
  box-shadow: var(--glow-sm);
  transition: width .08s linear;
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .6rem;
}

.section__eyebrow--badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1.1rem;
  background: rgba(32,196,177,.1);
  border: 1px solid rgba(32,196,177,.3);
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .15em;
  margin-bottom: 1rem;
  color: var(--accent);
  box-shadow: var(--glow-sm);
}

.section__eyebrow--badge strong { color: var(--white); font-weight: 800; }

.section__title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .85rem; }
.section__subtitle { color: var(--text-soft); font-size: 1.05rem; line-height: 1.75; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Grids ---- */
.grid { display: grid; gap: 1.5rem; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--two { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: transparent;
  z-index: 200;
  transition: background .35s ease, box-shadow .35s ease;
  will-change: transform;
}

.header.is-scrolled {
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(32,196,177,.15), 0 8px 32px rgba(0,0,0,.4);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }

.brand__logo {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter .3s ease;
}

.brand:hover .brand__logo {
  filter: brightness(0) saturate(10) invert(72%) sepia(55%) saturate(500%) hue-rotate(131deg);
}

.brand__logo--footer {
  height: 36px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .75;
  transition: opacity .3s;
}
.footer__brand:hover .brand__logo--footer { opacity: 1; }
.brand__text { font-size: 1.05rem; color: var(--white); }

.nav__list { display: flex; align-items: center; gap: 1.75rem; }

.nav__link {
  color: var(--text-soft);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: .35rem 0;
  transition: color .25s ease;
}

.nav__link:hover { color: var(--white); }

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transition: width .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--glow-sm);
}

.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__link--cta {
  background: var(--grad-accent);
  color: var(--navy) !important;
  padding: .55rem 1.2rem !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--glow-sm);
}

.nav__link--cta::after { display: none !important; }
.nav__link--cta:hover { transform: translateY(-2px); box-shadow: var(--glow) !important; color: var(--navy) !important; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.is-open span:nth-child(1) { top: 20px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 20px; transform: translateX(-50%) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 6rem;
  overflow: hidden;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

#particles-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero__image {
  position: absolute; inset: 0;
  background: url('../img/hero.jpg') center / cover no-repeat;
  filter: saturate(.6) brightness(.28);
}

.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(32,196,177,.22) 0%, transparent 60%),
    linear-gradient(160deg, rgba(6,12,20,.97) 0%, rgba(11,22,42,.93) 55%, rgba(6,12,20,.97) 100%);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(32,196,177,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32,196,177,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }

.hero__glow--1 {
  background: rgba(32,196,177,.4);
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  animation: orb-float 10s ease-in-out infinite;
}

.hero__glow--2 {
  background: rgba(0,80,180,.35);
  width: 500px; height: 500px;
  bottom: -200px; left: -150px;
  animation: orb-float 14s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.06); }
  66%       { transform: translate(-20px, 30px) scale(.96); }
}

/* SCANNER ORIGINAL — descomentar en index.html y borrar meteoros para revertir
.hero__scanner {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32,196,177,.7) 50%, transparent);
  top: 0;
  animation: scanner-sweep 7s linear infinite;
  box-shadow: 0 0 8px rgba(32,196,177,.5);
  pointer-events: none;
}
@keyframes scanner-sweep {
  0%   { top: 0%;   opacity: 0; }
  3%   { opacity: 1; }
  97%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
*/

/* ---- Partículas lluvia ---- */
.hero__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__inner { text-align: center; max-width: 900px; position: relative; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.4rem;
  display: inline-block;
  padding: .45rem 1.3rem;
  border: 1px solid rgba(32,196,177,.3);
  border-radius: 999px;
  background: rgba(32,196,177,.07);
  box-shadow: var(--glow-sm), inset 0 0 20px rgba(32,196,177,.04);
}

.hero__eyebrow .tw-cursor {
  display: inline-block;
  width: 2px; height: .85em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink .8s step-end infinite;
  border-radius: 1px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}

.hero .text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(200,230,255,.75);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.hero__subtitle strong { color: var(--white); }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: scroll-hint-anim 2.5s ease-in-out infinite;
  white-space: nowrap;
}

.hero__scroll-hint svg { width: 18px; height: 18px; color: var(--accent); }

@keyframes scroll-hint-anim {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: .9; transform: translateX(-50%) translateY(7px); }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 2.5rem) 0 5rem;
    /* En móvil, alinear al inicio evita que el flex-centering
       empuje el contenido por encima del padding y detrás del header
       cuando hero__inner es más alto que el espacio disponible */
    align-items: flex-start;
    justify-content: center; /* centra horizontalmente */
  }
  .hero__glow    { display: none; }
  .hero__scroll-hint { bottom: 1.5rem; }
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .25s ease;
  font-family: var(--font);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .55s ease;
  pointer-events: none;
}

.btn:hover::before { left: 100%; }

.btn--primary { background: var(--grad-accent); color: var(--navy); box-shadow: var(--glow-sm); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--glow); color: var(--navy); }
.btn--primary:active { transform: scale(.97); }

.btn--ghost {
  background: rgba(32,196,177,.08);
  color: var(--accent);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-h);
  background: rgba(32,196,177,.15);
  color: var(--accent-2);
  box-shadow: var(--glow-sm);
}

.btn--block { width: 100%; }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }

/* ---- Cards Glassmorphism ---- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.84,.44,1),
              box-shadow .3s ease,
              border-color .3s ease;
}

.card:hover {
  box-shadow: var(--sh), var(--glow-sm);
  border-color: rgba(32,196,177,.4);
  transform: translateY(-6px);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(32,196,177,.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.card.spotlight::after { opacity: 1; }

.card__icon {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0,180,255,.1);
  border: 1px solid rgba(0,212,255,.3);
  color: #00d4ff;
  margin-bottom: 1.2rem;
  transition: box-shadow .3s ease, background .3s ease, transform .3s ease;
}

.card:hover .card__icon {
  background: rgba(0,180,255,.2);
  box-shadow: 0 0 12px rgba(0,212,255,.5), 0 0 28px rgba(0,212,255,.2);
  transform: scale(1.08);
}

.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: .45rem; }
.card p  { margin: 0; font-size: .95rem; color: var(--text-soft); }

/* Card destacada — haz de luz viajando por el borde */
.card--featured {
  border-color: transparent;
  box-shadow: var(--sh);
  overflow: hidden; /* se puede restaurar: el ::before ya no sale de los límites */
}

.card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* padding define el grosor del anillo visible */
  padding: 2px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    rgba(32,196,177,.18)  0%,
    rgba(32,196,177,.18) 55%,
    rgba(32,196,177,.55) 65%,
    rgba(0, 212,255, .95) 75%,
    rgba(255,255,255,  1) 80%,
    rgba(0, 212,255, .95) 85%,
    rgba(32,196,177,.55) 93%,
    rgba(32,196,177,.18) 100%
  );
  /* máscara "donut": oculta el interior, deja solo el ring de 2px */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 0;
  pointer-events: none;
  animation: beam-travel 3s linear infinite;
}

@keyframes beam-travel {
  from { --beam-angle: 0deg; }
  to   { --beam-angle: 360deg; }
}

/* Etiqueta neon: borde luminoso azul eléctrico */
.card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(10, 22, 38, .72);
  color: #00d4ff;
  border: 1.5px solid rgba(0,212,255,.75);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 999px;
  box-shadow:
    0 0 6px rgba(0,212,255,.8),
    0 0 14px rgba(0,212,255,.4),
    inset 0 0 6px rgba(0,212,255,.12);
  text-shadow: none;
  backdrop-filter: blur(4px);
}

/* ---- Tarjeta IA ---- */
/* Icono del robot IA: acento azul eléctrico, más grande */
.card__icon--ai {
  width: 62px; height: 62px;
  background: rgba(0,180,255,.1);
  border-color: rgba(0,212,255,.4);
  color: #00d4ff;
  flex-direction: column;
  gap: 2px;
}

.card__icon--ai svg { width: 30px; height: 30px; }

/* Texto «AI» debajo del robot dentro del icono */
.card__icon--ai::after {
  content: 'AI';
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .18em;
  color: #00d4ff;
  text-shadow: 0 0 6px rgba(0,212,255,.9);
  line-height: 1;
}

.card--ai:hover .card__icon--ai {
  background: rgba(0,180,255,.2);
  box-shadow: 0 0 14px rgba(0,212,255,.55);
}
.audit-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(13,27,42,.98) 0%, rgba(22,50,79,.98) 100%);
  border: 1px solid rgba(32,196,177,.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh), var(--glow-sm);
  position: relative;
  overflow: hidden;
}

.audit-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px circle at 95% 5%, rgba(32,196,177,.18), transparent 60%);
  pointer-events: none;
}

.audit-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: var(--grad-accent);
  opacity: .5;
}

.audit-banner__icon {
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(32,196,177,.15);
  border: 1px solid rgba(32,196,177,.3);
  color: var(--accent);
  flex: 0 0 auto;
  position: relative; z-index: 1;
  box-shadow: var(--glow-sm);
  animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: var(--glow-sm); }
  50%       { box-shadow: var(--glow); }
}

.audit-banner__icon svg { width: 28px; height: 28px; }
.audit-banner__body { position: relative; z-index: 1; }

.audit-banner__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  color: var(--accent);
  font-weight: 700;
}

.audit-banner__body h3 { margin: .2rem 0 .4rem; font-size: 1.3rem; color: var(--white); }

.audit-banner__free {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 0 .6rem;
  padding: .32rem .9rem;
  background: linear-gradient(90deg, #20c4b1, #00d4ff);
  color: #030f1a;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
  box-shadow:
    0 0 10px rgba(32,196,177,.8),
    0 0 28px rgba(32,196,177,.5),
    0 0 55px rgba(32,196,177,.25);
  animation: free-pulse 2.4s ease-in-out infinite;
}

@keyframes free-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(32,196,177,.8),
      0 0 28px rgba(32,196,177,.5),
      0 0 55px rgba(32,196,177,.25);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 16px rgba(0,212,255,1),
      0 0 42px rgba(32,196,177,.75),
      0 0 80px rgba(32,196,177,.4);
    transform: scale(1.04);
  }
}

.audit-banner__body p { margin: 0; color: var(--text-soft); font-size: .95rem; max-width: 60ch; }
.audit-banner__cta { position: relative; z-index: 1; white-space: nowrap; }

@media (max-width: 760px) {
  .audit-banner { grid-template-columns: 1fr; text-align: left; padding: 1.5rem; }
  .audit-banner__cta { justify-self: center; width: 100%; text-align: center; }
}

/* ---- Steps CSI ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none; padding: 0; margin: 0;
}

.step {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
  box-shadow: var(--sh-sm);
  transition: transform .3s cubic-bezier(.22,.84,.44,1), box-shadow .3s ease, border-color .3s ease;
}

.step:hover { transform: translateY(-6px); border-color: var(--border-h); box-shadow: var(--sh), var(--glow-sm); }
.step__num { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; color: var(--accent); margin-bottom: .8rem; text-transform: uppercase; }
.step h3 { font-size: 1.1rem; color: var(--white); }
.step p  { margin: 0; font-size: .95rem; color: var(--text-soft); }

.steps--csi { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) { .steps--csi { grid-template-columns: 1fr; } }

.steps--csi .step { padding: 2.25rem 1.75rem 1.75rem; overflow: hidden; }

.steps--csi .step__letter {
  position: absolute;
  top: .4rem; right: 1rem;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .12;
  transition: opacity .4s ease;
}

.steps--csi .step:hover .step__letter { opacity: .25; }

.csi-aftercare {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: rgba(32,196,177,.05);
  border: 1px solid rgba(32,196,177,.2);
  border-radius: var(--radius);
  box-shadow: var(--glow-sm);
}

.csi-aftercare__icon {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(32,196,177,.12);
  border: 1px solid rgba(32,196,177,.25);
  color: var(--accent);
  animation: spin-slow 14s linear infinite;
}

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.csi-aftercare__icon svg { width: 22px; height: 22px; }

.csi-aftercare__label {
  margin: 0 0 .2rem;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 700;
}

.csi-aftercare h3 { color: var(--white); font-size: 1.15rem; margin-bottom: .35rem; }
.csi-aftercare p  { margin: 0; color: var(--text-soft); }

@media (max-width: 520px) { .csi-aftercare { flex-direction: column; } }

/* ---- Section Media ---- */
.section__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  position: relative;
}

.section__media::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(32,196,177,.2);
  pointer-events: none;
  transition: border-color .4s ease;
}

.section__media:hover::after { border-color: rgba(32,196,177,.5); }

.section__media img {
  width: 100%; height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  filter: brightness(.88) saturate(1.1);
  transition: transform .7s cubic-bezier(.22,.84,.44,1), filter .4s ease;
}

.section__media:hover img { transform: scale(1.04); filter: brightness(1) saturate(1.2); }

/* ---- Bullets ---- */
.bullets { margin-top: 1.2rem; display: grid; gap: .7rem; }

.bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(32,196,177,.18), var(--glow-sm);
}

.bullets li strong { color: var(--white); }

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.stat {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat:hover { transform: translateY(-5px); box-shadow: var(--sh), var(--glow-sm); }

.stat::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(32,196,177,.1), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}

.stat:hover::before { opacity: 1; }

.stat::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 0 0 4px 4px;
  opacity: .6;
  box-shadow: var(--glow-sm);
}

.stat__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: .5rem;
}

.stat__label { font-size: .88rem; color: var(--text-soft); line-height: 1.4; }

@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---- Contacto ---- */
.contact-mini { margin-top: 1.75rem; display: grid; gap: .85rem; }

.contact-mini li { display: flex; align-items: center; gap: .85rem; color: var(--text-soft); }

.contact-mini li svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex: 0 0 auto;
  filter: drop-shadow(0 0 5px rgba(32,196,177,.5));
}

.contact-mini a { color: var(--text-soft); transition: color .2s; }
.contact-mini a:hover { color: var(--accent); }

.contact-photo {
  margin: 1.75rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
}

.contact-photo img {
  width: 100%; height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(.88) saturate(1.1);
  transition: transform .6s ease, filter .4s ease;
}

.contact-photo:hover img { transform: scale(1.04); filter: brightness(1) saturate(1.15); }

/* ---- Formulario ---- */
.form {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--sh-sm);
  display: grid;
  gap: 1.1rem;
}

.form__row { display: flex; flex-direction: column; gap: .4rem; }

.form__row label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form__row input,
.form__row textarea,
.form__row select {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .78rem 1rem;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  outline: none;
  width: 100%;
}

.form__row input:focus,
.form__row textarea:focus {
  border-color: var(--border-h);
  box-shadow: 0 0 0 3px rgba(32,196,177,.12), var(--glow-sm);
  background: rgba(32,196,177,.04);
}

.form__row input::placeholder, .form__row textarea::placeholder { color: var(--text-muted); }
.form__row textarea { resize: vertical; min-height: 120px; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  cursor: pointer;
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.55;
}

.form__check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
  margin-top: .15rem;
}

.form__check a { color: var(--accent); }

.form__feedback { font-size: .9rem; padding: .75rem 1rem; border-radius: var(--radius-sm); display: none; }

.form__feedback.is-error {
  display: block;
  color: #f87171;
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.3);
}

.form__feedback.is-success {
  display: block;
  color: var(--accent);
  background: rgba(32,196,177,.1);
  border: 1px solid rgba(32,196,177,.3);
}

/* ---- Footer ---- */
.footer {
  background: #030810;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-accent);
  opacity: .4;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer__brand { display: flex; flex-direction: column; gap: .5rem; }
.footer__brand p { font-size: .9rem; color: var(--text-muted); margin: 0; }

.footer__nav { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.footer__nav a { font-size: .88rem; color: var(--text-muted); transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }

.footer__copy { font-size: .82rem; color: var(--text-muted); margin: 0; grid-column: 1 / -1; text-align: center; }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 2rem));
  z-index: 800;
  background: rgba(8, 16, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-lg), var(--glow-sm);
  overflow: hidden;
}

.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: var(--grad-accent);
  opacity: .5;
}

.cookie-banner__inner { padding: 1.5rem 1.75rem; }
.cookie-banner__inner p { font-size: .9rem; color: var(--text-soft); margin-bottom: 1rem; }
.cookie-banner__inner a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ---- Reveal Animations ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s cubic-bezier(.22,.84,.44,1), transform .75s cubic-bezier(.22,.84,.44,1);
}

[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="left"]             { opacity: 0; transform: translateX(-35px); }
[data-reveal="left"].is-visible  { opacity: 1; transform: translateX(0); }
[data-reveal="right"]            { opacity: 0; transform: translateX(35px); }
[data-reveal="right"].is-visible { opacity: 1; transform: translateX(0); }
[data-reveal="scale"]            { opacity: 0; transform: scale(.9); }
[data-reveal="scale"].is-visible { opacity: 1; transform: scale(1); }

/* ---- Páginas Legales ---- */
.legal { padding: calc(var(--header-h) + 4rem) 0 5rem; background: var(--bg); }
.legal__eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .8rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .8rem; }
.legal h2 { font-size: 1.25rem; margin: 2.5rem 0 .8rem; color: var(--white); display: flex; align-items: center; gap: .75rem; }
.legal h2::before { content: ''; flex: 0 0 auto; width: 4px; height: 1.1em; background: var(--grad-accent); border-radius: 4px; }
.legal p, .legal li { color: var(--text-soft); font-size: 1rem; }
.legal a { color: var(--accent); border-bottom: 1px solid rgba(32,196,177,.3); }
.legal a:hover { color: var(--electric); border-bottom-color: var(--electric); }
.legal ul { padding-left: 0; list-style: none; margin: 0 0 1rem; display: grid; gap: .55rem; }
.legal ul li { position: relative; padding-left: 1.5rem; }
.legal ul li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(32,196,177,.15); }
.legal__updated { display: inline-block; font-size: .8rem; color: var(--text-muted); background: rgba(32,196,177,.07); border: 1px solid var(--border); padding: .35rem .85rem; border-radius: 999px; margin-bottom: 2.5rem; }
.legal__card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--sh-sm); }
@media (max-width: 640px) { .legal__card { padding: 1.75rem 1.5rem; } }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid--two     { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav   { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(6,12,20,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .3s cubic-bezier(.22,.84,.44,1);
  }

  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav__list { flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: .2rem; }
  .nav__link { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--border); color: var(--text); }
  .nav__link::after { display: none !important; }
  .nav__link--cta { text-align: center; margin-top: .75rem; border-bottom: none; }

  .section { padding: 3.5rem 0; }
  .hero    { padding: calc(var(--header-h) + 2rem) 0 4rem; }
  .stats   { grid-template-columns: 1fr 1fr; }

  .cookie-banner__actions      { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
  .form { padding: 1.75rem; }
}

@media (max-width: 480px) { .audit-banner { gap: 1rem; } }

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto !important; }
}
