:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1e1a16;
  --ink-2: #4a433c;
  --muted: #6b625a;
  --line: #e6ded3;
  --accent: #9a5527;
  --accent-2: #7e4420;
  --accent-bright: #c07a45;
  --accent-soft: #f6eadf;
  --on-accent: #ffffff;
  --night: #14110e;
  --ivory: #f6f3ee;
  --copper: #c07a45;
  --copper-light: #e2a877;
  --warn: #92400e;   --warn-soft: #fef3c7;
  --danger: #b42318; --danger-soft: #fee4e2;
  --ok: #067647;     --ok-soft: #dcfae6;
  --display: "DM Serif Display", "Bitstream Charter", Charter, Georgia, serif;
  --serif: "Source Serif 4", "Bitstream Charter", Charter, Georgia, serif;
  --sans: "Work Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30,26,22,.05), 0 4px 16px rgba(30,26,22,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110e; --surface: #1e1a16; --ink: #f3eee7; --ink-2: #dcd3c7; --muted: #a89e92; --line: #3a332c;
    --accent: #e2a877; --accent-2: #edbe93; --accent-bright: #e2a877; --accent-soft: #2e241c; --on-accent: #1e1a16;
    --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); font-synthesis: none; 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: var(--on-accent); display: grid; place-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-name { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 0; line-height: 1; }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); 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: var(--on-accent) !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:not([type]), input[type=text], input[type=date], 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(--night); color: var(--ivory); 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: var(--copper); color: #1e1a16 !important; border-color: var(--copper); border-radius: 999px; }
.cta .btn:hover { background: var(--copper-light); border-color: var(--copper-light); }
.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, .art-cover video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; 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: 18.5px; line-height: 1.6; 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.55em; }
.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: var(--copper-light); }

/* 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 { display:none; 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; }


/* =================================================================
   Portada «Panorama» (video de fondo, ejes, cinta de actualidad)
   ================================================================= */
