/* =========================================================
   Pura Vida Logic — estilos
   Tema oscuro "selva de noche": fondo azul profundo con
   luces de aurora en verde, cielo y azul. Sin rojo.
   ========================================================= */

:root {
  /* marca */
  --blue: #1457B5;
  --blue-bright: #3D7FE0;
  --green: #1FA971;
  --green-bright: #34D399;
  --sky: #4FB8EC;
  --sky-light: #9BDDF8;
  --white: #FFFFFF;

  /* superficies oscuras */
  --bg: #050D18;
  --bg-2: #071426;
  --bg-3: #0A1B31;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(155, 221, 248, .12);
  --line-strong: rgba(155, 221, 248, .24);

  /* texto */
  --text: #EAF3FB;
  --muted: #93A9C2;
  --dim: #5F7896;

  --grad-brand: linear-gradient(120deg, var(--green) 0%, var(--sky) 55%, var(--blue-bright) 100%);
  --grad-text: linear-gradient(100deg, var(--green-bright) 0%, var(--sky) 45%, var(--sky-light) 100%);
  --grad-border: linear-gradient(140deg, rgba(79, 184, 236, .55), rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .04) 60%, rgba(31, 169, 113, .55));

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --glow-green: 0 0 0 1px rgba(52, 211, 153, .25), 0 12px 40px rgba(31, 169, 113, .35);
  --glow-sky: 0 0 0 1px rgba(79, 184, 236, .25), 0 12px 40px rgba(79, 184, 236, .3);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grano sutil para dar textura al fondo oscuro */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  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");
}
::selection { background: rgba(31, 169, 113, .45); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
strong { color: #fff; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* borde degradado reutilizable (vidrio) */
.feature, .qa-card, .stat, .step, .phone, .terminal, .contact-form, .avatar-badge, .assistant-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, rgba(10, 27, 49, .72)), var(--card-bg, rgba(10, 27, 49, .72))) padding-box,
    var(--grad-border) border-box;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1em 1.65em; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .6s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn-sm { padding: .75em 1.25em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary, .btn-green {
  color: #04121F; background: linear-gradient(110deg, var(--green-bright), var(--sky), var(--green-bright)); background-size: 220% 100%;
  box-shadow: var(--glow-green);
}
.btn-primary:hover, .btn-green:hover { background-position: 100% 0; box-shadow: 0 0 0 1px rgba(52, 211, 153, .4), 0 16px 50px rgba(31, 169, 113, .5); }
.btn-sky { color: #04121F; background: linear-gradient(110deg, var(--sky-light), var(--sky)); box-shadow: var(--glow-sky); }
.btn-white { color: #04121F; background: #fff; }
.btn-outline-light { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Barra de progreso ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-brand); z-index: 60; box-shadow: 0 0 12px var(--sky);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(5, 13, 24, .7);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-14deg) scale(1.08); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.045em; color: #fff; white-space: nowrap; }
.flag-cr { width: 15px; height: 9px; margin-left: 2px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); align-self: center; transform: translateY(-5px); }
.brand-name b { font-weight: 500; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav {
  display: flex; gap: 2px; margin-left: auto; padding: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: .92rem; text-decoration: none; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-world { display: inline-flex; align-items: center; gap: 8px; }
.nav-world::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.nav-health::before { background: #34D399; box-shadow: 0 0 8px #34D399; }
.nav-qa::before { background: #4FB8EC; box-shadow: 0 0 8px #4FB8EC; }
.nav-health.is-active { background: rgba(52, 211, 153, .14); }
.nav-qa.is-active { background: rgba(79, 184, 236, .14); }
.nav-sep { width: 1px; margin: 6px 4px; background: var(--line-strong); }
body[data-world="health"] .scroll-progress { background: linear-gradient(90deg, #1FA971, #34D399); box-shadow: 0 0 12px #34D399; }
body[data-world="qa"] .scroll-progress { background: linear-gradient(90deg, #2F8FD8, #4FB8EC); box-shadow: 0 0 12px #4FB8EC; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); cursor: pointer; font: 600 .78rem/1 var(--font-body);
}
.lang-toggle span { padding: 7px 10px; border-radius: 999px; color: var(--muted); transition: all .3s var(--ease); }
.lang-toggle span.is-on { background: var(--green); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Portada: elegir camino ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 110px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #0E2A4D 0%, transparent 70%), var(--bg);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 20s ease-in-out infinite alternate; mix-blend-mode: screen; }
.b1 { width: 560px; height: 560px; background: var(--sky); top: -220px; right: -160px; opacity: .35; }
.b2 { width: 520px; height: 520px; background: var(--green); top: 30%; left: -220px; opacity: .3; animation-duration: 24s; }
.dots {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(155, 221, 248, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 221, 248, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 20%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 50px) scale(.94); }
}
.hero-inner { position: relative; display: grid; gap: 56px; }
.hero-copy { display: grid; justify-items: center; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-mark { width: 72px; height: 72px; margin-bottom: 22px; filter: drop-shadow(0 0 30px rgba(79, 184, 236, .55)); }
.js .hero-mark.is-visible { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 26px;
  border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong);
  font-size: .86rem; font-weight: 600; color: var(--text);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); display: inline-block; flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { margin-bottom: .35em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* las dos tarjetas-portal */
.world-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.world-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px; min-height: 400px;
  border-radius: var(--radius-lg); text-decoration: none; overflow: hidden;
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(var(--accent-rgb), .22), transparent 65%) padding-box,
    linear-gradient(var(--world-bg-2), var(--world-bg-2)) padding-box,
    var(--grad-border) border-box;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.world-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .35), 0 30px 80px rgba(var(--accent-rgb), .22); }
.world-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #04121F; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 30px rgba(var(--accent-rgb), .4); }
.world-icon .i { width: 28px; height: 28px; }
.world-label { margin-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.world-title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.03em; color: #fff; max-width: 15ch; }
.world-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); }
.world-list li { position: relative; padding-left: 28px; }
.world-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.world-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--accent); }
.world-cta .i { transition: transform .3s var(--ease); }
.world-card:hover .world-cta .i { transform: translateX(5px); }

/* brillo que sigue al cursor */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb, 79, 184, 236), .16), transparent 70%);
  transition: opacity .3s;
}
.world-card.glow::before { z-index: 0; }
.world-card > * { position: relative; z-index: 1; }
.glow:hover::before { opacity: 1; }

