/*
Theme Name:  Jornadas GEISE
Theme URI:   https://jornadasgeise.unrn.edu.ar
Description: Tema profesional para las Jornadas GEISE – UNRN. Basado en bloques Gutenberg (FSE-ready), con soporte para CPTs, historial de ediciones, inscripciones y gestión de circulares. Incluye demo importable.
Author:      UNRN – Sede Andina
Version:     1.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jornadas-geise
Tags:        block-patterns, full-site-editing, custom-colors, custom-logo, featured-images, editor-style, wide-blocks
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --jg-rojo:          #CE1126;
  --jg-rojo-dark:     #A50D1E;
  --jg-rojo-light:    #FDECEA;
  --jg-marino:        #1B2A4A;
  --jg-marino-mid:    #2D4270;
  --jg-marino-light:  #E8EDF5;

  /* Neutrals */
  --jg-crema:         #F7F3EE;
  --jg-crema-2:       #EFE9E0;
  --jg-crema-3:       #E5DDD2;
  --jg-ink:           #1A1A1A;
  --jg-ink-2:         #3D3D3D;
  --jg-ink-3:         #7A7A7A;
  --jg-white:         #FFFFFF;

  /* Borders */
  --jg-border:        rgba(26,26,26,.10);
  --jg-border-med:    rgba(26,26,26,.18);

  /* Typography — families */
  --jg-font-display:  'Merriweather', Georgia, serif;
  --jg-font-body:     'Source Sans 3', sans-serif;
  --jg-font-mono:     'Source Code Pro', monospace;

  /* Typography — heading */
  --jg-heading-color:          #1B2A4A;
  --jg-heading-weight:         700;
  --jg-heading-line-height:    1.2;
  --jg-heading-letter-spacing: 0em;
  --jg-h1-size: clamp(1.9rem, 4vw, 2.8rem);
  --jg-h2-size: clamp(1.5rem, 3vw, 2.1rem);
  --jg-h3-size: clamp(1.15rem, 2vw, 1.5rem);
  --jg-h4-size: 1.15rem;
  --jg-h5-size: 1rem;
  --jg-h6-size: .9rem;

  /* Typography — body */
  --jg-body-weight:      300;
  --jg-body-line-height: 1.7;

  /* Spacing scale */
  --jg-space-xs:   .35rem;
  --jg-space-sm:   .65rem;
  --jg-space-md:   1.25rem;
  --jg-space-lg:   2rem;
  --jg-space-xl:   3rem;
  --jg-space-2xl:  5rem;

  /* Radii */
  --jg-r:    5px;
  --jg-r-lg: 10px;

  /* Shadows */
  --jg-shadow:    0 2px 12px rgba(26,26,26,.08);
  --jg-shadow-lg: 0 8px 32px rgba(26,26,26,.14);
  --jg-shadow-xl: 0 20px 60px rgba(26,26,26,.18);

  /* Transitions */
  --jg-ease: .2s ease;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--jg-font-body);
  font-size: 1rem;
  font-weight: var(--jg-body-weight);
  color: var(--jg-ink);
  background: var(--jg-crema);
  line-height: var(--jg-body-line-height);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--jg-rojo); text-decoration: none; transition: color var(--jg-ease); }
a:hover { color: var(--jg-rojo-dark); }
ul, ol { padding-left: 1.5em; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--jg-font-display);
  font-weight: var(--jg-heading-weight);
  color: var(--jg-heading-color);
  line-height: var(--jg-heading-line-height);
  letter-spacing: var(--jg-heading-letter-spacing);
}
h1 { font-size: var(--jg-h1-size); }
h2 { font-size: var(--jg-h2-size); }
h3 { font-size: var(--jg-h3-size); }
h4 { font-size: var(--jg-h4-size); }
h5 { font-size: var(--jg-h5-size); }
h6 { font-size: var(--jg-h6-size); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--jg-rojo);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--jg-rojo-light);
  font-style: italic;
  font-family: var(--jg-font-display);
  font-size: .95rem;
  color: var(--jg-ink-2);
}