.btn.pill { border-radius: 999px; }
.btn.pill:not(.glass):not(.outline) { background: var(--copper); border-color: var(--copper); color: #1e1a16 !important; }
.btn.pill:not(.glass):not(.outline):hover { background: var(--copper-light); border-color: var(--copper-light); }
.btn.glass { background: rgba(14,12,10,.25); border-color: rgba(246,243,238,.75); color: var(--ivory) !important; }
.btn.glass:hover { background: rgba(14,12,10,.45); border-color: #fff; }

/* Cabecera sobre el video en la portada */
.is-home .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home #demo-banner:not([hidden]) ~ .site-header { top: 37px; }
.is-home .site-header .brand-name { color: var(--ivory); }
.is-home .site-header .brand-sub { color: var(--copper-light); }
.is-home .nav-cats a, .is-home .nav-user a.navlink { color: var(--ivory); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.is-home .nav-cats a:hover, .is-home .nav-user a.navlink:hover { color: var(--copper-light); }
.is-home .navbtn, .is-home .menu-btn { color: var(--ivory); border-color: rgba(246,243,238,.5); }
.is-home .header-inner { min-height: 88px; }
@media (max-width: 1300px) {
  .is-home .nav-wrap.open { background: rgba(14,12,10,.92); backdrop-filter: blur(12px); border-radius: 16px; padding: 8px 16px 16px; margin-bottom: 8px; }
  .is-home .nav-cats a, .is-home .nav-user > * { border-color: rgba(246,243,238,.14); }
}
.wrap.header-inner, .container { max-width: 1280px; }
@media (min-width: 900px) { .wrap, .container { padding-left: 40px; padding-right: 40px; } }

.pano { position: relative; overflow: hidden; background: var(--night); color: var(--ivory); display: flex; flex-direction: column;
  height: clamp(680px, 56.25vw, 920px); padding-top: 96px; }
.pano-media, .pano-veil { position: absolute; inset: 0; }
.pano-media .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.pano-media .bg.entra { animation: pano-in 1s ease both; }
@keyframes pano-in { from { opacity: 0; } to { opacity: 1; } }
.pano-veil { --v: .55; z-index: 1; transition: --v 1s;
  background: linear-gradient(180deg, rgba(14,12,10,var(--v)) 0%, rgba(14,12,10,.15) 35%, rgba(14,12,10,.25) 60%, rgba(14,12,10,.85) 100%),
              linear-gradient(90deg, rgba(14,12,10,calc(var(--v) * .9)) 0%, rgba(14,12,10,0) 65%); }
.pano.star .pano-veil { --v: .33; }
.pano-main { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: end; padding-bottom: 24px; }
.pano-copy { display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; }
.pano h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 74px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 28px rgba(0,0,0,.45); }
.pano .sub { margin: 0; font-size: 20px; line-height: 1.55; color: #efe8de; max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.pano .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pano-ejes { justify-self: end; width: min(100%, 448px); transition: width .3s ease, background .3s; align-self: start; margin-top: 6px; display: flex; flex-direction: column; padding: 6px; border-radius: 20px; background: rgba(14,12,10,.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(246,243,238,.22); }
.pano .lbl { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); }
.ejes-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 12px 14px 12px 18px; border: 0; border-radius: 14px; background: transparent; color: var(--ivory); cursor: pointer; font: inherit; text-align: left; }
.ejes-head .lbl { font-size: 13px; }
.ejes-head .chev { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--copper); color: #1e1a16; transition: transform .3s ease, background .2s; }
.ejes-head:hover .chev { background: var(--copper-light); }
.ejes-head:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 2px; }
.pano-ejes.open .ejes-head .chev { transform: rotate(180deg); }
.ejes-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.ejes-list > div { overflow: hidden; min-height: 0; }
.pano-ejes.open .ejes-list { grid-template-rows: 1fr; }
.pano-ejes.open { width: 100%; background: rgba(14,12,10,.55); }
.pano-ejes:not(.open) .ejes-list a { visibility: hidden; transition: visibility 0s .35s; }
@media (prefers-reduced-motion: reduce) { .ejes-list, .ejes-head .chev { transition: none; } }
.pano-ejes a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 18px; border-top: 1px solid rgba(246,243,238,.12); border-radius: 12px; color: var(--ivory); text-decoration: none; transition: background .15s; }
.pano-ejes a:hover, .pano-ejes a:focus-visible { background: rgba(246,243,238,.1); color: var(--ivory); }
.pano-ejes a > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.pano-ejes strong { font-size: 17px; font-weight: 600; }
.pano-ejes a span span { font-size: 13px; color: #dcd3c7; line-height: 1.35; }
.pano-ejes .arr { flex: none; color: var(--copper-light); font-size: 20px; }
.pano-scene { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.pano-scene .name { font-size: 15px; font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.pano-dots { display: flex; gap: 8px; margin-left: 6px; flex-wrap: wrap; }
.pano-dots button { width: 8px; height: 6px; border: 0; border-radius: 999px; padding: 0; background: rgba(246,243,238,.5); cursor: pointer; transition: width .3s, background .3s; }
.pano-dots button.on { width: 26px; background: var(--copper-light); }
.pano-dots button:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }
.pano-cinta { position: relative; z-index: 2; background: rgba(14,12,10,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(246,243,238,.16); }
.pano-cinta .in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.pano-cinta .lbl { flex: none; background: var(--copper); color: #1e1a16; padding: 6px 12px; border-radius: 999px; letter-spacing: .1em; }
.pano-cinta .view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.pano-cinta .move, .pano-cinta .dup { display: inline-flex; gap: 44px; white-space: nowrap; }
.pano-cinta .move { animation: tick var(--dur, 80s) linear infinite; }
.pano-cinta .dup { padding-left: 44px; }
.pano-cinta:hover .move, .pano-cinta:focus-within .move { animation-play-state: paused; }
.pano-cinta a { display: inline-flex; gap: 10px; align-items: baseline; font-size: 15.5px; color: var(--ivory); text-decoration: none; }
.pano-cinta a:hover span { color: var(--copper-light); }
.pano-cinta b { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #b9d3e8; }
.pano-cinta b.t-noticia, .pano-cinta b.t-propuesta { color: var(--copper-light); }
@media (prefers-reduced-motion: reduce) {
  .pano-media .bg.entra { animation: none; }
  .pano-cinta .move { animation: none; } .pano-cinta .dup { display: none; } .pano-cinta .view { overflow-x: auto; mask-image: none; }
}
@media (max-width: 1100px) {
  .pano { height: auto; min-height: 100svh; }
  .pano-main { grid-template-columns: 1fr; row-gap: 28px; align-items: start; padding-top: 32px; }
  .pano-main { align-content: start; }
  .pano-ejes, .pano-ejes.open { align-self: start; justify-self: stretch; width: 100%; }
}
@media (max-width: 760px) {
  .pano { padding-top: 84px; }
  .pano .sub { font-size: 17px; }
  .pano-ejes a span span { display: none; }
  .pano-ejes a { padding: 9px 16px; }
  .pano-dots { display: none; }
  .pano-cinta a { font-size: 14.5px; }
}

/* Franja oscura bajo la portada */
.pano-dark { background: var(--night); color: var(--ivory); padding-bottom: 24px;
  --bg: #14110e; --ink: #f6f3ee; --ink-2: #e9e2d8; --muted: #b8afa4; --line: rgba(246,243,238,.18); --surface: #1e1a16; --accent: #e2a877; --accent-2: #edbe93; --accent-soft: #2e241c; --on-accent: #1e1a16; }
.pano-dark .feats { padding-top: 48px; }
.pano-dark .car-hero .p1-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: rgba(246,243,238,.06); border: 1px solid rgba(246,243,238,.14); border-radius: 20px; }
.pano-dark .car-hero .pf-img { aspect-ratio: 16 / 10; max-height: 440px; }
.pano-dark .car-hero .pf-body { padding: 32px 36px; align-self: center; }
.pano-dark .car-hero .p1-feature strong { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; line-height: 1.15; }
.pano-dark .pf-label { color: var(--copper-light); }
@media (max-width: 860px) { .pano-dark .car-hero .p1-feature { grid-template-columns: 1fr; } .pano-dark .car-hero .pf-img { min-height: 0; aspect-ratio: 16/9; } .pano-dark .car-hero .pf-body { padding: 20px; } }
.pano-dark .pubs-head h2, .pubs-head h2, .section-head h2 { font-weight: 400; }
.pano-dark .pub-tabs .tab { border-radius: 999px; border: 1px solid rgba(246,243,238,.4); background: transparent; color: var(--ivory); padding: 9px 18px; }
.pano-dark .pub-tabs .tab.on { background: var(--ivory); color: #2a2622; border-color: var(--ivory); }
.pano-dark .acard, .pano-dark .radar-item { --surface: #f6f3ee; --ink: #2a2622; --ink-2: #4a433c; --muted: #6b625a; --line: #e6ded3; --accent: #a8622f; --accent-2: #8a4f25; --accent-soft: #efe2d4; border-radius: 18px; border: 0; color: var(--ink); }
.pano-dark .radar-item a { color: var(--accent); }
.pano-dark .radar-item h3 a { color: var(--ink); }
.pano-dark .car-btn { background: transparent; border-color: rgba(246,243,238,.35); color: var(--ivory); }
.pano-dark .dot { background: rgba(246,243,238,.3); }
.pano-dark .next-ev { background: rgba(246,243,238,.06); border-color: rgba(246,243,238,.14); color: var(--ivory); }
.acard h3 { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.22; letter-spacing: 0; }

/* Para qué existimos */
.purpose { padding-top: 16px; padding-bottom: 48px; }
.purpose-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: rgba(246,243,238,.05); border: 1px solid rgba(246,243,238,.14); border-radius: 22px; padding: 44px; }
.purpose .lbl { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); }
.purpose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; margin: 10px 0 16px; }
.purpose p { color: #e9e2d8; margin: 0 0 14px; max-width: 620px; }
.purpose .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.purpose-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.purpose-list li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 16px 0; border-top: 1px solid rgba(246,243,238,.14); }
.purpose-list li:first-child { border-top: 0; }
.purpose-list li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-size: 26px; color: var(--copper-light); line-height: 1; }
.purpose-list strong { font-size: 17px; font-weight: 600; }
.purpose-list span { font-size: 14.5px; color: #cfc6ba; }
@media (max-width: 900px) { .purpose-in { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }

/* Títulos con la nueva tipografía (DM Serif Display solo tiene un peso) */
.page-title, .topic-head h1, .vision h2, .cta h2 { font-weight: 400; letter-spacing: -.005em; }
.chips { margin-top: 18px; }


.pano-media .bg.flip { transform: scaleX(-1); }
/* Panel a la izquierda y texto a la derecha (solo en pantallas anchas) */
@media (min-width: 1101px) {
.pano.izq .pano-main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pano.izq .pano-ejes { order: -1; }
.pano.izq .pano-copy { text-align: right; align-items: flex-end; }
.pano.izq .pano-copy .actions { justify-content: flex-end; }
.pano.izq .pano-veil { background: linear-gradient(180deg, rgba(14,12,10,var(--v)) 0%, rgba(14,12,10,.15) 35%, rgba(14,12,10,.25) 60%, rgba(14,12,10,.85) 100%),
              linear-gradient(270deg, rgba(14,12,10,calc(var(--v) * .9)) 0%, rgba(14,12,10,0) 65%); }
}

/* ---------- Ajustes para celulares ---------- */
@media (max-width: 600px) {
  /* El artículo va justificado también en el celular; la división en sílabas evita huecos grandes */
  .prose p, .prose li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; word-spacing: -.02em; }
  .dek, .profile-head p, .vision p, .topic-intro > .topic-text > p { text-align: left; }
  /* Pestañas de publicaciones en una sola fila deslizable */
  .pub-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; max-width: calc(100% + 32px); }
  .pub-tabs::-webkit-scrollbar { display: none; }
  .pub-tabs .tab { flex: none; }
}
@media (max-width: 1300px) {
  /* Menú del celular: mismas separaciones para secciones y cuenta */
  .nav-user { padding-top: 0; gap: 0; }
  .nav-user > a.navlink { padding: 11px 2px; border-bottom: 1px solid var(--line); }
  .is-home .nav-user > a.navlink { border-color: rgba(246,243,238,.14); }
  .nav-user > .navbtn, .nav-user > .btn { margin-top: 12px; }
}

/* ---------- Artículos: lectura más ligera, medios al lado del texto y notas al pie ---------- */
.prose strong { color: var(--ink); font-weight: 600; }
.prose::after { content: ""; display: block; clear: both; }
.prose figure.lado-der, .prose .lado-der { float: right; width: 46%; margin: .3em 0 1.2em 1.6em; }
.prose figure.lado-izq, .prose .lado-izq { float: left; width: 46%; margin: .3em 1.6em 1.2em 0; }
.prose figure { margin: 1.4em 0; }
.prose figure img { margin: 0; width: 100%; border-radius: 10px; }
.prose figcaption { font-family: var(--sans); font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; text-align: left; }
.prose h2, .prose h3, .prose .notas { clear: both; }
.prose .vlocal video { display: block; width: 100%; border-radius: 10px; }
.prose .vlocal { margin: 1.4em 0; }
.prose sup.fn { font-family: var(--sans); font-size: .62em; font-weight: 700; color: var(--accent); cursor: pointer; padding: 0 2px; vertical-align: super; line-height: 0; }
.prose .notas { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.prose .notas h2 { font-size: 16px; margin: 0 0 .6em; }
.prose .notas li { margin-bottom: .7em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose .notas li:target, .prose .notas li:focus { background: var(--accent-soft); }
@media (max-width: 700px) {
  .prose { font-size: 17.5px; }
  .prose figure.lado-der, .prose figure.lado-izq, .prose .lado-der, .prose .lado-izq { float: none; width: 100%; margin: 1.2em 0; }
}

/* Alineación elegida en el editor */
.prose .al-izquierda p, .prose .al-izquierda li { text-align: left !important; }
.prose .al-centro p, .prose .al-centro li, .prose .al-centro h2, .prose .al-centro h3 { text-align: center !important; }
.prose .al-derecha p, .prose .al-derecha li, .prose .al-derecha h2, .prose .al-derecha h3 { text-align: right !important; }
.prose .al-justificado p, .prose .al-justificado li { text-align: justify !important; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 600px) { .prose .notas li { text-align: justify; } }

/* Video explicativo: botón al inicio, ventana emergente y video completo al final */
.prose p.vexp { margin: 0 0 1.4em; }
.btn.vexp-open { background: var(--night); color: var(--ivory); border-color: var(--night); }
.btn.vexp-open:hover { background: var(--accent); border-color: var(--accent); }
.vexp-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20,17,14,.86); display: grid; place-items: center; padding: 16px; }
.vexp-box { width: min(1000px, 100%); position: relative; text-align: right; }
.vexp-box .video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.vexp-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vexp-box a { display: inline-block; margin-top: 10px; color: var(--copper-light); font-size: 15px; }
.vexp-x { position: absolute; top: -44px; right: 0; background: none; border: 0; color: var(--ivory); font-size: 28px; cursor: pointer; line-height: 1; }
.prose .vexp-full { margin-top: 2.4em; }
.prose .vexp-full p { margin-top: .6em; font-size: 15px; }

.prose .vexp-top { margin: 0 0 2em; }
.prose .vexp-top .video { margin: 0 0 8px; }
.prose .vexp-top p { margin: 0; font-size: 14px; color: var(--muted); text-align: left !important; }

.prose figure video { display: block; margin: 0; width: 100%; border-radius: 10px; background: #14110e; }

/* Artículos: lectura más compacta, para que una idea completa quepa en pantalla */
.prose { font-size: 18px; line-height: 1.5; }
.prose p { margin-bottom: .95em; }
.prose li { margin-bottom: .6em; }
.prose h2 { margin: 1.5em 0 .5em; }
.prose h3 { margin: 1.2em 0 .4em; }
@media (max-width: 600px) { .prose { font-size: 17px; line-height: 1.5; } }
.page .prose { line-height: 1.6; }

/* ---------- Modo lanzamiento y suscripción ---------- */
body.lanzamiento .nav-cats { display: none !important; }
body.lanzamiento .nav-wrap { justify-content: flex-end; }
.footer-grid.min { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .footer-grid.min { grid-template-columns: 1fr; } }
.pano.min { height: 100vh; height: 100svh; min-height: 600px; }
.pano.min .pano-scene, .pano.min .pano-cinta { display: none; }
@media (max-width: 760px) { .pano.min { height: auto; min-height: 100svh; } }
.pano.min .pano-main { padding-bottom: 28px; }
.pano-pubs { position: relative; z-index: 2; padding-bottom: 34px; }
.pano-pubs > .lbl { display: block; margin-bottom: 12px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.pubs-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pub { position: relative; display: flex; flex-direction: column; height: clamp(200px, 30vh, 250px); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ivory);
  background: rgba(14,12,10,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(246,243,238,.24);
  box-shadow: 0 12px 36px rgba(0,0,0,.38); transition: transform .25s ease, box-shadow .25s ease, border-color .25s, background .25s; }
.pub:hover, .pub:focus-visible { transform: translateY(-6px) scale(1.015); border-color: var(--copper-light); background: rgba(14,12,10,.68); box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(226,168,119,.35); color: var(--ivory); }
.pub .ph { flex: none; height: 46%; overflow: hidden; background: rgba(246,243,238,.06); }
.pub .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pub:hover .ph img { transform: scale(1.06); }
.pub .tx { display: flex; flex-direction: column; gap: 6px; padding: 12px 44px 14px 16px; min-width: 0; }
.pub b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #b9d3e8; }
.pub strong { font-family: var(--display); font-weight: 400; font-size: 18.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pub .go { position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1;
  color: #1e1a16; background: var(--copper-light); transform: translateX(-4px); opacity: .85; transition: transform .25s, opacity .25s; }
.pub:hover .go { transform: none; opacity: 1; }
.pano.min .pano-copy { gap: 18px; }
.pano.min .sub { font-size: 22px; max-width: 620px; }
@media (max-width: 760px) {
  .pubs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .pubs-track::-webkit-scrollbar { display: none; }
  .pub { flex: 0 0 84%; scroll-snap-align: start; height: 220px; }
  .pub strong { font-size: 17px; }
  .pano.min .sub { font-size: 19px; }
}
.launch-sub { margin: 56px auto 72px; }
.subbox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 36px 0; max-width: 680px; }
.launch-sub .subbox { margin: 0; }
.subbox h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 23px; margin: 0 0 6px; }
.subbox p { margin: 0 0 14px; opacity: .85; }
.subbox .subrow { display: flex; gap: 10px; flex-wrap: wrap; }
.subbox input[type=email] { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: var(--bg); color: var(--ink); }
.subbox .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.subbox .submsg { margin: 12px 0 0; font-weight: 600; opacity: 1; }
.subbox .submsg.err { color: #c2513f; }
.subbox .subnote { font-size: 13px; opacity: .6; margin: 12px 0 0; }

details.fold { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 6px; }
details.fold summary { cursor: pointer; font-family: var(--display); font-size: 24px; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: '+'; font-family: var(--sans); color: var(--accent); font-size: 26px; }
details.fold[open] summary::after { content: '–'; }

.subbox.mini { background: none; border: 0; padding: 0; margin: 22px 0 0; max-width: 460px; }
.subbox.mini h3 { font-size: 18px; }
.subbox.mini p { font-size: 14px; margin-bottom: 10px; }
.subbox.mini .subrow input[type=email] { padding: 9px 12px; }
.subbox.mini .btn { padding: 9px 16px; }
.subbox.mini .subnote { font-size: 12px; margin-top: 8px; }
.subbox { display: block; }
.subbox h3 { color: var(--ink); }
.site-footer .subbox.mini h3 { margin: 0 0 4px; }
.site-footer .subbox.mini p { margin: 0 0 10px; }
.site-footer .subbox.mini .subnote { margin: 8px 0 0; }
.subbox .subrow .btn { flex: none; }

/* Gráficos laterales del artículo: al pasar el cursor crecen al ancho del texto, con su leyenda */
@media (hover: hover) and (min-width: 901px) {
  .prose figure.lado-der, .prose figure.lado-izq { position: relative; z-index: 1; cursor: zoom-in;
    transition: transform .35s ease, box-shadow .35s ease, background .35s; will-change: transform; border-radius: 10px; }
  .prose figure.lado-der, .prose figure.lado-izq { transform-origin: left center; }
  .prose figure.zoom { z-index: 30; transform: translateX(var(--zx, 0)) scale(var(--zs, 1.6)); background: var(--surface); box-shadow: 0 22px 70px rgba(0,0,0,.4); padding: 6px 6px 2px; }
  .prose figure.zoom figcaption { font-size: 9.5px; line-height: 1.35; }
}

/* ---------- Mesa de trabajo: proyectos normativos reservados ---------- */
.pubs-track.con-mesa { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pub.pl { border-color: rgba(226,168,119,.55); }
.pub .pl-ph { position: relative; display: grid; place-items: center; background: linear-gradient(135deg, rgba(192,122,69,.35), rgba(20,17,14,.6)); }
.pub .pl-ico { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--copper-light); opacity: .9; }
.pub .pl-badge { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1e1a16; background: var(--copper-light); padding: 4px 10px; border-radius: 999px; }
.art.mesa { max-width: 1040px; }
.mesa-doc { margin-top: 34px; }
.mesa-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mesa-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.mesa-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.mesa-frame iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; }
.mesa .hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.mesa-link { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mesa-link input { flex: 1 1 320px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--bg); color: var(--ink); }

/* ---------- Intranet: hoja de ruta, línea de tiempo y agenda ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.intranet { padding-top: 40px; padding-bottom: 72px; }
.intranet .sec, .mesa .iter h2, .mesa .timeline h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 36px 0 14px; }
.mesa .iter h2, .mesa .timeline h2 { margin: 0; }
.iter, .timeline { margin-top: 34px; }
.iter-set { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.iter-set select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); max-width: 340px; }
.iter-steps { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.iter-steps li { position: relative; font-size: 12.5px; line-height: 1.3; color: var(--muted); padding: 34px 6px 0; border-top: 4px solid var(--line); }
.iter-steps li span { position: absolute; top: -16px; left: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface); border: 2px solid var(--line); color: var(--muted); }
.iter-steps li.done { border-top-color: var(--copper); color: var(--ink); }
.iter-steps li.done span { background: var(--copper); border-color: var(--copper); color: #fff; }
.iter-steps li.now { border-top-color: var(--copper); color: var(--ink); font-weight: 700; }
.iter-steps li.now span { background: var(--surface); border-color: var(--copper); color: var(--accent); box-shadow: 0 0 0 4px rgba(192,122,69,.18); }
.iter-meta { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .iter-steps { grid-template-columns: 1fr; gap: 0; } .iter-steps li { border-top: 0; border-left: 4px solid var(--line); padding: 8px 0 12px 44px; } .iter-steps li span { top: 4px; left: -16px; } .iter-steps li.done, .iter-steps li.now { border-left-color: var(--copper); } }
.hito-form, .ag-form { margin: 14px 0 22px; }
.tl { list-style: none; padding: 0; margin: 16px 0 0; border-left: 2px solid var(--line); }
.tl li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 0 0 22px 22px; }
.tl li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); }
.tl li.tl-etapa::before { background: var(--ok); }
.tl li.tl-empty { display: block; color: var(--muted); }
.tl li.tl-empty::before { display: none; }
.tl-date { font-size: 13.5px; color: var(--muted); padding-top: 2px; }
.tl-body strong { display: block; font-size: 16.5px; }
.tl-kind { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tl-who { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tl-txt { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.tl-body a { font-size: 14px; color: var(--accent); margin-right: 10px; }
.tl-del { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 600px) { .tl li { grid-template-columns: 1fr; gap: 2px; } }
.mesa-list { display: grid; gap: 12px; }
.mesa-item { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.mesa-item:hover { border-color: var(--copper); transform: translateY(-2px); }
.mi-tipo { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mesa-item strong { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; margin: 4px 0 10px; }
.mi-bar { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.mi-bar i { display: block; height: 100%; background: var(--copper); }
.mi-et { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
table.acc, table.ag { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.acc th, table.acc td, table.ag th, table.ag td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14.5px; }
table.acc th, table.ag th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.acc td:nth-child(n+2), table.acc th:nth-child(n+2) { text-align: center; width: 90px; }
.tbl-wrap { overflow-x: auto; }
table.ag select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 13.5px; color: var(--ink); }
.pri { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.pri-alta { background: var(--danger-soft); color: var(--danger); } .pri-media { background: var(--warn-soft); color: var(--warn); } .pri-baja { background: var(--ok-soft); color: var(--ok); }
.small { font-size: 13px; }

/* ---------- Comité editorial ---------- */
.rev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: 20px; }
.rev-text { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; max-height: 80vh; overflow: auto; }
.rev-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.rev-side h3 { margin: 0 0 10px; font-size: 17px; }
.rev-side fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.rev-side legend { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.rev-side label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 4px 0; }
.rev-item { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rev-admin { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.rev-admin p { flex-basis: 100%; margin: 0 0 4px; font-size: 13.5px; }
@media (max-width: 900px) { .rev-grid { grid-template-columns: 1fr; } .rev-side { position: static; } }

/* ---------------------------------------------------------------- Oficina virtual */
.oficina { --of: #9a5527; --ofbg: #1d2622; --gold: #c9a96e; padding: 28px 0 70px; position: relative; overflow: hidden; min-height: 80vh; color-scheme: dark;
  background: linear-gradient(180deg, var(--ofbg) 0%, color-mix(in srgb, var(--ofbg) 82%, #000) 100%); }
.oficina > :not(.of-boceto) { position: relative; z-index: 1; }
.of-boceto { position: absolute; z-index: 0; left: 50%; top: 0; width: max(100%, 1500px); max-width: none; transform: translateX(-50%); color: var(--gold); opacity: .2; pointer-events: none; }
.oficina .of-panel, .oficina .of-hilo, .oficina .of-msg { background: #fbfaf7; color-scheme: light; }
.oficina .of-head { background: linear-gradient(135deg, color-mix(in srgb, var(--ofbg) 55%, transparent), color-mix(in srgb, var(--ofbg) 80%, transparent)); backdrop-filter: blur(1px); border: 1px solid rgba(201,169,110,.38); }
.oficina .of-head h1 { color: #f1e6cf; }
.oficina .of-panel { border-top-color: var(--gold); }
.oficina .of-bar a { color: #d9d2c4; } .oficina .of-bar a:hover { color: var(--gold); border-color: var(--gold); }
.oficina .of-narrow { color: #e8e2d6; }
.oficina .of-narrow > .page-title, .oficina .of-narrow .sec, .oficina .of-narrow .lead, .oficina .of-grupo .sec { color: #f1e6cf; }
.oficina .of-narrow > .of-meta, .oficina .of-narrow > .muted, .oficina .of-narrow .of-empty, .oficina aside .muted, .oficina .of-ints li span { color: #bfb6a6; }
.oficina .of-narrow .linkbtn, .oficina .of-narrow .of-k, .oficina .of-ints em, .oficina .of-narrow .of-new summary { color: var(--gold); }
.oficina .of-ints .avatar { color: var(--accent); }
.oficina .of-sw { border-color: rgba(255,255,255,.75); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.oficina .of-hilo, .oficina .of-msg { color: var(--ink); }
.oficina .of-narrow .of-lock { background: rgba(255,255,255,.06); border-color: rgba(201,169,110,.45); color: #e8e2d6; }
@media (max-width: 640px) { .of-boceto { width: 1100px; top: 0; } }
.of-head { max-width: 1180px; margin: 0 auto 26px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--of), color-mix(in srgb, var(--of) 70%, #000)); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.of-placa { display: flex; gap: 16px; align-items: center; }
.of-placa h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; line-height: 1.1; }
.of-k { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.oficina .of-narrow .of-k { color: var(--of); opacity: 1; }
.of-sub { font-size: .9rem; opacity: .9; margin-top: 4px; }
.of-badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 2px 8px; border-radius: 99px; font-size: .78rem; }
.of-temas { display: flex; align-items: center; gap: 7px; font-size: .78rem; }
.of-temas span { opacity: .85; margin-right: 4px; }
.of-sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.of-sw.on { outline: 2px solid #fff; outline-offset: 2px; }
.of-desk { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.of-panel { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--of); border-radius: 12px; padding: 18px 18px 16px; box-shadow: var(--shadow); min-width: 0; }
.of-panel { grid-column: span 3; }
.of-wide { grid-column: span 4; }
.of-wide + .of-panel { grid-column: span 2; }
.of-ia { grid-column: 1 / -1; background: linear-gradient(180deg, color-mix(in srgb, var(--of) 7%, var(--surface)), var(--surface)); }
.of-ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.of-ph h2 { font: 600 1.02rem/1.2 var(--sans); margin: 0; display: flex; align-items: center; gap: 8px; }
.of-ph h2 svg { width: 18px; height: 18px; color: var(--of); }
.of-list { list-style: none; margin: 0; padding: 0; }
.of-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.of-list li:last-child { border-bottom: 0; }
.of-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.of-list a:hover { color: var(--of); }
.of-meta { font-size: .8rem; color: var(--muted); }
.of-meta a { color: var(--of); }
.of-sub2 { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.of-empty { color: var(--muted); font-size: .9rem; margin: 6px 0; }
.of-lock { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--of) 8%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--of) 45%, transparent); font-size: .88rem; }
.of-lock p { margin: 0 0 8px; }
.of-lock.ok p { margin: 0; }
.of-lock .btn, .oficina .btn:not(.outline):not(.danger) { background: var(--of); border-color: var(--of); }
.of-new { margin-top: 12px; }
.of-new summary { cursor: pointer; color: var(--of); font-weight: 600; font-size: .9rem; }
.of-new form, .of-reply { display: grid; gap: 8px; margin-top: 10px; }
.of-new input, .of-new textarea, .of-reply textarea, .of-inv input, .row-form input { width: 100%; }
.of-ia-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.of-ia-list li { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.of-ia-list li span { color: var(--muted); }
.of-ia-list li.core { border-color: var(--of); box-shadow: 0 0 0 1px var(--of) inset; }
.of-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.of-narrow.wide { max-width: 1180px; }
.of-hilos { display: grid; gap: 8px; margin-top: 12px; }
.of-hilo { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--of); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
.of-hilo:hover strong { color: var(--of); }
.of-msg { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-top: 10px; }
.of-msg.first { border-left: 3px solid var(--of); margin-top: 16px; }
.of-msg .prose { font-size: 1rem; }
.of-msg .prose p:last-child { margin-bottom: 0; }
.of-reply { margin-top: 18px; }
.of-grupo { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
.of-ints { list-style: none; padding: 0; margin: 0; }
.of-ints li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.of-ints .avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: .8rem; }
.of-ints li span { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.of-ints em { font-style: normal; font-size: .75rem; color: var(--of); }
.of-inv { display: flex; gap: 6px; margin-top: 10px; }
.row-form { display: flex; gap: 8px; margin: 10px 0; }
.insc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 960px) { .of-desk { grid-template-columns: 1fr 1fr; } .of-desk .of-panel { grid-column: auto; } .of-desk .of-wide, .of-desk .of-ia { grid-column: 1 / -1; } .of-ia-list { grid-template-columns: 1fr 1fr; } .of-grupo { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .of-desk { grid-template-columns: 1fr; padding: 0 16px; } .of-desk .of-panel, .of-desk .of-wide, .of-desk .of-ia { grid-column: auto; } .of-ia-list { grid-template-columns: 1fr; } .of-head { margin: 0 16px 20px; } }

/* ---------------------------------------------------------------- Membresía */
.memb { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.memb-hero { text-align: center; padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.memb-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 6px 0 12px; }
.memb-hero .lead { max-width: 640px; margin: 0 auto; }
.memb-precio { margin: 26px 0 18px; display: flex; justify-content: center; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.memb-precio .n { font-family: var(--display); font-size: 3.2rem; color: var(--accent); line-height: 1; }
.memb-precio .u { font-weight: 600; }
.memb-precio .alt { color: var(--muted); font-size: .92rem; }
.memb-hero .actions { margin-bottom: 14px; }
.memb-sec { padding: 34px 0; border-bottom: 1px solid var(--line); }
.memb-sec h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 4px 0 12px; }
.memb-k { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.memb-k svg { width: 15px; height: 15px; }
.memb-feats, .memb-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.memb-feats li, .memb-grid li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.memb-feats li span, .memb-grid li span { color: var(--muted); font-size: .92rem; }
.memb-feats li.core { grid-column: 1 / -1; border-color: var(--accent); background: var(--accent-soft); }
.memb-feats li.core strong::after { content: " · el corazón del asistente"; font-weight: 400; color: var(--accent); font-size: .85rem; }
.memb-steps { padding-left: 20px; display: grid; gap: 8px; }
.memb-terms ul { padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .memb-feats, .memb-grid { grid-template-columns: 1fr; } }
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.dest { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-tag svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.plan-tag { position: absolute; top: -12px; left: 18px; background: var(--accent); color: #fff; font: 600 .72rem/1 var(--sans); padding: 6px 10px; border-radius: 99px; }
.plan h3 { font: 600 1.05rem/1.2 var(--sans); margin: 4px 0 0; }
.plan-precio { display: flex; align-items: baseline; gap: 6px; }
.plan-precio .n { font-family: var(--display); font-size: 2.4rem; color: var(--accent); line-height: 1.1; }
.plan-precio .u { font-size: .88rem; color: var(--muted); }
.plan-nota { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; font-size: .9rem; }
.plan ul li { padding-left: 18px; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; }
@media (max-width: 760px) { .planes { grid-template-columns: 1fr; gap: 22px; } }

.memb-h3 { font: 600 1rem/1.2 var(--sans); margin: 22px 0 10px; }
.memb-niveles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.memb-niveles > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.memb-niveles > div.deep { border-color: var(--ink); }
.memb-niveles .np { display: block; font-size: .82rem; color: var(--accent); margin: 3px 0 8px; }
.memb-niveles p { margin: 0; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 640px) { .memb-niveles { grid-template-columns: 1fr; } }

.of-full { grid-column: 1 / -1 !important; }
.of-bar { max-width: 1180px; margin: -12px auto 22px; padding: 0 24px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.of-bar a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.of-bar a:hover { color: var(--of); border-color: var(--of); }
.of-bar .pill { background: var(--of); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; }

/* Oficina: pestañas desplegables */
body.of-mode .site-footer, body.auth-mode .site-footer { display: none; }
.oficina { min-height: calc(100svh - 76px); }
.of-desk2 { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; min-height: 520px; }
.of-tabs { width: 300px; display: flex; flex-direction: column; gap: 12px; }
.of-tab { width: 100%; display: flex; align-items: center; gap: 10px; padding: 20px 22px; background: rgba(255,255,255,.045); border: 1px solid rgba(201,169,110,.32);
  border-radius: 12px; color: #f1e6cf; font: 600 1.05rem/1.2 var(--sans); cursor: pointer; text-align: left; transition: background .15s, border-color .15s; backdrop-filter: blur(1px); }
.of-tab:hover, .of-item.on .of-tab { background: rgba(201,169,110,.14); border-color: var(--gold); }
.of-tab .of-n { margin-left: auto; font-size: .78rem; font-weight: 500; color: var(--gold); border: 1px solid rgba(201,169,110,.45); border-radius: 99px; padding: 1px 9px; }
.of-tab i { font-style: normal; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .15s; }
.of-item.on .of-tab i { transform: translateX(4px); }
.of-sep { margin-top: 26px; }
.of-pane { display: none; }
@media (min-width: 861px) {
  .of-pane { position: absolute; left: 344px; right: 24px; top: 0; max-height: 520px; overflow: auto; }
  .of-item.on .of-pane { display: block; animation: ofIn .18s ease-out; }
}
@keyframes ofIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .of-desk2 { min-height: 0; } .of-tabs { width: auto; }
  .of-item.on .of-pane { display: block; margin-top: 8px; }
  .of-item.on .of-tab i { transform: rotate(90deg); }
}
.of-ia-d { max-width: 1180px; margin: 28px auto 0; padding: 0 24px; }
.of-ia-d > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-radius: 12px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(201,169,110,.32); color: #f1e6cf; font: 600 1.05rem/1.2 var(--sans); }
.of-ia-d > summary::-webkit-details-marker { display: none; }
.of-ia-d > summary svg { width: 18px; height: 18px; color: var(--gold); }
.of-ia-d > summary i { margin-left: auto; font-style: normal; color: var(--gold); font-size: 1.3rem; transition: transform .15s; }
.of-ia-d[open] > summary { border-color: var(--gold); background: rgba(201,169,110,.14); }
.of-ia-d[open] > summary i { transform: rotate(90deg); }
.of-ia-d .of-ia { margin-top: 10px; }
.of-ia-d .of-ia .of-ph { display: none; }

/* Ingreso y registro con los videos de Inversos de fondo */
.auth-bg { position: fixed; inset: 0; z-index: 0; background: #14110e; pointer-events: none; }
.auth-bg .pano-media { position: absolute; inset: 0; }
.auth-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,.35), rgba(20,17,14,.55)); }
.auth-front { position: relative; z-index: 1; }
.auth-front > .card, .auth-front form.card { box-shadow: 0 18px 50px rgba(0,0,0,.35); }
body.auth-mode .site-footer { display: none; }
body.auth-mode #view { min-height: calc(100svh - 76px); }

.proceso { margin: 6px 0 22px; }
.proceso summary { cursor: pointer; color: var(--accent); font-size: .92rem; }
.proceso .steps { margin: 14px 0 4px; }
.biblio-search { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.biblio-search input { flex: 1 1 420px; max-width: 640px; padding: 12px 16px; border-radius: 10px; }
.biblio-item { position: relative; }
.biblio-item[hidden] { display: none; }
.pn-code { position: absolute; z-index: 2; top: 10px; left: 10px; background: rgba(20,17,14,.78); color: #f1e6cf; font: 600 .72rem/1 var(--sans); letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; }
.proponer summary { cursor: pointer; }
.evp { margin-top: 16px; display: grid; gap: 4px; }
.evp .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .evp .row2 { grid-template-columns: 1fr; } }
.evp input, .evp select, .evp textarea, .mpNew input, .mpNew select, .mpNew textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.mpNew { display: grid; gap: 8px; margin-top: 10px; }

/* Pie de página compacto (máx. ~8 cm) */
.footer-grid { gap: 20px 32px; padding-top: 22px; padding-bottom: 14px; }
.footer-about p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.site-footer .brand-name { font-size: 20px; }
.site-footer h3 { font-size: 13px; margin: 2px 0 8px; letter-spacing: .02em; }
.site-footer .footer-grid > div:not(.footer-about) a { font-size: 13px; margin-bottom: 4px; }
.footer-grid.min > div:not(.footer-about) { columns: 2; column-gap: 24px; }
.footer-grid.min > div:not(.footer-about) h3 { column-span: all; }
.footer-bottom { padding-top: 8px; padding-bottom: 10px; font-size: 12px; }
.site-footer .subbox.mini { margin-top: 10px; }
.site-footer .subbox.mini h3 { font-size: 13px; margin: 0 0 2px; }
.site-footer .subbox.mini p { font-size: 12px; margin: 0 0 6px; }
.site-footer .subbox.mini input, .site-footer .subbox.mini button { padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
.site-footer .subbox.mini .subnote { font-size: 11px; margin: 4px 0 0; }
.of-guia .guide { background: #fbfaf7; color: var(--ink); color-scheme: light; }

/* Fondos fotográficos de la oficina (desenfocados y velados para no competir con el contenido) */
.oficina::before, .oficina::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.oficina[style*="--ofimg"]::before { background: var(--ofimg) center / cover no-repeat; filter: blur(2px) saturate(.85); transform: scale(1.02); }
.oficina[style*="--ofimg"]::after { background: linear-gradient(180deg, color-mix(in srgb, var(--ofbg) 58%, transparent), color-mix(in srgb, var(--ofbg) 78%, transparent) 70%, color-mix(in srgb, var(--ofbg) 88%, transparent)); }
.oficina[style*="--ofimg"] .of-boceto { display: none; }
@media (max-width: 760px) { .oficina[style*="--ofimg"]::before { background-image: var(--ofimgm); } }
.of-ajustes { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.of-fd { width: 34px; height: 24px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.55); cursor: pointer; padding: 0; background: rgba(255,255,255,.08) center / cover; color: #f1e6cf; font-size: 13px; line-height: 1; }
.of-fd.on { outline: 2px solid #fff; outline-offset: 2px; }
.of-temas span { min-width: 40px; text-align: right; }
@media (max-width: 760px) { .of-ajustes { align-items: flex-start; } .of-fondos { flex-wrap: wrap; } }

/* Fondos «vivos»: velo ligero (70–80 % de claridad) y vidrio oscuro bajo los botones para que se lean */
.oficina[style*="--ofviv"]::before { filter: saturate(1.05); transform: none; }
.oficina[style*="--ofviv"]::after { background: linear-gradient(180deg, rgba(10,14,12,0) 40%, rgba(10,14,12,.14)); }
.oficina[style*="--ofviv"] .of-head { background: rgba(18,22,20,.55); backdrop-filter: blur(8px); }
.oficina[style*="--ofviv"] .of-tab, .oficina[style*="--ofviv"] .of-ia-d > summary { background: rgba(18,22,20,.6); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.26); }
.oficina[style*="--ofviv"] .of-tab:hover, .oficina[style*="--ofviv"] .of-item.on .of-tab { background: rgba(30,26,18,.72); border-color: var(--gold); }
.oficina[style*="--ofviv"] .of-bar a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.oficina[style*="--ofviv"] .of-narrow > .page-title, .oficina[style*="--ofviv"] .of-narrow > .lead, .oficina[style*="--ofviv"] .of-narrow > .of-meta,
.oficina[style*="--ofviv"] .of-narrow .sec, .oficina[style*="--ofviv"] .of-narrow .linkbtn { text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.of-fondos { flex-wrap: wrap; justify-content: flex-end; max-width: 460px; row-gap: 6px; }

.of-up { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; border-style: dashed; }
.of-fondos { max-width: 520px; }

.of-fd.solo-movil { display: none; }
@media (max-width: 760px) { .of-fd.solo-movil { display: inline-block; } }

.oficina[style*="--ofviv"]::before { filter: none; image-rendering: auto; }
/* La foto de fondo se ajusta a la ventana (no al alto total de la página), así no se amplía de más */
.oficina[style*="--ofimg"]::before, .oficina[style*="--ofimg"]::after { position: fixed; inset: 0; }
.oficina[style*="--ofimg"] { isolation: isolate; }
