/* ==========================================================================
   RBA Digital — Revista Escolar
   Sistema visual inspirado en Apple HIG: jerarquía clara, superficies
   tranquilas, tipografía SF/New York y movimiento con propósito.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  color-scheme: light;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  --font-serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;

  --canvas: #f5f5f7;
  --canvas-2: #ececf0;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d9d9de;
  --line-soft: rgba(29, 29, 31, 0.09);
  --fill: rgba(29, 29, 31, 0.055);
  --fill-strong: rgba(29, 29, 31, 0.1);

  --brand: #3b348f;
  --brand-2: #554cd8;
  --brand-3: #8f88ff;
  --brand-tint: #edebff;
  --green: #1c7a3f;
  --green-tint: #e5f5eb;
  --amber: #8a5a00;
  --amber-tint: #fdf2d7;
  --danger: #b3261e;
  --danger-tint: #fdeceb;

  --shadow-1: 0 1px 2px rgba(20, 18, 40, 0.04), 0 10px 28px -14px rgba(20, 18, 40, 0.16);
  --shadow-2: 0 2px 4px rgba(20, 18, 40, 0.05), 0 28px 64px -26px rgba(20, 18, 40, 0.32);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.28s;
  --dur-fast: 0.16s;
  --dur-slow: 0.44s;
  --shell: 1180px;
  --header-h: 64px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --canvas: #0a0a0c;
  --canvas-2: #101014;
  --surface: #151519;
  --surface-2: #1b1b20;
  --ink: #f5f5f7;
  --ink-2: #a4a4aa;
  --ink-3: #8e8e96;
  --line: #2e2e34;
  --line-soft: rgba(255, 255, 255, 0.1);
  --fill: rgba(255, 255, 255, 0.07);
  --fill-strong: rgba(255, 255, 255, 0.13);

  --brand: #a7a1ff;
  --brand-2: #8f88ff;
  --brand-3: #6f66f0;
  --brand-tint: rgba(143, 136, 255, 0.16);
  --green: #6edb96;
  --green-tint: rgba(110, 219, 150, 0.14);
  --amber: #f0c15c;
  --amber-tint: rgba(240, 193, 92, 0.14);
  --danger: #ff8f86;
  --danger-tint: rgba(255, 143, 134, 0.14);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.55), 0 32px 70px -30px rgba(0, 0, 0, 0.85);
}

/* 2. Reset y base ---------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

svg {
  flex: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--brand-3);
  color: #101014;
}

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

/* 3. Utilidades ------------------------------------------------------------ */

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.shell-narrow {
  width: min(100% - 48px, 760px);
  margin-inline: auto;
}

.site-main {
  min-height: 62vh;
  padding-bottom: 72px;
}

.section {
  padding-block: clamp(56px, 7vw, 96px) 0;
}

.section-last {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  translate: -50% -200%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  transition: translate var(--dur) var(--ease);
}

.skip-link:focus-visible {
  translate: -50% 0;
}

.inline-form {
  display: inline;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.eyebrow-invert {
  color: rgba(255, 255, 255, 0.68);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 46px);
  max-width: 20ch;
}

.section-sub {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-2);
  white-space: nowrap;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}

.text-link:hover {
  gap: 11px;
  color: var(--brand);
}

.text-link svg {
  width: 16px;
  height: 16px;
}

/* 4. Botones --------------------------------------------------------------- */

.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.975);
}

.btn-primary {
  --btn-bg: var(--brand);
  --btn-ink: #ffffff;
  box-shadow: 0 8px 22px -12px rgba(59, 52, 143, 0.9);
}

.btn-primary:hover {
  --btn-bg: var(--brand-2);
  box-shadow: 0 12px 28px -12px rgba(59, 52, 143, 0.8);
}

.btn-secondary {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-border: var(--line);
  box-shadow: var(--shadow-1);
}

.btn-secondary:hover {
  --btn-bg: var(--surface-2);
  --btn-border: var(--ink-3);
}

.btn-quiet {
  --btn-bg: var(--fill);
  --btn-ink: var(--ink);
}

.btn-quiet:hover {
  --btn-bg: var(--fill-strong);
}

.btn-light {
  --btn-bg: #ffffff;
  --btn-ink: #1d1d1f;
}

.btn-light:hover {
  --btn-bg: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.btn-ghost-light {
  --btn-bg: transparent;
  --btn-ink: rgba(255, 255, 255, 0.92);
  --btn-border: rgba(255, 255, 255, 0.32);
}

.btn-ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  gap: 7px;
}

.btn-sm svg {
  width: 16px;
  height: 16px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ink-2);
  background: transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn:hover {
  background: var(--fill);
  color: var(--ink);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn-danger:hover {
  background: var(--danger-tint);
  color: var(--danger);
}

/* 5. Etiquetas y metadatos ------------------------------------------------ */

.kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--brand-2);
}

