/* Aura AI · colores tomados del logo */
:root {
  --cyan: #19d3ff;
  --blue: #0a5bff;
  --indigo: #2a12d9;
  --violet: #8a1df2;
  --magenta: #c63df5;
  --night: #05061a;
  --night-2: #0b0d2a;
  --ink: #0d1024;
  --ink-soft: #565b7a;
  --paper: #ffffff;
  --paper-alt: #f4f6fc;
  --line: #e3e7f3;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 40%, var(--violet) 75%, var(--magenta));
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.3rem; font-weight: 650; margin-bottom: 10px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px;
}
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.center { text-align: center; }
section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.light { background: var(--paper); }
.light.alt { background: var(--paper-alt); }
.dark { background: var(--night); color: #fff; overflow: hidden; }

.eyebrow {
  font-size: .82rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow.dark-text { color: var(--blue); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: rgba(255, 255, 255, .78); max-width: 34em; }
.sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 38em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-dark { background: linear-gradient(100deg, var(--blue), var(--violet) 70%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 620; font-size: 1rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 34px rgba(42, 18, 217, .45); }
.btn-primary:hover { box-shadow: 0 14px 44px rgba(138, 29, 242, .6); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 18px; font-size: .92rem; }

/* Navegación */
.nav {
  position: fixed; inset: 14px 0 auto 0; z-index: 50;
  width: min(1120px, 100% - 28px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 12px 9px 10px; border-radius: 999px;
  background: rgba(10, 12, 40, .55); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: #fff; transition: background .3s ease;
}
.nav.is-scrolled { background: rgba(10, 12, 40, .82); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.08rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; gap: 26px; font-size: .94rem; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, .8); transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* Aurora de fondo */
.aurora { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob-a { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: var(--blue); animation: drift 18s ease-in-out infinite alternate; }
.blob-b { width: 40vw; height: 40vw; right: -10vw; top: 8vw; background: var(--violet); animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
.blob-c { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: var(--cyan); opacity: .32; animation: drift 26s ease-in-out -3s infinite alternate; }
.aurora.soft .blob { opacity: .3; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 5vw, 0) scale(1.18); }
}

/* Inicio */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 130px; padding-bottom: 90px; }
.hero-inner {
  width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 80px); align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-phone { display: flex; justify-content: center; will-change: transform; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* Teléfono */
.phone {
  width: min(320px, 100%); border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #23264d, #0c0e26);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 90px rgba(4, 6, 40, .7), 0 0 0 1px rgba(25, 211, 255, .08), 0 0 80px rgba(42, 18, 217, .35);
  display: flex; flex-direction: column;
}
.phone-lg { width: min(360px, 100%); }
.phone-on-light { box-shadow: 0 40px 80px rgba(20, 30, 90, .28); }
.phone-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #101336; border-radius: 28px 28px 0 0; color: #fff;
}
.phone-top strong { display: block; font-size: .92rem; line-height: 1.2; }
.phone-top small { color: #6ee7a8; font-size: .74rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700;
}
.chat {
  height: 400px; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px;
  background: #080a22; border-radius: 0 0 28px 28px; scrollbar-width: thin; scrollbar-color: #2a2e5c transparent;
}
.phone-lg .chat { height: 430px; }
.chat:has(+ .chat-input:not([hidden])) { border-radius: 0; }
.msg {
  max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: .9rem; line-height: 1.4;
  animation: pop .35s cubic-bezier(.2, .9, .3, 1.3) both; white-space: pre-line; overflow-wrap: anywhere;
}
.msg.them { align-self: flex-start; background: #1b1f4a; color: #eef0ff; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: linear-gradient(120deg, var(--blue), var(--violet)); color: #fff; border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 13px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8f96d6; animation: blink 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .18s; }
.msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-empty { margin: auto; text-align: center; color: #7d83b8; font-size: .92rem; padding: 0 22px; }
.chat-input { display: flex; gap: 8px; padding: 10px; background: #101336; border-radius: 0 0 28px 28px; }
.chat-input input {
  flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 10px 14px;
  background: #1b1f4a; color: #fff; font: inherit; font-size: .9rem;
}
.chat-input input::placeholder { color: #8087bd; }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; font-size: 1rem; }

/* Frases grandes */
.statement .wrap { display: grid; gap: clamp(18px, 3vw, 34px); }
.big { font-size: clamp(1.9rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.big.muted { color: #9aa0bd; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step {
  padding: 34px 28px; border-radius: var(--radius); background: var(--paper-alt); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 30, 90, .12); }
.step-num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1.15rem;
}
.step p, .feature p { color: var(--ink-soft); }

/* Pruébalo */
.try-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.try-phone-col { display: flex; justify-content: center; }
.card-form {
  display: grid; gap: 10px; margin-top: 30px; padding: 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.contact .card-form { margin-top: 0; }
.card-form label { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .88); margin-top: 6px; }
.card-form input[type="text"], .card-form input[type="tel"], .card-form textarea, .card-form select {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; color: #fff;
  background: rgba(5, 6, 26, .6); border: 1px solid rgba(255, 255, 255, .18);
  transition: border-color .2s, box-shadow .2s;
}
.card-form select option { color: #111; }
.card-form textarea { resize: vertical; }
.card-form ::placeholder { color: rgba(255, 255, 255, .42); }
.card-form input:focus, .card-form textarea:focus, .card-form select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 211, 255, .18);
}
.card-form .is-invalid { border-color: #ff6b8b; }
.card-form .btn { margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form-note { font-size: .84rem; color: rgba(255, 255, 255, .6); min-height: 1.2em; }
.form-note.ok { color: #6ee7a8; }
.form-note.err { color: #ff9db3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Ejemplos */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 40px; }
.tab {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--blue); color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.demo-points h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 20px; }
.demo-points ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.demo-points li { padding-left: 34px; position: relative; color: var(--ink-soft); font-size: 1.05rem; }
.demo-points li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}

/* Qué incluye */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.feature {
  padding: 34px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 30, 90, .12); }
.feature-icon { font-size: 1.9rem; display: block; margin-bottom: 16px; }

/* Clientes: recortes de assets/clientes.webp (863 x 1822) */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 30px; align-items: center; }
.logo-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; height: 190px; min-width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; }
.client { display: block; flex: none; background-image: url("assets/clientes.webp"); background-repeat: no-repeat; background-size: 100% auto; }
.client-visalud { width: 100%; aspect-ratio: 863 / 190; background-position: 0 11.64%; }
.client-mentalmed { width: min(100%, 290px); aspect-ratio: 863 / 450; background-position: 0 32.07%; }
.client-caveg { width: min(100%, 290px); aspect-ratio: 863 / 450; background-position: 0 66.33%; }
.client-face { width: 100%; aspect-ratio: 863 / 340; background-position: 0 93.79%; }

/* Historia */
.story { background: radial-gradient(120% 90% at 15% 20%, #161a5a 0%, var(--night) 60%); }
.story-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.story-mark { width: clamp(150px, 20vw, 240px); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 110px rgba(25, 211, 255, .4), 0 0 200px rgba(138, 29, 242, .35); }
.story-mark img { width: 84%; height: auto; }
.story p + p { margin-top: 16px; }
.story p:not(.eyebrow):not(.lead) { color: rgba(255, 255, 255, .72); max-width: 38em; font-size: 1.05rem; }

/* Redes */
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.social {
  display: grid; gap: 4px; padding: 30px 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--paper-alt); border: 1px solid var(--line); transition: all .3s ease;
}
.social strong { font-size: 1.25rem; }
.social span { color: var(--ink-soft); }
.social:hover { background: var(--ink); color: #fff; transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 30, 90, .2); }
.social:hover span { color: rgba(255, 255, 255, .7); }

/* Pie */
.footer { padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: rgba(255, 255, 255, .6); }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Página legal */
.legal-page { background: var(--paper); }
.legal-page .nav { position: sticky; top: 14px; }
.legal { max-width: 760px; padding: 70px 0 90px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1.03rem; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-date { font-size: .92rem !important; }
.form-note a, .check a { color: var(--cyan); }

/* Animación al bajar */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .features .reveal:nth-child(2) { transition-delay: .12s; }
.steps .reveal:nth-child(3), .features .reveal:nth-child(3) { transition-delay: .24s; }
.features .reveal:nth-child(4) { transition-delay: .36s; }

/* Pantallas pequeñas */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner, .try-grid, .contact-grid, .demo, .story-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .steps, .features, .socials { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .demo .phone, .story-mark { margin-inline: auto; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .scroll-hint span, .msg, .msg.typing i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step, .feature, .social { transition: none; }
}
