/* =========================================================
   DIMENTIUM · Estilos de la web
   Estética: fondos claros con "auras" de color (lima, verde, aqua, cielo y violeta),
   grano sutil, cristal esmerilado y titulares editoriales en serif.
   Índice:
   0. Fuentes                 6. Tarjetas y Qué hacemos
   1. Tokens                  7. Cómo funciona
   2. Base y utilidades       8. Para quién (vídeo)
   3. Auras y orbes           9. Nosotros y FAQ
   4. Botones y menú          10. Contacto y formulario
   5. Hero y móvil            11. Footer y páginas legales
   ========================================================= */

/* ---------- 0. FUENTES (alojadas en la propia web: sin llamadas a terceros) ----------
   Instrument Serif (titulares, con cursiva para los acentos) + Instrument Sans (texto).
   Licencia SIL Open Font License: gratis también para uso comercial. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/instrument-sans.woff2") format("woff2"); }

/* ---------- 1. TOKENS ---------- */
:root {
  /* Paleta de marca */
  --deep-night: #0B0E13;      /* texto principal y botones */
  --soft-white: #F5F7F2;      /* fondo base */
  --neon-green: #22E07A;
  --electric-lime: #D4FF3A;   /* solo halos y auras; nunca texto */
  --aqua-mint: #7FF5D0;
  --sky-blue: #6FA8FF;
  --digital-violet: #A78BFA;
  --graphite: #4A4F57;        /* texto secundario (7,7:1 sobre Soft White) */
  --mist: #E6EAE3;            /* bordes y separadores */

  /* Derivados para cumplir contraste AA sobre fondo claro */
  --green-ink: #0A7A42;       /* verde para texto (5,2:1) */
  --teal-ink: #0B6F78;        /* aqua oscurecido para texto (5,6:1) */
  --violet-ink: #4F46C8;      /* violeta oscurecido para texto (6,5:1) */
  --white: #FFFFFF;
  --field-line: #8F978E;      /* borde de campos de formulario (3:1) */
  --error: #B42318;

  /* Gradientes */
  --grad-ink: linear-gradient(100deg, var(--green-ink), var(--teal-ink) 50%, var(--violet-ink));   /* texto */
  --grad-glow: linear-gradient(100deg, var(--electric-lime), var(--neon-green) 45%, var(--aqua-mint)); /* decorativo */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.9);

  /* Tipografía */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);   /* 16 → 18 px */
  --fs-small: 0.875rem;
  --fs-h1: clamp(2.75rem, 1.8rem + 4.2vw, 5.25rem);
  --fs-h2: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);

  /* Espaciado (escala de 8 px) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px; --s-16: 128px;
  --section-y: clamp(72px, 6vw + 40px, 128px);

  /* Radios, sombras y movimiento */
  --r-sm: 12px; --r-md: 20px; --r-lg: 32px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 14, 19, 0.04), 0 6px 20px rgba(11, 14, 19, 0.05);
  --shadow-md: 0 2px 4px rgba(11, 14, 19, 0.04), 0 18px 44px rgba(11, 14, 19, 0.09);
  --glow-green: 0 10px 30px rgba(34, 224, 122, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--soft-white);
  color: var(--deep-night);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }

/* Titulares grandes en serif; h3 en la sans, más legible a tamaño pequeño */
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h3 { font-family: var(--font-body); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
/* Palabra clave en cursiva dentro de un titular */
h1 em, h2 em { font-style: italic; color: var(--green-ink); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-2); }
.container--narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding-inline: var(--s-4); } }

.skip-link { position: absolute; left: var(--s-2); top: -100px; z-index: 100; padding: var(--s-1) var(--s-2); background: var(--deep-night); color: var(--soft-white); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-2); }
.sprite { position: absolute; overflow: hidden; }

.icon { width: 24px; height: 24px; flex: none; }

/* Antetítulo con un pequeño orbe delante */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px; margin-bottom: var(--s-2);
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-ink);
}
.eyebrow::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.4em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--electric-lime), var(--neon-green) 60%, var(--aqua-mint));
  box-shadow: 0 0 10px rgba(34, 224, 122, 0.8);
}