/* ---------- Identidad de cada mundo ---------- */
.world-health {
  --accent: #34D399; --accent-2: #1FA971; --accent-rgb: 52, 211, 153;
  --world-bg: #03120E; --world-bg-2: #061B15;
  --grad-border: linear-gradient(140deg, rgba(52, 211, 153, .6), rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .04) 60%, rgba(52, 211, 153, .3));
  --card-bg: rgba(6, 30, 23, .7);
}
.world-qa {
  --accent: #4FB8EC; --accent-2: #2F8FD8; --accent-rgb: 79, 184, 236;
  --world-bg: #040B18; --world-bg-2: #08152B;
  --grad-border: linear-gradient(140deg, rgba(79, 184, 236, .6), rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .04) 60%, rgba(61, 127, 224, .35));
  --card-bg: rgba(8, 22, 44, .72);
}
.world {
  position: relative; padding: 0 0 130px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 420px at 50% 0%, rgba(var(--accent-rgb), .16), transparent 75%),
    var(--world-bg);
  border-top: 1px solid rgba(var(--accent-rgb), .4);
}
.world::before { content: ""; position: absolute; top: -1px; left: 50%; width: min(600px, 80%); height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 24px var(--accent); }
.world-banner { position: relative; padding: 64px 0 28px; }
.world-banner-inner { display: flex; justify-content: center; }
.world-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .35);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.world .eyebrow { background: rgba(var(--accent-rgb), .1); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .3); }
.world .btn-primary { color: #04121F; background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--accent)); background-size: 220% 100%; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .3), 0 12px 40px rgba(var(--accent-rgb), .35); }
.world .chips li:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* proceso propio de cada mundo */
.process-title { margin: 100px 0 30px; text-align: center; font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.03em; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 56px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent, var(--sky)), transparent); opacity: .5; }
.step { position: relative; padding: 24px 22px; border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .3), 0 16px 44px rgba(var(--accent-rgb), .22); }
.step-num {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #04121F;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 30px rgba(var(--accent-rgb), .35);
  transition: transform .4s var(--ease);
}
.step:hover .step-num { transform: scale(1.08) rotate(-6deg); }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* cierre de cada mundo */
.world-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 80px; padding: 40px 44px;
  border-radius: var(--radius-lg); border: 1px solid rgba(var(--accent-rgb), .35);
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(var(--accent-rgb), .25), transparent 60%), rgba(255, 255, 255, .025);
}
.world-cta-box h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; }
.world-cta-box p { margin: 0; color: var(--muted); }
.world-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 120px 0; overflow: hidden; }
#sobre { background: radial-gradient(ellipse 50% 50% at 15% 40%, rgba(79, 184, 236, .1), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
#contacto { background: var(--bg); }
.section-head { position: relative; max-width: 800px; margin: 0 auto 60px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.eyebrow-neutral { background: rgba(255, 255, 255, .06); color: var(--sky-light); border: 1px solid var(--line-strong); }
.eyebrow-light { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* ---------- Salud ---------- */
.health-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.feature-list { display: grid; gap: 14px; justify-items: start; }
.feature {
  display: flex; gap: 18px; width: 100%; padding: 22px; border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateX(6px); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .3), 0 12px 40px rgba(var(--accent-rgb), .25); }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.feature-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  color: var(--accent); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3);
  transition: transform .4s var(--ease), background .4s, color .4s;
}
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: #04121F; }
.feature-icon .i { width: 24px; height: 24px; }
.specialties, .stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0; }
.specialties-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--text); transition: all .25s var(--ease);
}
.chips li:hover { border-color: var(--sky); color: var(--sky-light); transform: translateY(-2px); }