.kicker-novedades {
  color: var(--green);
}

a.kicker {
  text-underline-offset: 4px;
}

a.kicker:hover {
  text-decoration: underline;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

.meta-item svg {
  width: 14px;
  height: 14px;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-2);
}

.read-link svg {
  width: 15px;
  height: 15px;
  transition: translate var(--dur) var(--ease);
}

/* 6. Header ---------------------------------------------------------------- */

.demo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 24px;
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
}

.demo-strip strong {
  font-weight: 650;
}

.demo-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 20px -10px rgba(20, 18, 40, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  border-radius: 12px;
  transition: opacity 0.2s var(--ease);
}

.brand:hover {
  opacity: 0.72;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 3px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  scale: 0 1;
  transform-origin: left center;
  transition: scale 0.34s var(--ease-spring);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  scale: 1 1;
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.theme-toggle {
  position: relative;
  color: var(--ink-2);
}

.theme-toggle .theme-icon {
  display: none;
  place-items: center;
}

[data-theme="light"] .theme-toggle .theme-icon-moon,
[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: grid;
}

.admin-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline: auto;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.admin-mode svg {
  width: 14px;
  height: 14px;
}

.site-header-admin .admin-mode {
  margin-inline: auto;
}

/* 7. Footer ---------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding-top: 56px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 44px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  max-width: 38ch;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-place svg {
  width: 14px;
  height: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h2 {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col a,
.footer-col p {
  font-size: 14.5px;
  color: var(--ink-2);
}

.footer-col a {
  width: fit-content;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--brand-2);
}

.footer-muted {
  color: var(--ink-3) !important;
  font-size: 13px !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
}

.credit {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 8. Tab bar móvil --------------------------------------------------------- */

.tabbar {
  display: none;
}

/* 9. Toasts ---------------------------------------------------------------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 160;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(calc(100% - 32px), 440px);
  translate: -50% 0;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 13px 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-2);
  pointer-events: auto;
  animation: toast-in 0.42s var(--ease) both;
}

.toast p {
  flex: 1;
  padding-top: 2px;
  font-size: 14px;
  line-height: 1.45;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
}

.toast-icon svg {
  width: 14px;
  height: 14px;
}

.toast-success .toast-icon {
  background: var(--green-tint);
  color: var(--green);
}

.toast-error .toast-icon {
  background: var(--danger-tint);
  color: var(--danger);
}

.toast-info .toast-icon {
  background: var(--brand-tint);
  color: var(--brand);
}

.toast-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  color: var(--ink-3);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

.toast-close:hover {
  background: var(--fill);
  color: var(--ink);
}

.toast.is-leaving {
  animation: toast-out 0.26s var(--ease) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 14px;
    scale: 0.97;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    translate: 0 8px;
    scale: 0.98;
  }
}

/* 10. Progreso de lectura ------------------------------------------------- */

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  scale: var(--progress, 0) 1;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  transition: scale 0.1s linear;
}

/* 11. Mensajes y estados vacíos ------------------------------------------- */

.message-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  padding-block: 72px;
  text-align: center;
}

.message-code {
  font-family: var(--font-serif);
  font-size: clamp(64px, 12vw, 132px);
  line-height: 1;
  color: var(--brand-3);
  letter-spacing: -0.05em;
}

.message-page h1 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 42px);
}

.message-copy {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--ink-2);
}

.message-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 64px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-tint);
  color: var(--brand);
}

.empty-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  font-size: 21px;
}

.empty-state p {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 15px;
}

.empty-state .btn {
  margin-top: 8px;
}

/* 12. Fin de la primera parte --------------------------------------------- */

/* 12. Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 76px) clamp(32px, 4vw, 52px);
}

.hero-copy {
  position: relative;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent);
  animation: pulse 2.6s var(--ease) infinite;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 6.4vw, 76px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--brand-2);
}

.hero-lead {
  max-width: 52ch;
  margin-top: 22px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  padding-left: 0;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.hero-meta svg {
  width: 15px;
  height: 15px;
}

.hero-art {
  position: relative;
  padding: 18px 8px;
  animation: rise-in 0.8s 0.08s var(--ease) both;
}

.cover-stack {
  position: relative;
  aspect-ratio: 5 / 4.4;
  max-width: 480px;
  margin-inline: auto;
}

.stack-card {
  position: absolute;
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}

.stack-back {
  inset: 4% 26% 30% 6%;
  rotate: -7deg;
  background: linear-gradient(155deg, #1f1c4d, #3b348f 55%, #6f66f0);
  display: grid;
  place-items: center;
}

.stack-letter {
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 104px);
  color: rgba(255, 255, 255, 0.16);
  letter-spacing: -0.06em;
}

.stack-mid {
  inset: 14% 30% 16% 24%;
  rotate: 3.5deg;
  border: 5px solid #ffffff;
  background: var(--surface);
}

.stack-mid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.stack-front {
  inset: 26% 6% 0 32%;
  rotate: -1.5deg;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(160deg, #fdfcf8, #f2efe6);
  color: #1d1d1f;
  display: flex;
  flex-direction: column;
}

.cover-front-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.16);
}

.cover-front-top img {
  display: none;
}

.cover-front-top span {
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5c5a52;
  line-height: 1.25;
}

.cover-front-title {
  margin-top: auto;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.cover-front-title em {
  color: #3b348f;
}

.cover-front-sub {
  margin-top: 10px;
  font-size: clamp(9.5px, 1vw, 11px);
  line-height: 1.45;
  color: #605e56;
}

.cover-front-rule {
  height: 1px;
  margin: 12px 0 8px;
  background: rgba(29, 29, 31, 0.18);
}

.cover-front-foot {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5c5a52;
}

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 0%, transparent);
  }
}

/* 13. Cifras --------------------------------------------------------------- */

