/* ============================================================
   ASTA · Formación Profesional — Hoja de estilos
   ============================================================ */

:root {
  --dark: #0b1220;
  --navy: #111a33;
  --primary: #4f6bff;
  --primary-2: #22c1d8;
  --grad: linear-gradient(120deg, #4f6bff 0%, #22c1d8 100%);
  --text: #192033;
  --muted: #5c6677;
  --bg: #ffffff;
  --tint: #f4f6fc;
  --border: #e4e9f2;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(17, 26, 51, 0.08);
  --shadow-lg: 0 24px 70px rgba(17, 26, 51, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand__text strong {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { vertical-align: middle; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0b1220 0%, #16224a 55%, #0d5f6e 100%);
  color: #c9d2e8; font-size: 13.5px;
}
.topbar::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(rgba(120,160,255,.14) 1px, transparent 1px),
              linear-gradient(90deg, rgba(120,160,255,.14) 1px, transparent 1px);
  background-size: 40px 40px; opacity:.18;
}
.topbar a { color: #c9d2e8; transition: color .2s; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar__inner { position:relative; z-index:1; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__links { display: flex; gap: 18px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(120,160,255,.18);
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled {
  border-bottom-color: rgba(120,160,255,.32);
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  background: rgba(7, 12, 24, 0.9);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-size: 20px; letter-spacing: .08em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 22px rgba(79,107,255,.35);
}
.brand__text small { font-size: 11px; color: #9fb2d8; letter-spacing: .1em; text-transform: uppercase; }
.brand-logo { border-radius:10px; object-fit:contain; display:inline-block; flex:0 0 auto; box-shadow: 0 0 0 1px rgba(120,160,255,.25), 0 4px 14px rgba(0,0,0,.4); }
.brand--center { justify-content: center; margin-bottom: 20px; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 9px 14px; border-radius: 999px; color: #cfe0ff; font-size: 14.5px; font-weight: 500;
  position: relative; transition: color .2s, background .2s, box-shadow .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 2.5px;
  background: var(--grad); border-radius: 3px; transform: translateX(-50%) scaleX(0);
  transform-origin: center; transition: transform .3s ease, width .3s ease;
  box-shadow: 0 0 8px rgba(79,107,255,.6);
}
.nav__link:hover { color: #fff; background: rgba(79,107,255,.14); text-decoration: none; }
.nav__link:hover::after, .nav__link.is-active::after { transform: translateX(-50%) scaleX(1); }
.nav__link.is-active {
  color: #fff; background: linear-gradient(120deg, rgba(79,107,255,.28), rgba(34,193,216,.22));
  box-shadow: inset 0 0 0 1px rgba(120,160,255,.35), 0 0 22px rgba(79,107,255,.25);
}
.nav__cta { margin-left: 10px; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2.6px; background: #cfe0ff; margin: 5px 0; border-radius: 3px; transition: .25s; }
.nav__toggle:hover { background: rgba(79,107,255,.14); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(79,107,255,.35); position: relative; overflow: hidden; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,107,255,.42); text-decoration: none; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
}
.btn--primary:hover::after { animation: shine .9s ease; }
.btn:active { transform: scale(.97); }
.btn--outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn--ghost { background: rgba(79,107,255,.08); color: var(--primary); }
.btn--ghost:hover { background: rgba(79,107,255,.16); text-decoration: none; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); text-decoration: none; }
.btn--danger { background: #fdecec; color: var(--error); }
.btn--danger:hover { background: #fbd8d8; text-decoration: none; }
.btn--lg { padding: 14px 28px; font-size: 15.5px; }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn--block { width: 100%; }

/* ---------- Alertas ---------- */
.alert {
  margin: 18px 0; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14.5px; border: 1px solid transparent;
}
.alert--success { background: #ecfdf3; border-color: #b7ecd0; color: #14693a; }
.alert--error { background: #fef2f2; border-color: #fbc5c5; color: #991b1b; }
.alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert ul { margin: 6px 0 0 18px; }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(79,107,255,.18), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(34,193,216,.16), transparent 55%),
    var(--dark);
  color: #eef2ff; padding: 84px 0 96px;
}
.hero__blob {
  position: absolute; right: -140px; top: -140px; width: 480px; height: 480px;
  background: radial-gradient(circle at center, rgba(79,107,255,.35), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__content h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; color: #fff; margin: 18px 0 16px; }
.hero__content p { font-size: 17px; color: #c6cfE7; max-width: 560px; }
.grad {
  background: var(--grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: #aeb9d9; }
.hero__points strong { color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge--glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #dfe6ff; }
.badge--live { background: #16a34a; color: #fff; }

/* Visual (mockup) */
.visual-card { border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.visual-card--main { box-shadow: var(--shadow-lg); overflow: hidden; }
.visual-card--main .visual-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #b9c4e6; }
.visual-card__head span { flex: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto !important; }
.dot--live { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); animation: pulse 2s infinite; }

.terminal { padding: 18px; }
.terminal__bar { display: flex; gap: 6px; margin-bottom: 12px; }
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: #33415e; }
.terminal__bar span:nth-child(1) { background: #ff5f57; } .terminal__bar span:nth-child(2) { background: #febc2e; } .terminal__bar span:nth-child(3) { background: #28c840; }
.terminal pre { font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 12.5px; color: #9fe8c5; white-space: pre; line-height: 1.9; }
.terminal .ok { color: #34d399; }
.terminal .tp-c { color: #7dd3fc; }
.terminal .tp-s { color: #9fe8c5; }
.terminal .cursor { animation: caret .9s step-end infinite; font-weight: 700; }
@keyframes caret { 0%,100%{ opacity:1; } 50%{ opacity:0; } }

.visual-card__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #c6cfe7; }
.vr { font-family: 'Sora', sans-serif; color: #fff; font-size: 18px; }
.visual-card--mini { position: absolute; left: -18px; bottom: -22px; padding: 12px 18px; font-size: 13.5px; color: #dfe6ff; animation: float 5s ease-in-out infinite; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Stats band ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 12px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: 'Sora', sans-serif; font-size: 28px; color: var(--navy); }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 10px 0 12px; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 16.5px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.eyebrow--light { color: #8fa8ff; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split--lg { grid-template-columns: 1.1fr .9fr; }
.split > p { margin-bottom: 14px; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c9d4ef; }
.card h3 { font-size: 18px; margin: 16px 0 8px; color: var(--navy); }
.card p { color: var(--muted); font-size: 14.5px; }
.card--tint { background: var(--tint); border-color: transparent; }
.card--tint:hover { box-shadow: var(--shadow); }
.card--acceso { padding: 24px; }
.card--roles ul, .checks { list-style: none; margin-top: 8px; }
.card--roles li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.card--roles li:last-child { border-bottom: 0; }
.card--contrat p { margin-bottom: 12px; }

.icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--grad); box-shadow: 0 8px 18px rgba(79,107,255,.3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover .icon { transform: translateY(-4px) scale(1.07) rotate(-3deg); box-shadow: 0 14px 26px rgba(79,107,255,.45); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; color: #fff; background: var(--grad); font-size: 17px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Chips salidas ---------- */
.chip-card {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; font-weight: 600; font-size: 15px; color: var(--navy);
}
span.check { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: #e8f7ef; color: var(--success); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.chip-card span.check { font-size: 12px; }
.check-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--dark); color: #eef2ff; position: relative; overflow: hidden; padding: 72px 0; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 20%, rgba(79,107,255,.28), transparent 60%); }
.cta-banner__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-banner h2 { font-size: clamp(26px, 3vw, 38px); color: #fff; margin: 10px 0 8px; }
.cta-banner p { color: #c6cfE7; max-width: 560px; }

.cta-inline { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position:relative; overflow:hidden;
  background:
    radial-gradient(700px 340px at 90% -20%, rgba(79,107,255,.25), transparent 60%),
    var(--dark);
  color: #eef2ff; padding: 66px 0 70px; text-align: center;
}
.page-hero .container { position:relative; z-index:2; }
.page-hero .net-bg { opacity:.6; }
.page-hero--small { padding: 56px 0; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 46px); color: #fff; margin: 14px 0 12px; }
.page-hero__sub { color: #c2cbe8; font-size: 16.5px; max-width: 640px; margin: 0 auto; }

/* ---------- Programa: facts + modules ---------- */
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 2px; }
.fact .icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 11px; }
.fact span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact strong { font-size: 14.5px; color: var(--navy); }

.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mod-year { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--navy); margin-bottom: 18px; }
.mod-year span { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.cards-stack { display: flex; flex-direction: column; gap: 12px; }
.mod-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; transition: .2s; }
.mod-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.mod-item__cod { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 12.5px; color: var(--primary); background: rgba(79,107,255,.08); border-radius: 8px; padding: 8px 6px; text-align: center; }
.mod-item h4 { font-size: 14px; color: var(--navy); font-family: 'Inter', sans-serif; letter-spacing: 0; }
.mod-item p { font-size: 12.5px; color: var(--muted); }
.mod-item__h { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--tint); border-radius: 8px; padding: 5px 9px; white-space: nowrap; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 26px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.form legend::before { content: ""; width: 8px; height: 22px; border-radius: 4px; background: var(--grad); display: inline-block; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: .18s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,107,255,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form__actions { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form__note { font-size: 13px; color: var(--muted); margin-top: 12px; margin-left: auto; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; padding: 8px 0; }
label.check input { margin-top: 4px; accent-color: var(--primary); width: 17px; height: 17px; flex: 0 0 auto; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ---------- Éxito inscripción ---------- */
.success-box { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg, 20px); padding: 44px 30px; box-shadow: var(--shadow); }
.success-box__icon { width: 64px; height: 64px; border-radius: 50%; background: #e8f7ef; color: var(--success); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.big-code { font-family: 'Sora', sans-serif; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: .14em; background: var(--tint); border-radius: var(--radius-sm); padding: 16px; margin: 18px 0; color: var(--navy); }
.success-box p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ---------- Consulta / estado ---------- */
.status-card { margin-top: 34px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); animation: rise .4s ease; }
.status-card header { padding: 22px 26px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.status-card header strong { font-size: 17px; color: var(--navy); }
.status-card header small { color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.status-card__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px 26px; }
.status-card__info > div { background: var(--tint); border-radius: var(--radius-sm); padding: 14px; }
.status-card__info span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.status-card__info strong { font-size: 14.5px; color: var(--navy); }
.status-card footer { padding: 0 26px 22px; color: var(--muted); font-size: 14px; }
.ok-line { color: var(--success); font-weight: 600; }

.estado { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.c-estado--pendiente { background: #f3f4f6; color: #4b5563; }
.c-estado--recibida { background: #eff6ff; color: #1d4ed8; }
.c-estado--enrevision { background: #fffbeb; color: #b45309; }
.c-estado--admitida { background: #ecfdf3; color: #047857; }
.c-estado--rechazada { background: #fef2f2; color: #b91c1c; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 600; font-size: 15.5px; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary { border-bottom: 1px solid var(--border); }
.faq__icon { color: var(--primary); font-size: 22px; font-weight: 500; transition: .2s; flex: 0 0 auto; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { padding: 16px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- Contacto ---------- */
.contact-list { display: grid; gap: 14px; margin-bottom: 28px; }
.contact-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.contact-item .icon { width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto; }
.contact-item span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-item a { font-weight: 600; color: var(--text); }
.contact-item strong { font-weight: 600; }

/* ---------- Prosa (legal) ---------- */
.prose h2 { font-size: 21px; color: var(--navy); margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.prose ol { padding-left: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #aeb9d9; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 64px 22px 40px; }
.footer .brand__text strong { color: #fff; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: #aeb9d9; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__brand p { margin: 16px 0 20px; font-size: 14px; }
.footer__brand .btn--ghost { color: #dfe6ff; background: rgba(255,255,255,.08); }
.footer__brand .btn--ghost:hover { background: rgba(255,255,255,.16); }
.footer__meta { margin-top: 12px; font-size: 13px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #7c86a6; }
.footer__bottom p { color: #7c86a6; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: #eef1f8; }
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(800px 500px at 50% -20%, rgba(79,107,255,.25), transparent 60%), var(--dark); padding: 24px; }
.login-wrap { width: 100%; max-width: 420px; }
.login-card { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.login-card > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.login-card .form { gap: 18px; }

.admin-shell { display: grid; grid-template-columns: 235px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark); padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Sora', sans-serif; font-size: 16px; padding: 0 8px; }
.admin-brand small { display: block; color: #8b96bd; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.admin-brand:hover { text-decoration: none; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { color: #b7c1de; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.admin-nav a.is-active { background: var(--grad); color: #fff; }

.admin-sidebar__user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.admin-sidebar__user strong { display: block; color: #fff; font-size: 13.5px; line-height: 1.3; }
.admin-sidebar__user a { color: #8b96bd; font-size: 12.5px; }

.admin-main { padding: 32px 36px 60px; max-width: 1240px; }
.page-title { font-size: 26px; color: var(--navy); margin-bottom: 22px; }
.muted { color: var(--muted); font-weight: 400; font-size: .85em; }

.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid var(--border); }
.stat-card span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.stat-card strong { font-size: 26px; color: var(--navy); font-family: 'Sora', sans-serif; }

.admin-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.panel-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.panel-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.panel-card__head h2 { font-size: 16.5px; color: var(--navy); }
.narrow-form { padding: 22px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 11px 18px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); background: #fafbfe; white-space: nowrap; }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbff; }
.table .empty { text-align: center; color: var(--muted); padding: 32px; }

.admin-actions { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px; }
.admin-action { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--navy); font-weight: 600; font-size: 14px; }
.admin-action:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.filters { display: grid; grid-template-columns: 2fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.filters__btn { display: flex; gap: 8px; }
.pager { display: flex; gap: 6px; padding: 14px 16px; flex-wrap: wrap; }
.pager__link { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--border); font-size: 13.5px; color: var(--navy); }
.pager__link.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.pager__link:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }

.crumbs { margin-bottom: 8px; color: var(--muted); font-size: 13.5px; }
.crumbs a { color: var(--primary); }
.detail { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding: 18px; font-size: 14.5px; }
.detail dt { color: var(--muted); font-size: 13px; white-space: nowrap; }
.detail dd { color: var(--navy); font-weight: 500; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.msg { padding: 18px; }
.msg.is-read { background: #fafbfe; }
.msg.is-read p, .msg.is-read h3 { color: var(--muted); }
.msg__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cta-spacer { flex: 1; }
.msg h3 { font-size: 15.5px; color: var(--navy); margin: 6px 0; }
.msg p { white-space: pre-wrap; color: var(--text); font-size: 14px; }

/* ---- Logo upload ---- */
.logo-upload { display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.logo-upload__prev { width:110px; height:110px; border:1.5px dashed var(--border); border-radius:18px; display:flex; align-items:center; justify-content:center; background:var(--tint); overflow:hidden; }
.logo-upload__prev img { max-width:100%; max-height:100%; object-fit:contain; }
.logo-upload__acciones { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav__menu, .nav__cta { gap: 0; }
  .nav__link { padding: 9px 10px; font-size: 13.5px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 560px; }
  .visual-card--mini { left: 10px; bottom: -18px; }
  .grid3, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .split--lg, .mod-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(even) { border-right: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .admin-sidebar__user { margin-top: 0; margin-left: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 24px 20px 50px; }
  .admin-cols { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11, 18, 32, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch; padding: 14px 22px 22px; gap: 6px;
    border-bottom: 1px solid rgba(120,160,255,.25); box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { padding: 13px 14px; font-size: 16px; }
  .nav__link.is-active { color: #fff; }
  .nav__cta { margin: 10px 0 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .form__grid, .filters { grid-template-columns: 1fr; }
  .form__actions { gap: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .page-hero { padding: 54px 0 58px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 720px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .grid3, .steps, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; }
  .stats__grid { border-top: 1px solid var(--border); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 64px; }
  .section { padding: 52px 0; }
  .page-hero { padding: 46px 0 50px; }
  .page-hero__sub { font-size: 15.5px; }
  .topbar__item { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .visual-card--mini { position: static; margin-top: 14px; }
  .hero__actions, .cta-inline { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta-inline .btn { width: 100%; }
  .hero__points { flex-direction: column; gap: 12px; }
  .techmed { display: none; }
  .terminal pre { font-size: 11px; overflow-x: auto; }
  .section-head { margin-bottom: 30px; }
  .fact-grid { grid-template-columns: 1fr; }
  .mod-item { grid-template-columns: 46px 1fr; gap: 10px 12px; }
  .mod-item__h { grid-column: 2; justify-self: start; }
  .mod-item__cod { grid-row: 1 / span 2; }
  .status-card header { grid-template-columns: 1fr; }
  .status-card__info { grid-template-columns: 1fr; padding: 18px; }
  .status-card header, .status-card footer { padding-left: 18px; padding-right: 18px; }
  .form__actions { flex-direction: column; align-items: stretch; }
  .form__actions .btn { width: 100%; }
  .form__note { margin-left: 0; text-align: center; }
  label.check { padding: 10px 0; }
  .success-box { padding: 32px 18px; }
  .big-code { font-size: clamp(24px, 8vw, 34px); }
  .footer__grid { gap: 26px; padding-top: 48px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; justify-content: center; }
  .cta-banner { padding: 56px 0; }
  .contact-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filters { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 14px 12px; }
  .admin-main { padding: 20px 14px 44px; }
  .admin-nav a { font-size: 13.5px; padding: 9px 10px; }
  .admin-sidebar__user { margin-left: 0; width: 100%; justify-content: center; margin-top: 6px; }
  .panel-card__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .table th, .table td { padding: 10px 12px; }
  .detail { grid-template-columns: 1fr; gap: 4px 0; }
  .login-body { padding: 16px; }
  .login-card { padding: 24px 18px; }
  .container { padding: 0 16px; }
}

@media (max-width: 380px) {
  .brand__text small { font-size: 10px; }
  .brand__text strong { font-size: 18px; }
  .nav__inner { min-height: 62px; }
  .hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 26px; }
  .cta-banner__inner .btn { width: 100%; text-align: center; }
}

/* ============================================================
   DESIGN v2 — Animations & Reveal
   ============================================================ */

/* ---- Hero entrance ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(26px); } to { opacity:1; transform:none; } }
@keyframes fadeRight { from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:none; } }
@keyframes gradShift { 0%,100%{ background-position:0% 50%; } 50%{ background-position:100% 50%; } }
@keyframes shine { from{ left:-80%; } to{ left:130%; } }
@keyframes float { 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
@keyframes shimmer { 0%{ background-position:-200% 0; } 100%{ background-position:200% 0; } }
@keyframes counterGlow { 0%,100%{ text-shadow:0 0 0 rgba(79,107,255,0); } 50%{ text-shadow:0 12px 28px rgba(79,107,255,.18); } }

/* ============================================================
   DESIGN v3 — Red/tecnología animada
   ============================================================ */

/* ---- Canvas de red (fondo) ---- */
.net-bg { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.net-bg--full { position:absolute; }
.net-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }

/* ---- Tech decor: etiquetas flotantes estilo dashboard ---- */
.techmed {
  position:absolute; display:inline-flex; align-items:center; gap:7px;
  font-family:'Sora',sans-serif; font-size:11.5px; font-weight:600; letter-spacing:.04em;
  color:#cfe0ff; background:rgba(15,25,50,.72); border:1px solid rgba(120,160,255,.28);
  border-radius:9px; padding:7px 11px; backdrop-filter:blur(4px);
  box-shadow:0 6px 18px rgba(0,0,0,.25); pointer-events:none; z-index:3;
  animation: float 6s ease-in-out infinite;
}
.techmed--alt { background:rgba(255,255,255,.9); color:var(--navy); border-color:rgba(79,107,255,.2); box-shadow:0 8px 22px rgba(17,26,51,.12); }
.techmed .pulse-dot { width:7px; height:7px; border-radius:50%; background:#34d399; box-shadow:0 0 0 0 rgba(52,211,153,.5); animation:ping 1.6s infinite; }
.techmed--warn .pulse-dot { background:#fbbf24; box-shadow:0 0 0 0 rgba(251,191,36,.5); }
.techmed svg { color:#22c1d8; }
@keyframes ping { 0%{ box-shadow:0 0 0 0 rgba(52,211,153,.5);} 75%{ box-shadow:0 0 0 9px rgba(52,211,153,0);} 100%{ box-shadow:0 0 0 0 rgba(52,211,153,0);} }

/* ---- Líneas de conexión (decorativas) ---- */
.netline { position:absolute; pointer-events:none; z-index:1; opacity:.5; }
.netline span { position:absolute; width:6px; height:6px; border-radius:50%; background:#22c1d8; box-shadow:0 0 10px 2px rgba(34,193,216,.6); top:-3px; animation: travel 4s linear infinite; }
@keyframes travel { from{ left:0; opacity:0;} 8%{opacity:1;} 92%{opacity:1;} to{ left:calc(100% - 6px); opacity:0;} }

/* ---- Scanlines / rejilla tecnológica ---- */
.techgrid { position:absolute; inset:0; pointer-events:none; z-index:0; opacity:.16; }
.techgrid::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(120,160,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.18) 1px, transparent 1px);
  background-size: 56px 56px;
  mask: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.techgrid--move::before { animation: gridDrift 22s linear infinite; }
@keyframes gridDrift { from{ background-position:0 0,0 0; } to{ background-position:56px 0,0 56px; } }

/* ---- Cráneo/rutas animadas (SVG decorative path on light sections) ---- */
.topo { position:absolute; inset:0; pointer-events:none; z-index:0; opacity:.55; }
.topo path { fill:none; stroke:url(#tgrad); stroke-width:1.4; opacity:.28; }
.topo path.t-dash { stroke-dasharray:6 10; opacity:.5; animation: dashMove 18s linear infinite; }
@keyframes dashMove { to{ stroke-dashoffset:-320; } }

/* ---- Hero v3 ---- */
.hero { position:relative; overflow:hidden; padding:88px 0 104px; }
.hero .net-bg { opacity:.9; }
.hero__grid { position:relative; z-index:2; }
.hero__content { position:relative; z-index:2; }
.hero__visual { position:relative; z-index:2; }

/* Tarjeta terminal rediseñada */
.visual-card--main { position:relative; overflow:hidden; }
.visual-card--main::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(420px 200px at 80% -20%, rgba(34,193,216,.18), transparent 60%);
  pointer-events:none;
}
.visual-card--main .head-bar { display:flex; align-items:center; gap:8px; }
.head-bar span { width:10px;height:10px;border-radius:50%;background:#33415e; }
.head-bar span:nth-child(1){background:#ff5f57;} .head-bar span:nth-child(2){background:#febc2e;} .head-bar span:nth-child(3){background:#28c840;}

.term-topo { position:absolute; right:-30px; top:-20px; width:190px; height:150px; opacity:.5; pointer-events:none; }

/* ---- Stats con motivo de señal ---- */
.stats { position:relative; overflow:hidden; }
.stats::after { content:""; position:absolute; inset:0; background:radial-gradient(500px 200px at 50% -60%, rgba(79,107,255,.08), transparent 60%); pointer-events:none; }
.stat strong { position:relative; }
.stat__line { display:block; height:3px; border-radius:3px; width:0; margin:8px auto 0; background:var(--grad); animation: growLine 1.4s .2s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes growLine { from{ width:0; opacity:0; } to{ width:70%; opacity:1; } }

/* ---- Sección tint con fondo topo en programa ---- */
.section--tint { position:relative; overflow:hidden; }
.section--tint > .container { position:relative; z-index:2; }

/* ---- CTA banner con red ---- */
.cta-banner { position:relative; overflow:hidden; }
.cta-banner .net-bg { opacity:.55; }
.cta-banner__inner { position:relative; z-index:2; }

/* ---- Cards tech border glow ---- */
.card { position:relative; }
.card__ribbon {
  position:absolute; inset:0 auto auto 0; height:3px; width:0;
  background:var(--grad); border-radius:3px 0 0 0; transition:width .45s ease;
}
.card:hover .card__ribbon { width:100%; }

/* ---- Icono con anillo pulsante ---- */
.icon { position:relative; }
.icon::after {
  content:""; position:absolute; inset:-5px; border-radius:16px; border:1.5px solid rgba(34,193,216,.4);
  opacity:0; transition:opacity .3s;
}
.card:hover .icon::after { opacity:1; animation: iconRing 1.4s ease-out infinite; }
@keyframes iconRing { 0%{ transform:scale(.9); opacity:.9;} 100%{ transform:scale(1.25); opacity:0;} }

/* ---- Formularios: fondo sutil en ondas de red ---- */
.form { position:relative; }
.form::before { content:""; position:absolute; inset:auto -60px -60px auto; width:220px;height:220px; background:radial-gradient(circle, rgba(79,107,255,.08), transparent 60%); pointer-events:none; }

/* ---- Badge tech ---- */
.techtag { display:inline-flex; align-items:center; gap:6px; font-family:'SFMono-Regular',ui-monospace,Menlo,monospace; font-size:12px; color:#34d399; background:rgba(52,211,153,.08); border:1px solid rgba(52,211,153,.25); border-radius:6px; padding:4px 8px; }

/* ---- Scrollbar tecnológica ---- */
::-webkit-scrollbar { width:11px; }
::-webkit-scrollbar-track { background:var(--tint); }
::-webkit-scrollbar-thumb { background:linear-gradient(180deg,#4f6bff,#22c1d8); border-radius:6px; border:2px solid var(--tint); }

html.js .hero__content > * { opacity:0; animation: fadeUp .75s cubic-bezier(.22,.61,.36,1) forwards; }
html.js .hero__content > :nth-child(1){ animation-delay:.05s; }
html.js .hero__content > :nth-child(2){ animation-delay:.12s; }
html.js .hero__content > :nth-child(3){ animation-delay:.2s; }
html.js .hero__content > :nth-child(4){ animation-delay:.28s; }
html.js .hero__content > :nth-child(5){ animation-delay:.35s; }
html.js .hero__visual { opacity:0; animation: fadeRight .9s .3s cubic-bezier(.22,.61,.36,1) forwards; }

/* ---- Reveal on scroll ---- */
html.js .reveal { opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1),box-shadow .4s; transition-delay:var(--d,0s); }
html.js .reveal.from-left { transform:translateX(-30px); }
html.js .reveal.from-right { transform:translateX(30px); }
html.js .reveal.is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .hero__content > *, html.js .hero__visual { opacity:1!important; transform:none!important; animation:none!important; transition:none!important; }
}

/* ---- Stat counters ---- */
.stat strong { animation: counterGlow 3s ease-in-out infinite; animation-delay:var(--cg,.2s); }

/* ---- Mod items ---- */
.mod-item { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mod-item:hover { transform:translateX(6px) translateY(-2px); box-shadow:var(--shadow); border-color:#c5cef0; }

/* ---- Chip cards ---- */
.chip-card { transition: transform .25s ease, box-shadow .25s ease; }
.chip-card:hover { transform:translateY(-4px) scale(1.02); box-shadow:var(--shadow); }

/* ---- FAQ smooth open/close ---- */
.faq__item > p { max-height:0; opacity:0; overflow:hidden; padding:0 20px; transition: max-height .45s ease, opacity .35s ease, padding .35s ease; }
.faq__item[open] > p { max-height:500px; opacity:1; padding:12px 20px 18px; }

/* ---- Status card entrance ---- */
@keyframes rise { from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }
.status-card { animation: rise .5s cubic-bezier(.22,.61,.36,1) both; }

/* ---- CTA banner gradient drift ---- */
.cta-banner::before { background-size:150% 150%; animation: gradShift 8s ease infinite; }

/* ---- Back-to-top ---- */
.to-top {
  position:fixed; right:24px; bottom:32px; width:52px; height:52px; border-radius:14px; border:0;
  background:var(--grad); color:#fff; box-shadow:0 8px 22px rgba(79,107,255,.35);
  display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0;
  transform:translateY(24px); transition:opacity .3s ease, transform .3s ease, box-shadow .2s;
  z-index:90; pointer-events:none;
}
.to-top.is-visible { opacity:1; transform:none; pointer-events:auto; }
.to-top:hover { box-shadow:0 14px 30px rgba(79,107,255,.45); transform:translateY(-3px)!important; }
@media (prefers-reduced-motion: reduce){ .to-top{ transition:none!important; transform:none!important; opacity:1!important; }}

/* ---- Subtle glow hero blob ---- */
@keyframes blobPulse { 0%,100%{ opacity:.28; transform:scale(1); } 50%{ opacity:.18; transform:scale(1.08); } }
.hero__blob { animation: blobPulse 6s ease-in-out infinite; }

/* ============================================================
   DESIGN v4 — Tema oscuro "tecnología" del sitio público
   (el panel admin y login mantienen su tema claro)
   ============================================================ */
body:not(.admin-body):not(.login-body) {
  --dark:#0a101e; --navy:#eef2ff; --bg:#0a101e; --tint:#0e1526;
  --text:#e6ecff; --muted:#93a3c5; --border:rgba(120,160,255,.18);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(79,107,255,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34,193,216,.07), transparent 55%),
    var(--dark);
  color: var(--text);
  background-attachment: fixed;
}
body:not(.admin-body):not(.login-body) ::selection { background: rgba(79,107,255,.4); color:#fff; }

/* ---- Secciones: sin bloques blancos ---- */
body:not(.admin-body):not(.login-body) .section--tint { background: linear-gradient(180deg, rgba(17,26,51,.55), rgba(11,18,32,.35)); }

/* ---- Section heads on dark ---- */
body:not(.admin-body):not(.login-body) .section-head h2,
body:not(.admin-body):not(.login-body) .mod-year,
body:not(.admin-body):not(.login-body) .form legend,
body:not(.admin-body):not(.login-body) .prose h2 { color:#fff; }
body:not(.admin-body):not(.login-body) .section-head p,
body:not(.admin-body):not(.login-body) .form__note,
body:not(.admin-body):not(.login-body) .prose p,
body:not(.admin-body):not(.login-body) .prose li,
body:not(.admin-body):not(.login-body) .card p,
body:not(.admin-body):not(.login-body) .step p,
body:not(.admin-body):not(.login-body) .chip-card,
body:not(.admin-body):not(.login-body) .faq__item p,
body:not(.admin-body):not(.login-body) .check-line,
body:not(.admin-body):not(.login-body) .success-box p,
body:not(.admin-body):not(.login-body) .footer__bottom p { color: var(--muted); }

/* ---- Cards / steps / chips / facts / mods / faq: paneles oscuros ---- */
body:not(.admin-body):not(.login-body) .card,
body:not(.admin-body):not(.login-body) .step,
body:not(.admin-body):not(.login-body) .chip-card,
body:not(.admin-body):not(.login-body) .fact,
body:not(.admin-body):not(.login-body) .mod-item,
body:not(.admin-body):not(.login-body) .faq__item,
body:not(.admin-body):not(.login-body) .contact-item,
body:not(.admin-body):not(.login-body) .success-box {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}
body:not(.admin-body):not(.login-body) .card:hover,
body:not(.admin-body):not(.login-body) .step:hover,
body:not(.admin-body):not(.login-body) .mod-item:hover { box-shadow: 0 20px 60px rgba(0,0,0,.5); border-color: rgba(122,165,255,.4); }
body:not(.admin-body):not(.login-body) .card h3,
body:not(.admin-body):not(.login-body) .step h3,
body:not(.admin-body):not(.login-body) .fact strong,
body:not(.admin-body):not(.login-body) .mod-item h4,
body:not(.admin-body):not(.login-body) .faq__item summary,
body:not(.admin-body):not(.login-body) .contact-item a,
body:not(.admin-body):not(.login-body) .contact-item strong,
body:not(.admin-body):not(.login-body) .stat strong,
body:not(.admin-body):not(.login-body) .big-code,
body:not(.admin-body):not(.login-body) .success-box h3,
body:not(.admin-body):not(.login-body) .status-card header strong { color: #fff; }
body:not(.admin-body):not(.login-body) .fact span,
body:not(.admin-body):not(.login-body) .contact-item span,
body:not(.admin-body):not(.login-body) .status-card__info span,
body:not(.admin-body):not(.login-body) .status-card footer,
body:not(.admin-body):not(.login-body) .stat span,
body:not(.admin-body):not(.login-body) .form legend { color: var(--muted); }
body:not(.admin-body):not(.login-body) span.check { background: rgba(52,211,153,.14); color:#4ade80; }
body:not(.admin-body):not(.login-body) .chip-card span.check { background: rgba(52,211,153,.14); }
body:not(.admin-body):not(.login-body) .card--roles li { border-bottom-color: var(--border); }
body:not(.admin-body):not(.login-body) .mod-item__cod { background: rgba(79,107,255,.18); color:#a9bcff; }
body:not(.admin-body):not(.login-body) .mod-item__h { background: rgba(255,255,255,.07); color:var(--muted); }

/* ---- Stats band: oscuro con glow ---- */
body:not(.admin-body):not(.login-body) .stats { background: linear-gradient(180deg, rgba(17,26,51,.7), rgba(10,16,30,.3)); border-bottom:1px solid var(--border); }
body:not(.admin-body):not(.login-body) .stat { border-right-color: var(--border); }
body:not(.admin-body):not(.login-body) .stat:last-child { border-right:0; }

/* ---- Formularios oscuros ---- */
body:not(.admin-body):not(.login-body) .field label,
body:not(.admin-body):not(.login-body) label.check { color:#dbe3ff; }
body:not(.admin-body):not(.login-body) .field input,
body:not(.admin-body):not(.login-body) .field select,
body:not(.admin-body):not(.login-body) .field textarea {
  background: rgba(11,18,32,.9); color: var(--text); border-color: var(--border);
}
body:not(.admin-body):not(.login-body) .field input:focus,
body:not(.admin-body):not(.login-body) .field select:focus,
body:not(.admin-body):not(.login-body) .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,107,255,.18);
}
body:not(.admin-body):not(.login-body) .field input::placeholder,
body:not(.admin-body):not(.login-body) .field textarea::placeholder { color:#5b6b94; }

/* ---- Status card / success box ---- */
body:not(.admin-body):not(.login-body) .status-card { background: rgba(255,255,255,.04); border-color: var(--border); }
body:not(.admin-body):not(.login-body) .status-card header,
body:not(.admin-body):not(.login-body) .faq__item[open] summary { border-bottom-color: var(--border); }
body:not(.admin-body):not(.login-body) .status-card__info > div,
body:not(.admin-body):not(.login-body) .big-code { background: rgba(255,255,255,.06); }
body:not(.admin-body):not(.login-body) .success-box__icon { background: rgba(52,211,153,.15); color:#4ade80; }

/* ---- Estado chips (oscuro) ---- */
body:not(.admin-body):not(.login-body) .c-estado--pendiente { background: rgba(255,255,255,.10); color:#cfd6ec; }
body:not(.admin-body):not(.login-body) .c-estado--recibida { background: rgba(122,165,255,.16); color:#b9cbff; }
body:not(.admin-body):not(.login-body) .c-estado--enrevision { background: rgba(251,191,36,.14); color:#f5cd6a; }
body:not(.admin-body):not(.login-body) .c-estado--admitida { background: rgba(52,211,153,.16); color:#6ee7b7; }
body:not(.admin-body):not(.login-body) .c-estado--rechazada { background: rgba(248,113,113,.16); color:#fda4af; }

/* ---- Alerts oscuros ---- */
body:not(.admin-body):not(.login-body) .alert { border-color: var(--border); }
body:not(.admin-body):not(.login-body) .alert--success { background: rgba(22,163,74,.14); border-color: rgba(52,211,153,.4); color:#6ee7b7; }
body:not(.admin-body):not(.login-body) .alert--notice { background: rgba(79,107,255,.14); border-color: rgba(122,165,255,.4); color:#b9cbff; }
body:not(.admin-body):not(.login-body) .alert--warning { background: rgba(217,119,6,.14); border-color: rgba(251,191,36,.4); color:#f5cd6a; }
body:not(.admin-body):not(.login-body) .alert--error { background: rgba(220,38,38,.14); border-color: rgba(248,113,113,.4); color:#fda4af; }

/* ---- Botones en oscuro ---- */
body:not(.admin-body):not(.login-body) .btn--outline { background: transparent; color:#dfe6ff; border-color: var(--border); }
body:not(.admin-body):not(.login-body) .btn--outline:hover { color:#fff; border-color: var(--primary); }
body:not(.admin-body):not(.login-body) .btn--ghost { color:#a9bcff; }
body:not(.admin-body):not(.login-body) .btn--danger { background: rgba(248,113,113,.12); color:#fda4af; }
body:not(.admin-body):not(.login-body) .btn--danger:hover { background: rgba(248,113,113,.2); }

/* ---- Sustituye el topbar eliminado por una línea divisoria sutil ---- */
body:not(.admin-body):not(.login-body) .nav::before {
  content:""; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(120,160,255,.5), transparent);
}