@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap');

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eaf2ff;
  --brand-2: #7dd3fc;
  --ink: #1b2430;
  --ink-soft: #64748b;
  --border: #e6eaf0;
  --bg: #ffffff;
  --surface: #f5f8fc;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(27, 36, 48, 0.07);
  --radius: 20px;
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
p { line-height: 1.6; color: var(--ink-soft); }

::selection { background: var(--brand); color: white; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
  transition: padding 0.3s var(--ease-out-quint), background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  padding: 12px 32px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px -20px rgba(16,21,28,0.25);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-family: var(--font-display); font-weight: 700; }
.brand-soft { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out-quint);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--brand); }
/* ---------------------------------------------------------------------------
   Menú en móvil
   ---------------------------------------------------------------------------
   Antes esto era simplemente `.nav-links { display: none }` por debajo de
   1000 px. Es decir: en cualquier celular el menú desaparecía y no había nada
   que lo reemplazara — desde el encabezado solo se podía llegar al inicio y al
   panel. Servicios, MCP y Academia quedaban inalcanzables para quien entrara
   desde WhatsApp o redes, que es de donde llega casi todo el tráfico.
   --------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease-out-quint), opacity 0.2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; top: -6px; left: 0; transform: none; }
.nav-toggle span::after { content: ""; top: 6px; left: 0; transform: none; }

/* Las tres rayas se vuelven una X al abrir */
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

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

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 24px 50px -24px rgba(16, 21, 28, 0.28);
    z-index: 60;
  }
  .nav-links.abierto { display: flex; animation: menuBaja 0.22s var(--ease-out-quint) both; }

  .nav-links .nav-link {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-links .nav-link::after { display: none; }  /* el subrayado no aplica aquí */
  .nav-links .nav-link:hover { background: var(--bg); }
  .nav-links .nav-link.active { background: var(--brand-light); color: var(--brand-dark); }
}

@keyframes menuBaja {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links.abierto { animation: none; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; }
}
.brand-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; border-radius: 22%; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out-quint), box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--brand); color: white; box-shadow: 0 6px 20px -6px rgba(37,99,235,0.5); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(37,99,235,0.6); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn-lg { padding: 13px 26px; font-size: 0.98rem; }

/* Hero */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
}

.mesh {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 780px;
  z-index: -2;
  background:
    radial-gradient(38% 45% at 15% 20%, rgba(37,99,235,0.20), transparent 70%),
    radial-gradient(30% 40% at 85% 10%, rgba(125,211,252,0.18), transparent 70%),
    radial-gradient(45% 50% at 60% 60%, rgba(37,99,235,0.09), transparent 70%);
  filter: blur(50px) saturate(110%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-20px, 20px) rotate(4deg); }
}

.blob { display: none; } /* reemplazado por .mesh */

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 800; }
.accent {
  background: linear-gradient(100deg, var(--brand-dark), var(--brand) 40%, var(--brand-2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-copy p { font-size: 1.05rem; max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* Botón secundario tipo "play" */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.play-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 0.72rem;
  padding-left: 3px;
  transition: transform 0.25s var(--ease-out-quint), box-shadow 0.25s ease, border-color 0.2s ease;
}
.btn-play:hover { color: var(--brand-dark); }
.btn-play:hover .play-circle {
  transform: scale(1.08);
  border-color: var(--brand);
  box-shadow: 0 8px 22px -10px rgba(37,99,235,0.55);
}

/* Chips de garantías bajo los CTAs */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 10px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 4px 10px;
  white-space: nowrap;
}
.hero-chip + .hero-chip { border-left: 1px solid var(--border); }
.chip-ico { font-size: 0.95rem; }
@media (max-width: 560px) {
  .hero-chip + .hero-chip { border-left: none; }
}

.subscribe-form { display: flex; gap: 8px; margin-top: 22px; max-width: 420px; }
.subscribe-form input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.subscribe-form input:focus { outline: none; border-color: var(--brand); }
.subscribe-form .btn { white-space: nowrap; font-size: 0.82rem; padding: 10px 16px; }
.subscribe-status { margin-top: 10px; font-size: 0.82rem; color: var(--brand-dark); }
.subscribe-status.error { color: #c0453c; }
@media (max-width: 480px) { .subscribe-form { flex-direction: column; } }

/* Phone mock / chat demo */
/* Escenario del hero: teléfono + íconos de plataformas orbitando */
.hero-stage {
  position: relative;
  padding: 30px 54px;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,211,252,0.28), transparent 68%);
  filter: blur(34px);
  z-index: -1;
}

.orbit-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  font-size: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 30px -16px rgba(27,36,48,0.35);
  animation: orbit-float 7s ease-in-out infinite;
  z-index: 2;
  cursor: default;
  transition: transform 0.25s var(--ease-out-quint), box-shadow 0.25s ease;
}
.orbit-icon:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 20px 36px -14px rgba(37,99,235,0.45);
}
.orbit-icon img { width: 30px; height: 30px; object-fit: contain; display: block; }
.oi-1 { top: 6%;  left: 0;      animation-delay: 0s; }
.oi-2 { top: 40%; left: -10px;  animation-delay: 0.8s; }
.oi-3 { top: 72%; left: 6px;    animation-delay: 1.6s; }
.oi-4 { top: 6%;  right: 0;     animation-delay: 0.4s; }
.oi-5 { top: 40%; right: -10px; animation-delay: 1.2s; }
.oi-6 { top: 72%; right: 6px;   animation-delay: 2s; }
@keyframes orbit-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (max-width: 620px) {
  .hero-stage { padding: 20px 0; }
  .orbit-icon { display: none; }
}

