/* ============================================================
   Plantilla Observatorio Económico UC — Joomla 5
   Paleta UC: navy #1F3864 · blue #2E75B6 · gold #B0852F
   ============================================================ */
:root {
  --uc-navy: #1F3864;
  --uc-navy-deep: #0F1D3A;
  --uc-blue: #2E75B6;
  --uc-cyan: #29ABE2;
  --uc-gold: #B0852F;
  --uc-gold-soft: #D4B26A;
  --paper: #F5F1E8;
  --paper-warm: #EFE9DA;
  --ink: #0A1428;
  --ink-soft: #1A2438;
  --line: #D9D2C0;
  --line-dark: #1E2B48;
  --muted: #6B7280;
  --up: #059669;
  --up-glow: #10B981;
  --down: #DC2626;
  --down-glow: #EF4444;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--uc-blue); text-decoration: none; }
a:hover { color: var(--uc-gold); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--uc-navy);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

/* ---------- TICKER ---------- */
.ticker-wrap {
  background: var(--ink);
  color: #E8EDF5;
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--uc-gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.ticker-label .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--down-glow);
  box-shadow: 0 0 8px var(--down-glow);
  animation: oe-pulse 1.6s ease-in-out infinite;
}
@keyframes oe-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.ticker-track {
  display: flex;
  animation: oe-slide 90s linear infinite;
  flex-shrink: 0;
  will-change: transform;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes oe-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tick {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.tick .sym { color: #A8B4C8; font-weight: 600; letter-spacing: 0.06em; }
.tick .val { color: #F5F1E8; font-weight: 500; }
.tick .chg { font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.tick .chg.up { color: var(--up-glow); }
.tick .chg.down { color: var(--down-glow); }
.tick .chg::before { font-size: 9px; line-height: 1; }
.tick .chg.up::before { content: "▲"; }
.tick .chg.down::before { content: "▼"; }

/* ---------- HEADER ---------- */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 20px; color: inherit; }
.uc-logo { height: 62px; width: auto; display: block; }
.brand-divider { width: 1px; height: 52px; background: var(--line); display: block; }
.brand-text { display: block; }
.brand-text .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--uc-gold);
  margin-bottom: 4px;
}
.brand-text .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--uc-navy);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.brand-text .inst {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Menú Joomla (mod_menu) */
.nav-toggle { display: none; background: none; border: none; }
nav.nav ul.mod-menu,
nav.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
}
nav.nav li { position: relative; }
nav.nav a, nav.nav .nav-header {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
nav.nav a:hover, nav.nav li.active > a { color: var(--uc-gold); }
nav.nav li.active > a { border-bottom: 2px solid var(--uc-gold); padding-bottom: 4px; }
/* Submenús desplegables */
nav.nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px -12px rgba(31,56,100,0.25);
  min-width: 220px;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  z-index: 50;
}
nav.nav li:hover > ul, nav.nav li:focus-within > ul { display: flex; }
nav.nav li ul a { display: block; padding: 9px 18px; }
nav.nav li ul a:hover { background: var(--paper-warm); }

/* ---------- ZONAS / LAYOUT ---------- */
.zone-inner, .main-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.main { padding: 48px 0 72px; }
.main-inner { display: block; }
.main.has-sidebar .main-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; }

/* ---------- MÓDULOS estilo card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 26px;
  margin-bottom: 24px;
}
.card > h3, .card .card-title {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uc-gold);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--uc-navy);
  font-weight: 600;
}

/* ---------- MENSAJES DE SISTEMA ---------- */
#system-message-container { max-width: 1240px; margin: 0 auto; padding: 12px 32px 0; }
.alert {
  padding: 14px 18px;
  border-left: 3px solid var(--uc-blue);
  background: #fff;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  font-size: 14px;
}
.alert-warning { border-left-color: var(--uc-gold); }
.alert-danger  { border-left-color: var(--down); }
.alert-success { border-left-color: var(--up); }
.alert .alert-heading { font-weight: 600; margin-right: 6px; }
joomla-alert .joomla-alert--close, .alert .btn-close { float: right; background: none; border: none; font-size: 18px; }

