:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #127a63;
  --accent-2: #0f6853;
  --accent-bright: #19a383;
  --accent-soft: #e6f4ef;
  --warn: #92400e;   --warn-soft: #fef3c7;
  --danger: #b42318; --danger-soft: #fee4e2;
  --ok: #067647;     --ok-soft: #dcfae6;
  --display: "Fraunces", "Bitstream Charter", Charter, Georgia, serif;
  --serif: "Source Serif 4", "Bitstream Charter", Charter, Georgia, serif;
  --sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #111a2b; --ink: #e8edf5; --ink-2: #c4cedd; --muted: #8a97ab; --line: #223047;
    --accent: #3cc49f; --accent-2: #5fd6b4; --accent-bright: #3cc49f; --accent-soft: #10302a;
    --warn: #fbbf24; --warn-soft: #2d230d; --danger: #f97066; --danger-soft: #3a1714; --ok: #47cd89; --ok-soft: #0f2d1e;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.loading { padding: 120px 0; text-align: center; color: var(--muted); }
#demo-banner { background: var(--warn-soft); color: var(--warn); font-size: 14px; text-align: center; padding: 8px 16px; }

/* ---------- Cabecera ---------- */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; line-height: 1; }
.brand.small .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand.small .brand-mark svg { width: 19px; height: 19px; }
.brand.small .brand-name { font-size: 25px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 1; }
.nav-cats { display: flex; gap: 6px 18px; justify-content: center; flex: 1; flex-wrap: nowrap; }
@media (max-width: 1440px) { .nav-cats { gap: 6px 14px; } .nav-cats a, .nav-user a.navlink { font-size: 14.5px; } .nav-wrap { gap: 18px; } }
.nav-cats a, .nav-user a.navlink { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-cats a:hover, .nav-cats a.active, .nav-user a.navlink:hover, .nav-user a.navlink.active { color: var(--accent); }
.nav-user { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-user .pill { background: #d97706; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 1300px) {
  .header-inner { flex-wrap: wrap; min-height: 68px; gap: 12px; }
  .brand-name { font-size: 27px; } .brand-mark { width: 40px; height: 40px; }
  .menu-btn { display: grid; }
  .nav-wrap { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; }
  .nav-wrap.open { display: flex; }
  .nav-cats, .nav-user { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-cats a, .nav-user > * { padding: 11px 2px; border-bottom: 1px solid var(--line); }
  .nav-user { padding-top: 10px; gap: 10px; }
  .nav-user > * { border: 0; }
}

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 13px 22px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff !important; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--accent) !important; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.outline { background: var(--surface); border-color: var(--line); color: var(--ink) !important; }
.btn.outline:hover { border-color: var(--ink-2); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn.large { padding: 17px 30px; font-size: 17px; border-radius: 12px; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger) !important; }
.btn.danger:hover { background: var(--danger-soft); }
.btn[disabled] { opacity: .55; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.navbtn { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: 500 15px var(--sans); color: var(--ink); cursor: pointer; }
.navbtn:hover { border-color: var(--ink-2); }

form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea { width: 100%; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
textarea { resize: vertical; min-height: 110px; }
textarea.body-input { min-height: 460px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.narrow { max-width: 540px; margin: 56px auto; padding: 0 16px; }
.medium { max-width: 780px; margin: 48px auto; padding: 0 16px; }
.page-title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
.lead { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; }
.center { text-align: center; }
.auth-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 14px; }
.auth-icon svg { width: 32px; height: 32px; }

.notice { border-radius: 10px; padding: 14px 16px; margin: 0 0 22px; font-size: 15px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--accent-soft); color: var(--accent); }

/* ---------- Tarjetas de artículos ---------- */
.section { padding-top: 56px; padding-bottom: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,.10); }
.acard .cover { aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; display: block; }
.acard .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acard:hover .cover img { transform: scale(1.03); }
.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent) 0%, #0b3d33 100%); color: rgba(255,255,255,.9); font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.01em; padding: 20px; text-align: center; }
.acard .body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.acard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; text-decoration: none; }
.tag:hover { color: var(--accent-2); }
.words { font-size: 12px; color: var(--muted); }
.acard h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; line-height: 1.35; margin: 0 0 10px; letter-spacing: -.01em; }
.acard h3 a { color: var(--ink); text-decoration: none; }
.acard h3 a:hover { color: var(--accent); }
.acard p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 14px; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); text-decoration: none; background: var(--surface); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- PORTADA 1 · Clásica (oscura, como la web actual) ---------- */
.p1 { background: radial-gradient(120% 140% at 85% 30%, #6b7280 0%, #2a2f33 38%, #0d1514 70%); color: #fff; position: relative; overflow: hidden; }
.p1::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 15% 80%, rgba(25,163,131,.18), transparent 70%); pointer-events: none; }
.p1 .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 68px; }
.p1-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.p1 .inner { max-width: 720px; }
.p1-latest { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 10px; backdrop-filter: blur(6px); }
.p1-latest-h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7ee2c3; padding: 10px 12px 6px; }
.mini { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; border-radius: 12px; text-decoration: none; color: #fff; align-items: center; }
.mini:hover { background: rgba(255,255,255,.08); color: #fff; }
.mini-img { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; display: block; }
.mini-img img, .mini-img .cover-fallback { width: 100%; height: 100%; object-fit: cover; font-size: 12px; padding: 6px; }
.mini strong { display: block; font-size: 15.5px; line-height: 1.35; font-weight: 600; margin: 3px 0 4px; }
.mini-tag { font-size: 11px; font-weight: 700; color: #7ee2c3; text-transform: uppercase; letter-spacing: .08em; }
.mini-meta { font-size: 12.5px; color: rgba(255,255,255,.6); }
@media (max-width: 960px) { .p1-grid { grid-template-columns: 1fr; gap: 36px; } .p1 .container { padding-top: 44px; padding-bottom: 48px; } }
.badge-soft { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(25,163,131,.45); background: rgba(18,122,99,.18); color: #fff; padding: 8px 16px; border-radius: 99px; font-size: 15px; font-weight: 500; margin-bottom: 28px; }
.badge-soft svg { width: 18px; height: 18px; }
.p1 h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.4vw, 88px); line-height: .98; letter-spacing: -.03em; margin: 0 0 24px; }
.p1 h1 em { font-style: normal; color: var(--accent-bright); }
.p1 p.sub { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; color: rgba(255,255,255,.7); max-width: 640px; margin: 0 0 34px; }
.p1 .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn.dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22); color: #fff !important; }
.btn.dark:hover { background: rgba(255,255,255,.1); }
.btn.bright { background: #15886d; border-color: #15886d; }

/* ---------- PORTADA 2 · Editorial (artículo destacado) ---------- */
.p2 { border-bottom: 1px solid var(--line); background: var(--bg); }
.p2 .container { padding-top: 40px; padding-bottom: 56px; }
.p2 .kicker-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 32px; border-bottom: 2px solid var(--ink); }
.p2 .kicker-line .claim { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.01em; }
.p2 .kicker-line .claim em { font-style: normal; color: var(--accent); }
.p2 .kicker-line .date { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.p2 .feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.p2 .feature .img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--accent-soft); box-shadow: var(--shadow); }
.p2 .feature .img img { width: 100%; height: 100%; object-fit: cover; }
.p2 .label { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.p2 .feature h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -.025em; margin: 12px 0 16px; }
.p2 .feature h1 a { color: var(--ink); text-decoration: none; }
.p2 .feature h1 a:hover { color: var(--accent); }
.p2 .feature p { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin: 0 0 20px; }
.p2 .by { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.p2 .by strong { color: var(--ink); }
.p2 .side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.p2 .side .s-item h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 6px 0 6px; letter-spacing: -.01em; }
.p2 .side .s-item h3 a { color: var(--ink); text-decoration: none; }
.p2 .side .s-item .meta { font-size: 13px; color: var(--muted); }
.p2 .join { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 22px; }
.p2 .join h3 { color: #fff; margin-top: 0; }
.p2 .join p { color: rgba(255,255,255,.85); font-size: 14px; margin: 0 0 14px; }
.p2 .join .btn { background: #fff; color: var(--accent) !important; border-color: #fff; }
@media (max-width: 860px) { .p2 .feature { grid-template-columns: 1fr; gap: 24px; } .p2 .side { grid-template-columns: 1fr; } }

/* ---------- PORTADA 3 · Imagen a pantalla completa ---------- */
.p3 { position: relative; color: #fff; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: #0d1514; }
.p3 .bg { position: absolute; inset: 0; }
.p3 .bg img { width: 100%; height: 100%; object-fit: cover; }
.p3 .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,15,14,.88) 0%, rgba(8,15,14,.55) 55%, rgba(8,15,14,.15) 100%), linear-gradient(180deg, transparent 50%, rgba(8,15,14,.85) 100%); }
.p3 .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 56px; }
.p3 .eyebrow { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7ee2c3; margin-bottom: 16px; }
.p3 .eyebrow::before { content: ""; width: 28px; height: 2px; background: #7ee2c3; }
.p3 h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; max-width: 980px; }
.p3 h1 a { color: #fff; text-decoration: none; }
.p3 p { font-size: clamp(17px, 1.8vw, 20px); color: rgba(255,255,255,.78); max-width: 760px; margin: 0 0 28px; }
.p3 .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.p3 .by { color: rgba(255,255,255,.7); font-size: 14px; margin-left: 6px; }
.band { background: var(--ink); color: #fff; }
.band .container { display: grid; grid-template-columns: 1.1fr 2fr; gap: 32px; padding-top: 32px; padding-bottom: 32px; align-items: center; }
.band .claim { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.band .claim em { font-style: normal; color: #7ee2c3; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.band li strong { display: block; font-size: 15px; }
.band li span { font-size: 13px; color: rgba(255,255,255,.6); }
@media (prefers-color-scheme: dark) { .band { background: #050a12; } }
@media (max-width: 860px) { .band .container { grid-template-columns: 1fr; } .band ul { grid-template-columns: 1fr 1fr; } }

/* ---------- Bloque "Escribe con nosotros" ---------- */
.cta { background: var(--accent); color: #fff; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; margin-bottom: 72px; }
.cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.1; }
.cta p { margin: 0; color: rgba(255,255,255,.85); }
.cta .actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.cta .btn { background: #fff; color: var(--accent) !important; border-color: #fff; }
.cta .btn.dark { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 30px 24px; } .cta .actions { justify-content: flex-start; } }

/* ---------- Página de tema ---------- */
.topic-head { padding-top: 48px; padding-bottom: 8px; }
.topic-head .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.topic-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; margin: 6px 0 20px; line-height: 1.02; }

/* ---------- Artículo ---------- */
.art-cover { margin: 0 0 40px; }
.art-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
@media (min-width: 1000px) { .art-cover { margin-left: -90px; margin-right: -90px; } }
.art { max-width: 740px; margin: 0 auto; padding: 40px 16px 72px; }
.art h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 50px); line-height: 1.07; margin: 16px 0 18px; letter-spacing: -.025em; }
.dek { font-family: var(--serif); font-size: 21px; color: var(--ink-2); line-height: 1.5; margin: 0 0 24px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.byline strong { color: var(--ink); display: block; font-size: 15px; }
.prose { font-family: var(--serif); font-size: 20px; line-height: 1.75; color: var(--ink); }
.prose h2 { font-family: var(--sans); font-size: 24px; font-weight: 700; margin: 1.8em 0 .6em; line-height: 1.3; letter-spacing: -.01em; }
.prose h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; margin: 1.5em 0 .5em; }
.prose p { margin: 0 0 1.15em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose code { font-size: .85em; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
.prose img { border-radius: 10px; margin: 1.4em auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { word-break: break-word; }
.page .prose { font-family: var(--sans); font-size: 17px; line-height: 1.7; }
.page .prose h2 { font-size: 21px; }
.authorbox { margin-top: 48px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 16px; }
.authorbox .avatar { width: 56px; height: 56px; font-size: 20px; }
.authorbox .label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.authorbox h4 { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 2px 0 2px; }
.authorbox p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; align-items: center; font-size: 14px; color: var(--muted); }

/* ---------- Panel / admin ---------- */
.dash { max-width: 1100px; margin: 0 auto; padding: 44px 16px 24px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--bg); }
.table tr:last-child td { border-bottom: 0; }
.table td a { font-weight: 600; text-decoration: none; color: var(--ink); }
.table td a:hover { color: var(--accent); }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { margin-left: 6px; }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { border: 0; padding: 6px 16px; }
  .table .actions { text-align: left; white-space: normal; }
  .table .actions > * { margin: 4px 6px 0 0; }
}
.badge { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.badge.borrador { background: var(--line); color: var(--ink-2); }
.badge.en_revision, .badge.pendiente { background: var(--warn-soft); color: var(--warn); }
.badge.publicado, .badge.aprobado { background: var(--ok-soft); color: var(--ok); }
.badge.rechazado { background: var(--danger-soft); color: var(--danger); }
.note { font-size: 14px; color: var(--danger); margin-top: 6px; }
.meta { font-size: 13px; color: var(--muted); }
.block { margin-bottom: 44px; }
.block h2 { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: -.01em; margin: 0 0 14px; }
.applicant { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.applicant h3 { margin: 0; font-size: 19px; }
.applicant dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; font-size: 14px; margin: 12px 0; }
.applicant dt { color: var(--muted); }
.applicant dd { margin: 0; }
@media (max-width: 560px) { .applicant dl { grid-template-columns: 1fr; } .applicant dt { margin-top: 6px; } }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Editor ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; padding: 9px 14px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; min-height: 460px; }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; border-top: 1px solid var(--line); }
.counter { float: right; font-weight: 400; color: var(--muted); font-size: 13px; }
.cover-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cover-pick .thumb { width: 220px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--accent-soft); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.cover-pick .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Nosotros ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
.topic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s; }
.topic-card:hover { border-color: var(--accent); color: var(--ink); }
.topic-card strong { display: block; font-size: 17px; }
.topic-card span { font-size: 13px; color: var(--muted); }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-about p { color: var(--muted); max-width: 440px; margin: 16px 0 0; }
.site-footer h3 { font-size: 17px; margin: 6px 0 16px; }
.site-footer .footer-grid > div:not(.footer-about) a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 11px; }
.site-footer .footer-grid > div:not(.footer-about) a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100% - 32px); z-index: 50; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Documentos de la solicitud ---------- */
.docs-box { border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px 18px; margin: 4px 0 20px; }
.docs-box legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
input[type=file] { font: 14px var(--sans); color: var(--ink-2); max-width: 100%; }
.doc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.doc-list li { margin-bottom: 4px; }

