:root {
  --bg: #0a0b10;
  --card: #14161f;
  --card-2: #1b1e2b;
  --line: #262a3a;
  --text: #e8eaf2;
  --muted: #9aa0b5;
  --brand: #6c5ce7;
  --brand-2: #00d2a8;
  --danger: #ff5c7a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55; will-change: transform;
}
/* bolita morada */
.bg-glow::before {
  width: 520px; height: 520px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(108,92,231,.85), transparent 70%);
  animation: floatA 18s ease-in-out infinite;
}
/* bolita verde/turquesa */
.bg-glow::after {
  width: 460px; height: 460px; bottom: -140px; left: -90px;
  background: radial-gradient(circle, rgba(0,210,168,.7), transparent 70%);
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-120px,80px) scale(1.15); }
  66%     { transform: translate(60px,160px) scale(.9); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(140px,-90px) scale(1.1); }
  66%     { transform: translate(-70px,-50px) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow::before, .bg-glow::after { animation: none; }
}

/* Logo en la barra de navegación */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-img { height: 96px; width: auto; display: block; }

/* Logo grande en la portada */
.brand-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 18px; }
.brand-hero-logo {
  width: 150px; height: auto;
  filter: drop-shadow(0 0 24px rgba(108,92,231,.45));
  animation: floatLogo 6s ease-in-out infinite;
}
.brand-hero-name {
  font-weight: 800; font-size: 1.9rem; color: #fff; letter-spacing: .5px;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-hero-logo { animation: none; }
}
.nav, .hero, .dash, .footer { position: relative; z-index: 1; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw; max-width: 1200px; margin: 0 auto;
}
.logo { font-weight: 800; font-size: 2rem; color: var(--text); text-decoration: none; letter-spacing: .3px; }
.logo-mark { color: var(--brand-2); }
nav { display: flex; gap: 10px; align-items: center; }