/* ---------- CONTENIDO / ARTÍCULOS ---------- */
.com-content-article, .item-page { max-width: 820px; }
.page-header h1, .page-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  margin: 0 0 10px;
}
.com-content-article .article-info,
.article-info.muted {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.com-content-article p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.com-content-article blockquote {
  border-left: 3px solid var(--uc-gold);
  margin: 24px 0;
  padding: 8px 0 8px 22px;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--uc-navy);
}
.com-content-article table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 14px; }
.com-content-article th {
  background: var(--uc-navy);
  color: var(--paper);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.com-content-article td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.com-content-article tr:nth-child(even) td { background: var(--paper-warm); }

/* Listado de artículos (blog) */
.blog .item, .items-row .item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 30px;
  margin-bottom: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog .item:hover { border-color: var(--uc-gold); box-shadow: 0 16px 32px -20px rgba(31,56,100,0.25); }
.blog .item h2, .blog .item h3 { font-size: 24px; margin: 0 0 10px; }
.blog .item h2 a, .blog .item h3 a { color: var(--uc-navy); }
.readmore a, a.readmore, .btn-readmore {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uc-navy);
  border: 1px solid var(--uc-navy);
  padding: 9px 16px;
  transition: all 0.15s;
}
.readmore a:hover, a.readmore:hover { background: var(--uc-navy); color: var(--paper); }

/* Paginación */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 32px 0 0; }
.pagination .page-link {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--uc-navy);
}
.pagination .active .page-link { background: var(--uc-navy); color: var(--paper); border-color: var(--uc-navy); }

/* ---------- FORMULARIO DE LOGIN ---------- */
.com-users-login, .login {
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--uc-navy);
  padding: 36px 34px;
  margin: 24px 0;
}
.com-users-login h1, .login legend {
  font-size: 26px;
  margin: 0 0 8px;
}
.com-users-login .control-label, .login label,
form .control-label label, .controls label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uc-navy);
  font-weight: 600;
  margin-bottom: 7px;
}
input[type="text"], input[type="password"], input[type="email"],
input[type="search"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.15s;
  margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--uc-navy);
  box-shadow: 0 0 0 3px rgba(31, 56, 100, 0.1);
}
.btn, button[type="submit"], input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: none;
  background: var(--uc-navy);
  color: var(--paper);
  transition: background 0.15s ease;
}
.btn:hover, button[type="submit"]:hover { background: var(--ink); color: var(--paper); }
.btn-secondary, .btn-ghost {
  background: transparent;
  color: var(--uc-navy);
  border: 1px solid var(--uc-navy);
}
.btn-secondary:hover { background: var(--uc-navy); color: var(--paper); }
.btn-gold { background: var(--uc-gold); color: var(--ink); }
.btn-gold:hover { background: var(--uc-gold-soft); }

/* ---------- PHOCA DOWNLOAD (repositorios) ---------- */
#phoca-dl-category-box .pd-filebox,
.pd-filenamel, .pd-document {
  font-family: var(--font-body);
}
.pd-category h3, #phoca-dl-category-box h2 { font-size: 30px; }
.pd-filebox, .pd-file {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.pd-filebox:hover, .pd-file:hover { border-color: var(--uc-gold); }
.pd-filenamel a, .pd-title-file a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--uc-navy);
}
.pd-button-download a, a.pd-button-download {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--uc-navy);
  border: 1px solid var(--uc-navy);
  padding: 8px 14px;
  transition: all 0.15s;
}
.pd-button-download a:hover, a.pd-button-download:hover { background: var(--uc-navy); color: var(--paper); }

/* ============================================================
   CLASES DEL PROTOTIPO — para los módulos Custom HTML (snippets)
   ============================================================ */

/* HERO */
.oe-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--uc-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--uc-gold); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--uc-navy);
  margin: 0 0 24px;
}
.hero-title em { font-style: italic; color: var(--uc-gold); font-weight: 500; }
.hero-lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; margin-bottom: 32px; }
.hero-meta { display: flex; gap: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; }
.hero-meta div span {
  display: block;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 10px;
}
.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--uc-navy);
}