code, pre {
  font-family: var(--jg-font-mono);
  font-size: .875rem;
  background: var(--jg-crema-2);
  border-radius: var(--jg-r);
}
code { padding: .15em .4em; }
pre { padding: 1.25rem; overflow-x: auto; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════ */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}
.container--wide  { max-width: 1440px; }
.container--narrow { max-width: 780px; }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--jg-white);
  border-bottom: 1px solid var(--jg-border);
  box-shadow: 0 1px 8px rgba(26,26,26,.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__img { width: 36px; height: 36px; object-fit: contain; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__title {
  font-family: var(--jg-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--jg-marino);
}
.site-logo__sub {
  font-size: 10px;
  color: var(--jg-ink-3);
  font-weight: 300;
  letter-spacing: .04em;
}

.site-header__unrn {
  width: 88px;
  object-fit: contain;
  opacity: .85;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.primary-nav__item {
  font-size: 12.5px;
  color: var(--jg-ink-3);
  text-decoration: none;
  padding: 0 .9rem;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: all var(--jg-ease);
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
}
.primary-nav__item:hover { color: var(--jg-marino); }
.primary-nav__item.current,
.primary-nav__item.current-menu-item {
  color: var(--jg-marino);
  border-bottom-color: var(--jg-rojo);
  font-weight: 500;
}

.nav-cta {
  background: var(--jg-rojo);
  color: var(--jg-white) !important;
  padding: .48rem 1.2rem !important;
  height: auto !important;
  border-bottom: none !important;
  border-radius: 3px;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: .02em;
  margin-left: .75rem;
  transition: background var(--jg-ease) !important;
}
.nav-cta:hover { background: var(--jg-rojo-dark) !important; color: #fff !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--jg-marino);
  margin-left: auto;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════════════════════
   HERO BLOCK
═══════════════════════════════════════════════════════════════ */
.jg-hero {
  position: relative;
  overflow: hidden;
  background: var(--jg-crema);
  background-size: cover;
  background-position: center;
  padding: var(--jg-space-2xl) 0 var(--jg-space-xl);
  border-bottom: 3px solid var(--jg-rojo);
}
.jg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247,243,238,.58);
}
.jg-hero__inner { position: relative; z-index: 1; }

.jg-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.jg-hero__eyebrow-line { width: 24px; height: 2px; background: var(--jg-rojo); flex-shrink: 0; }
.jg-hero__eyebrow-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--jg-rojo);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jg-hero__edition-row {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: .6rem;
}
.jg-hero__edition-num {
  font-family: var(--jg-font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--jg-rojo);
  line-height: 1;
  font-style: italic;
}
.jg-hero__edition-label {
  font-family: var(--jg-font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--jg-marino);
  font-style: italic;
}
.jg-hero__title {
  font-family: var(--jg-font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--jg-marino);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 580px;
  font-style: italic;
}
.jg-hero__meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  padding: .9rem 1.25rem;
  background: rgba(255,255,255,.72);
  border-radius: var(--jg-r);
  border-left: 3px solid var(--jg-rojo);
  max-width: 620px;
  backdrop-filter: blur(4px);
}
.jg-hero__meta-item { display: flex; flex-direction: column; gap: .15rem; }
.jg-hero__meta-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--jg-rojo);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.jg-hero__meta-value { font-size: 13px; font-weight: 500; color: var(--jg-marino); }