/* teléfono con chat */
.phone {
  --card-bg: #071E17;
  width: min(370px, 100%); justify-self: center; padding: 10px; border-radius: 44px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 90px rgba(31, 169, 113, .22);
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  transition: transform .8s var(--ease);
}
.phone:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-6px); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-radius: 34px 34px 0 0; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); }
.phone-top img { width: 34px; height: 34px; padding: 5px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.phone-top div { display: grid; line-height: 1.25; }
.phone-top strong { font-size: .95rem; }
.phone-top small { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--green-bright); }
.chat { display: flex; flex-direction: column; gap: 10px; height: 420px; padding: 16px; overflow: hidden; border-radius: 0 0 34px 34px; background: linear-gradient(180deg, #05160F, #08221A); justify-content: flex-end; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: .88rem; line-height: 1.45; animation: pop .45s var(--ease) both; }
.msg-user { align-self: flex-end; background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff; border-bottom-right-radius: 6px; }
.msg-bot { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- QA ---------- */
.qa-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: start; }
.terminal {
  --card-bg: rgba(3, 10, 20, .88);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), 0 0 80px rgba(20, 87, 181, .25);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--blue-bright); }
.terminal-bar span:nth-child(2) { background: var(--sky); }
.terminal-bar span:nth-child(3) { background: var(--green-bright); }
.terminal-bar em { margin-left: 10px; font-style: normal; font-size: .78rem; color: var(--dim); font-family: var(--font-mono); }
.terminal-body { margin: 0; min-height: 300px; padding: 22px; font: .86rem/1.9 var(--font-mono); color: #D7E6F5; white-space: pre-wrap; }
.terminal-body .cmd { color: var(--sky-light); }
.terminal-body .dim { color: var(--dim); }
.terminal-body .ok { color: var(--green-bright); }
.terminal-body .pass { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 8px; background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 0 20px rgba(31, 169, 113, .5); }
.terminal-body .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -.2em; background: var(--sky-light); animation: blink 1s steps(1) infinite; }
.qa-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qa-card { padding: 24px; border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s; }
.qa-card:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .3), 0 14px 44px rgba(var(--accent-rgb), .25); }
.qa-card .i { width: 30px; height: 30px; color: var(--sky); margin-bottom: 16px; filter: drop-shadow(0 0 10px rgba(79, 184, 236, .5)); }
.qa-card:nth-child(even) .i { color: var(--blue-bright); filter: drop-shadow(0 0 10px rgba(61, 127, 224, .55)); }
.qa-card p { margin: 0; font-size: .93rem; color: var(--muted); }
.stack { position: relative; justify-content: center; margin: 48px 0 32px; }
.block-title { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.03em; }
.block-title .i { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: var(--accent); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); }
.block-title:not(:first-of-type) { margin-top: 80px; }
.dev-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proof { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 14px 18px; border-radius: 14px; background: rgba(var(--accent-rgb), .07); border: 1px dashed rgba(var(--accent-rgb), .35); color: var(--muted); }
.proof .i { color: var(--accent); }
.proof strong { color: #fff; }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.avatar-wrap { position: relative; justify-self: center; width: min(390px, 100%); }
.avatar { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 10px; }
.avatar::before { content: ""; position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(79, 184, 236, .35), transparent 65%); filter: blur(30px); }
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--green-bright), var(--sky), var(--blue-bright), var(--green-bright)); animation: spin 8s linear infinite; }
.avatar-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg-2); }
.avatar-inner {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, #1D4F8F, #0A1B31 70%);
}
.avatar-inner::before { content: ""; position: absolute; inset: auto -10% -8% -10%; height: 42%; background: linear-gradient(180deg, rgba(31, 169, 113, .55), rgba(31, 169, 113, .15)); border-radius: 50% 50% 0 0; }
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.avatar-initials { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw, 6.4rem); letter-spacing: -.06em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar-badge {
  --card-bg: rgba(10, 27, 49, .85);
  position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 14px;
  box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; white-space: nowrap; animation: bob 7s ease-in-out infinite;
}
.badge-loc { top: 8%; right: -4%; color: var(--green-bright); }
.badge-role { bottom: 8%; left: -8%; color: var(--sky-light); animation-delay: -3s; }
.avatar-leaf { position: absolute; bottom: -2%; right: 8%; width: 60px; animation: bob 5s ease-in-out infinite; animation-delay: -1s; filter: drop-shadow(0 0 20px rgba(79, 184, 236, .6)); }
.about-copy p { color: var(--muted); font-size: 1.06rem; }
.checklist { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 38px; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .12em; width: 26px; height: 26px; border-radius: 9px; background: rgba(31, 169, 113, .15); border: 1px solid rgba(52, 211, 153, .3); }
.checklist li::after { content: ""; position: absolute; left: 10px; top: calc(.12em + 6px); width: 6px; height: 11px; border: solid var(--green-bright); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 80px; }
.stat { padding: 30px 22px; border-radius: var(--radius); display: grid; gap: 6px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--glow-sky); }
.stat strong { font-family: var(--font-display); font-size: 3rem; line-height: 1; letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: .92rem; }

