/* AIlen — Secretaria virtual sobre WhatsApp. Landing estática, sin build. */

:root {
  /* Marca */
  --teal: #2E8E86;
  --blue: #1F6591;
  --grad: linear-gradient(120deg, #2E8E86, #1F6591);

  /* Tinta */
  --ink: #0f2f3a;      /* títulos */
  --text: #123540;     /* texto base */
  --muted: #557079;    /* texto secundario */
  --muted-2: #456069;
  --muted-3: #3d5560;

  /* WhatsApp */
  --wa-header: #075E54;
  --wa-send: #128C7E;
  --wa-green: #25D366;
  --wa-bubble-in: #ffffff;
  --wa-bubble-out: #d9fdd3;
  --wa-bg: #efe7de;
  --wa-check: #34b7f1;

  /* Superficies */
  --surface-tint: #f3f7f6;
  --surface-soft: #e7f3ea;
  --surface-icon: #e7f3ef;
  --border: #eef2f1;
  --border-soft: #e8f0ee;
  --dark: #0f2f3a;

  --maxw: 1180px;
  --pad: 32px;
  --radius: 20px;
  --shadow-cta: 0 12px 28px -10px rgba(31, 101, 145, .6);
  --font: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-brand: 'Quicksand', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
::selection { background: var(--teal); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Foco accesible */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Utilidades de texto */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: filter .15s ease, transform .15s ease, background .15s ease, gap .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--shadow-cta); }
.btn-grad:hover { filter: brightness(1.06); }
.btn-link { color: var(--blue); }
.btn-link:hover { gap: 12px; }
.btn-sm { font-size: 14.5px; padding: 11px 22px; }
.btn-lg { font-size: 16px; padding: 15px 30px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-weight: 700; font-size: 24px; letter-spacing: .5px; }
.brand-tag { font-size: 9.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: flex-end; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-size: 14.5px; font-weight: 600; color: var(--muted-3); transition: color .15s; }
.nav-menu a:hover { color: var(--blue); }
.nav-menu .btn-grad { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; }

/* ---------- HERO ---------- */
.hero { position: relative; background: radial-gradient(120% 120% at 85% 0%, #eaf4f2 0%, #ffffff 55%); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 84px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-soft); color: var(--wa-send);
  font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .25);
}
.hero h1 {
  font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -1.2px;
  margin-bottom: 20px; color: var(--ink); text-wrap: balance;
}
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--muted-2); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.btn-link .arrow { font-size: 18px; }
.hero-chips { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.hero-chips li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--muted-3); }
.chip-check {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none;
}

/* ---------- PHONE / WHATSAPP MOCKUP ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 340px; background: #0b141a; border-radius: 38px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(15, 47, 58, .55), 0 0 0 1px rgba(0, 0, 0, .06);
  animation: ailenFloat 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--wa-bg); position: relative; }

.wa-head { background: var(--wa-header); padding: 14px 16px 12px; display: flex; align-items: center; gap: 12px; }
.wa-back { color: #cfeee6; font-size: 20px; }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.wa-avatar img { width: 34px; height: 34px; object-fit: contain; }
.wa-meta { flex: 1; min-width: 0; }
.wa-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.1; }
.wa-status { color: #a9d6cd; font-size: 11.5px; margin-top: 2px; }
.wa-menu { color: #cfeee6; font-size: 16px; }

.wa-body {
  padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 3px;
  background-image: radial-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px); background-size: 18px 18px;
  min-height: 430px;
}
.wa-day {
  align-self: center; background: #dbe5f0; color: #39647a; font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 8px; margin-bottom: 8px;
}
.bubble {
  max-width: 80%; padding: 7px 11px; font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}
.bubble .t { display: block; text-align: right; font-size: 10px; margin-top: 2px; }
.bubble-in { align-self: flex-start; background: var(--wa-bubble-in); color: #111b1f; border-radius: 2px 12px 12px 12px; }
.bubble-in .t { color: #98a3a8; }
.bubble-out { align-self: flex-end; background: var(--wa-bubble-out); color: #0b2620; border-radius: 12px 2px 12px 12px; }
.bubble-out .t { color: #4c9c7d; }
.bubble-out .check { color: var(--wa-check); }

/* Aparición escalonada de burbujas */
.js .wa-body .bubble { opacity: 0; animation: ailenRise .4s ease forwards; }
.js .wa-body .bubble:nth-child(2) { animation-delay: .15s; }
.js .wa-body .bubble:nth-child(3) { animation-delay: .35s; }
.js .wa-body .bubble:nth-child(4) { animation-delay: .55s; }
.js .wa-body .bubble:nth-child(5) { animation-delay: .75s; }
.js .wa-body .bubble:nth-child(6) { animation-delay: .95s; }
.js .wa-body .bubble:nth-child(7) { animation-delay: 1.15s; }
.js .wa-body .bubble:nth-child(8) { animation-delay: 1.35s; }
@media (prefers-reduced-motion: reduce) { .js .wa-body .bubble { opacity: 1; animation: none; } }

.wa-typing {
  align-self: flex-start; background: #fff; padding: 9px 13px; border-radius: 2px 12px 12px 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1); display: flex; gap: 4px; align-items: center;
}
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: #88aaaa; animation: ailenDot 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .wa-typing span { animation: none; opacity: .5; } }

