/* KRW Pulse — Design system "Lumina Automation" (fuente: Stitch)
   Glassmorphic minimalism + neon. Sin frameworks. Tokens en :root. */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Deep Space */
  --bg:            #0B0B10;
  --bg-2:          #0E0E13;
  --surface:       #14141B;
  --surface-2:     #1B1B20;
  --surface-hover: #1F1F24;
  --border:        #26262F;

  /* Cristal */
  --glass:         rgba(20, 20, 27, 0.60);
  --glass-solid:   #14141B;
  --glass-border:  rgba(255, 255, 255, 0.10);
  --glass-edge:    rgba(255, 255, 255, 0.14);

  /* Monocromo: blanco sobre negro, grises fríos */
  --purple:        #E9E7EF;  /* acción primaria (blanco) */
  --purple-soft:   #FFFFFF;  /* acentos */
  --purple-lt:     #E9E7EF;  /* enlaces */
  --purple-glow:   rgba(255, 255, 255, 0.10);
  --pink:          #B7B1C4;
  --pink-glow:     rgba(255, 255, 255, 0.08);
  --cyan:          #B7B1C4;
  --cyan-glow:     rgba(255, 255, 255, 0.08);
  --live:          #FFFFFF;  /* punto de estado */

  /* Texto */
  --text:          #E9E7EF;
  --text-dim:      #B7B1C4;
  --text-faint:    #857E93;

  /* Layout */
  --header-h: 4.5rem;
  --container: 75rem;
  --radius:    0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font-display: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* ── Fuentes self-hosted (Lumina) ───────────────────────────────────── */
@font-face { font-family:'Hanken Grotesk'; src:url('/assets/fonts/HankenGrotesk-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Hanken Grotesk'; src:url('/assets/fonts/HankenGrotesk-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Hanken Grotesk'; src:url('/assets/fonts/HankenGrotesk-800.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('/assets/fonts/Inter-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('/assets/fonts/Inter-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'JetBrains Mono'; src:url('/assets/fonts/JetBrainsMono-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(58% 40% at 18% -10%, rgba(255, 255, 255, 0.055), transparent 62%),
    radial-gradient(135% 115% at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.55) 100%),
    var(--bg);
  background-attachment: fixed;
}

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

/* ── Tipografía ─────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  color: var(--text);
}
h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  letter-spacing: -0.035em;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}
h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
}

a { color: var(--purple-lt); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple-soft);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: rgba(233, 231, 239, 0.9); color: #0B0B10; }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 3rem; } }

main { flex: 1; padding-top: var(--header-h); }

/* ── Línea de pulso (elemento firma) ────────────────────────────────── */
.pulse-line { stroke: var(--purple-soft); stroke-width: 2; fill: none; }

.pulse-sep {
  display: block;
  width: 7rem;
  margin: 0 auto;
  color: var(--purple-soft);
  filter: drop-shadow(0 0 5px var(--purple-glow));
}

.live-dot {
  display: inline-block;
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px 1px var(--purple-glow);
  vertical-align: middle;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 16, 0.65);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--glass-border);
  background: rgba(11, 11, 16, 0.8);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo svg { color: var(--purple-soft); filter: drop-shadow(0 0 4px var(--purple-glow)); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.btn, .site-nav a.btn:hover { color: #0B0B10; }

/* ── Botón primario: gradiente lila + brillo interior + glow neón ────── */
.btn {
  display: inline-block;
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E0E9 100%);
  color: #0B0B10;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.62rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 26px -10px var(--purple-glow);
}
.btn:hover {
  color: #0B0B10;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 40px -8px var(--purple-glow);
}

/* Botón fantasma (cristal) */
.btn-ghost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); box-shadow: inset 0 1px 0 var(--glass-edge), 0 10px 30px -12px var(--purple-glow); }

/* Menú móvil */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 1.4rem; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    background: rgba(11, 11, 16, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.3rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
}
.site-footer .container { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-top {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.25rem;
}
.footer-legal { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--text); }
.footer-meta { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-faint); }

/* ── Secciones ──────────────────────────────────────────────────────── */
.section { padding: 5.5rem 0; }
@media (max-width: 767px) { .section { padding: 3.5rem 0; } }

.container.narrow { max-width: 46rem; }
.section-text { color: var(--text-dim); margin-top: 1.25rem; max-width: 42rem; font-size: 1.05rem; }
.pulse-sep { margin: 0 auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 7.5rem 0 5rem; overflow: hidden; }
@media (max-width: 767px) { .hero { padding: 4.5rem 0 3.5rem; } }

.hero-glow {
  position: absolute; inset: -12% -6%; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 50% 42%, rgba(176, 174, 192, 0.14), transparent 70%);
  filter: blur(44px);
  opacity: 0.9;
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.hero h1 { max-width: 16ch; }
.hero-sub { color: var(--text-dim); font-size: 1.15rem; max-width: 38rem; margin-top: 1.6rem; }

