/* Landing de Estela — secciones oscuras y claras alternadas, display de 88px,
   un solo color de acción (azul) y violeta solo como identidad. */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
img, svg { max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-btn);
  border: 1px solid transparent; background: var(--slate-depth); color: var(--paper); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn.primary { background: var(--signal); color: #fff; }
.btn.primary:hover { background: var(--signal-hover); }
.btn.outline { background: transparent; border-color: var(--steel-edge); }
.btn.outline:hover { background: var(--slate-depth); }
.btn.outline-dark { background: transparent; border-color: var(--pale-mist); color: var(--midnight); }
.btn.outline-dark:hover { background: var(--cloud); }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: var(--r-pill); background: var(--slate-depth); color: var(--ash); font-size: 13px; font-weight: 500; }
.pill.light-pill { background: var(--cloud); color: var(--mist); }
.muted { color: var(--ash); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(9, 16, 28, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--steel-edge); }
.nav-in { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.links { display: flex; gap: 28px; margin-left: 16px; }
.links a { color: var(--ash); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--paper); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.nav-cta .btn { height: 40px; }

/* Secciones */
section { position: relative; padding: 112px 0; overflow: hidden; }
section.dark { background: var(--midnight); color: var(--paper); }
section.light { background: var(--paper); color: var(--midnight); }
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }
.o1 { width: 640px; height: 640px; right: -140px; top: -180px; background: radial-gradient(circle, var(--violet), transparent 68%); opacity: .5; }
.o2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, var(--signal), transparent 68%); opacity: .38; }
.o3 { width: 360px; height: 360px; left: 42%; top: 48%; background: radial-gradient(circle, var(--amber), transparent 70%); opacity: .1; }
.o4 { width: 560px; height: 560px; left: -220px; top: 10%; background: radial-gradient(circle, var(--violet), transparent 68%); opacity: .28; }
.o5 { width: 600px; height: 600px; right: -200px; bottom: -260px; background: radial-gradient(circle, var(--signal), transparent 68%); opacity: .3; }
.o6 { width: 700px; height: 700px; left: 50%; top: -300px; margin-left: -350px; background: radial-gradient(circle, var(--violet), transparent 68%); opacity: .45; }
.head { max-width: 720px; margin: 0 auto 64px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
.head p { font-size: 19px; line-height: 1.4; color: var(--mist); letter-spacing: -0.009em; }
.dark .head p, .dark p { color: var(--ash); }
.lead { font-size: 19px; line-height: 1.45; color: var(--ash); letter-spacing: -0.009em; max-width: 560px; }
.lead.sm { margin: 16px 0 24px; }
.light .lead { color: var(--mist); }

/* Hero */
.hero { padding: 96px 0 112px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.display { font-size: clamp(46px, 7.2vw, 88px); line-height: .95; letter-spacing: -0.021em; font-weight: 700; margin: 20px 0 24px; }
.display.sm { font-size: clamp(40px, 6vw, 64px); margin: 20px 0 16px; line-height: 1; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 24px; }
.center-row { justify-content: center; }
.ticks { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin: 0; color: var(--ash); font-size: 14px; }
.ticks li::before { content: '✓'; margin-right: 8px; color: var(--paper); }

/* Maqueta de dispositivo */
.device { background: #0b1322; border: 1px solid var(--steel-edge); border-radius: 24px; box-shadow: rgba(0, 0, 0, .5) 0 30px 80px, rgba(113, 64, 253, .18) 0 0 80px; overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.dev-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--steel-edge); background: var(--midnight); }
.dev-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--steel-edge); }
.dev-body { display: grid; grid-template-columns: 38% 62%; min-height: 360px; }
.dev-list { border-right: 1px solid var(--steel-edge); padding: 8px; background: var(--midnight); }
.dev-h { font-weight: 700; font-size: 15px; padding: 8px 8px 12px; }
.dev-chat { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; }
.dev-chat.on { background: var(--slate-depth); }
.dev-chat b, .dev-top b { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--steel-edge); display: grid; place-items: center; font-size: 11px; color: var(--pale-mist); }
.dev-chat div, .dev-top div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.dev-chat strong, .dev-top strong { font-size: 13px; font-weight: 600; }
.dev-chat span, .dev-top span { font-size: 11px; color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-chat em { font-style: normal; font-size: 10px; font-weight: 700; background: var(--paper); color: var(--midnight); min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }
.dev-convo { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; background: #070d18; }
.dev-top { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--steel-edge); margin: 0 -12px 4px; padding-left: 12px; padding-right: 12px; background: var(--midnight); }
.dev-top u { text-decoration: none; font-size: 11px; border: 1px solid var(--steel-edge); border-radius: 8px; padding: 4px 8px; color: var(--ash); }
.bub { max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; border: 1px solid var(--steel-edge); background: var(--slate-depth); }
.bub.out { align-self: flex-end; background: #1b2a4a; border-color: #243660; }
.bub.note { align-self: flex-end; background: rgba(246, 176, 60, .08); border: 1px dashed rgba(246, 176, 60, .45); }
.bub.note small { display: block; color: var(--amber); font-weight: 600; font-size: 10.5px; margin-bottom: 2px; }
.dev-compose { margin-top: auto; display: flex; align-items: center; gap: 8px; background: var(--slate-depth); border: 1px solid var(--steel-edge); border-radius: 14px; padding: 8px 10px; font-size: 12px; color: var(--mist); }
.dev-compose span { flex: 1; }
.dev-compose kbd { border: 1px solid var(--steel-edge); border-radius: 5px; padding: 0 5px; font-size: 10px; color: var(--ash); }
.dev-compose i { width: 26px; height: 26px; border-radius: 9px; background: var(--signal); }

/* Funciones */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.grid3 article .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--cloud); display: grid; place-items: center; margin-bottom: 20px; }
.grid3 article .ico svg { width: 22px; height: 22px; stroke: var(--midnight); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid3 h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.016em; font-weight: 600; margin-bottom: 8px; }
.grid3 p { font-size: 15px; line-height: 1.5; color: var(--mist); }
.dark-grid article { background: var(--slate-depth); border: 1px solid var(--steel-edge); border-radius: var(--r-card); padding: 28px; }
.dark-grid { gap: 20px; }
.dark-grid p { color: var(--ash); }

