/* Páginas públicas: entrada (inicio de sesión), registro y recuperar contraseña.
   Mismo lenguaje visual que el panel de proyectos, perfil y admin. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d1016; --bg2: #141821; --bg3: #1b2030; --bg4: #232a3d;
  --border: #262d40; --border2: #323a52;
  --text: #e6e8ef; --text2: #9aa1b8; --text3: #6b7290;
  --accent: #3266ad; --accent2: #6ea8f7;
  --danger: #f2716b; --success: #3ccf8e; --warn: #e8b13a; --gold: #f0b545;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 12px;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent2); }
svg { flex-shrink: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.blueprint { background-image: linear-gradient(rgba(110,168,247,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(110,168,247,.05) 1px, transparent 1px); background-size: 32px 32px; }

/* ── Barra superior ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(13,16,22,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand b { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-right .btn { padding: 8px 14px; font-size: 14px; }
.auth-col { position: sticky; top: 84px; margin-top: 8px; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font-size: 14.5px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: filter .15s, background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: #4a7fc1; color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: .6; cursor: default; filter: none; transform: none; }
.btn-ghost { background: var(--bg2); border-color: var(--border2); color: var(--text); }
.btn-ghost:hover { background: var(--bg3); }
.btn-text { background: none; color: var(--text2); padding: 8px 12px; }
.btn-text:hover { color: var(--text); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; }

/* ── Encabezado principal ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 500px at 15% 10%, rgba(50,102,173,.22), transparent 60%), radial-gradient(700px 400px at 90% 90%, rgba(201,133,0,.08), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent2); background: rgba(110,168,247,.1); border: 1px solid rgba(110,168,247,.25); padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.07; letter-spacing: -.025em; font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent2); }
.hero .lead { font-size: 17.5px; color: var(--text2); max-width: 560px; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text2); font-size: 13.5px; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 15px; height: 15px; color: var(--success); }

/* Dibujo animado del encabezado */
.demo { margin-top: 34px; background: #0a0d13; border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); max-width: 620px; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--bg2); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border2); }
.demo-bar span { margin-left: 8px; font-size: 12px; color: var(--text3); font-family: var(--mono); }
.demo-bar .who { margin-left: auto; display: flex; }
.demo-bar .who b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; color: #fff; border: 2px solid var(--bg2); margin-left: -6px; }
.demo svg.plano { display: block; width: 100%; height: auto; }
.demo-cmd { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; color: var(--text2); background: var(--bg2); }
.demo-cmd b { color: var(--accent2); font-weight: 500; }
.demo-cmd .caret { display: inline-block; width: 7px; height: 14px; background: var(--accent2); vertical-align: -2px; animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.trazo { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: trazar 1.1s ease forwards; }
@keyframes trazar { to { stroke-dashoffset: 0; } }
.cursor-a { animation: andarA 7s ease-in-out infinite; }
.cursor-b { animation: andarB 8s ease-in-out infinite; }
@keyframes andarA { 0%,100% { transform: translate(0,0); } 30% { transform: translate(120px,40px); } 60% { transform: translate(60px,110px); } }
@keyframes andarB { 0%,100% { transform: translate(0,0); } 35% { transform: translate(-90px,-30px); } 70% { transform: translate(-150px,30px); } }

/* ── Tarjeta de inicio de sesión ── */
.auth { background: var(--bg2); border: 1px solid var(--border2); border-radius: 16px; padding: 30px 28px; box-shadow: 0 30px 70px rgba(0,0,0,.4); position: relative; }
.auth h2 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.auth .sub { font-size: 13.5px; color: var(--text2); margin-bottom: 22px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.form-group label { font-size: 12.5px; font-weight: 500; color: var(--text2); }
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-input { width: 100%; background: var(--bg); border: 1px solid var(--border2); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.form-input:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(110,168,247,.15); }
.form-input.error { border-color: var(--danger); }
.form-input.ok { border-color: var(--success); }
select.form-input { cursor: pointer; }
select.form-input option { background: var(--bg2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 12.5px; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.pass-wrap { position: relative; }
.pass-wrap .form-input { padding-right: 44px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text3); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.pass-toggle svg { width: 17px; height: 17px; }
.pass-toggle:hover { color: var(--text); }
.caps { display: none; font-size: 12px; color: var(--warn); }
.caps.on { display: block; }
.field-error { font-size: 12.5px; color: var(--danger); display: none; }
.field-help { font-size: 12px; color: var(--text3); }
.error-msg { display: none; background: rgba(242,113,107,.09); border: 1px solid rgba(242,113,107,.3); border-radius: 10px; color: #ffb3ae; padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px; }
.ok-msg { display: none; background: rgba(60,207,142,.08); border: 1px solid rgba(60,207,142,.3); border-radius: 10px; color: var(--success); padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text3); font-size: 12.5px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--text2); }
.auth-foot a { font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.guest-note { font-size: 12px; color: var(--text3); text-align: center; margin-top: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ── Secciones ── */
section.band { padding: 80px 0; border-bottom: 1px solid var(--border); }
.band-head { max-width: 640px; margin-bottom: 40px; }
.band-head .kicker { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); margin-bottom: 10px; }
.band-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.band-head p { color: var(--text2); font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .15s; }
.feature:hover { border-color: var(--border2); }
.feature .f-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(110,168,247,.12); color: var(--accent2); display: grid; place-items: center; margin-bottom: 14px; }
.feature .f-ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--text2); font-size: 14px; }
.cmds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cmd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cmd { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.cmd b { display: block; font-family: var(--mono); color: var(--accent2); font-size: 15px; }
.cmd span { font-size: 12.5px; color: var(--text2); }
.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.checks li { display: flex; gap: 10px; color: var(--text2); }
.checks li svg { width: 18px; height: 18px; color: var(--success); margin-top: 2px; }
.checks li b { color: var(--text); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: paso; }
.step { position: relative; padding: 22px 22px 22px 66px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: paso; content: counter(paso); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.step h3 { font-size: 15.5px; margin-bottom: 4px; }
.step p { color: var(--text2); font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 16px; margin-bottom: 4px; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--text2); }
.plan .p-sub { color: var(--text2); font-size: 13.5px; margin-bottom: 16px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; flex: 1; }
.plan li { font-size: 14px; color: var(--text2); display: flex; gap: 8px; }
.plan li::before { content: '✓'; color: var(--success); font-weight: 700; }
.plan.destacado { border-color: rgba(201,133,0,.45); background: linear-gradient(160deg, rgba(201,133,0,.12), var(--bg2) 50%); }
.plan.destacado h3 { color: var(--gold); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-size: 16px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--text3); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text2); padding: 0 0 18px; font-size: 15px; }
.cta-final { text-align: center; padding: 80px 0; }
.cta-final h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin-bottom: 10px; }
.cta-final p { color: var(--text2); margin-bottom: 24px; }
footer { padding: 28px 0 40px; color: var(--text3); font-size: 13.5px; }
footer .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .f-links { margin-left: auto; display: flex; gap: 18px; }