.stats-wrap {
  padding-block: 8px 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 26px;
  border-left: 1px solid var(--line-soft);
}

.stat:first-child {
  border-left: 0;
}

.stat-value {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-3);
}

/* 14. Páginas de sección y búsqueda --------------------------------------- */

.page-head {
  padding-block: clamp(44px, 6vw, 82px) 0;
}

.page-head h1 {
  margin-top: 14px;
  max-width: 18ch;
  font-size: clamp(38px, 5.6vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.page-lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-3);
}

.page-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-meta svg {
  width: 15px;
  height: 15px;
}

.page-section {
  padding-top: clamp(30px, 4vw, 46px);
}

.section-last.page-section {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.page-count {
  font-size: 13.5px;
  color: var(--ink-3);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form .search-field {
  width: min(340px, 100%);
}

.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-3);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-field:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 16%, transparent);
}

.search-field svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.search-field input::placeholder {
  color: var(--ink-3);
}

/* Filtro por fecha: chips de mes con publicaciones reales. */
.date-filter {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}

.date-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.date-filter-label svg {
  width: 15px;
  height: 15px;
}

.date-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.date-chip:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--fill);
}

.date-chip:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.date-chip.is-active {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 34%, transparent);
  background: var(--brand-tint);
}

.date-chip-count {
  padding: 0 5px;
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

/* 15. Tarjetas ------------------------------------------------------------- */

.feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.featured-card:hover,
.featured-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

/* Toda la tarjeta es clicable: el título estira su área activa con ::after. */
.featured-card,
.article-card {
  position: relative;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card-meta .kicker {
  position: relative;
  z-index: 2;
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible::after {
  outline: 2px solid var(--brand-2);
  outline-offset: -2px;
  border-radius: inherit;
}

.featured-card:hover .read-link svg,
.featured-card:focus-within .read-link svg,
.article-card:hover .read-link svg,
.article-card:focus-within .read-link svg {
  translate: 3px 0;
}

.featured-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--canvas-2);
}

.featured-media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease);
}

.featured-card:hover .featured-media > * {
  scale: 1.035;
}

.featured-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: clamp(24px, 3.4vw, 44px);
}

.featured-body h3 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.featured-body h3 a {
  transition: color 0.2s var(--ease);
}

.featured-body h3 a:hover {
  color: var(--brand-2);
}

.featured-excerpt {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-grid-tight {
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--canvas-2);
}

.card-cover > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.55s var(--ease);
}

.article-card:hover .card-cover > * {
  scale: 1.04;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 22px 22px;
}

.card-body h3 {
  font-size: 20px;
  letter-spacing: -0.028em;
  line-height: 1.22;
}

.card-body h3 a {
  transition: color 0.2s var(--ease);
}

.card-body h3 a:hover {
  color: var(--brand-2);
}

.card-body p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-foot {
  padding-top: 14px;
}

/* 16. Portadas generadas --------------------------------------------------- */

.cover-art,
.article-hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(150deg, #26215c, #3b348f 55%, #6f66f0);
  color: #ffffff;
  overflow: hidden;
}

.cover-art::before,
.article-hero-art::before {
  content: attr(data-letter);
  position: absolute;
  right: -6%;
  bottom: -22%;
  font-family: var(--font-serif);
  font-size: clamp(140px, 22vw, 260px);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.14);
}

.cover-art::after,
.article-hero-art::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
  pointer-events: none;
}