.hero-pulse { position: relative; max-width: 38rem; margin-top: 2.4rem; padding-right: 0.75rem; }
.hero-pulse svg { width: 100%; height: 40px; overflow: visible; }
.hero-pulse-path { stroke: var(--purple-soft); filter: drop-shadow(0 0 6px var(--purple-glow)); }
.hero-pulse-dot { position: absolute; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.5rem; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }

.link-arrow { color: var(--purple-lt); font-weight: 600; }
.link-arrow:hover { color: #fff; }
.link-arrow span { display: inline-block; }
.link-arrow:hover span { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
  .link-arrow span { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
}

.hero-status { margin-top: 2.5rem; font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.03em; }
.hero-status .live-dot { margin-right: 0.5em; }

/* ── Servicios: glass cards ─────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.75rem; }
@media (max-width: 767px) { .services-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(255, 255, 255, 0.045), transparent 46%),
    var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  padding: 1.85rem;
}
.card:hover { border-color: rgba(255, 255, 255, 0.28); }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s; }
  .card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 16px 44px -16px var(--purple-glow); }
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p:last-child { color: var(--text-dim); font-size: 0.97rem; }

/* Quinta tarjeta (a-medida): puerta de entrada, acento rosa neón */
.card-wide {
  grid-column: 1 / -1;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 48%),
    var(--glass);
  border-color: rgba(255, 255, 255, 0.22);
}
.card-wide .card-tag { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (prefers-reduced-motion: no-preference) {
  .card-wide:hover { border-color: rgba(255, 255, 255, 0.35); box-shadow: inset 0 1px 0 var(--glass-edge), 0 16px 44px -16px var(--purple-glow); }
}

.services-note { color: var(--text-dim); font-size: 0.97rem; margin-top: 2rem; }

/* ── Cómo funciona ──────────────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.75rem; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--purple-soft);
  margin-bottom: 0.9rem;
  text-shadow: 0 0 18px var(--purple-glow);
}
.steps h3 { margin-bottom: 0.4rem; }
.steps li p:last-child { color: var(--text-dim); font-size: 0.97rem; }

/* ── Por qué conmigo: dos columnas ──────────────────────────────────── */
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .two-col { grid-template-columns: 5fr 6fr; gap: 3.5rem; align-items: start; }
  .two-col .section-text { margin-top: 0.4rem; }
}

/* ── Demo: bloque cristal destacado con glow ────────────────────────── */
.demo-block {
  position: relative;
  background:
    radial-gradient(80% 130% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 62%),
    var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 70px -24px var(--purple-glow), inset 0 1px 0 var(--glass-edge);
  padding: 3.5rem 2rem;
  text-align: center;
}
.demo-block .section-text { margin-inline: auto; }
.demo-block .btn { margin-top: 2rem; }

/* ── Formularios ────────────────────────────────────────────────────── */
.newsletter-form { display: flex; gap: 0.75rem; margin-top: 2rem; max-width: 30rem; }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }
.newsletter-form input { flex: 1; }

input, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.95rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.10);
}
textarea { resize: vertical; }

.form-legal { font-size: 0.8rem; color: var(--text-faint); margin-top: 0.9rem; }
.form-legal a { color: var(--text-dim); text-decoration: underline; }
.form-legal a:hover { color: var(--text); }