/* ── Registro y recuperar contraseña ── */
.page-auth { min-height: calc(100vh - 61px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.side { position: relative; overflow: hidden; border-right: 1px solid var(--border); padding: 88px 48px 56px; display: flex; flex-direction: column; justify-content: flex-start; }
.side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 20% 20%, rgba(50,102,173,.2), transparent 60%); pointer-events: none; }
.side > * { position: relative; max-width: 420px; }
.side h1 { font-size: 32px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.side p { color: var(--text2); margin-bottom: 22px; }
.main-auth { padding: 48px 48px 64px; display: flex; justify-content: center; align-items: flex-start; }
.main-auth .auth { width: 100%; max-width: 620px; box-shadow: none; }
.section-label { font-size: 11.5px; font-weight: 600; color: var(--accent2); text-transform: uppercase; letter-spacing: .09em; margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.section-label:first-of-type { margin-top: 4px; }
.section-label small { text-transform: none; letter-spacing: 0; color: var(--text3); font-weight: 400; margin-left: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.span-2 { grid-column: span 2; }
.phone-group { display: flex; gap: 8px; }
.phone-prefix { width: 112px; flex-shrink: 0; }
.pass-strength { display: flex; gap: 4px; margin-top: 2px; }
.pass-strength-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background .2s; }
.pass-strength-label { font-size: 12px; min-height: 16px; }
.terms-wrap { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.terms-wrap input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.terms-wrap label { font-size: 13px; color: var(--text2); line-height: 1.55; cursor: pointer; }
.small-card { width: 100%; max-width: 440px; }
.howto { counter-reset: h; list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.howto li { position: relative; padding-left: 34px; color: var(--text2); font-size: 14px; }
.howto li::before { counter-increment: h; content: counter(h); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg4); color: var(--accent2); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ── Pantallas angostas ── */
@media (max-width: 1000px) {
  .nav-links { display: none; }   /* en tableta no cabían junto a "Iniciar sesión" y "Crear cuenta" */
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .auth-col { order: -1; max-width: 460px; width: 100%; margin: 0 auto; position: static; }
  .features, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .cmds { grid-template-columns: 1fr; }
  .page-auth { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .main-auth { padding: 28px 16px 56px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .nav-links, .nav-right .btn-text { display: none; }
  .brand b { font-size: 15px; }
  .hero .wrap { padding-top: 28px; padding-bottom: 40px; }
  .features, .steps, .plans, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .cmd-grid { grid-template-columns: repeat(2, 1fr); }
  section.band { padding: 56px 0; }
  .auth { padding: 24px 18px; }
  .side { display: none; }
  footer .f-links { margin-left: 0; }
}

/* ── Guías (artículos de ayuda) ── */
.crumbs { font-size: 13px; color: var(--text3); margin-bottom: 18px; }
.crumbs a { color: var(--text2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.guide-hero { border-bottom: 1px solid var(--border); padding: 44px 0 36px; }
.guide-hero h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.02em; max-width: 820px; margin-bottom: 14px; }
.guide-hero .lead { font-size: 17.5px; color: var(--text2); max-width: 760px; }
.guide-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--text3); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding: 40px 0 72px; }
.article { max-width: 740px; font-size: 16.5px; line-height: 1.75; color: #d5d8e2; }
.article h2 { font-size: 24px; letter-spacing: -.01em; line-height: 1.25; margin: 40px 0 12px; color: var(--text); scroll-margin-top: 80px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 26px 0 8px; color: var(--text); }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent2); }
.article strong { color: var(--text); }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article kbd, .kbd { font-family: var(--mono); font-size: .86em; color: var(--text); background: var(--bg3); border: 1px solid var(--border2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.article code { font-family: var(--mono); font-size: .9em; color: var(--accent2); background: rgba(110,168,247,.1); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.callout { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid rgba(110,168,247,.3); background: rgba(110,168,247,.07); font-size: 15.5px; }
.callout b { color: var(--accent2); }
.callout.tip { border-color: rgba(60,207,142,.3); background: rgba(60,207,142,.06); }
.callout.tip b { color: var(--success); }
.callout.warn { border-color: rgba(232,177,58,.35); background: rgba(232,177,58,.07); }
.callout.warn b { color: var(--warn); }
.tabla-guia { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tabla-guia th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tabla-guia td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tabla-guia tr:last-child td { border-bottom: 0; }
.tabla-guia td:first-child { white-space: nowrap; }
.pasos-guia { counter-reset: pg; list-style: none; margin: 0 0 22px !important; padding: 0; }
.pasos-guia > li { position: relative; padding: 0 0 6px 46px; margin-bottom: 14px; }
.pasos-guia > li::before { counter-increment: pg; content: counter(pg); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.toc { position: sticky; top: 84px; align-self: start; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; font-size: 14px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 10px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--text2); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc .toc-cta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.guide-cta { margin-top: 36px; background: linear-gradient(135deg, rgba(50,102,173,.2), var(--bg2) 70%); border: 1px solid var(--border2); border-radius: 14px; padding: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.guide-cta div { flex: 1; min-width: 220px; }
.guide-cta h3 { margin: 0 0 4px !important; }
.guide-cta p { margin: 0 !important; color: var(--text2); font-size: 15px; }
.guide-more { margin-top: 40px; }
.guide-more h2 { font-size: 18px !important; margin-bottom: 14px !important; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-decoration: none !important; color: var(--text); transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card .gc-tag { font-size: 12px; font-weight: 600; color: var(--accent2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.guide-card h3 { font-size: 17px; line-height: 1.3; margin: 0 0 8px !important; color: var(--text); }
.guide-card p { color: var(--text2); font-size: 14.5px; margin: 0 0 14px !important; flex: 1; line-height: 1.55; }
.guide-card .gc-go { font-size: 13.5px; color: var(--accent2); font-weight: 600; }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: 1fr; } .toc { position: static; order: -1; } }

/* ── Plus y plan estudiantil ── */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 48px 0 40px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 420px at 20% 0%, rgba(50,102,173,.22), transparent 60%), radial-gradient(600px 360px at 90% 100%, rgba(201,133,0,.1), transparent 60%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.02em; max-width: 760px; margin-bottom: 12px; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero .lead { font-size: 17px; color: var(--text2); max-width: 680px; }
.status-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding: 12px 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border2); max-width: 760px; font-size: 14px; }
.status-bar .sb-txt { flex: 1; min-width: 220px; color: var(--text2); }
.status-bar .sb-txt b { color: var(--text); }
.status-bar.plus { border-color: rgba(201,133,0,.4); background: linear-gradient(135deg, rgba(201,133,0,.12), var(--bg2)); }
.uso-mini { width: 120px; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.uso-mini div { height: 100%; background: var(--accent2); }
.uso-mini.full div { background: var(--warn); }
.billing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.bill { position: relative; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; }
.bill .b-name { font-size: 15px; font-weight: 600; color: var(--text2); }
.bill .b-price { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 0; }
.bill .b-price small { font-size: 15px; font-weight: 500; color: var(--text2); letter-spacing: 0; }
.bill .b-note { font-size: 13.5px; color: var(--text3); min-height: 20px; margin: 4px 0 16px; }
.bill .b-note.save { color: var(--success); font-weight: 600; }
.bill ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0 0 22px; flex: 1; padding-top: 16px; border-top: 1px solid var(--border); }
.bill li { font-size: 14px; color: var(--text2); display: flex; gap: 8px; }
.bill li::before { content: '✓'; color: var(--success); font-weight: 700; }
.bill.rec { border-color: rgba(201,133,0,.5); background: linear-gradient(160deg, rgba(201,133,0,.13), var(--bg2) 55%); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.bill .b-tag { position: absolute; top: -12px; left: 24px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--gold); color: #1a1205; }
.btn-gold { background: linear-gradient(135deg, #f0b545, #d98a0b); color: #1a1205; border-color: #f0b545; }
.btn-gold:hover { filter: brightness(1.07); }
.cmp-table { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 15px; }
.cmp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text2); }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table td:first-child { color: var(--text); }
.cmp-table th:nth-child(n+2), .cmp-table td:nth-child(n+2) { text-align: center; width: 180px; }
.cmp-table td.gold { color: var(--gold); font-weight: 600; }
.edu-banner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(110,168,247,.3); background: linear-gradient(135deg, rgba(50,102,173,.18), var(--bg2) 70%); }
.edu-banner div { flex: 1; min-width: 240px; }
.edu-banner h3 { font-size: 18px; margin-bottom: 4px; }
.edu-banner p { color: var(--text2); font-size: 14.5px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.choose label { position: relative; display: block; cursor: pointer; background: var(--bg2); border: 2px solid var(--border); border-radius: 14px; padding: 18px 20px; transition: border-color .15s, background .15s; }
.choose input { position: absolute; opacity: 0; pointer-events: none; }
.choose label:hover { border-color: var(--border2); }
.choose input:checked + .ch-body { }
.choose label.on { border-color: var(--accent2); background: rgba(110,168,247,.07); }
.choose label.on::after { content: '✓'; position: absolute; top: 14px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent2); color: #0d1016; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.choose .ch-name { font-weight: 600; font-size: 15px; }
.choose .ch-price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.choose .ch-price small { font-size: 14px; color: var(--text2); font-weight: 500; }
.choose .ch-note { font-size: 13px; color: var(--success); font-weight: 600; }
.upload { border: 2px dashed var(--border2); border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg); }
.upload:hover, .upload.over { border-color: var(--accent2); background: rgba(110,168,247,.05); }
.upload svg { width: 34px; height: 34px; color: var(--accent2); margin-bottom: 8px; }
.upload p { font-weight: 600; }
.upload span { font-size: 12.5px; color: var(--text3); }
.upload img { display: none; max-width: 100%; max-height: 220px; margin: 12px auto 0; border-radius: 10px; border: 1px solid var(--border2); }
.upload .up-name { display: none; margin-top: 8px; color: var(--success); font-size: 13.5px; font-weight: 600; }
.estado { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--border2); background: var(--bg2); margin-bottom: 24px; }
.estado .e-ico { font-size: 30px; line-height: 1; }
.estado h3 { font-size: 18px; margin-bottom: 4px; }
.estado p { color: var(--text2); font-size: 14.5px; margin-bottom: 10px; }
.estado.ok { border-color: rgba(60,207,142,.4); background: linear-gradient(135deg, rgba(60,207,142,.1), var(--bg2)); }
.estado.info { border-color: rgba(110,168,247,.35); }
.estado.bad { border-color: rgba(242,113,107,.4); }
.estado .motivo { background: rgba(242,113,107,.08); border: 1px solid rgba(242,113,107,.3); color: #ffb3ae; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1400; align-items: center; }
.toast { background: #0a0c11; border: 1px solid var(--border2); border-left: 3px solid var(--success); border-radius: 8px; padding: 10px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); max-width: 92vw; }
.toast.bad { border-left-color: var(--danger); }
@media (max-width: 1000px) { .billing { grid-template-columns: 1fr; max-width: 480px; } }
@media (max-width: 700px) { .choose { grid-template-columns: 1fr; } .cmp-table th:nth-child(n+2), .cmp-table td:nth-child(n+2) { width: auto; } }

/* Casilla de aceptación (ley: consentimiento expreso para cobros automáticos) */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg2); font-size: 13.5px; color: var(--text2); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--accent2); }
.consent.falta { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(242,113,107,.15); }
.estado .consent { margin: 12px 0 14px; }

/* Pregunta abierta desde un enlace (#politica): se marca un momento */
.faq details { scroll-margin-top: 90px; }
.faq details.resaltada { animation: resaltar 2.6s ease-out; border-radius: 4px; outline: 1px solid transparent; outline-offset: 12px; }
@keyframes resaltar {
  0%, 40% { background: rgba(77,141,255,.12); box-shadow: 0 0 0 12px rgba(77,141,255,.12); outline-color: rgba(77,141,255,.5); }
  100% { background: transparent; box-shadow: 0 0 0 12px transparent; outline-color: transparent; }
}

/* Aviso de privacidad simplificado (registro) */
.aviso-corto { font-size: 12px; line-height: 1.55; color: var(--text3); margin: 12px 0 0; }
.aviso-corto b { color: var(--text2); font-weight: 600; }