.jg-hero__actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--jg-font-body);
  font-size: 13px;
  font-weight: 600;
  padding: .7rem 1.6rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .02em;
  transition: all var(--jg-ease);
  white-space: nowrap;
}
.btn--primary { background: var(--jg-rojo); color: #fff; }
.btn--primary:hover { background: var(--jg-rojo-dark); color: #fff; }
.btn--navy { background: var(--jg-marino); color: #fff; }
.btn--navy:hover { background: var(--jg-marino-mid); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--jg-marino);
  border: 1.5px solid var(--jg-marino);
}
.btn--outline:hover { background: var(--jg-marino); color: #fff; }
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--sm { font-size: 12px; padding: .45rem 1rem; }
.btn--lg { font-size: 14px; padding: .85rem 2rem; }

/* Download button */
.btn--download {
  font-size: 12px;
  font-weight: 600;
  color: var(--jg-rojo);
  border: 1.5px solid var(--jg-rojo);
  background: transparent;
  border-radius: 3px;
  padding: .38rem .85rem;
  transition: all var(--jg-ease);
}
.btn--download:hover { background: var(--jg-rojo); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════════════════ */
.jg-section-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 10px;
  font-weight: 600;
  color: var(--jg-rojo);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.jg-section-eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--jg-rojo);
  flex-shrink: 0;
}
.jg-section-heading {
  font-family: var(--jg-font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--jg-marino);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (interior pages)
═══════════════════════════════════════════════════════════════ */
.jg-page-header {
  position: relative;
  overflow: hidden;
  background: var(--jg-crema);
  background-size: cover;
  background-position: center top;
  padding: 2.75rem 0;
  border-bottom: 3px solid var(--jg-rojo);
}
.jg-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247,243,238,.62);
}
.jg-page-header__inner { position: relative; z-index: 1; }
.jg-page-header__eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.jg-page-header__eyebrow-line { width: 18px; height: 2px; background: var(--jg-rojo); flex-shrink: 0; }
.jg-page-header__eyebrow-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--jg-rojo);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.jg-page-header__title {
  font-family: var(--jg-font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--jg-marino);
  line-height: 1.2;
  margin-bottom: .4rem;
}
.jg-page-header__sub { font-size: 13px; color: var(--jg-ink-3); font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════ */
.jg-card {
  background: var(--jg-white);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-r-lg);
  overflow: hidden;
  box-shadow: var(--jg-shadow);
  transition: box-shadow var(--jg-ease), transform var(--jg-ease);
}
.jg-card:hover { box-shadow: var(--jg-shadow-lg); }
.jg-card--lift:hover { transform: translateY(-2px); }

/* ── Grilla de ediciones ── */
.jg-editions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .jg-editions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .jg-editions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .jg-editions-grid { grid-template-columns: 1fr; } }

/* ── Edition card — igual al mockup ── */
.edition-card {
  cursor: pointer;
  background: var(--jg-white);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-r-lg);
  overflow: hidden;
  box-shadow: var(--jg-shadow);
  transition: box-shadow var(--jg-ease), transform var(--jg-ease);
  display: flex;
  flex-direction: column;
}
.edition-card:hover { box-shadow: var(--jg-shadow-lg); transform: translateY(-2px); }