.contact-form { margin-top: 2rem; display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.contact-form .btn { justify-self: start; }

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

.form-status { font-family: var(--font-mono); font-size: 0.8rem; color: var(--purple-lt); margin-top: 0.9rem; min-height: 1.2em; }
.form-status.error { color: var(--text-dim); }
.contact-alt { margin-top: 2rem; color: var(--text-dim); font-size: 0.97rem; }

/* ── Micro-interacciones ────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s; }
  .btn:hover { transform: translateY(-2px); }
}

.site-nav a:not(.btn), .footer-legal a {
  background-image: linear-gradient(var(--purple-soft), var(--purple-soft));
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 0% 1.5px;
}
.site-nav a:not(.btn):hover, .footer-legal a:hover { background-size: 100% 1.5px; }
@media (prefers-reduced-motion: no-preference) {
  .site-nav a:not(.btn), .footer-legal a { transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s; }
}

/* ── Animaciones (§4) ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-seq {
    opacity: 0; transform: translateY(16px);
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--seq) * 90ms);
  }
  html.js .hero-pulse-path {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
  }
  html.js .hero-pulse-dot { animation: dot-in 0.4s ease 1.75s forwards, beat 2.5s ease-in-out 2.15s infinite; }
  .live-dot.beating { animation: beat 2.5s ease-in-out infinite; }

  html.js .reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); }
  html.js .reveal.in {
    opacity: 1; transform: none; filter: blur(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--stagger, 0ms);
  }

  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes dot-in { to { opacity: 1; } }
  @keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}

@media (prefers-reduced-motion: reduce) { .hero-pulse-dot { opacity: 1; } }
html:not(.js) .hero-pulse-dot { opacity: 1; }

/* ── Páginas interiores ─────────────────────────────────────────────── */
.page-head { padding: 5rem 0 3rem; }
@media (max-width: 767px) { .page-head { padding: 3.5rem 0 2.5rem; } }
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head .section-text { margin-top: 1rem; }

.prose { max-width: 68ch; padding-bottom: 5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p { color: var(--text-dim); margin-bottom: 1rem; }
.prose ul, .prose ol { color: var(--text-dim); margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }

.service-detail {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}
.service-detail .card-tag { margin-bottom: 0; justify-self: start; }
.service-detail .price { font-family: var(--font-mono); font-size: 0.85rem; color: var(--purple-lt); }
.service-detail p { color: var(--text-dim); }

.examples-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 46rem;
}
.examples-list li { padding-left: 1.25rem; position: relative; }
.examples-list li::before { content: '·'; color: var(--purple-soft); position: absolute; left: 0; }

.post-list { list-style: none; display: grid; gap: 0; margin-top: 1rem; padding-bottom: 3rem; }
.post-list li { border-top: 1px solid var(--glass-border); }
.post-list a { display: block; padding: 1.75rem 0; color: var(--text); }
.post-list a:hover h3 { color: var(--purple-lt); }
.post-list .post-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 0.4rem; }
.post-list p { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.35rem; }

.empty-note { color: var(--text-dim); padding-bottom: 4rem; max-width: 46rem; }

/* ═══════════════════════════════════════════════════════════════════════
   Refinamientos calcados de los mockups de Stitch (bento, timeline, neón)
   ═══════════════════════════════════════════════════════════════════════ */

/* Palabra del titular en degradado lila→rosa */
.text-gradient {
  background: linear-gradient(180deg, #FFFFFF 20%, #6E6880 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Orbes neón difuminados del hero */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.hero-orb.orb-1 { width: min(62vw, 640px); height: min(62vw, 640px); background: rgba(255, 255, 255, 0.06); top: -14%; left: 40%; mix-blend-mode: screen; }
.hero-orb.orb-2 { width: min(45vw, 460px); height: min(45vw, 460px); background: rgba(255, 255, 255, 0.04); bottom: -22%; right: -8%; }
.hero .container { z-index: 1; }

/* Botón fantasma grande alineado con el primario */
.hero-ctas .btn-ghost { padding: 0.85rem 1.6rem; font-size: 1rem; }

/* Icon tiles dentro de tarjetas y hero */
.icon-tile {
  width: 3rem; height: 3rem; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--glass-border);
  color: var(--text-dim); margin-bottom: 1.15rem; flex: none;
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.card-featured .icon-tile { color: var(--purple-soft); }

/* Orbe de color en la esquina de cada tarjeta */
.card { overflow: hidden; }
.card > * { position: relative; z-index: 1; }
.card-orb {
  position: absolute; z-index: 0; width: 11rem; height: 11rem; border-radius: 50%;
  filter: blur(60px); opacity: 0.5; top: -3rem; right: -3rem; pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}
.card--cyan .card-orb, .card--pink .card-orb { background: rgba(255, 255, 255, 0.05); }

/* Bento: fila de 3 + tarjetas featured/wide a todo el ancho */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card-featured, .card-wide { grid-column: 1 / -1; }
.card-featured { display: flex; gap: 1.75rem; align-items: flex-start; }
.card-featured .icon-tile { width: 3.5rem; height: 3.5rem; margin-bottom: 0; }
@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; }
  .card-featured { flex-direction: column; gap: 1.15rem; }
}

/* Enlace con flecha dentro de tarjeta */
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--purple-lt); }
.card-link svg { width: 0.9rem; height: 0.9rem; }
.card-link:hover { color: #fff; }

/* Timeline vertical "Cómo funciona" */
.timeline { list-style: none; position: relative; margin-top: 3rem; display: flex; flex-direction: column; gap: 2.25rem; }
.timeline::before {
  content: ''; position: absolute; left: 1.5rem; top: 0.5rem; bottom: 1.5rem; width: 2px;
  background: linear-gradient(to bottom, var(--purple-soft), var(--cyan), transparent); opacity: 0.4;
}
.tl-item { position: relative; padding-left: 4.5rem; min-height: 3rem; }
.tl-node {
  position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: 0 0 15px var(--purple-glow); color: var(--purple-soft); z-index: 1;
}
.tl-node svg { width: 1.4rem; height: 1.4rem; }
.tl-phase { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-lt); }
.tl-card h3 { margin: 0.35rem 0 0.5rem; }
.tl-card p { color: var(--text-dim); font-size: 0.97rem; }