.phone-mock {
  position: relative;
  z-index: 3;
  background: var(--ink);
  border-radius: 28px;
  padding: 10px;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(16,21,28,0.35);
  animation: phone-float 6s ease-in-out infinite;
}
.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: live-pulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Franja de plataformas bajo el hero */
.logo-strip {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 1264px) { .logo-strip { margin: 0 32px 40px; } }
.logo-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.logo-strip-items {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out-quint), border-color 0.2s ease, box-shadow 0.2s ease;
}
.platform-pill:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 10px 24px -14px rgba(37,99,235,0.5);
}
.pill-ico { font-size: 1.05rem; }
.pill-logo { width: 22px; height: 22px; object-fit: contain; display: block; }
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-10px) rotate(0.3deg); }
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
}
.phone-header .dot { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.phone-title { margin-left: 8px; color: #cfd6dd; font-size: 0.78rem; font-weight: 600; }

.phone-body {
  position: relative;
  background: var(--bg);
  border-radius: 20px;
  min-height: 400px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  overflow: hidden;
}

/* Robot 3D dentro del teléfono, detrás de las burbujas del chat */
.phone-robot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 232px;
  pointer-events: none;
  user-select: none;
  animation: robot-float 6.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 96%);
}
@keyframes robot-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

.demo-chat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.demo-bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: pop-in 0.35s var(--ease-out-quint) forwards;
}
@keyframes pop-in {
  to { opacity: 1; transform: translateY(0); }
}
.demo-bubble.user {
  align-self: flex-end;
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
}
.demo-bubble.assistant {
  align-self: flex-start;
  background: var(--surface);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.demo-bubble.typing {
  align-self: flex-start;
  background: var(--surface);
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}
.demo-bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft);
  animation: bounce 1s infinite;
}
.demo-bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ===== Puertas de entrada del home ===== */
.doors .eyebrow-center { display: block; text-align: center; }
.doors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
@media (max-width: 900px) { .doors-grid { grid-template-columns: 1fr; } }


.door {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out-quint), box-shadow 0.28s ease, border-color 0.28s ease;
}
.door::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-quint);
}
.door:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 28px 54px -30px rgba(37,99,235,0.5);
}
.door:hover::after { transform: scaleX(1); }

.door-ico {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.door h3 { font-size: 1.22rem; color: var(--ink); margin-bottom: 8px; }
.door > p { font-size: 0.92rem; margin: 0 0 16px; }
.door-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.door-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.door-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
/* En móvil, las tres puertas apiladas con sus viñetas ocupaban casi dos
   pantallas enteras. El título, la frase y el enlace bastan para decidir a
   dónde entrar; el detalle ya está en la página de destino. */
@media (max-width: 620px) {
  .door-list { display: none; }
  .door { padding: 22px; }
  .doors-grid { gap: 14px; }
}
.door-cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ===== Cabecera de las paginas de area ===== */
.area-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 32px 8px;
  text-align: center;
}
.area-hero .eyebrow { margin-bottom: 14px; }
.area-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; }
.area-hero p { max-width: 60ch; margin: 14px auto 0; font-size: 1.02rem; }

/* Pistas de la academia */
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .track-grid { grid-template-columns: 1fr; } }
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.track-ico { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.track-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.track-card p { font-size: 0.87rem; margin: 0 0 14px; }
.track-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 5px 12px;
  border-radius: 999px;
}
.track-count.soon { color: var(--ink-soft); background: var(--bg); border: 1px dashed var(--border); }