.section { position: relative; padding-block: var(--section-y); isolation: isolate; }
.section__head { max-width: 760px; margin-bottom: var(--s-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* Aparición al hacer scroll (solo si hay JS y no se ha pedido reducir el movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 3. AURAS Y ORBES (todo en CSS: sin imágenes) ---------- */
/* Capa de fondo reutilizable: cada sección elige su mezcla de color */
.aura { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura--hero {
  background:
    radial-gradient(55% 55% at 8% 12%, rgba(212, 255, 58, 0.55), transparent 70%),
    radial-gradient(45% 50% at 92% 8%, rgba(127, 245, 208, 0.65), transparent 70%),
    radial-gradient(50% 55% at 88% 92%, rgba(111, 168, 255, 0.45), transparent 70%),
    radial-gradient(45% 45% at 12% 96%, rgba(167, 139, 250, 0.35), transparent 70%),
    var(--soft-white);
}
/* Lavados suaves para secciones alternas */
.aura--wash-a {
  background:
    radial-gradient(40% 60% at 0% 0%, rgba(212, 255, 58, 0.28), transparent 70%),
    radial-gradient(35% 55% at 100% 100%, rgba(127, 245, 208, 0.35), transparent 70%),
    #EEF4EC;
}
.aura--wash-b {
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(111, 168, 255, 0.22), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(167, 139, 250, 0.2), transparent 70%),
    radial-gradient(30% 40% at 50% 50%, rgba(127, 245, 208, 0.18), transparent 70%),
    #F0F3F4;
}
/* Los lavados se funden arriba y abajo con el fondo, sin cortes rectos */
.aura--wash-a, .aura--wash-b {
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.aura--contact {
  background:
    radial-gradient(55% 60% at 0% 20%, rgba(212, 255, 58, 0.6), transparent 70%),
    radial-gradient(50% 60% at 35% 100%, rgba(34, 224, 122, 0.45), transparent 70%),
    radial-gradient(50% 60% at 100% 10%, rgba(127, 245, 208, 0.7), transparent 70%),
    radial-gradient(45% 55% at 95% 95%, rgba(167, 139, 250, 0.45), transparent 70%),
    #EAF6EF;
}

/* El orbe: el símbolo de la marca. Esfera de luz que "respira" y se desplaza despacio */
.orb { position: absolute; border-radius: 50%; will-change: transform; pointer-events: none; }
.orb--hero {
  width: min(760px, 120vw); aspect-ratio: 1; right: -18%; top: 4%;
  background: radial-gradient(circle at 42% 38%,
    rgba(255, 255, 255, 0.95) 0%, rgba(212, 255, 58, 0.9) 12%, rgba(34, 224, 122, 0.75) 30%,
    rgba(127, 245, 208, 0.5) 46%, rgba(111, 168, 255, 0.25) 60%, transparent 70%);
  filter: blur(24px);
  animation: orb-breathe 12s ease-in-out infinite alternate, orb-drift 24s ease-in-out infinite alternate;
}
@keyframes orb-breathe { from { scale: 0.92; opacity: 0.85; } to { scale: 1.06; opacity: 1; } }
@keyframes orb-drift { 0% { translate: 0 0; } 50% { translate: -5% 4%; } 100% { translate: 4% -3%; } }

/* Grano muy sutil sobre las auras (SVG en línea, pesa < 1 KB) */
.grain {
  position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--r-full);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* Principal: Deep Night con texto claro (18:1) y el icono en verde neón */
.btn--primary, .btn--dark { background: var(--deep-night); color: var(--soft-white); box-shadow: 0 6px 20px rgba(11, 14, 19, 0.18); }
.btn--primary .icon, .btn--dark .icon { color: var(--neon-green); }
.btn--primary:hover, .btn--dark:hover { background: #1A2130; transform: translateY(-2px); box-shadow: var(--glow-green); }
/* Secundario: contorno sobre cristal */
.btn--ghost { background: rgba(255, 255, 255, 0.5); color: var(--deep-night); border-color: rgba(11, 14, 19, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.85); border-color: var(--green-ink); transform: translateY(-2px); }

/* ---------- MENÚ ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--deep-night);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(245, 247, 242, 0.8);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(11, 14, 19, 0.08);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: var(--s-2); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-height: 44px; }
.brand__mark { width: 30px; height: 30px; color: var(--deep-night); }
.brand__word { font: 600 1.125rem/1 var(--font-body); letter-spacing: 0.12em; }

.header__wa { margin-left: auto; }
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-sm);
  background: transparent; color: inherit; cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.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); }

/* Menú móvil: panel a pantalla completa con aura */
.nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-4) var(--s-2) var(--s-6);
  background:
    radial-gradient(60% 40% at 100% 100%, rgba(127, 245, 208, 0.45), transparent 70%),
    radial-gradient(50% 35% at 0% 100%, rgba(212, 255, 58, 0.35), transparent 70%),
    rgba(245, 247, 242, 0.98);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex; align-items: center; min-height: 60px;
  font: 400 2.25rem/1.1 var(--font-display); letter-spacing: -0.01em; text-decoration: none;
  color: var(--deep-night); border-bottom: 1px solid rgba(11, 14, 19, 0.1);
}
.nav__link.is-active { color: var(--green-ink); font-style: italic; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--soft-white); }

@media (max-width: 379px) {
  .header__wa span { display: none; }
  .header__wa { padding-inline: 12px; }
}

@media (min-width: 1024px) {
  .header__wa, .menu-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: var(--s-3);
    margin-left: auto; padding: 0; background: none;
    opacity: 1; visibility: visible; transform: none; overflow: visible;
  }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__link {
    position: relative; min-height: 44px; padding: 0 12px; border: 0;
    font: 500 0.9375rem/1 var(--font-body); letter-spacing: 0; color: var(--graphite);
    transition: color 0.2s;
  }
  .nav__link:hover { color: var(--deep-night); }
  .nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px;
    background: var(--grad-glow); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
  }
  .nav__link.is-active { color: var(--deep-night); font-style: normal; }
  .nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
  .nav__cta { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }
}