.cover-kicker {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.cover-rule {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
}

.tone-2 {
  background: linear-gradient(150deg, #0f3b2e, #16624a 55%, #2f9c72);
}

.tone-3 {
  background: linear-gradient(150deg, #4a2310, #7c3a17 55%, #c2703c);
}

.tone-4 {
  background: linear-gradient(150deg, #2a2a2f, #4a4a55 55%, #8a8a99);
}

.tone-5 {
  background: linear-gradient(150deg, #3a1338, #6a215f 55%, #b04a9a);
}

.tone-6 {
  background: linear-gradient(150deg, #132b4d, #1e4b82 55%, #4f8fc9);
}

/* 17. Novedades ------------------------------------------------------------ */

.inset-section {
  margin-top: clamp(56px, 7vw, 96px);
  padding-block: clamp(48px, 6vw, 84px);
  background: var(--surface-2);
  border-block: 1px solid var(--line-soft);
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.split-intro h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 44px);
  max-width: 16ch;
}

.split-intro .btn {
  margin-top: 24px;
}

.headline-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.headline-list li {
  border-bottom: 1px solid var(--line);
}

.headline-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  transition: padding 0.25s var(--ease), background-color 0.25s var(--ease);
}

.headline-list a:hover {
  padding-inline: 12px;
  background: var(--fill);
}

.headline-index {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.headline-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.headline-cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.headline-body strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.headline-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-3);
}

.headline-meta svg {
  width: 13px;
  height: 13px;
}

.headline-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.headline-arrow svg {
  width: 16px;
  height: 16px;
}

.headline-list a:hover .headline-arrow {
  transform: translateX(3px);
  background: var(--brand);
  color: #ffffff;
}

/* 18. Editorial ------------------------------------------------------------ */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.editorial-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--canvas-2);
}

.editorial-media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.editorial-media figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  color: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.editorial-copy h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 18ch;
}

.edition-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.edition-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.edition-fact:nth-child(odd) {
  padding-right: 18px;
}

.edition-fact:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.edition-fact span {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.edition-fact strong {
  font-size: 16px;
  font-weight: 620;
}

.team-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.team-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.team-role {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.team-name {
  font-size: 16px;
  line-height: 1.45;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 14px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.feature-list span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* 19. CTA ------------------------------------------------------------------ */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(32px, 4.6vw, 56px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1c1947, #3b348f 52%, #6f66f0);
  color: #ffffff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  pointer-events: none;
}

.cta-copy h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 18ch;
}

.cta-copy p:last-child {
  margin-top: 10px;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  position: relative;
  z-index: 1;
}

/* 20. Artículo ------------------------------------------------------------- */

.article-body {
  background: var(--canvas);
}

.article-head {
  padding-block: clamp(32px, 5vw, 64px) 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--brand-2);
  gap: 9px;
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}

.article-head h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5.4vw, 62px);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.article-lead {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  object-fit: contain;
  padding: 3px;
}

.byline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.byline-text strong {
  font-size: 13.5px;
  font-weight: 620;
}

.byline-text span {
  font-size: 12px;
  color: var(--ink-3);
}

.byline-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.byline-share {
  margin-left: auto;
}

.article-hero {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--canvas-2);
  box-shadow: var(--shadow-1);
}

.article-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-hero-art {
  aspect-ratio: 21 / 9;
  padding: clamp(22px, 3.4vw, 44px);
  justify-content: flex-end;
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-hero-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.article-hero-rule {
  width: 44px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.article-hero-caption {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(32px, 4.5vw, 56px);
}

.prose {
  max-width: 68ch;
  font-family: var(--font-serif);
  font-size: clamp(17.5px, 1.6vw, 19.5px);
  line-height: 1.72;
  letter-spacing: -0.003em;
  color: var(--ink);
}

.prose p {
  margin-bottom: 1.35em;
}

.prose p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.09em -0.08em 0;
  font-size: 3.4em;
  line-height: 0.82;
  font-weight: 600;
  color: var(--brand-2);
}

.prose ul {
  margin: 0 0 1.35em;
  padding-left: 1.15em;
}

.prose li {
  margin-bottom: 0.55em;
  padding-left: 0.15em;
}

.prose li::marker {
  color: var(--brand-2);
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.aside-card h2 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.aside-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.aside-list li + li {
  border-top: 1px solid var(--line-soft);
}

.aside-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  transition: padding 0.2s var(--ease);
}

.aside-list a:hover {
  padding-left: 6px;
}

.aside-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.aside-list a:hover .aside-title {
  color: var(--brand-2);
}

.aside-meta {
  font-size: 12px;
  color: var(--ink-3);
}

.aside-cta {
  background: linear-gradient(150deg, #26215c, #3b348f 60%, #6f66f0);
  border-color: transparent;
  color: #ffffff;
}

.aside-cta h2 {
  color: rgba(255, 255, 255, 0.66);
}

.aside-cta p {
  margin: 10px 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.article-gallery {
  margin-top: 10px;
  margin-bottom: 40px;
}

.article-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-gallery-head .eyebrow {
  margin: 0;
}

.article-gallery-head h2 {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--canvas-2);
  box-shadow: var(--shadow-1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.article-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-end-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.article-end p {
  flex: 1;
  font-size: 13px;
  color: var(--ink-3);
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.pager-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.pager-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-3);
  box-shadow: var(--shadow-2);
}

.pager-card svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ink-3);
}

.pager-card > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pager-card:last-child {
  text-align: right;
  justify-content: flex-end;
}

.pager-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pager-card strong {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pager-spacer {
  display: block;
}

/* 21. Acceso editorial ----------------------------------------------------- */

.auth-page {
  background: var(--canvas);
}

.auth-page .site-main {
  padding-bottom: 0;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 120px);
  padding: clamp(24px, 4vw, 56px) 24px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: min(100%, 1000px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(28px, 3.4vw, 44px);
  background: linear-gradient(160deg, #1c1947, #3b348f 58%, #5b52d6);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-aside .brand-mark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.brand-invert .brand-text strong {
  color: #ffffff;
}

.brand-invert .brand-text span {
  color: rgba(255, 255, 255, 0.6);
}

.auth-aside-copy {
  margin-top: auto;
}

.auth-aside-copy h1 {
  margin-top: 10px;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.auth-aside-copy p:last-child {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.auth-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.auth-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.auth-list svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  color: #9ce3b6;
}

.auth-aside-foot {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.auth-form-pane {
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
}

.auth-heading {
  margin-bottom: 22px;
}

.auth-heading h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.035em;
}

.auth-heading p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > span:first-child {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 16%, transparent);
}

.field small {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--ink-3);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle:hover {
  background: var(--fill);
  color: var(--ink);
}

.auth-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
}

.auth-hint svg {
  width: 13px;
  height: 13px;
}

.auth-form .btn {
  margin-top: 4px;
}

.auth-footer {
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}

.alert svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
}

.alert-error {
  background: var(--danger-tint);
  color: var(--danger);
}

.alert-info {
  background: var(--green-tint);
  color: var(--green);
}

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.demo-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: var(--brand-2);
}

