/* =========================================================================
   AgentiCuántico · páginas públicas (portada, planes, institucional)
   ========================================================================= */
html { scroll-behavior: smooth; }
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; background:
  radial-gradient(40% 50% at 70% 20%, rgba(243, 209, 128, .35), transparent 70%),
  radial-gradient(35% 40% at 15% 10%, rgba(143, 212, 27, .10), transparent 70%); }
.hero-head { max-width: 860px; margin: 0 auto clamp(24px, 4vw, 48px); text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 18px; }
.hero h1 .accent { background: var(--lime); color: #10140a; padding: 0 .16em .04em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { max-width: 640px; margin: 0 auto 26px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.trust { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--gold); }

/* Escenario: avatar + chat */
.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; height: clamp(540px, calc(100svh - var(--header-h) - 36px), 760px); scroll-margin-top: calc(var(--header-h) + 12px); }
.stage-avatar { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow-3); overflow: hidden; }
.stage-avatar .avatar-stage { position: absolute; inset: 0; }
.stage-caption { position: absolute; z-index: 4; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.stage-caption .chip { background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); }
.stage-chat { min-height: 0; }
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .stage-avatar { height: clamp(300px, 48vh, 420px); }
  .stage-chat { height: min(640px, calc(100svh - var(--header-h) - 24px)); min-height: 520px; }
}
@media (max-width: 480px) {
  .stage-avatar { height: 320px; border-radius: var(--r-lg); }
  .chat[data-variant="embed"] { border-radius: var(--r-lg); }
}

/* Bloques */
.flagship { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.flag-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-3); }
.flag-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flag-steps li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sm); }
.flag-steps .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 13px; }
.flag-steps li.done .n { background: var(--ok); }
.flag-steps li.wait .n { background: var(--gold); color: #1d1606; }
.checklist { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
@media (max-width: 860px) { .flagship { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t); }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feature .f-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; }
.feature .f-ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.feature .chip { margin-top: 12px; }
@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Planes */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surface-3); gap: 4px; margin: 0 auto 28px; }
.billing-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button img { width: 18px; height: 18px; border-radius: 50%; }
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-1); }
.plan.featured { border-color: var(--gold-2); box-shadow: var(--glow-gold); }
.plan .badge { position: absolute; top: -12px; left: 24px; }
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan .tag { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-alt { font-size: var(--fs-sm); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 9px; font-size: var(--fs-sm); flex: 1; }
.plan li { display: flex; gap: 9px; }
.plan li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 1px; }
.plan .pay { display: grid; gap: 8px; }
.btn-mp { --b-bg: #009ee3; --b-fg: #fff; --b-line: #009ee3; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Equipo de agentes */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.team-card { display: grid; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.team-card .t-top { display: flex; align-items: center; gap: 10px; }
.team-card .t-emoji { font-size: 22px; line-height: 1; }
.team-card strong { font-size: .98rem; }
.team-card p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 1080px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Bandas */
.band { background: var(--ink); color: #f2f1ee; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #c9c8ce; }
.band .btn { --b-bg: #fff; --b-fg: #16151a; --b-line: #fff; }
.band .btn-ghost { --b-bg: transparent; --b-fg: #fff; --b-line: #55545e; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .security-grid { grid-template-columns: 1fr; } }
.steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps-3 .card { min-height: 220px; display: flex; flex-direction: column; } .steps-3 .card::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
@media (max-width: 860px) { .steps-3 { grid-template-columns: 1fr; } }
.compare { width: 100%; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }

/* Ventana de pago */
.pay-modal { display: grid; gap: 16px; }
.pay-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--gold-soft), var(--surface)); border: 1px solid var(--gold-3); }
.pay-plan { font-family: var(--font-display); font-size: 1.5rem; }
.pay-price { font-family: var(--font-display); font-size: 1.4rem; }
.pay-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.pay-facts li { display: flex; gap: 10px; }
.pay-facts svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-methods .label { margin: 0 0 6px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pay-box { display: grid; gap: 6px; }
.btn-mp { --b-bg: #009ee3; --b-fg: #fff; --b-line: #009ee3; min-height: 48px; }
.btn-mp:hover { --b-bg: #0089c7; border-color: #0089c7; }
.btn-mp img { width: auto; height: 22px; filter: none; }
.pay-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-label img { display: block; height: 20px; width: auto; flex: none; }
@media (max-width: 560px) { .pay-methods { grid-template-columns: 1fr; } }
.call-link svg { color: var(--ok); }
.hero-inv .lead { margin: 0 0 26px; max-width: 720px; } .hero-inv .hero-ctas { justify-content: flex-start; } .hero-inv h1 { max-width: 22ch; }
/* Plan a medida (Empresa+ / API) y nota de precio conservado (nov-2026) */
.plan.plan-custom { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .8fr); align-items: center; gap: 20px; }
.plan.plan-custom .price { font-size: 1.6rem; }
.plan.plan-custom ul { margin: 0; }
.plan-keep { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px auto 0; color: var(--muted); text-align: center; }
.plan-keep svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 960px) { .plan.plan-custom { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