/* Contacto/demo: refuerzo cristal ya cubierto por .demo-block */

/* ── Acentos gráficos sobrios (evaluados; solo lo que suma) ──────────── */

.hero { min-height: 88vh; display: flex; align-items: center; }

/* Texto fantasma en contorno (recurso editorial, muy tenue) */
.ghost-text {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 231, 239, 0.055);
  line-height: 0.8;
}
.hero .ghost-text { font-size: clamp(7rem, 26vw, 22rem); right: 2%; bottom: -3%; }
.section .ghost-text { font-size: clamp(4rem, 14vw, 12rem); left: -0.5rem; top: -2.5rem; }


/* ── Composición centrada (hero y secciones de texto) ───────────────── */
.hero { text-align: center; }
.hero .container > * { margin-inline: auto; }
.hero h1 { max-width: 18ch; }
.hero-ctas { justify-content: center; }
.container.narrow { text-align: center; }
.container.narrow .newsletter-form { margin-inline: auto; }
.contact-form { text-align: left; }
.contact-form .btn { justify-self: center; }
.centered { text-align: center; }

/* ── Páginas de documento (legal): fondo minimalista elegante ───────── */
.doc-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(72% 46% at 50% -8%, rgba(255, 255, 255, 0.05), transparent 62%);
}
.doc-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 72%);
}

.page-head.doc { position: relative; text-align: center; padding: 6rem 0 2.5rem; overflow: hidden; }
.page-head.doc > *:not(.doc-ghost) { position: relative; z-index: 1; }
.page-head.doc .eyebrow { margin-inline: auto; }
.page-head.doc .doc-ghost {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em;
  font-size: clamp(4rem, 15vw, 12rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
}
.doc-rule { width: 3rem; height: 2px; background: var(--purple-soft); margin: 1.5rem auto 0; border-radius: 2px; }
.doc-sub { color: var(--text-dim); margin: 1.25rem auto 0; max-width: 54ch; }

.prose.doc { margin-inline: auto; }
.prose.doc h2 { margin-top: 2.75rem; }
.prose.doc .meta-block {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem; margin: 0.5rem 0 0;
  font-size: 0.95rem;
}
.prose.doc .meta-block p { margin: 0.15rem 0; }

/* ── Fondo global: textura de grano + semitono (fija, estilo editorial) ─ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Grano fino (ruido) en escala de grises */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.06;
  mix-blend-mode: screen;
}
/* Semitono de puntos muy tenue superpuesto (paper editorial) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  opacity: 0.02;
}

/* ── Hero partido con imagen (cerebro IA) ───────────────────────────── */
.hero.split { text-align: left; }
.hero.split .container { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  /* Hero a ancho completo: sin margen lateral, el cerebro llega al borde derecho */
  .hero.split .container {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-left: clamp(1.5rem, 5vw, 5rem);
    padding-right: 0;
  }
  .hero.split .hero-figure { justify-content: flex-end; }
  .hero.split .hero-figure img { width: auto; max-width: 100%; max-height: 78vh; }
}
@media (min-width: 1500px) {
  .hero.split .container { padding-left: clamp(3rem, 8vw, 10rem); }
}
.hero.split .hero-copy > * { margin-inline: 0; }
.hero.split .hero-copy .eyebrow { margin-left: 0; }
.hero.split h1 { max-width: 15ch; margin-inline: 0; }
.hero.split .hero-sub { margin-inline: 0; }
.hero.split .hero-ctas { justify-content: flex-start; }
.hero.split .hero-pulse { margin-inline: 0; }

.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-figure img {
  width: 100%; height: auto; display: block;
  filter: grayscale(1) contrast(1.05) drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}
/* Marcador de posición (se sustituye por <img> cuando exista el archivo) */
.hero-ph {
  aspect-ratio: 3 / 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; padding: 1.5rem;
  background:
    radial-gradient(120% 90% at 50% 30%, #2a2933, transparent 70%),
    repeating-linear-gradient(135deg, #16161d 0 12px, #131319 12px 24px);
  color: var(--text-faint);
}
.hero-ph .ph-word { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-ph .ph-icon { width: 3rem; height: 3rem; color: var(--text-dim); opacity: 0.7; }
@media (max-width: 899px) {
  .hero.split { text-align: center; }
  .hero.split .hero-copy > *, .hero.split h1, .hero.split .hero-sub { margin-inline: auto; }
  .hero.split .hero-ctas { justify-content: center; }
  .hero.split .hero-figure { order: -1; max-width: 26rem; margin-inline: auto; }
}