/* Ecosistema de herramientas */
.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 42px; }
.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s var(--ease-out-quint), box-shadow 0.25s ease;
}
.eco-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -28px rgba(27,36,48,0.3); }
.eco-card.is-flagged { border-color: #f3d6a8; background: #fffaf2; }
.eco-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eco-ico { font-size: 1.7rem; }
.eco-state {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
}
.eco-state.ready { background: var(--brand-light); color: var(--brand-dark); }
.eco-state.soon { background: var(--bg); color: var(--ink-soft); border: 1px dashed var(--border); }
.eco-card h3 { font-size: 1.04rem; margin-bottom: 7px; }
.eco-card p { font-size: 0.87rem; margin: 0 0 12px; }
.eco-tag { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; }
.eco-warn {
  margin-top: 14px !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
  color: #8a5a00;
  background: #fff3dd;
  border-radius: 10px;
  padding: 10px 12px;
}

/* Bloque de acompañamiento */
.mentor-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-light), var(--surface));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 46px;
}
@media (max-width: 860px) { .mentor-box { grid-template-columns: 1fr; padding: 32px; } }
.mentor-copy h2 { text-align: left; margin-bottom: 12px; }
.mentor-copy > p { font-size: 0.98rem; margin-bottom: 20px; }
.mentor-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mentor-list li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--ink-soft); }
.mentor-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.mentor-visual { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }
.mentor-orb {
  position: absolute;
  width: 66px; height: 66px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 30px -16px rgba(27,36,48,0.35);
  animation: orbit-float 6s ease-in-out infinite;
}
.mentor-orb.o1 { top: 12px; left: 18%; animation-delay: 0s; }
.mentor-orb.o2 { top: 78px; right: 14%; animation-delay: 0.9s; }
.mentor-orb.o3 { bottom: 10px; left: 34%; animation-delay: 1.8s; }
.mentor-ring {
  width: 168px; height: 168px;
  border-radius: 50%;
  border: 2px dashed var(--brand);
  opacity: 0.32;
}
@media (max-width: 860px) { .mentor-visual { display: none; } }

.guide-card-emoji { font-size: 2rem; display: block; margin-bottom: 14px; line-height: 1; }

/* Paquetes descargables */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; margin-top: 40px; }
.pack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.pack-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pack-head img { width: 38px; height: 38px; object-fit: contain; }
.pack-head h3 { font-size: 1.05rem; margin: 0 0 2px; }
.pack-meta { font-size: 0.74rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.03em; text-transform: uppercase; }
.pack-card > p { font-size: 0.89rem; margin: 0 0 16px; }
.pack-steps { margin: 0 0 20px; padding-left: 20px; font-size: 0.85rem; color: var(--ink-soft); }
.pack-steps li { margin-bottom: 5px; }
.pack-steps code { background: var(--bg); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: 0.8rem; }
.pack-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out-quint), background 0.2s ease;
}
.pack-dl:hover { background: var(--brand-dark); transform: translateY(-2px); }

.footer-links a { display: block; font-size: 0.86rem; color: var(--ink-soft); text-decoration: none; margin-top: 2px; }
.footer-links a:hover { color: var(--brand-dark); }

/* ===== Pestañas del hub ===== */
.hub-tabs {
  position: sticky;
  top: 68px;
  z-index: 40;
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 34px -26px rgba(27,36,48,0.4);
}
@media (max-width: 1264px) { .hub-tabs { margin-left: 32px; margin-right: 32px; } }

