/* Portal arqhumberto.mx — estilos. Mobile first. */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-italic.woff2) format('woff2-variations'); }

:root {
  --brand: #FF7D4D;          /* naranja oficial del logo: superficies y acentos */
  --brand-ink: #B8461B;      /* naranja accesible para botones con texto blanco (5.3:1) */
  --brand-deep: #A63F17;     /* enlaces sobre blanco (6.3:1) */
  --brand-tint: #FFF4EE;
  --brand-tint-2: #FFE6DA;
  --ink: #1F1A17;
  --ink-2: #4A433E;
  --ink-3: #6B625B;
  --line: #E9E2DC;
  --line-2: #D8CFC7;
  --bg: #FFFFFF;
  --bg-soft: #FAF8F6;
  --ok: #1D7A46; --ok-bg: #E7F5EC;
  --warn: #8A5A00; --warn-bg: #FFF4D6;
  --err: #B42318; --err-bg: #FDECEA;
  --info: #1E5A96; --info-bg: #E8F1FB;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31,26,23,.06), 0 6px 20px rgba(31,26,23,.06);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --maxw: 1180px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px #1F1A17;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%; padding-bottom: 84px; }
@media (min-width: 960px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

h1, h2, h3, .display { font-family: var(--font); font-stretch: 78%; font-weight: 820; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.3rem; font-stretch: 85%; font-weight: 760; line-height: 1.2; }
p { margin: 0 0 1em; }
.kicker { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: .75rem; }
.kicker::before { content: ''; width: 22px; height: 4px; background: var(--brand); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 48px 0; }
.section.tint { background: var(--brand-tint); }
.section.soft { background: var(--bg-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
@media (min-width: 768px) { .section { padding: 72px 0; } :root { --gutter: 28px; } }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 42px; width: auto; border-radius: 6px; }
.brand-text { display: none; font-size: .78rem; line-height: 1.2; color: var(--ink-2); max-width: 11rem; }
@media (min-width: 520px) { .brand-text { display: block; } }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { background: var(--brand-tint); }
.main-nav a[aria-current="page"] { color: var(--brand-ink); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1080px) { .main-nav { display: block; } .menu-toggle { display: none !important; } }

/* Barra inferior móvil */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom-bar a, .bottom-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: .72rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 6px 2px; border-radius: 10px; min-height: 56px; justify-content: center; cursor: pointer; }
.bottom-bar .icon { width: 24px; height: 24px; }
.bottom-bar a[aria-current="page"] { color: var(--brand-ink); }
.bottom-bar .publish { color: #fff; background: var(--brand-ink); margin: -16px 4px 0; border-radius: 16px; box-shadow: 0 6px 16px rgba(184,70,27,.35); }
.bottom-bar .publish:hover { color: #fff; background: var(--brand-deep); }
@media (min-width: 960px) { .bottom-bar { display: none; } }

/* Menú desplegable (drawer) */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(31,26,23,.45); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 380px); background: #fff; padding: 16px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; font-size: 1.1rem; font-weight: 650; text-decoration: none; color: var(--ink); border-radius: 12px; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-ink); }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--ink); }
.btn-danger { background: var(--err); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { min-width: 48px; padding: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Héroe de portada */
.hero { padding: 28px 0 36px; background: linear-gradient(180deg, #fff 0%, var(--brand-tint) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); font-stretch: 72%; font-weight: 860; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; background: var(--brand); max-height: 520px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.hero-photo .tag { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(255,255,255,.95); border-radius: 12px; padding: 10px 14px; font-size: .9rem; line-height: 1.35; }
.hero-photo .tag strong { display: block; font-stretch: 85%; font-size: 1.05rem; }
@media (min-width: 900px) { .hero { padding: 56px 0 64px; } .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; } }

.searchbar { display: flex; gap: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 6px; max-width: 640px; flex-wrap: wrap; }
.searchbar input[type="search"] { flex: 1 1 200px; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 12px; min-height: 48px; background: transparent; min-width: 0; }
.searchbar input:focus { outline: none; }
.searchbar:focus-within { box-shadow: 0 0 0 4px var(--brand-tint-2); }
.searchbar select { border: 0; background: var(--bg-soft); border-radius: 10px; font: inherit; padding: 8px 10px; min-height: 48px; max-width: 100%; }

/* Accesos rápidos */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 750; font-stretch: 88%; font-size: 1.08rem; line-height: 1.2; min-height: 112px; transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--brand); transform: translateY(-2px); }
.quick .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: var(--ink); display: grid; place-items: center; }
.quick .ico .icon { width: 24px; height: 24px; }
.quick small { font-weight: 500; font-size: .85rem; color: var(--ink-3); font-stretch: 100%; }

/* Tarjetas */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 22px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card:focus-within { box-shadow: var(--focus); }
.card h3 a:focus-visible { box-shadow: none; }
.card .media { aspect-ratio: 4/3; background: var(--brand-tint); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ink-3); }
.card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.card .meta .icon { width: 16px; height: 16px; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }

.story-card .media { aspect-ratio: 5/4; }
.story-feature { display: grid; gap: 0; border-radius: 20px; overflow: hidden; background: var(--ink); color: #fff; position: relative; }
.story-feature .media { aspect-ratio: 16/10; }
.story-feature .media img { width: 100%; height: 100%; object-fit: cover; }
.story-feature .body { padding: 22px; }
.story-feature h3 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.story-feature a { color: #fff; }
@media (min-width: 900px) { .story-feature { grid-template-columns: 1.3fr 1fr; } .story-feature .media { aspect-ratio: auto; min-height: 380px; } .story-feature .body { padding: 36px; align-self: center; } }

.presume-band { background: var(--brand); color: var(--ink); }
.presume-band .kicker { color: var(--ink); }
.presume-band .kicker::before { background: var(--ink); }
.wordmark { font-stretch: 68%; font-weight: 900; font-style: italic; letter-spacing: -0.01em; text-transform: uppercase; }

/* Etiquetas */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.5; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge.brand { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand-tint-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: #c7e8d3; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: #f3e0a8; }
.badge.err { background: var(--err-bg); color: var(--err); border-color: #f5c6c1; }
.badge.info, .badge.progress { background: var(--info-bg); color: var(--info); border-color: #c9dcf2; }
.badge.muted { background: #eee; color: #555; }
.badge.sponsored { background: #FFF1C2; color: #6B4B00; border-color: #F0D27A; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.chips a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; background: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.chips a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Formularios */
.form { display: grid; gap: 18px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.field { display: grid; gap: 6px; }
.field > label, .field > .label, fieldset > legend { font-weight: 700; font-size: 1rem; }
.field .hint { font-size: .9rem; color: var(--ink-3); margin: 0; }
.opt { font-weight: 500; color: var(--ink-3); font-size: .88rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 50px; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-tint-2); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-weight: 600; font-size: .92rem; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand-ink); }
.check:has(input:checked) { border-color: var(--brand-ink); background: var(--brand-tint); }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
input[type="file"] { font: inherit; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; width: 100%; background: var(--bg-soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 6px; }

/* Avisos */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; margin: 0 0 16px; align-items: flex-start; }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--ok-bg); border-color: #c7e8d3; color: #0f4f2c; }
.alert-error { background: var(--err-bg); border-color: #f5c6c1; color: #7a160f; }
.alert-info { background: var(--info-bg); border-color: #c9dcf2; color: #123d68; }
.alert-warn { background: var(--warn-bg); border-color: #f3e0a8; color: #5c3c00; }
.flash-wrap { padding-top: 16px; }
.notice-box { border-left: 5px solid var(--brand); background: var(--brand-tint); padding: 16px 18px; border-radius: 0 12px 12px 0; }
.emergency { border: 2px solid var(--err); border-radius: 16px; padding: 18px 20px; background: #fff; }
.emergency h2, .emergency h3 { color: var(--err); }

/* Encabezados de página */
.page-head { padding: 28px 0 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head h1 { margin-bottom: .25em; }
.page-head p { margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 10px; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-3); }
@media (min-width: 768px) { .page-head { padding: 44px 0 32px; } }

/* Detalle */
.detail-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } .sticky { position: sticky; top: 90px; } }
.prose { font-size: 1.1rem; line-height: 1.7; max-width: 44rem; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); font-size: 1.2rem; font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.dl { display: grid; gap: 14px; margin: 0; }
.dl div { display: grid; gap: 2px; }
.dl dt { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 600; }
.panel-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.panel-box + .panel-box { margin-top: 16px; }
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 20px 0; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.gallery figcaption { font-size: .88rem; color: var(--ink-3); padding: 8px 12px; }
@media (min-width: 640px) { .gallery.multi { grid-template-columns: 1fr 1fr; } .gallery.multi figure:first-child { grid-column: 1 / -1; } }
.share { display: flex; flex-wrap: wrap; gap: 8px; }

/* Línea de tiempo (reportes) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline time { font-size: .88rem; color: var(--ink-3); }
.status-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.status-steps li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-3); border: 1px solid var(--line); }
.status-steps li.done { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand-tint-2); }
.status-steps li.current { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.folio { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-weight: 700; background: var(--bg-soft); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }

/* Calendario */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: .78rem; text-transform: uppercase; color: var(--ink-3); padding: 6px 2px; }
.cal td { border: 1px solid var(--line); vertical-align: top; height: 76px; padding: 4px; font-size: .78rem; }
.cal td.out { background: var(--bg-soft); color: #aaa; }
.cal td.today { background: var(--brand-tint); }
.cal .d { font-weight: 700; display: block; }
.cal a { display: block; background: var(--brand-ink); color: #fff; text-decoration: none; border-radius: 5px; padding: 2px 4px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .cal td { height: 110px; font-size: .85rem; } }
.date-tile { flex: none; width: 64px; text-align: center; border-radius: 12px; background: var(--brand); color: var(--ink); padding: 8px 4px; line-height: 1; }
.date-tile b { display: block; font-size: 1.7rem; font-stretch: 75%; font-weight: 850; }
.date-tile span { font-size: .75rem; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.event-row { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; align-items: flex-start; }
.event-row h3 a { color: var(--ink); text-decoration: none; }
.event-row h3 a::after { content: ''; position: absolute; inset: 0; }

/* Estado vacío */
.empty { border: 2px dashed var(--line-2); border-radius: 18px; padding: 28px 22px; text-align: center; background: #fff; }
.empty .icon { width: 40px; height: 40px; color: var(--brand-ink); margin: 0 auto 10px; }
.empty h3 { margin-bottom: .3em; }
.empty p { color: var(--ink-2); max-width: 32rem; margin: 0 auto 16px; }

/* Humberto */
.bio-hero { background: var(--brand); position: relative; overflow: hidden; }
.bio-hero-grid { display: grid; gap: 0; }
.bio-hero .copy { padding: 36px 0 32px; }
.bio-hero .copy img.logo { width: min(340px, 80%); margin-bottom: 18px; }
.bio-hero .copy p { color: var(--ink); font-size: 1.15rem; max-width: 34rem; }
.bio-hero .photo { align-self: end; }
.bio-hero .photo img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; border-radius: 20px 20px 0 0; }
@media (min-width: 900px) { .bio-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; } .bio-hero .copy { padding: 72px 0; } }
.toc { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; }
.toc a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; background: #fff; }
.toc-wrap { position: sticky; top: 64px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); z-index: 20; }
.bio-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.bio-section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.draft-banner { background: repeating-linear-gradient(45deg, #FFF4D6, #FFF4D6 10px, #FFEBB0 10px, #FFEBB0 20px); border: 1px solid #f3e0a8; padding: 10px 14px; border-radius: 10px; font-weight: 700; color: #5c3c00; margin-bottom: 14px; }

/* Pie */
.site-footer { background: var(--ink); color: #E9E2DC; padding: 48px 0 28px; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 220px; background: var(--brand); padding: 12px 16px; border-radius: 12px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-stretch: 90%; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.operator { border-top: 1px solid #3a332e; margin-top: 28px; padding-top: 18px; font-size: .9rem; color: #C9C0B8; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #2F2824; color: #fff; }
.socials a:hover { background: var(--brand-ink); }

/* Tablas (panel) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }

/* Panel */
.admin-shell { display: grid; gap: 0; }
.admin-nav { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.admin-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter); display: flex; gap: 4px; overflow-x: auto; }
.admin-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.admin-nav a[aria-current="page"], .admin-nav a:hover { background: #fff; color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--line); }
.admin-nav .count { background: var(--brand-ink); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; }
@media (min-width: 1080px) {
  .admin-shell { grid-template-columns: 250px minmax(0,1fr); }
  .admin-nav { border-bottom: 0; border-right: 1px solid var(--line); min-height: calc(100vh - 64px); }
  .admin-nav ul { flex-direction: column; position: sticky; top: 72px; padding: 16px 12px; }
}
.admin-main { padding: 24px var(--gutter) 48px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); display: block; }
.stat b { display: block; font-size: 2rem; font-stretch: 75%; font-weight: 850; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: .9rem; }
.stat.hot b { color: var(--brand-ink); }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: .92rem; }
.tabs a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
details.box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; }
details.box summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .bottom-bar, .site-footer, .no-print, .admin-nav { display: none !important; } body { padding: 0; } }
.desktop-only { display: none !important; }
@media (min-width: 960px) { .desktop-only { display: inline-flex !important; } }
.searchbar select { width: auto; flex: 0 0 auto; }
@media (max-width: 520px) { .searchbar select { flex: 1 1 auto; } }
@media (min-width: 1080px) { .brand-text { display: none; } }