/* Secciones partidas */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; position: relative; z-index: 1; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--steel-edge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dark-checks li::before { background-color: var(--midnight); }
.panel-mock { background: var(--slate-depth); border: 1px solid var(--steel-edge); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 24px; box-shadow: rgba(0, 0, 0, .35) 0 24px 60px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-row div { background: var(--midnight); border: 1px solid var(--steel-edge); border-radius: 16px; padding: 16px; }
.stat-row b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.stat-row span { font-size: 12px; color: var(--ash); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars i { flex: 1; background: var(--paper); border-radius: 6px; opacity: .92; }
.bars i:nth-child(even) { background: var(--graphite); }
.agent-row { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.agent-row span { width: 90px; color: var(--ash); }
.agent-row em { height: 8px; border-radius: 4px; background: var(--paper); display: block; }
.light-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.code-card { margin: 0; background: var(--midnight); color: var(--pale-mist); border-radius: 24px; padding: 28px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.65; overflow-x: auto; box-shadow: rgba(9, 16, 28, .25) 0 24px 60px; border: 1px solid var(--steel-edge); }
.code-card .c { color: var(--mist); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; background: var(--cloud); border-radius: var(--r-card); padding: 36px 32px; display: flex; flex-direction: column; gap: 8px; }
.plan.feat { background: var(--midnight); color: var(--paper); box-shadow: rgba(9, 16, 28, .3) 0 24px 60px; }
.plan h3 { font-size: 27px; letter-spacing: -0.016em; font-weight: 600; }
.plan .who { color: var(--mist); font-size: 15px; margin-bottom: 16px; }
.plan.feat .who { color: var(--ash); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; font-size: 15px; }
.plan li::before { content: '✓'; margin-right: 10px; font-weight: 700; }
.plan .btn { width: 100%; }
.tagline { position: absolute; top: 20px; right: 20px; background: var(--paper); color: var(--midnight); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }
.fine { text-align: center; color: var(--mist); font-size: 13px; max-width: 640px; margin: 40px auto 0; line-height: 1.5; }

/* Final y pie */
.final { padding: 120px 0; }
.final .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final .lead { margin: 0 auto; }
.footer { background: var(--midnight); border-top: 1px solid var(--steel-edge); padding: 28px 0; font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-in .logo { font-size: 17px; }
.foot-in .muted { flex: 1; }
.foot-links { margin: 0; gap: 20px; }

@media (max-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid, .split-grid, .light-split { grid-template-columns: 1fr; gap: 48px; }
  .device { transform: none; }
  .grid3, .plans { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .grid3, .plans { grid-template-columns: 1fr; gap: 32px; }
  .dark-grid { gap: 16px; }
  .nav-cta .outline { display: none; }
  .dev-body { grid-template-columns: 1fr; }
  .dev-list { display: none; }
  .stat-row b { font-size: 22px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