.hub-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.22s ease, transform 0.22s var(--ease-out-quint);
}
.hub-tab:hover { background: var(--surface); }
.hub-tab.is-active { background: var(--brand); box-shadow: 0 10px 24px -12px rgba(37,99,235,0.65); }
.hub-tab-ico {
  font-size: 1.15rem;
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.hub-tab.is-active .hub-tab-ico { background: rgba(255,255,255,0.18); border-color: transparent; }
.hub-tab-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hub-tab-txt b { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.hub-tab-txt i {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hub-tab.is-active .hub-tab-txt b { color: #fff; }
.hub-tab.is-active .hub-tab-txt i { color: rgba(255,255,255,0.82); }

@media (max-width: 900px) {
  .hub-tabs { grid-template-columns: repeat(2, 1fr); top: 62px; }
}
@media (max-width: 520px) {
  .hub-tab { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .hub-tab-txt i { display: none; }
}

/* Paneles */
.hub-panel { display: none; }
.hub-panel.is-active { display: block; animation: panel-in 0.4s var(--ease-out-quint); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hub-panel .section:first-child { padding-top: 56px; }

/* Enlaces del nav que cambian de pestaña */
.nav-link {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Tarjetas de guía */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s var(--ease-out-quint), box-shadow 0.25s ease, border-color 0.25s ease;
}
.guide-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 22px 44px -26px rgba(37,99,235,0.45);
}
.guide-card img { width: 34px; height: 34px; object-fit: contain; margin-bottom: 14px; }
.guide-card h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--ink); }
.guide-card p { font-size: 0.87rem; margin: 0 0 14px; }
.guide-card-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 5px 12px;
  border-radius: 999px;
}
.guide-soon { text-align: center; margin-top: 34px; font-size: 0.86rem; color: var(--ink-soft); }

/* Tips de trabajo — lista vertical numerada, a propósito distinta de las
   rejillas de tarjetas: la página ya tiene tres y otra más se confundiría. */
.tips-list { max-width: 780px; margin: 46px auto 0; display: grid; gap: 14px; }
.tip-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease;
}
.tip-item:hover { border-color: var(--brand); }
.tip-n {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}
.tip-item h3 { font-size: 1.02rem; margin: 0 0 7px; }
.tip-item p { font-size: 0.9rem; margin: 0; }
.tip-why {
  margin-top: 11px !important;
  font-size: 0.83rem !important;
  color: var(--ink-soft);
  border-left: 2px solid var(--brand-light);
  padding-left: 12px;
}
@media (max-width: 560px) {
  .tip-item { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .tip-n { font-size: 1.15rem; }
}

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 96px 32px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; font-weight: 700; }
.section-lead { text-align: center; max-width: 56ch; margin: 0 auto 48px; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 800px) { .cards-grid { grid-template-columns: 1fr; } }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.features-grid .card { padding: 22px; }
.features-grid .card h3 { font-size: 1rem; }
.features-grid .card p { font-size: 0.88rem; margin: 0; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-out-quint), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: 0 20px 44px -26px rgba(27,36,32,0.16); border-color: transparent; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(37,99,235,0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1.15rem; }
.card-list { margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.9rem; }
.card-list li { margin-bottom: 6px; }

.chat-form { display: flex; gap: 10px; margin-top: 4px; }
.chat-form input {
  flex: 1;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}
.chat-form input:focus { outline: none; border-color: var(--brand); }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--brand-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Menú de capacidades Apps Script */
.systems-menu .eyebrow-center { display: block; text-align: center; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .menu-grid { grid-template-columns: 1fr; } }

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s var(--ease-out-quint), box-shadow 0.25s ease, border-color 0.25s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(27,36,32,0.16); border-color: transparent; }
.menu-card h4 { font-size: 0.98rem; margin: 0 0 6px; }
.menu-card p { font-size: 0.84rem; margin: 0; color: var(--ink-soft); }

/* Cadena compacta dentro de las tarjetas de capacidad */
.stack-chain.mini { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.stack-chain.mini .chain-node { font-size: 0.68rem; padding: 12px 4px 11px; gap: 6px; }
.stack-chain.mini .chain-ico { width: 20px; height: 20px; }
.stack-chain.mini .chain-node:nth-child(1) { animation-delay: 0s; }
.stack-chain.mini .chain-node:nth-child(2) { animation-delay: 0.55s; }
.stack-chain.mini .chain-node:nth-child(3) { animation-delay: 1.1s; }

/* Flujo simple dentro de los mockups de ventana */
.flow-visual { display: flex; align-items: center; gap: 10px; }
.flow-node { font-size: 1.3rem; }
.flow-track {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: visible;
}
.flow-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transform: translateY(-50%);
  animation: flow-move 2.2s ease-in-out infinite;
}
@keyframes flow-move {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* Sistemas a medida (casos reales) */
.custom-systems .eyebrow-center { display: block; text-align: center; }

.system-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
}

.system-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.system-card.reverse .system-info { order: 2; }
.system-card.reverse .system-mock { order: 1; }
@media (max-width: 860px) {
  .system-card, .system-card.reverse { grid-template-columns: 1fr; }
  .system-card.reverse .system-info, .system-card.reverse .system-mock { order: 0; }
}

.system-info h3 { font-size: 1.25rem; margin-bottom: 10px; }
.system-info > p { font-size: 0.96rem; margin-bottom: 16px; }
.system-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.system-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.system-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* Por industria (MCP) */
.industry-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.industry-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.industry-steps li { display: flex; gap: 12px; align-items: flex-start; }
.industry-steps .step-n { margin-bottom: 0; flex-shrink: 0; }
.industry-steps li div { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.industry-steps li strong { color: var(--ink); }

/* ===== Laboratorio: proyectos con cadena de herramientas ===== */
.lab .eyebrow-center { display: block; text-align: center; }

.lab-project {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
.lab-project.reverse .app-frame { order: 2; }
.lab-project.reverse .lab-info { order: 1; }
@media (max-width: 860px) {
  .lab-project, .lab-project.reverse { grid-template-columns: 1fr; gap: 28px; }
  .lab-project.reverse .app-frame, .lab-project.reverse .lab-info { order: 0; }
}

/* ===== Ventanas de aplicación de los proyectos ===== */
.app-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 34px 60px -30px rgba(15,23,42,0.55), 0 0 0 1px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  transform: perspective(1400px) rotateY(3deg);
  transition: transform 0.5s var(--ease-out-quint);
}
.lab-project.reverse .app-frame { transform: perspective(1400px) rotateY(-3deg); }
.app-frame:hover,
.lab-project.reverse .app-frame:hover { transform: perspective(1400px) rotateY(0deg) translateY(-4px); }

.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  flex-shrink: 0;
}
.app-dot { width: 9px; height: 9px; border-radius: 50%; }
.app-title, .url-pill {
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 8px;
}
.url-pill {
  flex: 1;
  text-align: center;
  padding: 4px 12px;
  border-radius: 999px;
  margin-right: 42px;
}