/* ---------- 5. HERO Y MÓVIL DE EJEMPLO ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + var(--s-6)) 0 var(--s-10); isolation: isolate; }
.hero__grid { display: grid; gap: var(--s-8); align-items: center; }
.hero__text { max-width: 720px; }
.hero h1 { margin-bottom: var(--s-3); }
/* Frase destacada: cursiva con degradado oscuro (legible, contraste AA en todos sus tonos) */
.text-glow { font-style: italic; padding-right: 0.08em; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--graphite); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); max-width: 580px; margin-bottom: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.hero__note { font-size: var(--fs-small); color: var(--graphite); letter-spacing: 0.02em; }
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
  .btn--lg { padding-inline: 20px; font-size: 1rem; }
  .eyebrow { letter-spacing: 0.12em; }
}
@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding-bottom: var(--s-8); }
  .hero__grid { grid-template-columns: 1.3fr 0.7fr; gap: var(--s-6); }
  .orb--hero { right: -10%; top: -4%; width: 820px; }
}

/* Móvil de ejemplo */
.phone { margin: 0 auto; width: min(320px, 100%); position: relative; }
.phone__frame {
  height: 560px; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #1E2532, #0E1219);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 40px 80px rgba(11, 14, 19, 0.28), 0 0 80px rgba(34, 224, 122, 0.25);
}
.phone__top {
  display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px;
  background: #F0F2EE; color: var(--deep-night); border-radius: 34px 34px 0 0;
  border-bottom: 1px solid var(--mist);
}
.phone__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-glow); font: 700 0.75rem/1 var(--font-body); }
.phone__who { display: flex; flex-direction: column; line-height: 1.2; font-size: 0.9375rem; }
.phone__who small { color: var(--graphite); font-size: 0.75rem; }