/* Zona superior: romano grande + año + badge ARCHIVADA */
.edition-card__head {
  padding: 1.1rem 1.1rem .75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.edition-card__roman-wrap {}
.edition-card__roman {
  font-family: var(--jg-font-display);
  font-size: 2rem;
  color: var(--jg-marino);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  display: block;
}
.edition-card__year {
  font-size: 11px;
  color: var(--jg-ink-3);
  font-family: var(--jg-font-mono);
  display: block;
  margin-top: .25rem;
}
.edition-card__status {
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: .1rem;
}
.edition-card__status--archived {
  background: var(--jg-crema-3);
  color: var(--jg-ink-3);
  border: 1px solid var(--jg-border-med);
}
.edition-card__status--active {
  background: rgba(206,17,38,.1);
  color: var(--jg-rojo);
  border: 1px solid rgba(206,17,38,.2);
}

/* Separador */
.edition-card__divider {
  height: 1px;
  background: var(--jg-border);
  margin: 0 1.1rem;
}

/* Cuerpo: ciudad, fecha, descripción, links */
.edition-card__body {
  padding: .8rem 1.1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.edition-card__city {
  font-size: 13px;
  font-weight: 600;
  color: var(--jg-marino);
  line-height: 1.3;
}
.edition-card__date-desc {
  font-size: 11px;
  color: var(--jg-ink-3);
  line-height: 1.45;
  font-weight: 300;
  margin-bottom: .5rem;
}
.edition-card__links {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .5rem;
}
.edition-card__link {
  font-size: 11px;
  font-weight: 500;
  color: var(--jg-rojo);
  border: 1px solid rgba(206,17,38,.25);
  border-radius: 3px;
  padding: 3px 9px;
  text-decoration: none;
  transition: all var(--jg-ease);
  background: transparent;
}
.edition-card__link:hover {
  background: var(--jg-rojo);
  color: #fff;
  border-color: var(--jg-rojo);
}

/* ── Active banner — igual al mockup ── */
.jg-active-banner {
  background: var(--jg-marino);
  border-radius: var(--jg-r-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--jg-shadow-lg);
}
.jg-active-banner::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(206,17,38,.1);
}
.jg-active-banner::after {
  content: '';
  position: absolute;
  right: 80px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(206,17,38,.06);
}
.jg-active-banner__roman {
  font-family: var(--jg-font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  color: var(--jg-rojo);
  font-weight: 700;
  line-height: 1;
  font-style: italic;
  flex-shrink: 0;
  z-index: 1;
}
.jg-active-banner__content { z-index: 1; flex: 1; }
.jg-active-banner__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--jg-rojo);
  background: rgba(206,17,38,.15);
  border-radius: 3px;
  padding: 3px 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.jg-active-banner__title {
  font-family: var(--jg-font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.jg-active-banner__meta {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.jg-active-banner__actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .jg-active-banner { flex-direction: column; gap: 1rem; }
  .jg-active-banner__roman { font-size: 3.5rem; }
}

/* ── Página Circulares ── */
.circ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.circ-card {
  background: var(--jg-white);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-r-lg);
  overflow: hidden;
  box-shadow: var(--jg-shadow);
  transition: box-shadow var(--jg-ease);
}
.circ-card:hover { box-shadow: var(--jg-shadow-lg); }
.circ-top {
  background: var(--jg-marino);
  padding: 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
}
.circ-top::after {
  content: '';
  position: absolute;
  right: -15px; bottom: -15px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.circ-big-num {
  position: absolute;
  right: 1rem; top: .5rem;
  font-family: var(--jg-font-display);
  font-size: 2.8rem;
  color: rgba(255,255,255,.09);
  font-weight: 700;
  font-style: italic;
}
.circ-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(206,17,38,.85);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.circ-title {
  font-family: var(--jg-font-display);
  font-size: .95rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}
.circ-body { padding: 1.1rem 1.35rem; }
.circ-date {
  font-size: 10.5px;
  color: var(--jg-ink-3);
  margin-bottom: .65rem;
  font-family: var(--jg-font-mono);
}
.circ-desc {
  font-size: 12.5px;
  color: var(--jg-ink-2);
  line-height: 1.55;
  margin-bottom: .9rem;
  font-weight: 300;
}
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--jg-rojo);
  text-decoration: none;
  border: 1.5px solid var(--jg-rojo);
  border-radius: 3px;
  padding: .38rem .85rem;
  transition: all var(--jg-ease);
}
.btn-dl:hover { background: var(--jg-rojo); color: #fff; }
.circ-disabled { font-size: 11px; color: var(--jg-ink-3); }

/* ── Archivo ── */
.archivo-heading {
  font-family: var(--jg-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--jg-marino);
  margin-bottom: 1.1rem;
}
.arch-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--jg-white);
  border-radius: var(--jg-r-lg);
  overflow: hidden;
  box-shadow: var(--jg-shadow);
}
.arch-table th {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--jg-ink-3);
  text-align: left;
  padding: .65rem 1rem;
  border-bottom: 2px solid var(--jg-border);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--jg-crema);
}
.arch-table td {
  font-size: 13px;
  color: var(--jg-ink-2);
  padding: .72rem 1rem;
  border-bottom: 1px solid var(--jg-border);
}
.arch-table tr:last-child td { border-bottom: none; }
.arch-table tr:hover td { background: var(--jg-crema); }
.arch-dl {
  color: var(--jg-rojo);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.arch-dl:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .circ-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE (Programa)
═══════════════════════════════════════════════════════════════ */
.jg-timeline { }
.jg-timeline__row { display: flex; gap: 1.25rem; }
.jg-timeline__time-col {
  width: 70px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 1rem;
}
.jg-timeline__time {
  font-family: var(--jg-font-mono);
  font-size: 11.5px;
  color: var(--jg-ink-3);
  font-weight: 500;
}
.jg-timeline__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}
.jg-timeline__node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--jg-rojo);
  background: var(--jg-white);
  margin-top: 1rem;
  z-index: 1;
  flex-shrink: 0;
}
.jg-timeline__node--filled { background: var(--jg-rojo); }
.jg-timeline__node--dim { border-color: var(--jg-border-med); }
.jg-timeline__node--navy { border-color: var(--jg-marino); background: var(--jg-marino); }
.jg-timeline__line { flex: 1; width: 1.5px; background: var(--jg-border); margin-top: 2px; }