.btn, .btn-ghost {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 10px;
  padding: 10px 18px; text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn {
  background: linear-gradient(135deg, var(--brand), #8b7bff);
  color: #fff; box-shadow: 0 8px 24px rgba(108,92,231,.35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(108,92,231,.5); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--brand); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 8px; }
.btn-big { padding: 16px; font-size: 1.05rem; }

.hero {
  max-width: 1200px; margin: 0 auto; padding: 5vh 6vw 8vh;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--brand-2); background: rgba(0,210,168,.1);
  border: 1px solid rgba(0,210,168,.25); padding: 6px 14px; border-radius: 999px;
}
.pill-green { color: var(--brand-2); }
.pill-amber { color: #ffcf5c; background: rgba(255,207,92,.1); border-color: rgba(255,207,92,.3); }
.pill-red { color: #ff7a7a; background: rgba(255,122,122,.1); border-color: rgba(255,122,122,.3); }

/* --- Dashboard de administración --- */
.overview-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.ov-updated { opacity:.6; font-size:.8rem; }
.ov-h2 { margin:28px 0 12px; }
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-top:18px; }
.stat-card { background:var(--card,#0f1722); border:1px solid var(--line); border-radius:16px; padding:18px 16px; text-align:center; display:flex; flex-direction:column; gap:6px; }
.stat-num { font-size:1.6rem; font-weight:800; color:#fff; line-height:1.1; }
.stat-label { font-size:.78rem; color:var(--muted); }
.stat-ok .stat-num { color:#3ddc97; }
.stat-off .stat-num { color:#ff7a7a; }
.stat-hi .stat-num { color:#13c3ff; }
.ov-nodes td, .ov-nodes th, .ov-servers td, .ov-servers th { white-space:nowrap; }
.stat-ico { font-size:1.1rem; opacity:.9; }
.admin-subnav { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 4px; }
.live-dot { font-size:.72rem; font-weight:800; letter-spacing:.5px; color:#3ddc97; border:1px solid rgba(61,220,151,.35); background:rgba(61,220,151,.08); padding:5px 12px; border-radius:999px; white-space:nowrap; transition:opacity .3s ease; }
.live-dot.blink { opacity:.35; }
.admin-table tbody tr:hover { background:rgba(255,255,255,.03); }
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:-4px -4px; padding:4px; }
.table-scroll .admin-table { min-width:520px; }
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 18px 0; font-weight: 800; }
.grad { background: linear-gradient(135deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 520px; }

.specs { list-style: none; display: flex; gap: 14px; margin: 28px 0; }
.specs li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 20px; text-align: center; flex: 1;
}
.specs strong { display: block; font-size: 1.25rem; color: var(--text); }
.specs span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.bullets { list-style: none; color: var(--muted); display: grid; gap: 6px; }

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.auth { width: 100%; max-width: 420px; justify-self: end; }
.tabs { display: flex; gap: 6px; background: var(--bg); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.tab.active { background: var(--card-2); color: var(--text); box-shadow: 0 1px 0 var(--line); }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }
input {
  font: inherit; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,92,231,.2); }
.hint { font-size: .8rem; color: var(--muted); text-align: center; }

.alert {
  background: rgba(255,92,122,.12); border: 1px solid rgba(255,92,122,.3);
  color: #ffb3c1; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem;
}

.dash { max-width: 720px; margin: 0 auto; padding: 6vh 6vw; }
.dash h1 { font-size: 2rem; margin-bottom: 24px; }
.dash .card h2 { margin-bottom: 10px; }
.dash .card p { color: var(--muted); margin-bottom: 18px; }
.server-specs { display: flex; gap: 22px; margin: 18px 0; color: var(--muted); }
.server-specs strong { color: var(--text); }
.server-ok { border-color: rgba(0,210,168,.3); }

.footer { text-align: center; color: var(--muted); padding: 40px 6vw; font-size: .85rem; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-logo { height: 24px; width: auto; display: block; margin: 0 auto 8px; opacity: .9; }

.alert-ok {
  background: rgba(0,210,168,.12); border-color: rgba(0,210,168,.35); color: #8ff0d8;
}

.conn { display: grid; gap: 10px; margin: 18px 0; }
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.conn-label { color: var(--muted); font-size: .85rem; }
.conn-val { color: var(--text); font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .95rem; background: transparent; }

select {
  font: inherit; padding: 12px 14px; border-radius: 10px; width: 100%;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,92,231,.2); }

.fork-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.fork-box summary { cursor: pointer; font-weight: 600; color: var(--text); }
.fork-form { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; }
.fork-form select { flex: 1; }
.fork-form .btn { white-space: nowrap; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .auth { justify-self: stretch; max-width: none; }
}

/* ---- Tickets / Soporte ---- */
textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; width: 100%; resize: vertical;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
}
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,92,231,.2); }

.back-link { color: var(--muted); text-decoration: none; font-size: .9rem; }
.back-link:hover { color: var(--text); }

.ticket-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticket-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ticket-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: 1; }
.ticket-subject { font-weight: 600; }
.ticket-date { color: var(--muted); font-size: .8rem; white-space: nowrap; }

.ticket-status { font-size: .75rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.status-open { background: rgba(255,92,122,.15); color: #ff8aa0; }
.status-answered { background: rgba(0,210,168,.15); color: var(--brand-2); }
.status-closed { background: rgba(154,160,181,.15); color: var(--muted); }

/* ---- Chat ---- */
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); }
.msg-head { font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.msg-body { white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.msg-user { align-self: flex-end; background: rgba(108,92,231,.14); }
.msg-admin { align-self: flex-start; background: var(--card-2); }

/* ---- Admin ---- */
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.chip { text-decoration: none; font-size: .82rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg); }
.chip-on { color: var(--text); border-color: var(--brand); background: rgba(108,92,231,.14); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover { background: var(--bg); }

.admin-cols { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.info-panel h3 { margin: 4px 0 10px; font-size: .95rem; }
.info-panel h3:not(:first-child) { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.info-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .85rem; }
.info-row span { color: var(--muted); }
.info-row code { color: var(--text); font-size: .82rem; word-break: break-all; text-align: right; }

@media (max-width: 880px) {
  .admin-cols { grid-template-columns: 1fr; }
}

/* ---- Mejoras de layout admin/ticket ---- */
.dash-wide { max-width: 1180px; }
.dash > section, .dash > .card { margin-bottom: 20px; }
.card-title { font-size: 1rem; margin: 0 0 14px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.card-title-row .card-title { margin: 0; }

.ticket-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin: 10px 0 22px; flex-wrap: wrap; }
.ticket-header h1 { margin: 0; font-size: 1.6rem; }

.admin-cols { grid-template-columns: 1fr 360px; gap: 22px; }
.admin-side { display: grid; gap: 20px; align-content: start; }
.admin-side .card { margin: 0; }

/* Chat con más aire */
.chat { padding: 4px 0 6px; min-height: 120px; max-height: 460px; overflow-y: auto; }
.msg { max-width: 88%; padding: 12px 16px; }
.reply-form { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Botones auxiliares */
.btn-mini { font: inherit; font-size: .78rem; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.btn-mini:hover { color: var(--text); border-color: var(--brand); }
.btn-mini:disabled { opacity: .5; cursor: default; }

/* Diagnóstico */
.diag-state { font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.diag-running { color: var(--brand-2); }
.diag-offline { color: var(--muted); }
.diag-starting, .diag-stopping { color: #ffcc66; }
.diag-err { color: #ff8aa0; font-size: .85rem; }
.diag-metric { margin: 12px 0; }
.diag-metric-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 5px; }
.diag-bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.diag-bar i { display: block; height: 100%; background: var(--brand); }
.diag-bar i.bar-warn { background: #ffcc66; }
.diag-bar i.bar-hot { background: var(--danger); }

/* Controles de energía */
.power-row { display: flex; gap: 8px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.power-row form { flex: 1; margin: 0; }
.btn-power { width: 100%; font: inherit; font-size: .82rem; font-weight: 600; padding: 9px 6px; border-radius: 9px;
  cursor: pointer; border: 1px solid var(--line); color: var(--text); background: var(--bg); }
.btn-power-start:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn-power-restart:hover { border-color: #ffcc66; color: #ffcc66; }
.btn-power-stop:hover { border-color: var(--danger); color: var(--danger); }

/* Visor de logs */
.logbox { background: #06070b; border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .76rem; line-height: 1.5;
  color: #c5cad8; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow-y: auto; margin: 0; }

@media (max-width: 980px) {
  .admin-cols { grid-template-columns: 1fr; }
}

/* ---- Soporte usuario: tarjetas de ticket mejoradas ---- */
.open-counter { font-size: .8rem; font-weight: 600; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.ticket-list li { display: block; padding: 0; background: transparent; border: 0; }
.ticket-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .15s; }
.ticket-card:hover { border-color: var(--brand); }
.ticket-card-main { display: flex; align-items: center; gap: 10px; }
.ticket-card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }

.ticket-id { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-weight: 700;
  color: var(--brand-2); background: rgba(0,210,168,.1); padding: 2px 8px; border-radius: 7px; font-size: .85rem; }
.ticket-id-lg { font-size: 1.1rem; padding: 3px 10px; }
.ticket-subject { font-weight: 600; font-size: 1rem; }
.ticket-flag { font-weight: 600; }

/* ============ Estado de la red (tipo Uptime Kuma) ============ */
.status { position: relative; z-index: 1; max-width: 1100px; margin: 20px auto 60px; padding: 0 6vw; }
.status-head { text-align: center; margin-bottom: 28px; }
.status-head h2 { font-size: 2rem; font-weight: 800; }
.status-head .lead { color: var(--muted); margin: 6px auto 0; max-width: 560px; }
.status-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.status-loading { width: 100%; text-align: center; color: var(--muted); padding: 30px; }
.node-card {
  flex: 0 1 280px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: center;
}
.node-top { display: flex; align-items: center; justify-content: center; gap: 9px; }
.node-name { font-weight: 700; font-size: 1.05rem; }
.node-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.st-up   { color: #4ade80; } .node-dot.st-up   { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.st-down { color: #ff5c7a; } .node-dot.st-down { background: #ff5c7a; box-shadow: 0 0 10px #ff5c7a; }
.st-maint{ color: #f0b429; } .node-dot.st-maint{ background: #f0b429; box-shadow: 0 0 10px #f0b429; }
.node-state { font-size: .82rem; font-weight: 700; margin: 6px 0 14px; }
.node-stats { display: flex; justify-content: center; gap: 28px; margin-bottom: 14px; }
.node-stats > div { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.node-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.node-ping, .node-up { font-size: 1.15rem; font-weight: 800; }
.ping-good { color: #4ade80; } .ping-ok { color: #f0b429; } .ping-bad { color: #ff8a4c; } .ping-down { color: #ff5c7a; }
.node-up { color: var(--brand-2); }
.node-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.node-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), #4ade80); transition: width .4s ease; }

/* --- Publicidad (AdSense) --- */
.ad-wrap{max-width:728px;margin:24px auto;text-align:center}
.ad-label{display:block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:#9aa;opacity:.6;margin-bottom:4px}
.ad-wrap .adsbygoogle{display:block;min-height:90px}
.ad-section{padding:0 16px 24px}

/* --- Páginas legales --- */
.legal{max-width:760px;margin:40px auto;padding:0 20px 60px;line-height:1.65}
.legal h1{margin-bottom:4px}
.legal .legal-date{color:#9aa;opacity:.7;margin-top:0;font-size:.9rem}
.legal h2{margin-top:28px;font-size:1.15rem}
.legal ul{padding-left:22px}
.legal a{color:#7ac7ff}
.footer-legal{margin-top:6px;font-size:.85rem;opacity:.8}
.footer-legal a{color:inherit}
.footer-kofi{margin-top:14px}
.kofi-btn{display:inline-flex;align-items:center;gap:6px;background:#13c3ff;color:#03242e;font-weight:700;font-size:.9rem;text-decoration:none;padding:9px 18px;border-radius:999px;transition:transform .15s ease,box-shadow .15s ease;box-shadow:0 4px 14px rgba(19,195,255,.25)}
.kofi-btn:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(19,195,255,.4)}

/* --- Casilla de consentimiento (registro) --- */
label.check{display:flex;align-items:flex-start;gap:8px;text-align:left;font-size:.85rem;
  line-height:1.4;color:#cbd5e1;margin:6px 0;cursor:pointer}
label.check input{width:auto;margin-top:2px;flex:0 0 auto}
label.check span{flex:1}

/* --- Contenido: guías, FAQ, noticias --- */
.content{max-width:960px;margin:32px auto;padding:0 20px 60px}
.content-hero{text-align:center;margin-bottom:36px}
.content-hero h1{font-size:2rem;margin-bottom:8px}
.content-hero>p{color:var(--muted);max-width:640px;margin:0 auto 16px;line-height:1.6}
.content-nav{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.content-cat{margin-bottom:40px}
.content-cat>h2{font-size:1.3rem;margin-bottom:16px}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.content-card{display:flex;flex-direction:column;gap:8px;background:var(--card);border:1px solid var(--line);
  border-radius:16px;padding:18px;text-decoration:none;color:inherit;transition:transform .15s ease,border-color .15s ease}
.content-card:hover{transform:translateY(-3px);border-color:var(--brand)}
.content-card h3{font-size:1.05rem;margin:0;color:#fff}
.content-card p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.5}
.card-meta{font-size:.8rem;color:var(--brand-2);font-weight:700}
.content-cta{text-align:center;background:var(--card-2);border:1px solid var(--line);border-radius:20px;padding:32px 20px;margin-top:24px}
.content-cta h2{margin:0 0 6px}
.content-cta p{color:var(--muted);margin:0 0 16px}

/* Artículo (guía / noticia) */
.breadcrumb{font-size:.85rem;color:var(--muted);margin-bottom:16px}
.breadcrumb a{color:var(--brand-2);text-decoration:none}
.breadcrumb span{opacity:.6}
.article{max-width:760px;margin:0 auto}
.article-head h1{font-size:1.9rem;margin:6px 0 10px;line-height:1.2}
.article-lead{color:var(--muted);font-size:1.05rem;line-height:1.6;margin:0 0 8px}
.article-body{line-height:1.7;font-size:1rem}
.article-body h2{font-size:1.25rem;margin:28px 0 10px}
.article-body h3{font-size:1.05rem;margin:22px 0 8px}
.article-body p{margin:12px 0}
.article-body ul,.article-body ol{padding-left:22px;margin:12px 0}
.article-body li{margin:6px 0}
.article-body a{color:#7ac7ff}
.article-body code{background:rgba(255,255,255,.07);padding:2px 6px;border-radius:6px;font-size:.9em}
.article-body .tip{background:rgba(0,210,168,.08);border-left:3px solid var(--brand-2);
  padding:10px 14px;border-radius:8px;margin:16px 0}
.article-foot{margin-top:40px;border-top:1px solid var(--line);padding-top:24px}
.article-foot h3{margin-bottom:14px}

/* FAQ */
.faq-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.faq-item{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:4px 18px}
.faq-item summary{cursor:pointer;font-weight:700;padding:14px 0;list-style:none;font-size:1.02rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::before{content:'+';color:var(--brand-2);font-weight:800;margin-right:10px}
.faq-item[open] summary::before{content:'–'}
.faq-item p{margin:0 0 14px;color:var(--muted);line-height:1.6}

/* Noticias */
.news-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.news-item{display:block;background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:20px 22px;text-decoration:none;color:inherit;transition:transform .15s ease,border-color .15s ease}
.news-item:hover{transform:translateY(-2px);border-color:var(--brand)}
.news-item h2{font-size:1.2rem;margin:6px 0 8px;color:#fff}
.news-item p{margin:0 0 10px;color:var(--muted);line-height:1.5}
.read-more{color:var(--brand-2);font-weight:700;font-size:.9rem}
.footer-links{margin-top:6px;font-size:.85rem;opacity:.85}
.footer-links a{color:inherit}

/* --- Secciones informativas de la home --- */
.home-sec{max-width:1000px;margin:0 auto;padding:48px 20px}
.home-sec.alt{background:rgba(255,255,255,.02);max-width:none}
.home-sec.alt>*{max-width:1000px;margin-left:auto;margin-right:auto}
.sec-head{text-align:center;margin-bottom:28px}
.sec-head h2{font-size:1.7rem;margin-bottom:6px}
.sec-cta{text-align:center;margin-top:24px}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.step{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;text-align:center}
.step-n{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;font-weight:800;font-size:1.2rem;margin-bottom:10px}
.step h3{margin:0 0 6px}
.step p{margin:0;color:var(--muted);line-height:1.5}
.step code{background:rgba(255,255,255,.07);padding:1px 6px;border-radius:6px;font-size:.9em}
.feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.feature{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px}
.feature span{font-size:1.8rem;display:block;margin-bottom:8px}
.feature h3{margin:0 0 6px;font-size:1.05rem}
.feature p{margin:0;color:var(--muted);line-height:1.5;font-size:.92rem}