.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 12px 10px 14px; overflow: hidden;
  background: #EAE6DF; border-radius: 0 0 34px 34px;
  font-size: 0.8125rem; line-height: 1.4; color: #111B21;
}
.chat__day { align-self: center; margin-bottom: auto; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.85); font-size: 0.6875rem; color: var(--graphite); }
.msg { position: relative; max-width: 84%; padding: 6px 9px 16px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: 0.625rem; color: #667781; }
.msg--in { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 3px; }
.msg--out { align-self: flex-start; background: var(--white); border-top-left-radius: 3px; }
.msg__badge { display: table; margin-bottom: 3px; padding: 1px 8px; border-radius: var(--r-full); background: var(--neon-green); color: var(--deep-night); font-weight: 600; font-size: 0.6875rem; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 10px 12px; background: var(--white); border-radius: 10px; }
.typing.is-on { display: inline-flex; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Con JS, los mensajes aparecen uno a uno */
.js .chat [data-step] { display: none; }
.js .chat [data-step].is-shown { display: block; animation: msg-in 0.45s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

@media (max-width: 479px) { .phone__frame { height: 500px; } }

/* ---------- 6. TARJETAS (cristal sobre aura) ---------- */
.cards { display: grid; gap: var(--s-2); }
@media (min-width: 768px) { .cards--3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
.card, .service, .principle, .faq__item, .feature {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm);
}
.card {
  position: relative; padding: var(--s-4); border-radius: var(--r-md);
  font-size: 1.0625rem; line-height: 1.55;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-3);
  border-radius: 14px; color: var(--deep-night);
  background: radial-gradient(circle at 30% 25%, var(--electric-lime), var(--neon-green) 55%, var(--aqua-mint));
  box-shadow: 0 6px 18px rgba(34, 224, 122, 0.3);
}
.card__icon--alt { background: radial-gradient(circle at 30% 25%, var(--aqua-mint), var(--sky-blue) 60%, var(--digital-violet)); box-shadow: 0 6px 18px rgba(111, 168, 255, 0.3); }
/* En móvil, icono a la izquierda del texto para acortar el scroll */
@media (max-width: 767px) {
  .card, .principle { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-2); align-items: start; padding: var(--s-3); }
  .card .card__icon, .principle .card__icon { margin-bottom: 0; grid-row: span 2; }
  .principle h3 { margin-top: 8px; }
}

.closing {
  display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-6);
  font: 400 clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem)/1.15 var(--font-display); letter-spacing: -0.01em;
}
.closing strong { color: var(--green-ink); font-weight: 400; font-style: italic; }
.orb-dot {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--electric-lime) 22%, var(--neon-green) 50%, rgba(127, 245, 208, 0.6) 70%, transparent 72%);
  box-shadow: 0 0 28px rgba(34, 224, 122, 0.55);
  animation: orb-breathe 4s ease-in-out infinite alternate;
}

/* QUÉ HACEMOS */
.services { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .services { grid-template-columns: 1.2fr 1fr; align-items: stretch; } }
.service {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s-4); border-radius: var(--r-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@media (min-width: 768px) { .service { padding: var(--s-6); } }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service h3 { margin-bottom: var(--s-3); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.625rem); letter-spacing: -0.01em; line-height: 1.05; }
.service__orb {
  position: absolute; z-index: -1; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(212, 255, 58, 0.6), rgba(34, 224, 122, 0.35) 35%, rgba(127, 245, 208, 0.15) 55%, transparent 70%);
  filter: blur(10px);
}

.checklist { display: grid; gap: var(--s-2); }
.checklist li { position: relative; padding-left: 36px; color: var(--graphite); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(34, 224, 122, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A42' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist--big li { color: var(--deep-night); font-size: 1.0625rem; }

/* ---------- 7. CÓMO FUNCIONA (línea de tiempo) ---------- */
.steps { position: relative; display: grid; gap: var(--s-4); }
.steps::before { /* la línea */
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 72px; width: 2px;
  background: linear-gradient(var(--neon-green), var(--aqua-mint), var(--sky-blue), var(--digital-violet));
}
.step { position: relative; padding-left: 72px; }
.step__num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.625rem/1 var(--font-display);
  background: var(--deep-night); color: var(--soft-white);
  box-shadow: 0 0 0 6px var(--soft-white), 0 0 24px rgba(34, 224, 122, 0.5);
}
.step h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); margin: 10px 0 var(--s-1); }
.step p { color: var(--graphite); }
.step__tag { padding: 2px 10px; border-radius: var(--r-full); background: rgba(34, 224, 122, 0.18); color: var(--green-ink); font: 600 0.8125rem/1.6 var(--font-body); letter-spacing: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .steps::before { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--neon-green), var(--aqua-mint), var(--sky-blue), var(--digital-violet)); }
  .step { padding-left: 0; padding-top: 80px; }
  .step h3 { margin-top: 0; }
}