/* TERMINAL */
.terminal {
  background: var(--ink);
  color: #E8EDF5;
  border-radius: 3px;
  box-shadow: 0 30px 60px -20px rgba(15, 29, 58, 0.35);
  font-family: var(--font-mono);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.terminal-head {
  background: var(--ink-soft);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.terminal-head .tag { color: var(--uc-gold-soft); font-weight: 600; }
.terminal-head .time { color: #8FA2C4; }
.terminal-head .live-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up-glow);
  box-shadow: 0 0 8px var(--up-glow);
  margin-right: 6px;
  vertical-align: middle;
  animation: oe-pulse 1.4s ease-in-out infinite;
}
.terminal-body { padding: 6px 0; }
.terminal .row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 11px 18px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.terminal .row:last-child { border-bottom: none; }
.terminal .row .label { color: #C4CDDF; font-weight: 500; }
.terminal .row .value { color: #FFF; font-weight: 600; font-variant-numeric: tabular-nums; }
.terminal .row .delta { font-weight: 600; font-size: 11px; min-width: 68px; text-align: right; }
.terminal .row .delta.up { color: var(--up-glow); }
.terminal .row .delta.down { color: var(--down-glow); }

/* REPOSITORIOS */
.zone-repos { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.oe-repos { max-width: 1240px; margin: 0 auto; padding: 80px 32px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--uc-navy);
}
.section-head h2 {
  font-weight: 400;
  font-size: 40px;
  margin: 0;
}
.section-head h2 em { font-style: italic; color: var(--uc-gold); }
.section-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--uc-gold);
  margin-bottom: 12px;
}
.section-head p { max-width: 40ch; font-size: 14px; color: var(--ink-soft); margin: 0; }
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.repo {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 340px;
}
.repo:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(31, 56, 100, 0.25);
  border-color: var(--uc-gold);
}
.repo-num { font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 1; color: var(--uc-gold); }
.repo h3 { font-size: 22px; margin: 0; }
.repo p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; flex-grow: 1; }
.repo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.repo-meta .lock { color: var(--uc-navy); font-weight: 600; }
.repo-access {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--uc-navy);
  color: var(--paper) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s ease;
  width: 100%;
  border-radius: 2px;
}
.repo-access:hover { background: var(--ink); color: var(--paper) !important; }