/* --- variante oscura (Blender) --- */
.app-frame.dark { background: #1c1f26; }
.app-frame.dark .app-bar { background: #14171d; border-bottom: 1px solid #000; }
.app-frame.dark .app-dot { background: #3a4150; }
.app-frame.dark .app-title { color: #8b95a6; }
.app-body { display: flex; min-height: 250px; }
.app-rail {
  width: 30px;
  background: #16191f;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.app-rail span {
  width: 15px; height: 15px;
  border-radius: 4px;
  background: #2b303b;
}
.app-rail span:first-child { background: var(--brand); }

.viewport {
  position: relative;
  flex: 1;
  background:
    radial-gradient(120% 90% at 50% 8%, #39424f 0%, #23272f 46%, #191c22 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-grid {
  position: absolute;
  left: -25%; right: -25%; bottom: -18%;
  height: 62%;
  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(230px) rotateX(62deg);
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 88%);
  mask-image: linear-gradient(to top, #000 5%, transparent 88%);
}
.vp-gizmo { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; }
.vp-gizmo .ax {
  position: absolute; top: 50%; left: 50%;
  width: 9px; height: 2px; border-radius: 2px;
  transform-origin: left center;
}
.vp-gizmo .ax.x { background: #e0596b; transform: rotate(0deg); }
.vp-gizmo .ax.y { background: #7fc45c; transform: rotate(-125deg); }
.vp-gizmo .ax.z { background: #4f93e6; transform: rotate(-90deg); }

.app-panel {
  width: 96px;
  background: #16191f;
  padding: 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.pp-title {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7789;
  margin-top: 4px;
}
.pp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  color: #98a3b4;
  background: #1f242d;
  border-radius: 5px;
  padding: 4px 6px;
}
.pp-row b { color: var(--brand-2); }
.pp-swatch {
  height: 22px;
  border-radius: 5px;
  background: conic-gradient(from 210deg, #eef3f8, #93a5b8, #eef3f8, #a9b9cb);
}
.app-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #14171d;
  border-top: 1px solid #000;
  font-size: 0.62rem;
  color: #8b95a6;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  animation: live-pulse 2.2s ease-out infinite;
}

/* --- variante clara (web educativa) --- */
.app-frame.light { background: var(--bg); }
.app-frame.light .app-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.app-frame.light .app-dot { background: #cfd8e3; }
.app-frame.light .url-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.app-body.edu { padding: 14px; gap: 12px; align-items: stretch; }
.edu-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(37,99,235,0.08), transparent 70%),
    var(--surface);
  border-radius: 12px;
  padding: 6px;
}
.edu-card {
  width: 122px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.edu-card-title { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; }
.edu-card-sub { font-size: 0.6rem; color: var(--brand-dark); font-weight: 600; margin-top: -3px; }
.edu-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.6rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: 5px;
}
.edu-row b { color: var(--ink); font-weight: 700; }
.edu-thumbs { display: flex; gap: 5px; margin-top: auto; padding-top: 8px; }
.edu-thumbs .th {
  flex: 1;
  height: 17px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.edu-thumbs .th.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }

@media (max-width: 700px) {
  .app-panel, .app-rail { display: none; }
  .edu-card { width: 104px; }
}

.lab-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
.lab-info > p { font-size: 0.96rem; margin-bottom: 22px; }
.lab-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin: 76px 0 0;
  color: var(--ink-soft);
  font-weight: 600;
}
.lab-note {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--brand);
  padding-left: 12px;
  line-height: 1.55;
}

/* Cadena de herramientas — el "con qué se hace" */
.chain-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.stack-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}
.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-soft);
  padding: 16px 8px 14px;
  position: relative;
  animation: chain-pulse 4.4s ease-in-out infinite;
}
.chain-node + .chain-node { border-left: 1px solid var(--border); }
.chain-node img,
.chain-node .chain-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
  color: var(--ink-soft);
  transition: color 0.3s ease, transform 0.3s ease;
}
.chain-node:nth-child(1) { animation-delay: 0s; }
.chain-node:nth-child(2) { animation-delay: 0.55s; }
.chain-node:nth-child(3) { animation-delay: 1.1s; }
.chain-node:nth-child(4) { animation-delay: 1.65s; }
@keyframes chain-pulse {
  0%, 34%, 100% { background: transparent; color: var(--ink-soft); }
  8%, 22% { background: var(--brand-light); color: var(--brand-dark); }
}
/* barra de progreso que recorre la cadena */
.chain-node::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  animation: chain-bar 4.4s ease-in-out infinite;
  animation-delay: inherit;
}
@keyframes chain-bar {
  0%, 34%, 100% { transform: scaleX(0); }
  8%, 22% { transform: scaleX(1); }
}