/* ---------- 8. PARA QUIÉN ---------- */
.feature { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-3); border-radius: var(--r-lg); }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 380px) 1fr; gap: var(--s-8); padding: var(--s-6); } }
.feature__video { position: relative; }
.feature__video::before { /* orbe pequeño de acento */
  content: ""; position: absolute; inset: 8% -6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 224, 122, 0.45), rgba(111, 168, 255, 0.22) 60%, transparent);
  filter: blur(24px);
}
.video-frame {
  position: relative; z-index: 1; max-width: min(340px, 78vw); margin-inline: auto;
  border-radius: var(--r-md); overflow: hidden; background: var(--deep-night);
  box-shadow: 0 24px 50px rgba(11, 14, 19, 0.25);
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--deep-night); }
.feature__caption { position: relative; z-index: 1; margin-top: var(--s-2); text-align: center; font-size: var(--fs-small); color: var(--graphite); }
.feature__text h3 { margin: var(--s-2) 0 var(--s-3); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); letter-spacing: -0.01em; line-height: 1.05; }
.feature__text .checklist { margin-bottom: var(--s-4); }
.badge { display: inline-block; padding: 6px 14px; border-radius: var(--r-full); background: var(--deep-night); color: var(--aqua-mint); font-weight: 600; font-size: var(--fs-small); }

.also { margin-top: var(--s-8); text-align: center; }
.also h3 { margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border-radius: var(--r-full); background: var(--glass); border: 1px solid var(--glass-line);
  font-weight: 500; transition: border-color 0.25s, transform 0.25s var(--ease);
}
.chip:hover { border-color: var(--neon-green); transform: translateY(-2px); }
.chip .icon { width: 20px; height: 20px; color: var(--green-ink); }

