/* Landing de Mia — rebranding nov 2026 ("Your money bestie"): burbujas,
   píldoras y tarjetas muy redondeadas. Colores = tokens de la guía de marca. */
:root {
  --blush: #FBF4F7; --surface: #FFFFFF; --ink: #2A1230; --muted: #6F5B74;
  --plum: #9B3A73; --plum-deep: #3B1540; --plum-mid: #4A1F50; --plum-soft: #5A2A5E;
  --rose: #F6D3E3; --rose-soft: #F7EEF3; --lilac: #E8DDF6; --peach: #FBE3D6;
  --pop-pink: #E9A0C3; --on-deep-muted: #E7C3D6;
  --success: #1F7A50; --success-soft: #E6F5EC;
  --shadow-card: 0 2px 4px rgba(42,18,48,.03), 0 14px 34px rgba(155,58,115,.10);
  --display: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--blush); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-deep); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3, p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px 16px; }
.wrap { max-width: 1160px; margin: 0 auto; }
section, header, footer { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.burbuja { position: absolute; border-radius: 50%; pointer-events: none; }

/* Header */
.top { padding-top: 20px; padding-bottom: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-size: 34px; color: var(--plum-deep); line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--ink); border-radius: 999px; }
.nav .idioma { background: var(--surface); font-size: 14px; font-weight: 700; padding: 10px 14px; }
.nav .idioma span { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 16px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-deep); color: #fff; }
.btn-blanco { background: var(--surface); color: var(--ink); font-weight: 700; }
.btn-grande { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sombra { box-shadow: 0 12px 26px rgba(155,58,115,.35); }
.nav .btn { padding: 12px 20px; min-height: 44px; font-size: 15px; color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 48px; padding-bottom: 96px; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-texto { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { align-self: flex-start; background: var(--surface); color: var(--plum); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--plum); }
.hero .sub { font-size: 20px; color: var(--muted); max-width: 540px; }
.acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chip-ok { color: var(--success); }
.chip svg { width: 14px; height: 14px; }

/* Chat */
.chat { flex: 1 1 360px; min-width: 0; max-width: 460px; margin: 0 auto; background: var(--surface); border-radius: 36px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 2px 4px rgba(42,18,48,.03), 0 24px 60px rgba(155,58,115,.16); }
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; font-size: 17px; font-weight: 800; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; font-weight: 400; }
.en-linea { width: 9px; height: 9px; border-radius: 50%; background: #3FB57A; }
.chat-top small { font-size: 13px; color: var(--muted); font-weight: 400; }
.b-ella { align-self: flex-end; max-width: 80%; background: var(--plum); color: #fff; border-radius: 22px 22px 6px 22px; padding: 12px 16px; font-weight: 600; }
.b-mia { align-self: flex-start; max-width: 86%; background: var(--rose-soft); border-radius: 22px 22px 22px 6px; padding: 12px 16px; }
.respuestas { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.respuestas span { border: 1.5px solid #EBC9DA; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--plum); }

/* Chat animado (hero-chat.js) + mini app que se llena sola */
.chat-msgs { display: flex; flex-direction: column; gap: 12px; }
.chat.animado .chat-msgs { justify-content: flex-end; height: 330px; overflow: hidden; transition: opacity .4s ease; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px); mask-image: linear-gradient(to bottom, transparent 0, #000 48px); }
.chat-msgs.sale { opacity: 0; }
.entra { animation: entra .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.b-ella.entra { transform-origin: bottom right; }
.b-mia.entra { transform-origin: bottom left; }
.escribiendo { display: inline-flex; gap: 5px; align-items: center; padding: 16px 18px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: #C79BB5; animation: punto 1s infinite ease-in-out; }
.escribiendo i:nth-of-type(2) { animation-delay: .15s; }
.escribiendo i:nth-of-type(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.b-audio { display: flex; align-items: center; gap: 10px; }
.audio-play { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.audio-onda { display: flex; align-items: center; gap: 3px; height: 24px; }
.audio-onda i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.85); }
.b-audio small { font-size: 12px; font-weight: 600; opacity: .85; }
.mini-app { background: var(--blush); border: 1.5px solid #F0DCE6; border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.mini-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--plum); text-transform: uppercase; }
.mini-top b { font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-transform: none; }
.mini-cat { font-size: 14px; font-weight: 600; }
.mini-track { height: 8px; border-radius: 999px; background: #F1E2EA; overflow: hidden; }
.mini-track div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--plum), var(--pop-pink)); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.mini-app small { font-size: 12px; color: var(--muted); }
.mini-app.brilla { animation: brilla .9s ease; }
@keyframes brilla { 0% { box-shadow: 0 0 0 0 rgba(155,58,115,.35); } 100% { box-shadow: 0 0 0 12px rgba(155,58,115,0); } }
@media (prefers-reduced-motion: reduce) { .entra, .mini-app.brilla, .escribiendo i { animation: none; } }
@media (max-width: 640px) { .chat.animado .chat-msgs { height: 300px; } }

/* "Mi app": siempre visible (también en el celular) */
.nav a.mi-app { background: var(--surface); color: var(--plum); font-weight: 800; box-shadow: 0 6px 16px rgba(155,58,115,.10); }
/* Tu app: pantallas reales */
.titulo-sub { max-width: 560px; color: var(--muted); font-size: 18px; }
.pantallas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 920px; margin: 0 auto; }
.pantalla-cel { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pantalla-cel img { display: block; width: 100%; height: auto; border-radius: 34px; border: 8px solid var(--plum-deep); background: var(--blush); box-shadow: 0 24px 50px rgba(59,21,64,.22); }
.pantalla-cel figcaption { font-weight: 800; font-size: 16px; text-align: center; }
.tu-app-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.nota-app { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
@media (max-width: 640px) {
  .pantallas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -24px; padding: 4px 24px 18px; }
  .pantalla-cel { flex: 0 0 68%; scroll-snap-align: center; }
}

/* Secciones */
.seccion { padding-top: 96px; padding-bottom: 96px; }
.seccion-blanca { background: var(--surface); }
.seccion-oscura { background: var(--plum-deep); color: var(--blush); position: relative; overflow: hidden; }
.titulo { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; margin-bottom: 44px; }
.titulo .eti { font-size: 14px; font-weight: 800; letter-spacing: 1px; color: var(--plum); }
.seccion-oscura .titulo .eti { color: var(--pop-pink); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; text-wrap: balance; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tarjeta { background: var(--surface); border-radius: 30px; padding: 30px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card); }
.seccion-blanca .tarjeta { background: var(--blush); box-shadow: none; }
.tarjeta h3 { font-size: 21px; font-weight: 800; }
.tarjeta p { color: var(--muted); }
.icono { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icono svg { width: 24px; height: 24px; }
.i-peach { background: var(--peach); color: #8C5A0C; }
.i-rose { background: var(--rose); color: var(--plum); }
.i-lilac { background: var(--lilac); color: #5B43A8; }
.paso { width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.tarjeta-oscura { background: var(--plum-mid); border-radius: 30px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.tarjeta-oscura h3 { font-size: 20px; font-weight: 800; }
.frase { align-self: flex-start; background: var(--blush); color: var(--ink); border-radius: 20px 20px 20px 6px; padding: 10px 14px; font-size: 15px; }
.nota-oscura { text-align: center; color: var(--on-deep-muted); font-size: 17px; margin-top: 32px; }

/* Precios */
.precios { align-items: stretch; }
.plan { gap: 18px; padding: 32px; }
.plan .nombre { font-size: 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan .monto { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.plan .monto small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); flex: 1; }
.plan .btn { width: 100%; }
.plan-destacado { background: var(--plum-deep); color: var(--blush); box-shadow: 0 24px 50px rgba(59,21,64,.28); }
.plan-destacado .monto small, .plan-destacado ul { color: var(--on-deep-muted); }
.badge { background: var(--pop-pink); color: var(--plum-deep); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; }
.btn-suave { background: var(--rose-soft); color: var(--plum); }
.btn-rosa { background: var(--pop-pink); color: var(--plum-deep); }
.nota { text-align: center; color: var(--muted); font-size: 15px; margin-top: 28px; }

/* Seguridad */
.confianza { display: flex; gap: 16px; align-items: flex-start; }
.confianza .icono { width: 48px; height: 48px; flex-shrink: 0; background: var(--success-soft); color: var(--success); }
.confianza h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.confianza p { color: var(--muted); }

/* Preguntas */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq h2 { text-align: center; margin-bottom: 16px; }
details { background: var(--surface); border-radius: 22px; padding: 20px 24px; }
summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 12px; color: var(--muted); }

/* Cierre */
.cierre { padding-bottom: 96px; }
.cierre .caja { position: relative; overflow: hidden; background: var(--plum); color: #fff; border-radius: 40px; padding: 64px 32px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cierre h2 { position: relative; font-size: clamp(32px, 4.6vw, 48px); }
.cierre .btn { position: relative; background: #fff; color: var(--plum); }
.pie { padding-top: 32px; padding-bottom: 48px; }
.pie .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pie .logo { font-size: 22px; }
.pie nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { padding-top: 24px; padding-bottom: 64px; }
  .seccion { padding-top: 64px; padding-bottom: 64px; }
  .nav a:not(.btn):not(.idioma):not(.mi-app) { display: none; }
  .chat { padding: 20px; border-radius: 28px; }
}

/* Fundadoras: Plus a $49 el primer mes, primeras 100 */
.fundadoras { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; max-width: 980px; margin: 0 auto 28px; padding: 20px 24px; border-radius: 28px; background: #fff; border: 2px solid var(--plum); box-shadow: 0 12px 32px rgba(91, 26, 74, .10); }
.fundadoras > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.fundadoras .eti { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--plum); }
.fundadoras b { font-size: 22px; }
.fundadoras span:last-child { color: var(--muted); font-size: 15px; }
.fundadoras strong { color: var(--plum); }
.fundadoras[hidden] { display: none; }