/* --- Mockup: reloj armándose --- */
.watch-build {
  position: relative;
  width: 152px; height: 200px;
  z-index: 2;
  transform: scale(0.94);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.45));
}
.watch-build > * { position: absolute; left: 50%; transform: translateX(-50%); opacity: 0; }
.watch-strap {
  width: 46px; height: 50px;
  background: linear-gradient(180deg, #333d4e, #202836);
  border-radius: 9px;
  animation: build-in 6s ease-in-out infinite;
}
.watch-strap.top { top: 6px; animation-delay: 0.1s; }
.watch-strap.bottom { bottom: 6px; animation-delay: 0.3s; }
.watch-case {
  top: 46px;
  width: 108px; height: 108px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, #f2f6fa, #aebecf 20%, #eef3f8 38%, #93a5b8 58%, #f4f8fb 76%, #a9b9cb);
  box-shadow: 0 14px 26px -14px rgba(20,32,51,0.55);
  animation: build-in 6s ease-in-out infinite 0.6s;
}
.watch-bezel {
  top: 54px;
  width: 92px; height: 92px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg,
      rgba(255,255,255,0.24) 0deg 1.6deg,
      transparent 1.6deg 6deg),
    conic-gradient(from 200deg, #0f1b2c, #22405f 30%, #0d1826 62%, #1d3a5c 82%, #101d2f);
  background-color: #101d2f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  animation: build-in 6s ease-in-out infinite 1.1s;
}
.watch-dial {
  top: 64px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #223550, #0b1220 78%);
  box-shadow: inset 0 0 14px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: build-in 6s ease-in-out infinite 1.5s;
}
/* índices horarios del dial */
.watch-dial::before,
.watch-dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 60px;
  margin-left: -1px;
  margin-top: -30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.85) 0 7px, transparent 7px calc(100% - 7px), rgba(255,255,255,0.85) calc(100% - 7px) 100%);
  border-radius: 2px;
}
.watch-dial::after { transform: rotate(90deg); }
.watch-hand {
  top: 100px;
  background: var(--brand-2);
  border-radius: 2px;
  transform-origin: bottom center;
  animation: build-in 6s ease-in-out infinite 2s;
}
.watch-hand.h { width: 4px; height: 24px; transform: translateX(-50%) rotate(38deg); }
.watch-hand.m { width: 3px; height: 32px; transform: translateX(-50%) rotate(-72deg); animation-delay: 2.2s; }
.watch-crown {
  top: 94px;
  left: auto; right: 16px;
  width: 10px; height: 17px;
  border-radius: 3px;
  background: linear-gradient(90deg, #b9c6d6, #7d8ea3);
  transform: none;
  animation: build-in 6s ease-in-out infinite 2.5s;
}
@keyframes build-in {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  78%  { opacity: 1; }
  90%, 100% { opacity: 0; }
}

/* --- Mockup: órganos encajando --- */
.organ-build { position: relative; width: 158px; height: 244px; }
.body-svg { width: 100%; height: 100%; display: block; }
.body-outline {
  fill: rgba(37,99,235,0.05);
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  opacity: 0.5;
}

/* Fichas de órgano que encajan en la silueta */
.organ-chip {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(27,36,48,0.4);
  white-space: nowrap;
  opacity: 0;
  animation: organ-snap 6s ease-in-out infinite;
}
.organ-chip i {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  border-radius: 50%;
}
.organ-chip em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink);
}
.oc-1 { top: 14px;  margin-left: -34px; animation-delay: 0.2s; }
.oc-2 { top: 72px;  margin-left: -46px; animation-delay: 1.05s; }
.oc-3 { top: 116px; margin-left: -26px; animation-delay: 1.9s; }
.oc-4 { top: 168px; margin-left: -40px; animation-delay: 2.75s; }
@keyframes organ-snap {
  0%   { opacity: 0; transform: translate(36px, 22px) scale(0.6); }
  11%  { opacity: 1; transform: translate(0, 0) scale(1.1); }
  17%  { transform: translate(0, 0) scale(1); }
  84%  { opacity: 1; transform: translate(0, 0) scale(1); }
  94%, 100% { opacity: 0; }
}
.organ-scan {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  box-shadow: 0 0 12px rgba(125,211,252,0.9);
  animation: scan-move 6s ease-in-out infinite;
}
@keyframes scan-move {
  0%, 100% { top: 14px; opacity: 0; }
  10% { opacity: 0.95; }
  50% { top: 232px; opacity: 0.95; }
  62% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .watch-build > *, .organ-chip, .organ-scan, .chain-node, .chain-node::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand-light);
  transition: transform 0.2s var(--ease-out-quint), background 0.2s ease, color 0.2s ease;
}
.guide-link:hover { background: var(--brand); color: #fff; transform: translateX(3px); }

.industry-teaser { text-align: center; margin-top: 48px; }
.industry-teaser p { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 14px; }
.teaser-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.teaser-chip {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px dashed var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}

.system-mock { display: flex; justify-content: center; }
.mock-window {
  width: 100%;
  max-width: 360px;
  background: var(--ink);
  border-radius: 18px;
  padding: 4px;
  box-shadow: 0 30px 60px -24px rgba(27,36,32,0.4);
}
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.mock-window-title { margin-left: 6px; color: #cfd6cd; font-size: 0.74rem; font-weight: 600; }

.mock-body {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mockup: correo con aprobación */
.mock-email-line { margin: 0; font-size: 0.86rem; color: var(--ink); }
.mock-email-line.muted { color: var(--ink-soft); font-size: 0.78rem; }
.mock-email-actions { display: flex; gap: 8px; margin-top: 4px; }
.mock-btn {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.mock-btn.approve { background: var(--brand-light); color: var(--brand-dark); }
.mock-btn.reject { background: #fbe9e9; color: #b3413f; }

.mock-state-track { display: flex; gap: 4px; flex-wrap: wrap; }
.mock-state {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-faint, var(--ink-soft));
  border: 1px solid var(--border);
}
.mock-state.done { background: var(--brand-light); color: var(--brand-dark); border-color: transparent; }
.mock-state.active { background: var(--brand); color: white; border-color: transparent; }

/* Mockup: panel de cobro */
.mock-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
}
.mock-patient-found { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.78rem; }
.mock-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
}
.mock-ticket { border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.mock-ticket-row { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--ink); }
.mock-ticket-row.muted { color: var(--ink-soft); font-size: 0.78rem; }
.mock-ticket-row.total { font-weight: 700; }
.mock-kpis { display: flex; gap: 18px; }
.mock-kpis div { display: flex; flex-direction: column; }
.mock-kpis strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mock-kpis span { font-size: 0.7rem; color: var(--ink-soft); }

.adapt { background: var(--surface); border-radius: 32px; margin: 40px 32px; max-width: none; }
@media (min-width: 1264px) { .adapt { margin: 40px auto; max-width: 1200px; } }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step { transition: transform 0.25s var(--ease-out-quint); }
.step:hover { transform: translateY(-4px); }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.step h4 { font-size: 1rem; }
.step p { font-size: 0.88rem; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 700px) { .audience-grid { grid-template-columns: 1fr 1fr; } }

.audience-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--bg);
  transition: transform 0.2s var(--ease-out-quint), border-color 0.2s ease;
}
.audience-item:hover { transform: translateY(-3px); border-color: var(--brand); }
.audience-item span { font-size: 1.3rem; }