/* ---------- 9. NOSOTROS ---------- */
.about { display: grid; gap: var(--s-6); }
.about__text h2 { margin-bottom: var(--s-3); }
.about__text p + p { margin-top: var(--s-2); }
.about__text p { color: var(--graphite); max-width: 620px; }
.about__text strong { color: var(--deep-night); }
.about__orb { position: relative; display: grid; place-items: center; min-height: 260px; }
.orb--about {
  width: 300px; height: 300px;
  background: radial-gradient(circle at 40% 38%, rgba(255, 255, 255, 0.95), rgba(212, 255, 58, 0.9) 14%, rgba(34, 224, 122, 0.65) 32%, rgba(127, 245, 208, 0.4) 50%, rgba(167, 139, 250, 0.2) 64%, transparent 72%);
  filter: blur(14px);
  animation: orb-breathe 9s ease-in-out infinite alternate;
}
.about__mark { position: relative; width: 120px; height: 120px; color: var(--deep-night); filter: drop-shadow(0 10px 24px rgba(11, 14, 19, 0.18)); }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.3fr 1fr; align-items: center; column-gap: var(--s-8); }
  .about__orb { min-height: 360px; }
  .orb--about { width: 380px; height: 380px; }
}
.principles { display: grid; gap: var(--s-2); }
@media (min-width: 600px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .principles { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }
.principle { padding: var(--s-3); border-radius: var(--r-md); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.principle .card__icon { width: 44px; height: 44px; margin-bottom: var(--s-2); }
.principle h3 { font-size: 1.25rem; margin-bottom: var(--s-1); }
.principle p { color: var(--graphite); font-size: 1rem; }

/* FAQ (details/summary: accesible por teclado sin JS) */
.faq { display: grid; gap: var(--s-1); }
.faq__item { border-radius: var(--r-md); transition: border-color 0.25s, box-shadow 0.25s; }
.faq__item[open] { border-color: rgba(34, 224, 122, 0.6); box-shadow: var(--shadow-md); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  min-height: 64px; padding: var(--s-2) var(--s-3); cursor: pointer; list-style: none;
  font: 600 1.0625rem/1.35 var(--font-body); letter-spacing: -0.01em; border-radius: var(--r-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(34, 224, 122, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0E13' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--neon-green); }
.faq__item summary:hover::after { background-color: rgba(34, 224, 122, 0.35); }
.faq__answer { padding: 0 var(--s-3) var(--s-3); color: var(--graphite); }
@media (prefers-reduced-motion: no-preference) { .faq__item[open] .faq__answer { animation: msg-in 0.35s var(--ease); } }

/* ---------- 10. CONTACTO ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--section-y); }
.contact__grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); align-items: start; } }
.contact h2 { font-size: clamp(3rem, 1.8rem + 5vw, 6rem); margin-bottom: var(--s-2); }
.contact__lead { color: var(--graphite); font-size: 1.125rem; margin-bottom: var(--s-5); }
.contact__alt { display: grid; gap: var(--s-2); }
.alt-link {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2);
  border-radius: var(--r-md); text-decoration: none; overflow-wrap: anywhere;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 600; transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}
.alt-link:hover { border-color: var(--green-ink); background: rgba(255, 255, 255, 0.85); transform: translateY(-2px); }
.alt-link small { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--graphite); }
.alt-link__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--deep-night); color: var(--neon-green); }

/* Formulario con cristal esmerilado */
.glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 70px rgba(11, 14, 19, 0.12);
}
.form { display: grid; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-lg); }
@media (min-width: 600px) { .form { padding: var(--s-5); } }
.form__row { display: grid; gap: var(--s-2); }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.optional { color: var(--graphite); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--field-line); border-radius: var(--r-sm);
  background: var(--white); color: var(--deep-night);
  font: 400 1rem/1.4 var(--font-body);   /* 16 px: evita el zoom automático en iPhone */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #6B7280; }
.field input:hover, .field textarea:hover { border-color: var(--graphite); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(34, 224, 122, 0.3); }
.field.has-error input { border-color: var(--error); }
.field__error { font-size: var(--fs-small); color: var(--error); }
.field__error:empty { display: none; }

.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; accent-color: var(--green-ink); cursor: pointer; }
.field--check label { font-weight: 400; font-size: 0.9375rem; color: var(--graphite); cursor: pointer; }
.field--check label a { color: var(--deep-night); }
.field--check .field__error { grid-column: 1 / -1; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(245, 247, 242, 0.3); border-top-color: var(--neon-green); animation: spin 0.8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .btn--primary { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status:empty { display: none; }
.form__status { padding: 12px 16px; border-radius: var(--r-sm); font-weight: 500; }
.form__status.is-ok { background: rgba(34, 224, 122, 0.16); border: 1px solid rgba(10, 122, 66, 0.4); color: var(--green-ink); }
.form__status.is-error { background: rgba(180, 35, 24, 0.07); border: 1px solid rgba(180, 35, 24, 0.35); color: var(--error); }
.form__legal { font-size: 0.8125rem; line-height: 1.5; color: var(--graphite); }
.form__legal a { color: var(--deep-night); }

/* ---------- 11. FOOTER ---------- */
.footer { position: relative; overflow: hidden; padding-top: var(--s-8); background: var(--soft-white); border-top: 1px solid rgba(11, 14, 19, 0.08); }
.footer__grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand p { margin: var(--s-2) 0; color: var(--graphite); max-width: 320px; }
.footer__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-ink); font-weight: 600; text-decoration: none; }
.footer__mail:hover { text-decoration: underline; }
.footer__title { font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); margin-bottom: var(--s-2); }
.footer__links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--deep-night); transition: color 0.2s; }
.footer__links a:hover { color: var(--green-ink); }
/* Marca gigante en degradado al pie: firma visual de la web */
.footer__wordmark {
  margin: var(--s-2) 0 -0.14em; text-align: center; white-space: nowrap; user-select: none;
  font: 600 clamp(3.5rem, 15.5vw, 15rem)/0.8 var(--font-body); letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--electric-lime), var(--neon-green) 30%, var(--aqua-mint) 55%, var(--sky-blue) 78%, var(--digital-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { position: relative; margin-top: var(--s-6); padding-block: var(--s-3); border-top: 1px solid rgba(11, 14, 19, 0.08); font-size: var(--fs-small); color: var(--graphite); }
.footer__bottom a { color: var(--deep-night); }

/* ---------- PÁGINAS LEGALES ---------- */
.legal-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + var(--s-8)) 0 var(--s-8); }
.legal-hero .orb--hero { width: 560px; right: -200px; top: -240px; }
.legal-hero p { color: var(--graphite); margin-top: var(--s-2); }
.legal { padding-block: var(--s-8) var(--s-12); }
.legal h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); margin: var(--s-6) 0 var(--s-2); }
.legal h3 { font-size: 1.125rem; margin: var(--s-3) 0 var(--s-1); }
.legal p, .legal li { color: var(--graphite); }
.legal p + p { margin-top: var(--s-2); }
.legal ul { list-style: disc; padding-left: var(--s-3); display: grid; gap: var(--s-1); margin-block: var(--s-2); }
.legal a { color: var(--green-ink); font-weight: 500; }
.legal table { width: 100%; border-collapse: collapse; margin-block: var(--s-2); font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.legal th { font-weight: 600; width: 34%; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-8); }
.header__back { margin-left: auto; }

/* ---------- MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .orb { animation: none !important; }
}