.jg-timeline__card {
  flex: 1;
  margin-bottom: .85rem;
  padding: .9rem 1.1rem;
  background: var(--jg-white);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-r-lg);
  box-shadow: var(--jg-shadow);
}
.jg-timeline__card--feature { border-left: 3px solid var(--jg-rojo); background: var(--jg-rojo-light); }
.jg-timeline__card--navy { border-left: 3px solid var(--jg-marino); background: var(--jg-marino-light); }
.jg-timeline__card--break { background: var(--jg-crema-2); border-style: dashed; box-shadow: none; }
.jg-timeline__type {
  font-size: 10px;
  font-weight: 600;
  color: var(--jg-rojo);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .25rem;
}
.jg-timeline__card--navy .jg-timeline__type { color: var(--jg-marino); }
.jg-timeline__card-title { font-size: 13.5px; font-weight: 600; color: var(--jg-marino); margin-bottom: .22rem; }
.jg-timeline__card-sub { font-size: 12px; color: var(--jg-ink-3); line-height: 1.45; }
.jg-timeline__duration { font-size: 10.5px; color: var(--jg-ink-3); margin-top: .35rem; font-family: var(--jg-font-mono); }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS
═══════════════════════════════════════════════════════════════ */
.jg-widget {
  background: var(--jg-crema);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-r-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: .85rem;
}
.jg-widget__title {
  font-size: 10px;
  font-weight: 600;
  color: var(--jg-marino);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--jg-border);
}
.jg-widget__row {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .5rem 0;
  border-bottom: 1px solid var(--jg-border);
}
.jg-widget__row:last-child { border-bottom: none; }
.jg-widget__icon {
  width: 30px;
  height: 30px;
  border-radius: var(--jg-r);
  background: var(--jg-rojo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.jg-widget__label { font-size: 10px; color: var(--jg-ink-3); margin-bottom: .1rem; font-weight: 500; }
.jg-widget__value { font-size: 13px; font-weight: 500; color: var(--jg-marino); }

/* ═══════════════════════════════════════════════════════════════
   EDITIONS STRIP
═══════════════════════════════════════════════════════════════ */
.jg-editions-strip {
  background: var(--jg-marino);
  padding: 2.75rem 0;
}
.jg-editions-strip__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
}
.jg-editions-strip__title {
  font-family: var(--jg-font-display);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.jg-editions-strip__link { font-size: 12px; color: rgba(206,17,38,.85); text-decoration: none; }
.jg-editions-strip__link:hover { color: var(--jg-rojo); }
.jg-editions-row { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .5rem; }
.jg-ed-pill {
  flex-shrink: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--jg-r);
  padding: .95rem 1.25rem;
  cursor: pointer;
  transition: all var(--jg-ease);
  text-align: center;
  min-width: 88px;
  text-decoration: none;
  display: block;
}
.jg-ed-pill:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.jg-ed-pill--active { background: rgba(206,17,38,.18); border-color: var(--jg-rojo); }
.jg-ed-pill__roman { font-family: var(--jg-font-display); font-size: 1.35rem; color: #fff; font-weight: 700; font-style: italic; }
.jg-ed-pill--active .jg-ed-pill__roman { color: var(--jg-rojo); }
.jg-ed-pill__year { font-size: 10px; color: rgba(255,255,255,.38); margin-top: .18rem; letter-spacing: .04em; }
.jg-ed-pill__badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--jg-rojo);
  background: rgba(206,17,38,.15);
  border-radius: 2px;
  padding: 1px 5px;
  margin-top: .3rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVE EDITION BANNER
═══════════════════════════════════════════════════════════════ */
.jg-active-banner {
  background: var(--jg-marino);
  border-radius: var(--jg-r-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--jg-shadow-lg);
}
.jg-active-banner::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(206,17,38,.08);
}
.jg-active-banner__roman {
  font-family: var(--jg-font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--jg-rojo);
  font-weight: 700;
  line-height: 1;
  font-style: italic;
  flex-shrink: 0;
  z-index: 1;
}
.jg-active-banner__content { z-index: 1; }
.jg-active-banner__badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--jg-rojo);
  background: rgba(206,17,38,.15);
  border-radius: 2px;
  padding: 2px 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: .5rem;
}
.jg-active-banner__title { font-family: var(--jg-font-display); font-size: 1.2rem; color: #fff; font-weight: 700; margin-bottom: .4rem; line-height: 1.3; }
.jg-active-banner__meta { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 1.1rem; font-weight: 300; }
.jg-active-banner__actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   CALLOUT / ASIDE
═══════════════════════════════════════════════════════════════ */
.jg-callout {
  background: var(--jg-rojo-light);
  border: 1px solid rgba(206,17,38,.14);
  border-left: 3px solid var(--jg-rojo);
  border-radius: var(--jg-r);
  padding: 1rem 1.1rem;
  margin-bottom: .85rem;
}
.jg-callout--navy {
  background: var(--jg-marino-light);
  border-color: rgba(27,42,74,.14);
  border-left-color: var(--jg-marino);
}
.jg-callout__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--jg-rojo);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .25rem;
}
.jg-callout--navy .jg-callout__label { color: var(--jg-marino); }
.jg-callout__value { font-size: 14px; font-weight: 600; color: var(--jg-marino); }
.jg-callout__sub { font-size: 11.5px; color: var(--jg-ink-3); margin-top: .2rem; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════════════ */
.jg-table-wrap { overflow-x: auto; }
.jg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--jg-white);
  border-radius: var(--jg-r-lg);
  overflow: hidden;
  box-shadow: var(--jg-shadow);
  font-size: 13px;
}
.jg-table th {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--jg-ink-3);
  text-align: left;
  padding: .65rem 1rem;
  border-bottom: 2px solid var(--jg-border);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--jg-crema);
}
.jg-table td {
  color: var(--jg-ink-2);
  padding: .72rem 1rem;
  border-bottom: 1px solid var(--jg-border);
}
.jg-table tr:last-child td { border-bottom: none; }
.jg-table tr:hover td { background: var(--jg-crema); }
.jg-table .ed-pill {
  font-size: 10px;
  font-weight: 600;
  background: var(--jg-marino-light);
  color: var(--jg-marino);
  border-radius: 3px;
  padding: 2px 7px;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════ */
.jg-form-section { margin-bottom: 1.75rem; }
.jg-form-section__title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--jg-marino);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid var(--jg-marino-light);
}
.jg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: .75rem; }
.jg-form-row--full { grid-template-columns: 1fr; }
.jg-form-group { display: flex; flex-direction: column; gap: .3rem; }
.jg-form-label { font-size: 12px; font-weight: 500; color: var(--jg-ink-2); }
.jg-form-input,
.jg-form-select,
.jg-form-textarea {
  border: 1px solid var(--jg-border-med);
  border-radius: var(--jg-r);
  padding: .58rem .8rem;
  font-family: var(--jg-font-body);
  font-size: 13px;
  color: var(--jg-ink);
  background: var(--jg-white);
  outline: none;
  transition: border-color var(--jg-ease);
  width: 100%;
}
.jg-form-input:focus,
.jg-form-select:focus,
.jg-form-textarea:focus { border-color: var(--jg-rojo); }
.jg-form-textarea { resize: vertical; min-height: 100px; }
.jg-form-hint { font-size: 10.5px; color: var(--jg-ink-3); margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════════
   EJES TEMÁTICOS
═══════════════════════════════════════════════════════════════ */
.jg-ejes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .55rem; }
.jg-eje-item {
  background: var(--jg-white);
  border: 1px solid var(--jg-border-med);
  border-radius: var(--jg-r);
  padding: .6rem .85rem;
  font-size: 12.5px;
  color: var(--jg-ink-2);
  line-height: 1.4;
  border-left: 3px solid var(--jg-rojo);
}