/* ---------- Conversatorios ---------- */
.elist { display: grid; gap: 14px; }
.ecard { display: grid; grid-template-columns: 84px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.edate { width: 84px; height: 84px; border-radius: 14px; background: var(--accent); color: #fff !important; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
.edate b { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 700; }
.edate span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.ecard .top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ecard h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.ecard h3 a { color: var(--ink); text-decoration: none; }
.ecard h3 a:hover { color: var(--accent); }
.ecard p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .ecard { grid-template-columns: 1fr; gap: 12px; } .edate { width: 64px; height: 64px; } .edate b { font-size: 26px; } }
.einfo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; font-size: 15px; }
.einfo .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
@media (max-width: 560px) { .einfo { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin: 8px 0 32px; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sub-h { font-size: 22px; margin: 36px 0 14px; }
.speakers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.speakers li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.4; }
@media (max-width: 560px) { .speakers { grid-template-columns: 1fr; } }
.next-ev { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.next-ev:hover { color: var(--ink); border-color: var(--accent); }
.next-ev .edate { width: 64px; height: 64px; }
.next-ev .edate b { font-size: 26px; }
.next-ev .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.next-ev strong { display: block; font-size: 18px; margin: 2px 0; }
@media (max-width: 640px) { .next-ev { grid-template-columns: auto 1fr; } .next-ev .btn { display: none; } }

/* Texto justificado en artículos y páginas */
.prose p, .prose li, .dek { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose h2, .prose h3 { text-align: left; }

/* Barra de formato del editor */
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; margin-top: 10px; position: sticky; top: 76px; z-index: 5; }
.toolbar button { font: 500 13.5px var(--sans); color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 6px 9px; cursor: pointer; }
.toolbar button:hover { background: var(--accent-soft); color: var(--accent); }
.toolbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.toolbar + textarea.body-input { border-top-left-radius: 0; border-top-right-radius: 0; }
.prose img + em, .prose p > img + br + em { display: block; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- Fotos de perfil y comunidad ---------- */
img.avatar { object-fit: cover; padding: 0; display: block; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; flex-shrink: 0; }
.avatar.lg, .authorbox .avatar { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 104px; height: 104px; font-size: 32px; }
.avatar.xxl { width: 152px; height: 152px; font-size: 46px; }
.acard .foot .who { display: inline-flex; align-items: center; gap: 8px; }
.alink { color: inherit; text-decoration: none; }
.alink:hover { color: var(--accent); }
.byline .alink { display: block; flex-shrink: 0; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-people { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people, .mini-people { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.person:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.person .avatar { margin-bottom: 8px; }
.person strong { font-size: 18px; line-height: 1.3; }
.person .muted { font-size: 14px; }
.person p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.person.featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%); }
.mini-people .person p { display: none; }
.mini-people .avatar.xl { width: 80px; height: 80px; font-size: 26px; }
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 12px; max-width: 980px; }
.profile-head .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.profile-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.02em; margin: 4px 0 6px; line-height: 1.05; }
.profile-head p { color: var(--ink-2); max-width: 680px; text-align: justify; }
@media (max-width: 640px) { .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; } .profile-head p { text-align: left; } }
.photo-row { display: flex; gap: 20px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Bienvenida, mensajes, guía y enlaces ---------- */
.welcome { border: 1px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 140px); margin-bottom: 32px; }
.welcome-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.welcome-head .label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.welcome-head h2 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 2px 0 0; }
.welcome .prose { font-size: 17px; }
.block h2 .pill { background: #d97706; color: #fff; border-radius: 99px; font: 700 12px var(--sans); padding: 3px 9px; vertical-align: 4px; margin-left: 6px; }
.msgs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.msg { border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg summary { display: flex; gap: 12px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.msg summary::-webkit-details-marker { display: none; }
.msg summary strong { flex: 1; font-weight: 500; }
.msg .dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.msg.unread .dot { background: #d97706; }
.msg.unread summary strong { font-weight: 700; }
.msg[open] summary { background: var(--bg); }
.msg .prose { font-size: 16px; padding: 4px 18px 6px 39px; }
.msg > p { padding: 0 18px 14px 39px; margin: 0; }
.guide { padding: 8px 24px; }
.guide-item { border-bottom: 1px solid var(--line); }
.guide-item:last-child { border-bottom: 0; }
.guide-item summary { padding: 15px 0; font-weight: 600; cursor: pointer; }
.guide-item .prose { font-size: 16px; padding-bottom: 10px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .links-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .links-grid { grid-template-columns: 1fr; } }
.link-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.link-card a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; color: var(--ink); height: 100%; }
.link-card a:hover strong { color: var(--accent); }
.link-card .muted { font-size: 14px; }
.danger-link { position: absolute; right: 12px; top: 12px; color: var(--danger); font-size: 13px; }

/* ---------- Visión (portada) ---------- */
.vision { background: var(--surface); border-bottom: 1px solid var(--line); }
.vision-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.vision .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.vision h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 16px; }
.vision p { color: var(--ink-2); font-size: 17px; text-align: justify; hyphens: auto; margin: 0 0 14px; }
.vision .btn { margin-top: 8px; }
.dims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dims li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.dims li.base { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: #fff; }
.dims li.base span { color: rgba(255,255,255,.8); }
.dims strong { display: block; font-size: 15.5px; }
.dims span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .vision-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; } }
.dims li:last-child:nth-child(even) { grid-column: 1 / -1; }

.topic-intro { max-width: 860px; margin: 0 0 26px; }
.topic-intro > .topic-text > p { font-size: 18px; color: var(--ink-2); text-align: justify; hyphens: auto; margin: 0 0 16px; line-height: 1.65; }
.topic-text .prose { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.topic-text .prose h2 { font-size: 20px; color: var(--ink); margin: 1.4em 0 .5em; }
.topic-text.collapsed { max-height: calc(18px * 1.65 * 6); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.topic-intro .more { font-weight: 600; text-decoration: none; margin-top: 4px; }

/* Confirmación de «¿Olvidaste tu contraseña?» */
.sent-card p { margin: 0 0 14px; }
.sent-steps { text-align: left; margin: 18px auto 16px; padding-left: 22px; max-width: 420px; line-height: 1.6; }
.sent-steps li { margin: 0 0 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Firma institucional */
.avatar.inst { background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.avatar.inst svg { width: 55%; height: 55%; }

/* Formatos de publicación */
.fmt { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; text-decoration: none; margin-right: 8px; background: var(--accent-soft); color: var(--accent); }
.fmt-coyuntura { background: #fdecd8; color: #a14d00; }
.fmt-entrevista { background: #e6e9fb; color: #3442a6; }
.fmt-lectura { background: #e3f1f7; color: #10627f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fmt-coyuntura { background: #3d2a14; color: #ffb877; } :root:not([data-theme="light"]) .fmt-entrevista { background: #23284a; color: #aab4ff; } :root:not([data-theme="light"]) .fmt-lectura { background: #12303b; color: #8fd3ec; } }
.art-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.art-cover figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: right; }
.source-box { margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.admin-opts { display: grid; gap: 10px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; margin: 0 0 20px; }

/* Destacado en la portada */
.p1-feature { display: block; text-decoration: none; color: #fff; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.07); margin-bottom: 6px; }
.p1-feature:hover { background: rgba(255,255,255,.11); color: #fff; }
.pf-img { display: block; aspect-ratio: 16/8; overflow: hidden; }
.pf-img img, .pf-img .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.pf-body { display: block; padding: 14px 16px 16px; }
.pf-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffc078; margin-bottom: 6px; }
.p1-feature strong { display: block; font-family: var(--display); font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
.pf-sum { display: block; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.75); margin-bottom: 8px; }

/* Radar de lecturas */
.radar { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.radar-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.radar-src { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #10627f; margin-bottom: 6px; }
.radar-item h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.radar-item h3 a { color: inherit; text-decoration: none; }
.radar-item h3 a:hover { color: var(--accent); }
.radar-item p { margin: 0 0 10px; color: var(--muted); }
.radar-links { font-size: 14.5px; }

[hidden] { display: none !important; }

/* ---------- Carruseles ---------- */
.carousel { position: relative; min-width: 0; }
.carousel .track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { scroll-snap-align: start; flex: 0 0 auto; min-width: 0; }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.car-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.dots { display: flex; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.dot.on { width: 22px; border-radius: 99px; background: var(--accent); }
.car-btn:focus-visible, .dot:focus-visible, .carousel .track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Carrusel de destacados en la portada (fondo oscuro) */
.car-hero .slide { flex-basis: 100%; }
.car-hero .p1-feature { margin: 0; }
.car-hero .pf-img { aspect-ratio: 16/8.5; }
.car-hero .car-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.car-hero .car-btn:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.car-hero .dot { background: rgba(255,255,255,.3); }
.car-hero .dot.on { background: #7ee2c3; }

/* Filas de publicaciones */
.car-row .slide { flex-basis: calc((100% - 40px) / 3); display: flex; }
.car-row .slide > * { width: 100%; }
.car-row .acard:hover { transform: none; }
@media (max-width: 960px) { .car-row .slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .car-row .slide { flex-basis: 86%; } }

/* Cinta «Lo último» */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; gap: 16px; padding-top: 11px; padding-bottom: 11px; }
.ticker-label { flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 6px; }
.ticker-view { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; animation: tick var(--dur, 60s) linear infinite; }
.ticker-move .dup { display: inline-flex; align-items: center; gap: 18px; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.ticker a { color: var(--ink); text-decoration: none; font-size: 15px; }
.ticker a b { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.ticker a:hover { color: var(--accent); }
.ticker .sep { color: var(--muted); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation: none; } .ticker-move .dup { display: none; }
  .ticker-view { overflow-x: auto; mask-image: none; }
}

/* Bloque de publicaciones con pestañas */
.pubs { padding-top: 44px; padding-bottom: 36px; }
.pubs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pubs-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.pub-tabs { margin: 0; flex-wrap: wrap; }
.pane-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pane-top p { margin: 0; color: var(--muted); max-width: 720px; }
.pane-top .linkbtn { text-decoration: none; font-weight: 600; white-space: nowrap; }

/* Clave de vista previa */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); }
.gate form { width: 100%; max-width: 420px; text-align: center; }
.gate .field { text-align: left; }
.show-pw { font-size: 14px; color: var(--muted); margin: -6px 0 16px; }