.wa-input { background: #f0f0f0; padding: 9px 12px; display: flex; align-items: center; gap: 9px; }
.wa-input .field { flex: 1; background: #fff; border-radius: 999px; padding: 9px 14px; color: #9aa4a8; font-size: 13px; }
.wa-input .send { width: 38px; height: 38px; border-radius: 50%; background: var(--wa-send); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; flex: none; }

/* ---------- STATS ---------- */
.stats { background: var(--grad); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 38px; padding-bottom: 38px; }
.stat { text-align: center; color: #fff; border-right: 1px solid rgba(255, 255, 255, .18); }
.stat:last-child { border-right: 0; }
.stat-big { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 14.5px; color: #dbeeeb; margin-top: 8px; font-weight: 500; }

/* ---------- SECTION HEAD ---------- */
.section { padding-top: 90px; padding-bottom: 90px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.8px; color: var(--ink); margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); line-height: 1.5; }

/* ---------- CÓMO FUNCIONA ---------- */
.como { padding-top: 90px; padding-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { background: #fff; border: 1px solid #eaf1f0; border-radius: var(--radius); padding: 30px 26px; }
.step-num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.step h3 { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- FUNCIONES ---------- */
.funciones { background: var(--surface-tint); margin-top: 60px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 30px; display: flex; gap: 20px; align-items: flex-start;
  transition: box-shadow .15s ease, transform .15s ease;
}
.feature:hover { box-shadow: 0 18px 40px -22px rgba(31, 101, 145, .4); transform: translateY(-3px); }
.feature-ico { flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--surface-icon); display: flex; align-items: center; justify-content: center; }
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 7px; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- SHOWCASE ---------- */
.showcase-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.phone-flat {
  width: 330px; background: var(--wa-bg); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(15, 47, 58, .45); border: 1px solid #e2dacf;
}
.phone-flat .wa-head { padding: 12px 16px; }
.phone-flat .wa-avatar { width: 34px; height: 34px; }
.phone-flat .wa-avatar img { width: 30px; height: 30px; }
.phone-flat .wa-name { font-size: 14px; }
.phone-flat .wa-status { font-size: 11px; }
.phone-flat .wa-body { min-height: 0; gap: 4px; padding-bottom: 16px; }
.showcase-copy h2 { font-size: 36px; font-weight: 800; letter-spacing: -.8px; color: var(--ink); line-height: 1.12; margin-bottom: 18px; }
.showcase-copy p { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 28px; }
.know-list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.know-list li { display: flex; align-items: center; gap: 13px; }
.know-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.know-list span:last-child { font-size: 16px; font-weight: 600; color: #2c4650; }

/* ---------- BENEFICIOS ---------- */
.beneficios { background: var(--dark); color: #fff; }
.beneficios .section-head { max-width: 600px; margin-bottom: 50px; }
.beneficios .eyebrow { color: #5fc9bd; }
.beneficios .section-head h2 { color: #fff; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 28px; }
.benefit h3 { font-size: 18px; font-weight: 800; color: #7bd6cb; margin-bottom: 9px; }
.benefit p { font-size: 15px; line-height: 1.55; color: #c3d3d6; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq .section-head { margin-bottom: 44px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid #e6efed; border-radius: 16px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit; font-size: 17px; font-weight: 700; color: var(--text);
}
.faq-sign { flex: none; font-size: 24px; font-weight: 400; color: var(--teal); line-height: 1; }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; font-size: 15.5px; line-height: 1.6; color: var(--muted); transition: max-height .28s ease, padding .28s ease; }
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 320px; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ---------- CTA FINAL ---------- */
.cta { padding-top: 20px; padding-bottom: 100px; }
.cta-card {
  background: var(--grad); border-radius: 32px; padding: 64px 56px; text-align: center;
  position: relative; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(31, 101, 145, .6);
}
.cta-card::before, .cta-card::after { content: ""; position: absolute; border-radius: 50%; }
.cta-card::before { top: -60px; right: -40px; width: 220px; height: 220px; background: rgba(255, 255, 255, .08); }
.cta-card::after { bottom: -80px; left: -30px; width: 200px; height: 200px; background: rgba(255, 255, 255, .06); }
.cta-inner { position: relative; }
.cta-card h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: #fff; margin-bottom: 16px; text-wrap: balance; }
.cta-card p { font-size: 18px; color: #e2f1ef; margin: 0 auto 32px; max-width: 520px; line-height: 1.5; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--blue); font-weight: 800; padding: 16px 34px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); }
.btn-white:hover { filter: brightness(.97); }
.btn-outline { background: rgba(255, 255, 255, .14); color: #fff; padding: 16px 30px; border: 1px solid rgba(255, 255, 255, .4); }
.btn-outline:hover { background: rgba(255, 255, 255, .22); }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); background: #fbfcfc; }
.footer-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
.footer-inner .brand-logo { height: 34px; }
.footer-brand-text { line-height: 1.15; }
.footer-name { font-family: var(--font-brand); font-weight: 700; font-size: 19px; }
.footer-tag { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
.footer-legal { flex: 1; text-align: right; font-size: 13.5px; color: #7b8f95; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- ANIMACIONES ---------- */
@keyframes ailenFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ailenDot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes ailenRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  :root { --pad: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase-copy { text-align: center; }
  .showcase-copy .know-list { display: inline-flex; text-align: left; }
  .phone-flat { order: -1; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section-head h2, .showcase-copy h2, .beneficios .section-head h2 { font-size: clamp(26px, 6vw, 34px); }
  .cta-card h2 { font-size: clamp(26px, 6vw, 36px); }
}

@media (max-width: 720px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px; box-shadow: 0 20px 30px -20px rgba(15, 47, 58, .3);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { padding: 10px 4px; }
  .nav-menu .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .site-nav { flex: 0; }
  .header-inner { justify-content: space-between; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); padding-bottom: 20px; }
  .stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .stat + .stat { padding-top: 20px; }
  .cta-card { padding: 44px 26px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-legal { flex: 1 0 100%; text-align: center; margin-top: 6px; }
}

@media (max-width: 380px) {
  .phone { width: 100%; max-width: 320px; }
}