/* ═══════════════════════════════════════════════════════════════
   COMISION / TEAM GRID
═══════════════════════════════════════════════════════════════ */
.jg-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.jg-team-card {
  background: var(--jg-white);
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-r-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--jg-shadow);
}
.jg-team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--jg-crema-3);
  margin: 0 auto .75rem;
  overflow: hidden;
  border: 2px solid var(--jg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-family: var(--jg-font-display);
  font-weight: 700;
  color: var(--jg-marino);
}
.jg-team-card__name { font-size: 13px; font-weight: 600; color: var(--jg-marino); margin-bottom: .2rem; }
.jg-team-card__role { font-size: 11px; color: var(--jg-rojo); font-weight: 500; margin-bottom: .2rem; }
.jg-team-card__inst { font-size: 11px; color: var(--jg-ink-3); font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #111820;
  padding: 2rem 0;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__brand { display: flex; align-items: center; gap: .75rem; }
.site-footer__logo { width: 28px; opacity: .6; }
.site-footer__name { font-family: var(--jg-font-display); font-size: 12px; color: rgba(255,255,255,.7); font-weight: 700; }
.site-footer__copy { font-size: 10px; color: rgba(255,255,255,.28); }
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__link { font-size: 11px; color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--jg-ease); }
.site-footer__link:hover { color: rgba(255,255,255,.65); }