/* 22. Panel editorial ------------------------------------------------------ */

.admin-page {
  padding-block: clamp(32px, 4vw, 56px) 0;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.admin-head h1 {
  margin-top: 8px;
  font-size: clamp(28px, 3.6vw, 40px);
}

.admin-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.admin-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.admin-stat-value {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.admin-stat-hint {
  font-size: 12px;
  color: var(--ink-3);
}

.admin-list {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-list-head h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.admin-list-head p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}

.admin-list-head .search-field {
  width: min(280px, 100%);
  min-height: 38px;
}

.admin-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.2s var(--ease);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row:hover {
  background: var(--surface-2);
}

.admin-row-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--canvas-2);
}

.admin-row-cover > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row-cover .cover-kicker,
.admin-row-cover .cover-rule {
  display: none;
}

.admin-row-main {
  min-width: 0;
}

.admin-row-main h3 {
  margin: 6px 0 4px;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.admin-row-main p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.admin-row-actions .inline-form {
  display: flex;
}

.admin-empty {
  padding: 40px 22px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

.admin-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.admin-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--brand-2);
}

/* 23. Diálogo del editor --------------------------------------------------- */

.editor-dialog {
  width: min(100% - 32px, 760px);
  max-height: min(88dvh, 900px);
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.editor-dialog::backdrop {
  background: rgba(10, 10, 14, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.editor-dialog[open] {
  animation: dialog-in 0.32s var(--ease) both;
}

.editor-dialog[open]::backdrop {
  animation: fade-in 0.3s var(--ease) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    translate: 0 12px;
    scale: 0.985;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.dialog-head h2 {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.editor-form {
  display: flex;
  flex-direction: column;
  max-height: calc(88dvh - 84px);
  overflow-y: auto;
  padding: 20px 22px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.file-drop:hover,
.file-drop.is-dragging {
  border-color: var(--brand-2);
  background: var(--brand-tint);
}

.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
}

.file-drop-icon svg {
  width: 18px;
  height: 18px;
}

.file-drop strong {
  font-size: 14px;
  font-weight: 600;
}

.file-drop small {
  font-size: 12px;
  color: var(--ink-3);
}

.image-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-2);
}

.image-preview img {
  width: 96px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--canvas-2);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

.dialog-actions .btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* 23. Agenda de eventos ---------------------------------------------------- */

.agenda-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.agenda-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.agenda-head p {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.agenda-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (hover: hover) {
  .event-card:hover,
  .event-card:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
  }
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 92px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: var(--fill);
  text-align: center;
}

.event-confirmed .event-date {
  background: var(--brand-tint);
}

.event-day {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.event-confirmed .event-day {
  color: var(--brand);
}

.event-month {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-3);
}

.event-confirmed .event-month {
  color: var(--brand-2);
}

.event-body h3 {
  font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.event-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.event-confirmed .event-status {
  color: var(--green);
}

.event-status svg {
  width: 14px;
  height: 14px;
}

.event-summary {
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.event-description {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.62;
  max-width: 76ch;
}

.event-place,
.event-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.event-place svg,
.event-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
}

.event-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-3);
}

.event-sources a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-sources a:hover {
  color: var(--brand);
}

.agenda-list-compact .event-card {
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 22px;
}

.agenda-list-compact .event-day {
  font-size: 26px;
}

@media (max-width: 820px) {
  .event-card,
  .agenda-list-compact .event-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .event-date {
    min-height: 72px;
    padding: 8px 4px;
  }

  .event-day {
    font-size: 26px;
  }

  .event-month {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 620px) {
  .event-card,
  .agenda-list-compact .event-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .event-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    width: fit-content;
    padding: 8px 14px;
  }

  .event-day {
    font-size: 20px;
  }

  .event-month {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

/* 24. Preguntas frecuentes -------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-item {
  padding: 0 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-3);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--brand-2);
}

.faq-item p {
  max-width: 72ch;
  padding-bottom: 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.62;
}

/* 25. Chat de la comunidad -------------------------------------------------- */

.chat-section {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.chat-head h1 {
  max-width: 16ch;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.chat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.chat-top h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.chat-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-3);
}

.chat-status[data-state="online"] .chat-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}

.chat-status[data-state="connecting"] .chat-dot {
  background: var(--amber);
  animation: pulse 1.6s var(--ease) infinite;
}

.chat-status[data-state="offline"] .chat-dot {
  background: var(--danger);
}

.chat-online {
  flex: none;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.chat-online strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: min(52vh, 470px);
  margin: 0;
  padding: 6px 24px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .chat-log {
    scroll-behavior: auto;
  }
}

.chat-message {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.chat-message:last-child {
  border-bottom: 0;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-meta strong {
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

.chat-meta time {
  font-size: 11.5px;
  color: var(--ink-3);
}

.chat-text {
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-3);
}

.chat-composer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.chat-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
}

.chat-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.chat-field input,
.chat-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chat-field textarea {
  min-height: 54px;
  max-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.chat-field input:focus,
.chat-field textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 16%, transparent);
}

.chat-field input::placeholder,
.chat-field textarea::placeholder {
  color: var(--ink-3);
}

.chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.chat-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
}

.chat-send {
  flex: none;
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-tint);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.chat-aside {
  padding-top: 4px;
}

.chat-aside h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.chat-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: chat-step;
}

.chat-steps li {
  position: relative;
  padding-left: 38px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  counter-increment: chat-step;
}

.chat-steps li::before {
  content: counter(chat-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.chat-steps strong {
  color: var(--ink);
}

.chat-faq .faq-item {
  background: transparent;
}

.chat-faq .faq-item summary {
  font-size: 14px;
}

@media (max-width: 960px) {
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-aside {
    padding-top: 8px;
  }
}

@media (max-width: 620px) {
  .chat-top {
    padding: 18px 16px;
  }

  .chat-log {
    height: 48vh;
    padding: 4px 16px 16px;
  }

  .chat-composer {
    padding: 14px 16px 18px;
  }

  .chat-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .chat-actions .chat-send {
    width: 100%;
  }

  .chat-hint {
    max-width: none;
  }
}

/* 24. Revelado al hacer scroll --------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 0.65s var(--ease), translate 0.65s var(--ease);
  }

  .js-reveal [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .featured-card:hover,
  .article-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* 25. Adaptación responsive ------------------------------------------------ */

@media (max-width: 1080px) {
  .hero {
    gap: 36px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 264px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-art {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .prose {
    max-width: none;
  }

  .split-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split-intro h2 {
    max-width: 22ch;
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial-media {
    max-width: 620px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .auth-card {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .auth-aside {
    gap: 18px;
    padding: 28px;
  }

  .auth-aside-copy {
    margin-top: 4px;
  }

  .auth-aside-copy h1 {
    font-size: 28px;
  }

  .auth-list {
    display: none;
  }

  .auth-aside-foot {
    display: none;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 58px;
  }

  body {
    font-size: 16.5px;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .variant-auth,
  .auth-page {
    padding-bottom: 0;
  }

  .shell,
  .shell-narrow {
    width: calc(100% - 32px);
  }

  .site-main {
    padding-bottom: 40px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px max(8px, calc((100% - 640px) / 2)) calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
  }

  /* Círculo de selección: se desliza hasta la pestaña activa como en iOS. */
  .tab-indicator {
    display: none;
    position: absolute;
    top: 2px;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 15%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 55%, transparent),
      0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
    transform: translate3d(0, 0, 0);
    transition: transform 0.52s cubic-bezier(0.32, 1.18, 0.36, 1);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
  }

  .js .tab-indicator {
    display: block;
  }

  .tab-indicator.is-moving {
    animation: tab-indicator-pop 0.52s var(--ease-spring) both;
  }

  .tab {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 3px 4px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 550;
    color: var(--ink-3);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }

  .tab svg {
    width: 21px;
    height: 21px;
  }

  .tab:hover {
    color: var(--ink-2);
  }

  .tab[aria-current="page"] {
    color: var(--brand-2);
  }

  /* Sin JS no hay círculo deslizante: la pestaña activa conserva su fondo. */
  html:not(.js) .tab[aria-current="page"] {
    background: var(--brand-tint);
  }

  .toasts {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    border-top: 1px solid var(--line-soft);
  }

  .stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head h2 {
    max-width: none;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-form {
    width: 100%;
  }

  .search-form .search-field {
    flex: 1 1 220px;
    width: auto;
  }

  .date-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .date-chips {
    width: 100%;
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .headline-list a {
    gap: 14px;
    padding: 16px 2px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .article-head {
    padding-top: 22px;
  }

  .article-hero {
    border-radius: 18px;
  }

  .article-hero-art {
    aspect-ratio: 4 / 3;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .byline-sep {
    display: none;
  }

  .byline-share {
    margin-left: 0;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .pager-spacer {
    display: none;
  }

  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-head-actions {
    width: 100%;
  }

  .admin-head-actions .btn {
    flex: 1;
  }

  .admin-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
  }

  .admin-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid var(--line-soft);
    padding-top: 8px;
  }

  .admin-list-head {
    align-items: stretch;
  }

  .admin-list-head .search-field {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .editor-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .editor-form {
    max-height: calc(92dvh - 84px);
  }

  .dialog-actions .btn {
    flex: 1;
  }

  .auth-shell {
    padding: 16px;
    min-height: 0;
  }

  .auth-aside {
    padding: 24px;
  }

  .auth-form-pane {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 24px;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-meta {
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .hero-art {
    padding: 8px 0;
  }

  .cover-stack {
    aspect-ratio: 5 / 4.8;
  }

  /* La foto central se recortaba demasiado en vertical y parecía estirada. */
  .stack-mid {
    inset: 12% 22% 18% 16%;
  }

  .page-head {
    padding-top: 32px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-card .card-body {
    padding: 16px 18px 18px;
    gap: 9px;
  }

  .card-body h3 {
    font-size: 18.5px;
  }

  .card-body p {
    -webkit-line-clamp: 2;
  }

  .article-card .card-foot {
    padding-top: 12px;
  }

  .featured-body {
    gap: 12px;
    padding: 20px 18px 22px;
  }

  .featured-body h3 {
    font-size: 24px;
  }

  .featured-excerpt {
    font-size: 15px;
  }

  .event-card,
  .agenda-list-compact .event-card {
    gap: 14px;
    padding: 16px;
  }

  .event-body h3 {
    font-size: 20px;
  }

  .event-sources {
    margin-top: 12px;
    padding-top: 12px;
  }

  input,
  select,
  textarea,
  .chat-field input,
  .chat-field textarea,
  .search-field input {
    font-size: 16px;
  }

  .team-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 18px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .prose {
    font-size: 17px;
  }

  .prose p:first-child::first-letter {
    font-size: 3em;
  }

  .article-head h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .article-lead {
    font-size: 17.5px;
  }

  .article-end {
    gap: 12px;
  }

  .article-end p {
    flex-basis: 100%;
    order: 3;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-head-actions {
    flex-direction: column;
  }

  .toast p {
    font-size: 13.5px;
  }

  .auth-aside-copy h1 {
    font-size: 25px;
  }
}

/* 26. Movimiento iOS ------------------------------------------------------- */

/* El cambio de página lo resuelve el router cliente de app.js: mantiene el
   shell vivo y funde solo <main>. Sin View Transitions entre documentos para
   que la barra de pestañas y su círculo nunca se congelen en un snapshot. */

@keyframes page-blur-out {
  to {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.985);
  }
}

@keyframes page-blur-in {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.012);
  }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: page-blur-out 0.28s var(--ease) both;
  }

  ::view-transition-new(root) {
    animation: page-blur-in 0.46s var(--ease-out) both;
  }
}

/* Navegadores sin View Transitions: el contenido entra desenfocado. */
@supports not (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    .site-main {
      animation: content-blur-in 0.46s var(--ease-out) both;
    }
  }
}

@keyframes content-blur-in {
  from {
    opacity: 0;
    filter: blur(10px);
  }
}

/* Router cliente: el contenido se desvanece, se intercambia y vuelve a entrar
   mientras el shell (header, tabbar, círculo) permanece intacto. */
.site-main:focus,
.site-main:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-main.is-leaving {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), filter 0.2s var(--ease),
      transform 0.2s var(--ease);
    pointer-events: none;
  }

  .site-main.is-entering {
    animation: page-swap-in 0.42s var(--ease-out) both;
  }
}

@keyframes page-swap-in {
  from {
    opacity: 0;
    filter: blur(9px);
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-main.is-leaving {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Entrada del encabezado y del hero, visible también en escritorio. */
@keyframes header-in {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: header-in 0.5s var(--ease-out) both;
  }

  .hero-copy > * {
    animation: hero-in 0.72s var(--ease-out) both;
  }

  .hero-copy > :nth-child(1) {
    animation-delay: 0.04s;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.17s;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .hero-copy > :nth-child(5) {
    animation-delay: 0.31s;
  }
}

/* Respuesta táctil: los controles se comprimen como en iOS. */
@media (hover: none) {
  .btn,
  .tab,
  .nav-link,
  .theme-toggle,
  .faq-item summary,
  .card-link,
  .tabbar {
    -webkit-tap-highlight-color: transparent;
  }

  .btn:active,
  .theme-toggle:active {
    transform: scale(0.96);
  }

  .article-card:has(.card-link:active),
  .featured-card:has(.card-link:active),
  .event-card:active {
    transform: scale(0.985);
  }
}

/* Barra de pestañas: se oculta al bajar y vuelve con muelle al subir. */
@keyframes tab-pop {
  0% {
    transform: scale(0.76);
  }
  55% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tab-indicator-pop {
  0% {
    scale: 0.86;
  }
  55% {
    scale: 1.06;
  }
  100% {
    scale: 1;
  }
}

@keyframes tabbar-in {
  from {
    transform: translateY(110%);
  }
}

@media (max-width: 820px) {
  .tabbar {
    animation: tabbar-in 0.5s 0.1s var(--ease-out) backwards;
    transition: transform var(--dur-slow) var(--ease-out),
      background-color 0.3s var(--ease), border-color 0.3s var(--ease);
    will-change: transform;
  }

  .tabbar.is-hidden {
    transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px) + 10px));
  }

  .tabbar:focus-within {
    transform: none;
  }

  .tab {
    -webkit-tap-highlight-color: transparent;
    transition: color 0.22s var(--ease), background-color 0.34s var(--ease-out),
      transform 0.38s var(--ease-spring);
  }

  .tab:active {
    transform: scale(0.9);
  }

  .tab svg {
    transition: transform 0.42s var(--ease-spring);
  }

  .tab span {
    transition: opacity 0.24s var(--ease), transform 0.3s var(--ease-spring);
  }

  .tab[aria-current="page"] svg {
    animation: tab-pop 0.46s var(--ease-spring) both;
  }

  .tab[aria-current="page"] span {
    font-weight: 650;
  }
}

/* Aparición del contenido al hacer scroll, con desplazamiento más corto.
   .js-reveal lo añade app.js solo cuando el observador está activo, así que
   si el JS falla el contenido nunca queda oculto. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    translate: 0 16px;
    transition: opacity 0.6s var(--ease-out) var(--reveal-delay, 0ms),
      translate 0.6s var(--ease-out) var(--reveal-delay, 0ms);
  }
}

/* Acordeones: el contenido entra desde arriba al abrir. */
@keyframes faq-open {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}

.faq-item[open] > p {
  animation: faq-open 0.32s var(--ease-out) both;
}

.faq-item summary::after {
  transition: transform 0.32s var(--ease-spring), color 0.2s var(--ease);
}

.faq-item:active summary::after {
  transform: scale(0.86);
}

/* Mensajes nuevos del chat. */
@keyframes bubble-in {
  from {
    opacity: 0;
    translate: 0 10px;
    scale: 0.98;
  }
}

.chat-message.is-fresh {
  animation: bubble-in 0.38s var(--ease-spring) both;
}

/* Cambio de tema: el icono entra con un giro corto. */
@keyframes theme-pop {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
  }
}

.theme-toggle.is-toggling .theme-icon {
  animation: theme-pop 0.46s var(--ease-spring) both;
}

/* Con movimiento reducido el círculo salta sin deslizarse. */
@media (prefers-reduced-motion: reduce) {
  .tab-indicator {
    transition: none;
  }

  .tab-indicator.is-moving {
    animation: none;
  }

  .tabbar,
  .tab,
  .tab svg,
  .tab span {
    transition: none;
    animation: none;
  }
}

/* 27. Impresión ------------------------------------------------------------ */

@media print {
  .site-header,
  .site-footer,
  .tabbar,
  .toasts,
  .reading-progress,
  .hero-art,
  .aside-cta,
  .article-aside,
  .article-pager,
  .cta-band,
  .demo-strip,
  .skip-link {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    padding: 0;
  }

  .article-head,
  .article-layout {
    padding-block: 0 18px;
  }

  .prose {
    max-width: none;
    font-size: 12pt;
  }

  .article-hero {
    box-shadow: none;
    border: 1px solid #cccccc;
  }

  a {
    text-decoration: underline;
  }
}