/* Video demo section */
.video-frame {
  max-width: 860px;
  margin: 40px auto 0;
}
.promo-video {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(16,21,28,0.4);
}
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(37,99,235,0.35), transparent 60%),
    radial-gradient(50% 70% at 90% 90%, rgba(125,211,252,0.25), transparent 60%),
    var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(16,21,28,0.4);
}
.video-play {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  font-size: 1.3rem;
  padding-left: 4px;
  animation: video-pulse 2.4s ease-in-out infinite;
}
@keyframes video-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
  50% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}
.video-label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); }

/* Footer */
.footer-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 32px 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}
.footer-brand p { margin: 10px 0 0; font-size: 0.88rem; max-width: 32ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links strong { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: transform 0.2s var(--ease-out-quint), color 0.2s ease, border-color 0.2s ease;
}
.social-icons a:hover { transform: translateY(-3px); color: var(--brand-dark); border-color: var(--brand); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 40px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}
.footer-bottom a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* La salida sin dar el correo. Va deliberadamente discreta pero legible:
   quien no quiera dejar datos tiene que poder irse con el archivo igual. */
.subscribe-directo {
  margin: 18px auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.subscribe-directo a { color: var(--brand-dark); font-weight: 700; }

/* WhatsApp en el pie de todas las páginas.
   Antes, quien llegaba desde una publicación directo a una guía no tenía
   ninguna forma de escribir: el asistente flotante hay que descubrirlo y el
   formulario de correo solo existe al 81% de la portada. */
.footer-bottom .footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink) !important;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out-quint);
}
.footer-bottom .footer-wa:hover {
  border-color: #25d366;          /* el verde propio de WhatsApp: se reconoce sin leerlo */
  transform: translateY(-1px);
  text-decoration: none;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out-quint), transform 0.7s var(--ease-out-quint); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ Asistente flotante (widget de compañía) ============ */

