/* Presentación de la app — estilos propios de index.html.
   Se carga al final: tokens.css + landing.css + perfil.css + flujo.css. */

html { scroll-padding-top: 88px; }
.page {
  --noche: #100d2e;
  --gr-claro: linear-gradient(100deg, #a9a2ff, #e79bff);
  --mt: #5c5c76;
  overflow-x: clip;
  padding-top: 12px;
  background:
    radial-gradient(900px 620px at 50% 0, rgba(95, 85, 255, 0.17), transparent 70%),
    radial-gradient(620px 520px at 88% 180px, rgba(198, 56, 251, 0.12), transparent 70%),
    radial-gradient(620px 520px at 10% 260px, rgba(44, 12, 247, 0.08), transparent 70%),
    var(--bg);
}
.page a:focus-visible, .page summary:focus-visible { outline: 3px solid var(--vi); outline-offset: 3px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 15;
  width: calc(100% - 32px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid #fff;
  box-shadow: 0 8px 28px rgba(32, 20, 110, 0.09);
}
.site-header .logo { width: auto; height: 44px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--tx); font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: var(--vi); }
.btn-ghost { background: var(--tx); border-color: var(--tx); color: #fff; padding: 10px 20px; }
.btn-ghost:hover { background: var(--vi); border-color: var(--vi); color: #fff; }

/* ---------- Hero y botones ---------- */
.hero { max-width: 940px; padding-top: 56px; }
.hero h1 { font-size: clamp(40px, 6.6vw, 78px); line-height: 1; letter-spacing: -0.04em; }
.hero p { font-size: 18px; }
/* El tracking negativo recortaba la última letra del degradado */
h1 .text-gradient, h2 .text-gradient { padding: 0.06em 0.08em 0.06em 0; margin-right: -0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { font-size: 12px; letter-spacing: 0.06em; box-shadow: 0 6px 20px rgba(95, 85, 255, 0.14); }
.btn-gradient, .store-btn { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.btn-gradient { box-shadow: 0 12px 28px rgba(80, 40, 250, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-gradient:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(80, 40, 250, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.banda__cta .btn-gradient { padding: 16px 28px; font-size: 15px; }

/* ---------- Teléfono: capturas sin marco + marco único en CSS ---------- */
.tel {
  width: 272px;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 54px;
  background: #14142b;
  box-shadow: inset 0 0 0 1.5px #3c3a62, 0 30px 60px rgba(34, 14, 150, 0.24), 0 8px 18px rgba(20, 20, 43, 0.12);
}
.tel img { display: block; width: 100%; height: auto; border-radius: 46px; }

/* ---------- Escenario ---------- */
.stage { height: 452px; margin-top: 44px; }
.stage-inner { top: 14px; }
.stage .phone img { width: 100%; height: auto; object-fit: fill; border-radius: 46px 46px 0 0; }
.stage .tel { padding-bottom: 0; border-radius: 54px 54px 0 0; }
.stage-glow { top: 60px; background: radial-gradient(ellipse at center, rgba(95, 85, 255, 0.38), rgba(198, 56, 251, 0.18) 45%, transparent 70%); }
.stage-fade { height: 190px; background: linear-gradient(180deg, rgba(246, 247, 251, 0), var(--bg) 82%); }

/* ---------- Títulos de sección ---------- */
.practica h2, .pasos h2, .faq h2, .seccion .sec-head h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-head { margin-bottom: 48px; }
.sec-head p { font-size: 17px; }
.seccion { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.seccion--ajustada { padding-top: 40px; }

/* ---------- Rejilla de funciones ---------- */
.practica { max-width: 1168px; padding-top: 64px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento__item {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  height: 660px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--sf);
  border: 1px solid var(--br-soft);
  box-shadow: 0 12px 36px rgba(32, 20, 110, 0.06);
}
.bento__item--ancha { grid-column: span 7; flex-direction: row; }
.bento__texto {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 36px 36px 0;
}
.bento__texto .k { font-size: 13px; font-weight: 800; color: #4a3ff0; }
.bento__texto h3 { margin: 0; font-size: clamp(25px, 2.5vw, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.bento__texto p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mt); text-wrap: pretty; }
.bento__texto ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bento__texto li { position: relative; padding-left: 28px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.bento__texto li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(95, 85, 255, 0.14);
  color: #4a3ff0;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.bento__cta { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-size: 15px; font-weight: 800; color: #4a3ff0; }
.bento__cta span { transition: transform 0.18s ease; }
.bento__cta:hover span { transform: translateX(4px); }
.bento__nota { margin-top: -14px; font-size: 12px; font-weight: 600; color: var(--mt); }
.bento__media { flex: 1; min-height: 0; display: flex; justify-content: center; padding-top: 26px; }
.bento__media .tel { flex: none; align-self: flex-start; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bento__item:hover .tel { transform: translateY(-8px); }

/* Tarjetas anchas: texto a la izquierda, teléfono apoyado en el borde inferior */
.bento__item--ancha .bento__texto { flex: 0 1 53%; justify-content: center; padding: 36px 0 36px 36px; }
.bento__item--ancha .bento__media { padding: 0 24px 0 18px; }
.bento__item--ancha .tel { width: 292px; align-self: flex-end; margin-bottom: -10px; padding-bottom: 0; border-radius: 54px 54px 0 0; }
.bento__item--ancha .tel img { border-radius: 46px 46px 0 0; }

/* Color por tarjeta */
.bento__item--lavanda { background: radial-gradient(circle at 85% 90%, #bcaeff, transparent 62%), #e6e3ff; }
.bento__item--oro { background: radial-gradient(circle at 85% 95%, #ffd772, transparent 60%), #fff3d3; }
.bento__item--oro .k { color: #8a5a00; }
.bento__item--noche { background: radial-gradient(circle at 80% 95%, #5a2bd8, transparent 62%), var(--noche); color: #fff; }
.bento__item--noche p, .bento__item--noche .bento__nota { color: #bdb9de; }
.bento__item--noche .k, .bento__item--noche .bento__cta { color: #c4bdff; }
.bento__item--noche li::before { background: rgba(255, 255, 255, 0.14); color: #fff; }
.bento__item--violeta { background: linear-gradient(160deg, #f6e3ff, #e3d4ff); }
.bento__item--claro .bento__media { background: radial-gradient(ellipse at 50% 100%, rgba(95, 85, 255, 0.26), transparent 66%); }

/* ---------- Públicos ---------- */
.publico { padding: 30px; border-radius: 28px; gap: 10px; box-shadow: 0 12px 36px rgba(32, 20, 110, 0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.publico:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(32, 20, 110, 0.11); }
.publico__i { width: 52px; height: 52px; margin-bottom: 10px; border-radius: 17px; background: #e9e7ff; display: grid; place-items: center; }
.publico__i svg { width: 25px; fill: none; stroke: #4a3ff0; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.publico:nth-child(2) .publico__i { background: #f8e2ff; }
.publico:nth-child(2) .publico__i svg { stroke: #a51fd6; }
.publico:nth-child(3) .publico__i { background: #ffefc2; }
.publico:nth-child(3) .publico__i svg { stroke: #8a5a00; }
.publico .k { font-size: 13px; letter-spacing: 0; text-transform: none; }
.publico .t { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.publico .d { font-size: 15px; }
.publico .link { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 800; color: #4a3ff0; }
.publico .link:hover { text-decoration: underline; }

/* ---------- Pasos ---------- */
.pasos-grid { gap: 32px; }
.paso { position: relative; background: none; border: 0; padding: 8px 12px 0; align-items: center; text-align: center; }
.paso .n { position: relative; z-index: 1; width: 64px; height: 64px; margin-bottom: 10px; font-size: 25px; box-shadow: 0 0 0 8px var(--bg), 0 14px 28px rgba(80, 40, 250, 0.3); }
.paso .t { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.paso .d { font-size: 15px; max-width: 290px; }
@media (min-width: 861px) {
  .paso + .paso::before { content: ""; position: absolute; top: 39px; right: 50%; width: calc(100% + 32px); border-top: 2px dashed rgba(95, 85, 255, 0.4); }
}

/* ---------- Banda de especialistas ---------- */
.banda { max-width: 1168px; margin: 0 auto; padding: 8px 24px 24px; }
.banda__inner {
  padding: 52px 56px;
  border-radius: 32px;
  background: radial-gradient(circle at 100% 100%, rgba(198, 56, 251, 0.24), transparent 55%), radial-gradient(circle at 0 0, rgba(95, 85, 255, 0.22), transparent 55%), var(--sf);
  border: 1px solid #fff;
  box-shadow: 0 12px 36px rgba(32, 20, 110, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.banda__text { max-width: 580px; display: flex; flex-direction: column; gap: 12px; }
.banda__text h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; }
.banda__text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mt); }
.banda__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.banda__cta span { font-size: 13px; color: var(--mt); }

/* ---------- Tiendas ---------- */
.store-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 13px; min-width: 186px; box-sizing: border-box; padding: 13px 24px 13px 20px; border-radius: 18px; background: #0b0b1e; color: #fff; text-align: left; box-shadow: 0 10px 24px rgba(11, 11, 30, 0.18); }
.store-btn:hover { color: #fff; transform: translateY(-2px); }
.store-btn svg { width: 27px; height: 27px; flex: none; }
.store-btn .txt { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn .txt small { font-size: 11px; font-weight: 600; opacity: 0.75; }
.store-btn .txt strong { font-size: 18px; font-weight: 800; }

/* ---------- Descarga ---------- */
.seccion.descarga { max-width: 1168px; text-align: center; }
.descarga__panel {
  padding: 84px 32px;
  border-radius: 40px;
  color: #fff;
  background: radial-gradient(ellipse 60% 90% at 12% 0, #3a1cf0, transparent 70%), radial-gradient(ellipse 60% 90% at 90% 100%, #a42be0, transparent 70%), var(--noche);
  box-shadow: 0 30px 70px rgba(44, 12, 160, 0.28);
}
.descarga h2 { margin: 0 auto 18px; max-width: 760px; font-size: clamp(36px, 6vw, 66px); font-weight: 900; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.descarga .text-gradient { background-image: var(--gr-claro); }
.descarga__panel > p { margin: 0 auto 32px; max-width: 500px; font-size: 18px; line-height: 1.55; color: #dcd8f7; }
.descarga__panel > .nota { margin: 24px auto 0; max-width: none; font-size: 13px; }
.descarga .hero-checks { margin-top: 20px; }
.descarga .hero-checks li, .descarga .hero-checks li strong { color: #fff; }
.descarga .hero-checks li::before { background: rgba(255, 255, 255, 0.18); color: #fff; }
.descarga .store-btn, .descarga .store-btn:hover { background: #fff; color: #0b0b1e; }
.page .descarga a:focus-visible { outline-color: #fff; }

/* ---------- Preguntas ---------- */
.faq { padding-top: 48px; }
.faq details { border-radius: 20px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq details[open] { border-color: rgba(95, 85, 255, 0.45); box-shadow: 0 14px 34px rgba(32, 20, 110, 0.08); }
.faq summary { padding: 21px 68px 21px 24px; font-size: 17px; }
.faq summary::after, .faq details[open] summary::after { content: "+"; right: 18px; width: 32px; height: 32px; margin-top: -16px; transform: none; border-radius: 50%; background: #efedff; display: grid; place-items: center; line-height: 1; transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 24px 24px; }

.cta-final { padding-top: 48px; }
.cta-final h2 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -0.035em; line-height: 1.06; }
.cta-final > span { font-size: 13px; }

/* ---------- Tableta ---------- */
@media (max-width: 1020px) {
  .site-nav { display: none; }
  .bento__item, .bento__item--ancha { grid-column: 1 / -1; flex-direction: row; height: 460px; }
  .bento__texto, .bento__item--ancha .bento__texto { flex: 0 1 54%; justify-content: center; padding: 32px 0 32px 36px; }
  .bento__media, .bento__item--ancha .bento__media { padding: 40px 24px 0; }
  .bento__media .tel, .bento__item--ancha .tel { align-self: flex-start; margin: 0; width: 272px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.02em; white-space: nowrap; padding: 9px 12px; gap: 6px; }
  .hero p { font-size: 16px; }
  .stage { height: 326px; margin-top: 32px; }
  .stage-fade { height: 120px; }
  .site-header { padding: 6px 8px 6px 16px; }
  .site-header .logo { height: 40px; }
  .seccion { padding: 52px 16px; }
  .practica { padding-top: 40px; }
  .sec-head { margin-bottom: 32px; }
  .bento { gap: 16px; }
  .bento__item, .bento__item--ancha { flex-direction: column; height: auto; border-radius: 28px; }
  .bento__texto, .bento__item--ancha .bento__texto { flex: none; padding: 28px 24px 0; }
  .bento__media, .bento__item--ancha .bento__media { flex: none; height: 370px; box-sizing: border-box; padding: 26px 0 0; }
  .bento__media .tel, .bento__item--ancha .tel { width: 252px; }
  .banda { padding: 0 16px 8px; }
  .banda__inner { padding: 32px 24px; border-radius: 28px; }
  .banda__cta { align-items: stretch; width: 100%; text-align: center; }
  .store-btns { flex-direction: column; align-items: center; width: 100%; }
  .store-btn { width: 100%; max-width: 300px; justify-content: center; }
  .descarga__panel { padding: 52px 20px; border-radius: 32px; }
  .descarga__panel > p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .page *, .page *::before, .page *::after { transition: none !important; }
}