/* ═══════════════════════════════════════════════════════════════
   GUTENBERG BLOCK EDITOR COMPAT
═══════════════════════════════════════════════════════════════ */
.entry-content > * + * { margin-top: 1.5em; }
.wp-block-group { padding: var(--jg-space-xl) 0; }
.wp-block-group.has-background { padding: var(--jg-space-xl) var(--jg-space-lg); }
.wp-block-separator { border: none; border-top: 1px solid var(--jg-border); margin: 2rem 0; }
.wp-block-separator.is-style-wide { border-top-width: 2px; border-color: var(--jg-rojo); }
.wp-block-buttons { display: flex; gap: .65rem; flex-wrap: wrap; }
.wp-block-button__link { border-radius: 3px !important; font-family: var(--jg-font-body) !important; font-weight: 600 !important; letter-spacing: .02em !important; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.jg-pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.jg-pagination a,
.jg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-r);
  font-size: 13px;
  font-weight: 500;
  color: var(--jg-ink-2);
  text-decoration: none;
  transition: all var(--jg-ease);
}
.jg-pagination a:hover { border-color: var(--jg-rojo); color: var(--jg-rojo); }
.jg-pagination .current { background: var(--jg-rojo); color: #fff; border-color: var(--jg-rojo); }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════ */
.u-text-rojo    { color: var(--jg-rojo) !important; }
.u-text-marino  { color: var(--jg-marino) !important; }
.u-text-muted   { color: var(--jg-ink-3) !important; }
.u-bg-marino    { background: var(--jg-marino) !important; }
.u-bg-crema     { background: var(--jg-crema) !important; }
.u-font-display { font-family: var(--jg-font-display) !important; }
.u-font-mono    { font-family: var(--jg-font-mono) !important; }
.u-bold         { font-weight: 600 !important; }
.u-italic       { font-style: italic !important; }
.u-mt-0         { margin-top: 0 !important; }
.u-mb-0         { margin-bottom: 0 !important; }
.u-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; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding-inline: 1.5rem; }
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--jg-white);
    border-bottom: 1px solid var(--jg-border);
    padding: 1rem 0;
    box-shadow: var(--jg-shadow-lg);
    z-index: 499;
  }
  .primary-nav.is-open .primary-nav__item {
    height: auto;
    padding: .75rem 2rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .primary-nav.is-open .primary-nav__item.current { border-left-color: var(--jg-rojo); }
  .primary-nav.is-open .nav-cta { margin: .5rem 2rem; }
  .nav-toggle { display: flex; }
  .site-header__unrn { margin-left: .5rem; }
  .jg-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding-inline: 1rem; }
  .jg-hero { padding: 3rem 0 2.5rem; }
  .jg-hero__meta { gap: 1rem; }
  .jg-active-banner { flex-direction: column; gap: 1rem; }
  .jg-active-banner__roman { font-size: 3rem; }
  .jg-ejes-grid { grid-template-columns: 1fr; }
  .jg-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .jg-hero__edition-row { flex-direction: column; gap: .3rem; }
  .jg-hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .jg-team-grid { grid-template-columns: 1fr; }
}