/* Globo de saludo: sale del lanzador a los 4 s, una vez por sesión.
   Va encima del botón, no encima del contenido, para que se pueda leer sin
   que estorbe lo que la persona vino a hacer. */
.assistant-saludo {
  position: fixed;
  right: 22px;
  bottom: 86px;                 /* justo sobre el lanzador */
  z-index: 101;
  max-width: min(280px, calc(100vw - 44px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 16px 16px 4px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: 0 18px 40px -20px rgba(27, 36, 48, 0.45);
  animation: saludoEntra 0.4s var(--ease-out-quint) both;
}
.assistant-saludo:hover { border-color: var(--brand); }
.assistant-saludo-texto { flex-grow: 1; }
.assistant-saludo-cerrar {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0 2px;
  line-height: 1.4;
}
@keyframes saludoEntra {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-saludo { animation: none; }
}
/* En pantalla estrecha el lanzador es más alto: el globo sube con él. */
@media (max-width: 620px) {
  .assistant-saludo { bottom: 80px; right: 16px; font-size: 0.85rem; }
}

.assistant-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 34px -12px rgba(16,21,28,0.5);
  transition: transform 0.25s var(--ease-out-quint), box-shadow 0.25s ease;
}
.assistant-launcher:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(16,21,28,0.55); }
.assistant-launcher.hidden-launcher { transform: scale(0); opacity: 0; pointer-events: none; }
.assistant-launcher.invite-bounce { animation: invite-bounce 0.6s var(--ease-out-quint) 2; }
@keyframes invite-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
  50% { transform: translateY(0); }
  65% { transform: translateY(-4px); }
}

.assistant-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.assistant-avatar svg { width: 58%; height: 58%; display: block; }
.assistant-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.assistant-avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.4); }
}
.assistant-launcher-text { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

.assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: min(380px, calc(100vw - 44px));
  max-height: min(560px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(16,21,28,0.4);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.9) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease-out-quint), opacity 0.22s ease;
}
.assistant-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

.assistant-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
}
.assistant-panel-header .assistant-avatar { width: 32px; height: 32px; background: rgba(255,255,255,0.2); }
.assistant-panel-header-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.assistant-panel-header-text strong { font-size: 0.9rem; }
.assistant-panel-header-text span { font-size: 0.72rem; opacity: 0.85; display: flex; align-items: center; gap: 5px; }
.assistant-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgba(255,255,255,0.3); }
.assistant-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.assistant-close:hover { background: rgba(255,255,255,0.3); }

.assistant-window {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  min-height: 220px;
}
.assistant-window .demo-bubble { animation: none; opacity: 1; transform: none; max-width: 88%; }
.assistant-window .demo-bubble.pending { font-style: italic; color: var(--ink-soft); }

.assistant-panel form.chat-form { padding: 12px; background: var(--bg); border-top: 1px solid var(--border); margin: 0; }

.recommend-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.recommend-cta:hover { background: var(--brand); color: white; transform: translateX(2px); }

/* El tema queda fijo en claro sin importar el modo del sistema operativo del
   visitante -- ver [[data-theme="dark"]] más abajo si en el futuro se agrega
   un selector manual de tema. */
:root[data-theme="dark"] {
  --ink: #eef1f6;
  --ink-soft: #94a3b8;
  --border: #2a3444;
  --bg: #131722;
  --surface: #1a2130;
  --brand-light: #1c3a66;
  --glass: rgba(19, 23, 34, 0.6);
  --glass-border: rgba(238, 241, 246, 0.08);
}
:root[data-theme="light"] {
  --ink: #1b2430;
  --ink-soft: #64748b;
  --border: #e6eaf0;
  --bg: #ffffff;
  --surface: #f5f8fc;
  --brand-light: #eaf2ff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(27, 36, 48, 0.07);
}