/* STRIP metodología */
.zone-strip { background: var(--uc-navy); color: var(--paper); }
.oe-strip {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.oe-strip .item .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--uc-gold-soft);
  margin-bottom: 8px;
}
.oe-strip .item .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4CDDF;
  margin-bottom: 4px;
}
.oe-strip .item .desc { font-size: 13px; color: #E8EDF5; line-height: 1.5; }

/* LATEST */
.oe-latest {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.feature-article { border-top: 3px solid var(--uc-navy); padding-top: 24px; }
.feature-article .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--uc-gold);
  margin-bottom: 14px;
}
.feature-article h3 { font-weight: 400; font-size: 34px; margin: 0 0 18px; }
.feature-article p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; }
.byline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.aside-list h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--uc-gold);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--uc-navy);
}
.aside-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}
.aside-item:last-child { border-bottom: none; }
.aside-item .date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uc-gold);
  line-height: 1.3;
  padding-top: 3px;
}
.aside-item .date b { display: block; color: var(--uc-navy); font-size: 15px; font-family: var(--font-display); }
.aside-item h5 { font-family: var(--font-display); font-weight: 500; font-size: 15.5px; line-height: 1.3; margin: 0 0 4px; color: var(--ink); }
.aside-item p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* CTA */
.zone-cta {
  background: var(--ink);
  color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(176, 133, 47, 0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(46, 117, 182, 0.08), transparent 40%);
}
.oe-cta { max-width: 780px; margin: 0 auto; padding: 80px 32px; text-align: center; }
.oe-cta .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--uc-gold);
  margin-bottom: 20px;
}
.oe-cta h2 { color: var(--paper); font-weight: 400; font-size: clamp(30px, 4vw, 46px); margin: 0 0 20px; }
.oe-cta h2 em { color: var(--uc-gold-soft); font-style: italic; }
.oe-cta p { font-size: 16px; color: #C4CDDF; max-width: 60ch; margin: 0 auto 32px; line-height: 1.6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.oe-cta .btn-ghost { border-color: var(--paper); color: var(--paper); }
.oe-cta .btn-ghost:hover { background: var(--paper); color: var(--uc-navy); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--paper-warm);
  padding: 48px 32px 28px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
/* Grilla adaptativa: sin módulos en footer-a/footer-b quedan 2 columnas,
   con Contacto alineado al margen derecho */
.foot-inner.foot-cols-2 {
  grid-template-columns: 1.4fr auto;
  justify-content: space-between;
}
.foot-inner.foot-cols-2 .foot-col:last-child { justify-self: end; text-align: left; }
.foot-inner.foot-cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.foot-logo { height: 76px; margin-bottom: 16px; }
.foot-name { margin: 0 0 8px; font-family: var(--font-display); font-size: 15px; color: var(--uc-navy); font-weight: 500; }
.foot-desc { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.site-footer h6 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--uc-navy);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; font-size: 13px; }
.site-footer li a { color: var(--ink-soft); }
.site-footer li a:hover { color: var(--uc-gold); }
.foot-bottom {
  max-width: 1240px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .header-inner { padding: 16px 20px; flex-wrap: wrap; }
  .uc-logo { height: 48px; }
  .brand { gap: 14px; }
  .brand-divider { height: 42px; }
  .brand-text .name { font-size: 18px; }
  .brand-text .inst { display: none; }
  .foot-logo { height: 60px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--uc-navy); display: block; transition: all .2s; }
  nav.nav { display: none; width: 100%; }
  nav.nav.open { display: block; padding-top: 12px; }
  nav.nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.nav li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  nav.nav li ul { position: static; box-shadow: none; border: none; padding-left: 16px; display: block; }

  .oe-hero { grid-template-columns: 1fr; padding: 40px 20px 32px; gap: 40px; }
  .hero-title { font-size: 40px; }
  .oe-repos { padding: 60px 20px; }
  .section-head { flex-direction: column; align-items: start; }
  .repo-grid { grid-template-columns: 1fr; gap: 16px; }
  .oe-strip { grid-template-columns: 1fr 1fr; gap: 30px; padding: 44px 20px; }
  .oe-latest { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
  .oe-cta { padding: 60px 20px; }
  .foot-inner, .foot-inner.foot-cols-2, .foot-inner.foot-cols-3 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-inner.foot-cols-2 .foot-col:last-child { justify-self: start; text-align: left; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .main.has-sidebar .main-inner { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .zone-inner, .main-inner { padding: 0 20px; }
}

/* ============================================================
   v1.1 — Ajustes incorporados de fábrica
   ============================================================ */

/* Texto de accesibilidad de mensajes de sistema (evita "danger" visible) */
.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ------------------------------------------------------------
   Limpieza del listado Phoca Download
   El sitio sirve PDF/Excel por descarga directa: se suprimen
   controles y modales sin función para el suscriptor.
   ------------------------------------------------------------ */

/* Modales completos (ficha de detalle y reproductor) */
#pdCategoryModal, #phModalPlay, .pd-modal { display: none !important; }

/* Barra de orden y paginación (Ordering / Mostrar) */
#phoca-dl-category-box .pagination,
.pagination.pagination-centered { display: none !important; }

/* Badges New / Hot */
.label-new, .label-hot { display: none !important; }

/* Botón Detalles (tooltip informativo) */
#phoca-dl-category-box a.btn.btn-info,
.pd-filebox a.btn.btn-info,
a.btn.btn-info[data-bs-toggle="tooltip"] { display: none !important; }

/* Botones sueltos: Categorías (volver), Cerrar, Play, Preview */
.pd-button-back, .pd-categories-button,
.pd-close, .pd-button-close,
.pd-play, .pd-button-play,
.pd-preview, .pd-button-preview { display: none !important; }

/* Rótulos de encabezado sueltos */
.pd-title-header, .pd-header-title, .pd-column-title { display: none !important; }

/* Sello Powered by Phoca Download */
.pd-footer-info, [class*="phocadownload-info"], a[href*="phoca.cz"] { display: none !important; }
.pagination.pagination-centered,
#fileordering, #limit,
form[name="pdform"] .pagination { display: none !important; }
/* --- Sello Powered by Phoca: ocultar el div completo --- */
div:has(> a[href*="phoca.cz"]) { display: none !important; }
/* ============================================================
   LIMPIEZA PHOCA DOWNLOAD — bloque final consolidado
   (pegar al final de template.css; con !important pisa
   cualquier regla anterior, no importa lo que haya arriba)
   ============================================================ */

/* Los tres modales completos: ficha de detalle, reproductor y vista previa */
#pdCategoryModal, #phModalPlay, #phModalPreview, .pd-modal { display: none !important; }

/* Barra de orden y paginación (Ordering / Mostrar) */
.pagination.pagination-centered,
#phoca-dl-category-box .pagination,
#fileordering, #limit { display: none !important; }

/* Badges New / Hot */
.label-new, .label-hot { display: none !important; }

/* Botón Detalles (tooltip) */
a.btn.btn-info[data-bs-toggle="tooltip"],
#phoca-dl-category-box a.btn.btn-info,
.pd-filebox a.btn.btn-info { display: none !important; }

/* Botones sueltos: Categorías (volver), Cerrar, Play, Preview */
.pd-button-back, .pd-categories-button,
.pd-close, .pd-button-close,
.pd-play, .pd-button-play,
.pd-preview, .pd-button-preview { display: none !important; }

/* Rótulos de encabezado sueltos ("Título") */
.pd-title-header, .pd-header-title, .pd-column-title { display: none !important; }

/* Sello Powered by Phoca Download (enlace y div contenedor) */
.pd-footer-info, [class*="phocadownload-info"],
a[href*="phoca.cz"] { display: none !important; }
div:has(> a[href*="phoca.cz"]) { display: none !important; }
/* --- Ocultar bloque de información del artículo --- */
dl.article-info, .article-info,
.article-info-term { display: none !important; }
/* --- Navegación Anterior/Siguiente de artículos --- */
ul.pagination.pager, .article-pagination, .pagenavigation,
a.next[rel="next"], a.previous[rel="prev"] { display: none !important; }