/* ---------- Contacto ---------- */
.contact-card {
  --accent: #34D399; --accent-rgb: 52, 211, 153; --accent-2: #1FA971;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 56px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid rgba(var(--accent-rgb), .35);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(var(--accent-rgb), .4), transparent 60%),
    radial-gradient(ellipse 70% 90% at 100% 100%, rgba(20, 87, 181, .5), transparent 60%),
    #071528;
  box-shadow: var(--shadow); transition: border-color .4s;
}
.contact-card[data-world="qa"] { --accent: #4FB8EC; --accent-rgb: 79, 184, 236; --accent-2: #2F8FD8; }
.contact-card::before { content: ""; position: absolute; width: 420px; height: 420px; top: -200px; left: 40%; border-radius: 50%; background: rgba(var(--accent-rgb), .2); filter: blur(80px); pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.contact-info { position: relative; }
.contact-tabs { display: flex; width: fit-content; gap: 4px; padding: 4px; margin: 0 0 24px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); }
.contact-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .92rem var(--font-body); color: var(--muted); background: transparent; transition: all .3s var(--ease);
}
.contact-tab .i { width: 18px; height: 18px; }
.contact-tab:hover { color: #fff; }
.contact-tab.tab-health[aria-selected="true"] { color: #04121F; background: #34D399; box-shadow: 0 0 24px rgba(52, 211, 153, .45); }
.contact-tab.tab-qa[aria-selected="true"] { color: #04121F; background: #4FB8EC; box-shadow: 0 0 24px rgba(79, 184, 236, .45); }
.contact-info p { color: rgba(234, 243, 251, .85); font-size: 1.08rem; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.contact-meta { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: rgba(234, 243, 251, .85); }
.contact-meta li { display: flex; align-items: center; gap: 10px; }
.contact-meta a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.contact-form { --card-bg: rgba(5, 13, 24, .72); position: relative; display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); }
.contact-form .btn-primary { background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--accent)); background-size: 220% 100%; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .3), 0 12px 36px rgba(var(--accent-rgb), .35); }
.contact-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font: 400 1rem var(--font-body); color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form ::placeholder { color: var(--dim); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.contact-form .is-invalid { border-color: var(--sky-light); box-shadow: 0 0 0 4px rgba(155, 221, 248, .2); }
.form-status { min-height: 1.4em; margin: 0; font-size: .92rem; font-weight: 600; color: var(--accent); text-align: center; }
.form-status.is-error { color: var(--sky-light); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 120px; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 6px; }
.footer-inner .brand { margin-bottom: 12px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--sky-light); }
.small { font-size: .85rem; color: var(--dim); }

