/* Landing pública de AztroAgent+ (mismos tokens y componentes que el login: css/base.css) */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.landing { background: var(--Cloud-Dancer); }

/* ---------- Botones extra ---------- */
.btn--chico { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn--chico::after { display: none; }
.btn-sec {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 1px solid rgba(243, 240, 235, .22);
  border-radius: 12px; color: var(--Cloud-Dancer); font-family: var(--font-head); font-weight: 600; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-sec:hover { border-color: var(--Blue-Violet-soft); background: var(--glass-dark); }
a.btn { text-decoration: none; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(32, 30, 31, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); }
.nav__in { display: flex; align-items: center; gap: 24px; width: min(1180px, calc(100% - 32px)); min-height: 64px; margin: 0 auto; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo img { width: 132px; height: auto; }
.nav__marca { padding: 2px 8px; border-radius: 999px; background: var(--Sun-Glare); color: var(--Darkest-Hour); font-family: var(--font-head); font-size: .75rem; font-weight: 700; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a, .nav__entrar {
  padding: 8px 12px; border-radius: 8px; color: rgba(243, 240, 235, .78); font-family: var(--font-head); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.nav__links a:hover, .nav__entrar:hover { background: var(--glass-dark); color: var(--Cloud-Dancer); }
.nav__acciones { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--Darkest-Hour); color: var(--Cloud-Dancer); isolation: isolate; }
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.hero__glow--violeta { top: -160px; left: -120px; width: 560px; height: 460px; background: var(--Blue-Violet); }
.hero__glow--naranja { right: -140px; bottom: -200px; width: 520px; height: 420px; background: var(--Exuberant-Orange); opacity: .35; }
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(32px, 5vw, 72px);
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 120px);
}
.hero__texto { display: grid; justify-items: start; gap: 22px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.hero__lead { max-width: 36em; color: rgba(243, 240, 235, .78); font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__confianza { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--Blue-Violet-soft); font-size: .875rem; }
.hero__confianza li { display: flex; align-items: center; gap: 8px; }
.hero__confianza svg { width: 16px; height: 16px; }

/* Demo de conversación */
.demo { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 20px; background: #262425; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.demo__top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #2d2a2c; }
.demo__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--Gradient-Light); color: var(--Darkest-Hour); font-family: var(--font-head); font-weight: 700; }
.demo__nombre { display: grid; font-size: .875rem; }
.demo__nombre small { color: var(--Sun-Glare); font-size: .75rem; }
.demo__chat { display: grid; gap: 10px; padding: 18px 16px; }
.burbuja { max-width: 86%; padding: 9px 12px 7px; border-radius: 14px; font-size: .875rem; line-height: 1.45; }
.burbuja span { display: block; margin-top: 2px; font-size: .6875rem; text-align: right; opacity: .65; }
.burbuja--cliente { justify-self: start; border-top-left-radius: 4px; background: #3a3739; }
.burbuja--agente { justify-self: end; border-top-right-radius: 4px; background: var(--Blue-Violet); }
.demo__crm { display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 12px 14px; border-radius: 14px; background: var(--Cloud-Dancer); color: var(--Darkest-Hour); font-size: .8125rem; }
.demo__crm > span:nth-child(2) { display: grid; flex: 1; }
.demo__crm small { color: var(--muted-strong); }
.demo__check { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--Sun-Glare); }
.demo__check svg { width: 16px; height: 16px; }
.demo__etiqueta { padding: 3px 8px; border-radius: 6px; background: var(--Blue-Violet-tint); color: var(--Blue-Violet); font-family: var(--font-head); font-weight: 700; font-size: .6875rem; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(64px, 9vw, 120px) 0; background: var(--Cloud-Dancer); }
.seccion--clara { background: #fff; }
.seccion__in { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.seccion__in--angosta { width: min(820px, calc(100% - 32px)); }
.eyebrow { color: var(--Blue-Violet); font-family: var(--font-head); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.seccion h2 { max-width: 20em; margin-top: 10px; font-family: var(--font-head); font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.seccion__lead { max-width: 40em; margin-top: 14px; color: var(--muted-strong); font-size: 1.0625rem; line-height: 1.55; }

.funciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.funcion { display: grid; align-content: start; gap: 10px; padding: 26px; border: 1px solid var(--line-light); border-radius: var(--radius); background: #fff; transition: transform .2s var(--ease-out), box-shadow .2s; }
.funcion:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(32, 30, 31, .4); }
.funcion__icono { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: var(--Blue-Violet-tint); color: var(--Blue-Violet); }
.funcion__icono svg { width: 22px; height: 22px; }
.funcion h3, .paso h3 { font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.funcion p, .paso p { color: var(--muted-strong); line-height: 1.55; }

.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; counter-reset: paso; }
.paso { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 22px; border-radius: var(--radius); background: var(--Cloud-Dancer); }
.paso__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--Darkest-Hour); color: var(--Sun-Glare); font-family: var(--font-head); font-weight: 700; }

/* ---------- Precios ---------- */
.precios { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 44px; }
.plan { display: grid; overflow: hidden; border: 1px solid var(--line-light); border-radius: 20px; background: #fff; }
.plan__bloque { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); }
.plan__bloque--mensual { border-top: 1px dashed var(--line-light); background: linear-gradient(180deg, #fbfaf8, #fff); }
.plan__cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.plan__cabeza h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.plan__chip { padding: 4px 10px; border-radius: 999px; background: var(--Blue-Violet-tint); color: var(--Blue-Violet); font-family: var(--font-head); font-size: .75rem; font-weight: 700; }
.plan__chip--sol { background: var(--Sun-Glare); color: var(--Darkest-Hour); }
.plan__precio { font-family: var(--font-head); font-size: clamp(2.25rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.plan__precio small { color: var(--muted-strong); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.plan__lista { display: grid; gap: 10px; }
.plan__lista li { position: relative; padding-left: 28px; line-height: 1.45; }
.plan__lista li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--Blue-Violet) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pago { position: sticky; top: 84px; display: grid; gap: 18px; padding: clamp(22px, 3vw, 30px); border-radius: 20px; background: var(--Darkest-Hour); color: var(--Cloud-Dancer); box-shadow: 0 30px 70px -40px rgba(32, 30, 31, .8); }
.pago h3 { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; }
.pago__resumen { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--glass-dark); font-size: .9375rem; }
.pago__resumen > div { display: flex; justify-content: space-between; gap: 12px; }
.pago__resumen > div span { color: rgba(243, 240, 235, .72); }
.pago__resumen b { font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.pago__total { padding-top: 10px; border-top: 1px solid var(--line-dark); font-size: 1.125rem; }
.pago__total span { color: var(--Cloud-Dancer) !important; font-weight: 600; }
.pago__total b { color: var(--Sun-Glare); }
.pago__resumen p { color: var(--Blue-Violet-soft); font-size: .8125rem; line-height: 1.45; }
.pago .field label { color: var(--Cloud-Dancer); }
.pago .input { border-color: rgba(243, 240, 235, .16); background: rgba(243, 240, 235, .06); color: var(--Cloud-Dancer); }
.pago .input::placeholder { color: rgba(243, 240, 235, .4); }
.pago .field__error { color: #ff9a7a; }
.pago .form-feedback { margin: 0; }
.pago__fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pago__seguro { display: flex; align-items: center; gap: 8px; color: rgba(243, 240, 235, .6); font-size: .8125rem; line-height: 1.4; }
.pago__seguro svg { flex: none; width: 16px; height: 16px; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Cupón (para quien pagó el desarrollo por fuera o empieza la mensualidad al mes) */
.cupon { display: grid; gap: 8px; }
.cupon__abrir, .cupon__quitar {
  justify-self: start; padding: 0; border: 0; background: none; color: var(--Blue-Violet-soft); cursor: pointer;
  font: inherit; font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.cupon__abrir[hidden], .cupon__zona[hidden], .cupon__aplicado[hidden] { display: none; }
.cupon__abrir:hover, .cupon__quitar:hover { color: var(--Cloud-Dancer); }
.cupon__fila { display: flex; gap: 8px; }
.cupon__fila .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.cupon__aplicado {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--Sun-Glare) 35%, transparent); border-radius: 12px;
  background: color-mix(in srgb, var(--Sun-Glare) 8%, transparent); font-size: .875rem; line-height: 1.4;
}
.cupon__aplicado span { color: var(--Cloud-Dancer); }
.pago__resumen .tachado { color: rgba(243, 240, 235, .5); text-decoration: line-through; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 10px; margin-top: 36px; }
.faq details { border: 1px solid var(--line-light); border-radius: 14px; background: var(--Cloud-Dancer); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--Blue-Violet); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted-strong); line-height: 1.6; }

/* ---------- Cierre y pie ---------- */
.cierre { position: relative; overflow: hidden; background: var(--Darkest-Hour); color: var(--Cloud-Dancer); isolation: isolate; }
.cierre::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 260px at 50% 120%, rgba(107, 95, 200, .55), transparent 70%); }
.cierre__in { display: grid; justify-items: center; gap: 26px; width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.cierre h2 { font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
/* ---------- Páginas legales (privacidad y términos) ---------- */
.legal { padding: clamp(36px, 6vw, 72px) 16px; }
.legal__in { display: grid; gap: 18px; width: min(780px, 100%); margin: 0 auto; color: var(--Darkest-Hour); font-size: 1rem; line-height: 1.65; }
.legal h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.legal__fecha { color: var(--muted-strong); font-size: .875rem; }
.legal__indice { padding: 18px 22px; border: 1px solid #e6e1d9; border-radius: 16px; background: #fff; }
.legal__indice ol { display: grid; gap: 4px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 20px; font-size: .9375rem; }
.legal section { display: grid; gap: 10px; padding-top: 14px; scroll-margin-top: 84px; }
.legal h2 { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; }
.legal h3 { margin-top: 6px; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; }
.legal ul { display: grid; gap: 6px; padding-left: 22px; list-style: disc; }
.legal__indice ol { list-style: decimal; }
.legal__pasos { display: grid; gap: 8px; padding-left: 22px; list-style: decimal; }
.legal li::marker { color: var(--Blue-Violet); }
/* Sin menú de secciones, las acciones van a la derecha como en la landing */
.nav--legal .nav__acciones { margin-left: auto; }
.legal a { color: var(--Blue-Violet); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal code { padding: 1px 6px; border-radius: 5px; background: rgba(32, 30, 31, .07); font-size: .875em; }
@media (max-width: 640px) {
  .legal__indice ol { grid-template-columns: minmax(0, 1fr); }
}

/* Aceptación de términos junto al botón de pago */
.pago__legal { color: rgba(243, 240, 235, .6); font-size: .8125rem; line-height: 1.45; }
.pago__legal a { color: var(--Blue-Violet-soft); }

.pie { border-top: 1px solid var(--line-dark); background: var(--Darkest-Hour); color: rgba(243, 240, 235, .6); font-size: .8125rem; }
.pie__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0; }
.pie nav { display: flex; gap: 16px; margin-left: auto; }
.pie a { color: rgba(243, 240, 235, .78); }

/* ---------- Gracias ---------- */
.gracias { display: grid; place-items: center; min-height: calc(100vh - 65px); min-height: calc(100dvh - 65px); padding: 40px 16px; }
.gracias__tarjeta { display: grid; justify-items: center; gap: 16px; width: min(560px, 100%); padding: clamp(28px, 5vw, 48px); border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 30px 60px -36px rgba(32, 30, 31, .45); }
.gracias__icono { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--Sun-Glare); font-size: 2rem; }
.gracias__icono--espera { background: var(--Blue-Violet-tint); color: var(--Blue-Violet); }
.gracias h1 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.02em; }
.gracias p { color: var(--muted-strong); line-height: 1.55; }
.gracias ol { display: grid; gap: 8px; width: 100%; padding: 16px; border-radius: 14px; background: var(--Cloud-Dancer); counter-reset: n; text-align: left; }
.gracias ol li { display: flex; gap: 10px; line-height: 1.45; counter-increment: n; }
.gracias ol li::before { content: counter(n); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--Darkest-Hour); color: var(--Sun-Glare); font-family: var(--font-head); font-size: .75rem; font-weight: 700; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero__in, .precios { grid-template-columns: minmax(0, 1fr); }
  .demo { max-width: 460px; }
  .funciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pago { position: static; }
  .nav__links { display: none; }
  .nav__acciones { margin-left: auto; }
}
@media (max-width: 600px) {
  .funciones, .pasos, .pago__fila { grid-template-columns: minmax(0, 1fr); }
  .nav__logo img { width: 112px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn, .hero__ctas .btn-sec { flex: 1 1 100%; justify-content: space-between; white-space: nowrap; }
  .hero__ctas .btn-sec { justify-content: center; }
  .pie nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .funcion, .faq summary::after { transition: none; }
}