/* ---------- Chatbot ---------- */
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: grid; justify-items: end; gap: 12px; }
.assistant-fab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .95rem var(--font-body); color: #04121F; background: linear-gradient(120deg, var(--green-bright), var(--sky));
  box-shadow: 0 12px 34px rgba(31, 169, 113, .45); transition: transform .3s var(--ease);
}
.assistant-fab:hover { transform: translateY(-3px) scale(1.03); }
.assistant-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: halo 2.6s infinite; }
.assistant-fab.is-open::before { animation: none; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 100% { box-shadow: 0 0 0 18px rgba(52, 211, 153, 0); } }
.assistant-panel {
  --card-bg: rgba(7, 18, 34, .97);
  display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100dvh - 120px));
  border-radius: var(--radius); box-shadow: var(--shadow), 0 0 60px rgba(79, 184, 236, .15); overflow: hidden; animation: pop .35s var(--ease);
}
.assistant-panel[hidden] { display: none; }
.assistant-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.assistant-head img { padding: 5px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.assistant-id { flex: 1; display: grid; line-height: 1.25; }
.assistant-id small { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--green-bright); }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.bot-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(155, 221, 248, .2) transparent; }
.bot-log .msg { max-width: 88%; }
.bot-log .msg-user { background: linear-gradient(135deg, #1D6BD0, var(--blue-bright)); }
.bot-options { display: flex; flex-wrap: wrap; gap: 6px; animation: pop .4s var(--ease) both; }
.bot-chip {
  padding: 8px 13px; border-radius: 999px; cursor: pointer; text-align: left;
  font: 500 .84rem/1.3 var(--font-body); color: var(--text);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); transition: all .2s var(--ease);
}
.bot-chip:hover { color: #04121F; background: var(--green-bright); border-color: var(--green-bright); transform: translateY(-1px); }
.bot-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.bot-input input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  font: 400 .95rem var(--font-body); color: var(--text);
}
.bot-input input::placeholder { color: var(--dim); }
.bot-input input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(79, 184, 236, .18); }
.bot-send { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; cursor: pointer; color: #04121F; background: linear-gradient(135deg, var(--green-bright), var(--sky)); }
.bot-send .i { width: 18px; height: 18px; }

/* ---------- Agenda de llamadas ---------- */
.booking {
  --accent: #34D399; --accent-2: #1FA971; --accent-rgb: 52, 211, 153;
  width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
  border: 1px solid rgba(var(--accent-rgb), .35); border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 60% 50% at 0% 0%, rgba(var(--accent-rgb), .14), transparent 70%), #071426;
  color: var(--text); box-shadow: var(--shadow), 0 0 80px rgba(var(--accent-rgb), .15); overflow: auto;
}
.booking[data-world="qa"] { --accent: #4FB8EC; --accent-2: #2F8FD8; --accent-rgb: 79, 184, 236; }
.booking[open] { animation: pop .35s var(--ease); }
.booking::backdrop { background: rgba(2, 6, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.booking .eyebrow { background: rgba(var(--accent-rgb), .1); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .3); }
.booking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 30px 30px 8px; }
.booking-head h2 { margin: 0 0 .25em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.booking-head p { margin: 0; color: var(--muted); }
.booking-step[hidden] { display: none !important; }
.booking-pick { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; padding: 20px 30px 30px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { font-family: var(--font-display); font-size: 1.15rem; }
.cal-head strong::first-letter { text-transform: uppercase; }
.cal-head .icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { padding: 4px 0; text-align: center; font-size: .72rem; font-weight: 700; color: var(--dim); text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  font: 600 .95rem var(--font-body); color: var(--text); background: rgba(255, 255, 255, .05);
  transition: all .2s var(--ease);
}
.cal-day:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.cal-day:disabled { cursor: not-allowed; color: var(--dim); background: transparent; border-color: transparent; opacity: .45; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.cal-day.is-selected { color: #04121F; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 20px rgba(var(--accent-rgb), .45); }
.slots { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.slots-date { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.slots-date::first-letter { text-transform: uppercase; }
.slot-blocked {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--dim);
  border: 1px dashed rgba(255, 255, 255, .16);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 16px);
}
.slot-blocked div { display: grid; line-height: 1.3; }
.slot-blocked strong { color: var(--muted); font-size: .92rem; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.slot-blocked small { font-size: .8rem; }
.slot-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 290px; overflow-y: auto; padding-right: 2px; }
.slot {
  display: grid; gap: 2px; padding: 11px 6px; border-radius: 12px; cursor: pointer; text-align: center;
  font: 600 .92rem var(--font-body); color: var(--text); background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .3);
  transition: all .2s var(--ease);
}
.slot small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.slot:not(:disabled):hover { color: #04121F; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.slot:not(:disabled):hover small { color: #04121F; }
.slots-empty { margin: 0; color: var(--muted); grid-column: 1 / -1; }
.slot:disabled { cursor: not-allowed; transform: none; }
.slot.is-tentative { color: var(--muted); background: repeating-linear-gradient(135deg, rgba(155, 221, 248, .08) 0 6px, transparent 6px 12px); border: 1px dashed rgba(155, 221, 248, .4); }
.slot.is-tentative small { color: var(--sky-light); }
.slot.is-confirmed { color: var(--dim); background: rgba(255, 255, 255, .03); border-color: var(--line); text-decoration: line-through; }
.slot.is-confirmed small { text-decoration: none; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.slot-legend li { display: inline-flex; align-items: center; gap: 6px; }
.slot-legend .dot { width: 12px; height: 12px; border-radius: 4px; }
.dot-free { background: rgba(var(--accent-rgb), .25); border: 1px solid var(--accent); }
.dot-tentative { border: 1px dashed var(--sky-light); background: repeating-linear-gradient(135deg, rgba(155, 221, 248, .35) 0 2px, transparent 2px 4px); }
.dot-booked { background: rgba(255, 255, 255, .08); border: 1px solid var(--line-strong); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.slots-tz { margin: 0; font-size: .8rem; color: var(--dim); }
.booking-form { display: grid; gap: 14px; padding: 20px 30px 30px; }
.booking-summary {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .35); color: var(--accent); font-weight: 600;
}
.booking-summary span { flex: 1; }
.booking-summary span::first-letter { text-transform: uppercase; }
.link-btn { padding: 0; border: 0; background: none; color: #fff; font: 600 .88rem var(--font-body); text-decoration: underline; cursor: pointer; }
.booking-form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font: 400 1rem var(--font-body); color: var(--text);
}
.booking-form select option { background: var(--bg-3); }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.booking-form .is-invalid { border-color: var(--sky-light); box-shadow: 0 0 0 4px rgba(155, 221, 248, .2); }
.booking-form .btn-primary { background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--accent)); background-size: 220% 100%; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .3), 0 12px 36px rgba(var(--accent-rgb), .35); }
.booking-form .form-status { color: var(--sky-light); }
.booking-done { display: grid; justify-items: center; gap: 6px; padding: 30px 30px 40px; text-align: center; }
.booking-done p { max-width: 420px; color: var(--muted); }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; color: #04121F; background: var(--accent); box-shadow: 0 0 40px rgba(var(--accent-rgb), .5); }
.done-icon .i { width: 30px; height: 30px; stroke-width: 3; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .health-grid, .qa-grid, .about-grid { grid-template-columns: 1fr; }
  .terminal { position: relative; top: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 36px; }
  .about-grid { gap: 56px; }
  .phone { transform: none; }
  .world-cta-box { flex-direction: column; align-items: flex-start; }
  .booking-pick { grid-template-columns: 1fr; }
  .dev-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: calc(var(--header-h) - 6px); left: 16px; right: 16px; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: var(--radius); background: rgba(7, 20, 38, .96); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 16px; font-size: 1rem; border-radius: 12px; }
  .nav-sep { width: auto; height: 1px; margin: 6px 12px; }
  .header-actions { margin-left: auto; }
  .hide-mobile { display: none; }
  .world-picker { grid-template-columns: 1fr; }
  .world-card { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 84px 0; }
  .world { padding-bottom: 90px; }
  .hero { padding: calc(var(--header-h) + 36px) 0 80px; }
  .hero-mark { width: 56px; height: 56px; }
  .qa-cards, .dev-cards, .stats, .steps { grid-template-columns: 1fr; }
  .world-card { padding: 26px 22px; }
  .world-banner { padding-top: 36px; }
  .world-tag { font-size: .72rem; }
  .process-title { margin-top: 72px; }
  .world-cta-box { padding: 26px 20px; margin-top: 56px; }
  .world-cta-buttons, .world-cta-buttons .btn { width: 100%; }
  .contact-card { padding: 26px 18px; }
  .contact-tab { padding: 9px 14px; font-size: .86rem; }
  .booking-head, .booking-pick, .booking-form { padding-left: 18px; padding-right: 18px; }
  .slot-list { grid-template-columns: repeat(2, 1fr); max-height: none; }
  .contact-form { padding: 20px; }
  .avatar-wrap { width: min(300px, 86%); }
  .avatar-leaf { display: none; }
  .badge-loc { right: -10%; }
  .badge-role { left: -12%; }
  .assistant { right: 16px; bottom: 16px; }
  .assistant-fab span { display: none; }
  .assistant-fab { padding: 16px; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 34px; height: 34px; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
