/* ==========================================================================
   IEEPCNL-inspired CSS Theme (solo CSS)
   Autor: Sora — estilo inspirado en ieepcnl.mx y su Política Editorial
   Nota: El Manual de estilo indica uso de "Gandhi Sans" (edición 2023).
   Si cuentas con los archivos, declara @font-face y cambia --font-sans.
   ========================================================================== */

/* 1) RESET MODERNO + BASE ACCESIBLE -------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; width: 100%; }
body {
  width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  background-image: url(//www.ieepcnl.mx/media/index/fondoSmob.png);
  background-position: top right; /* Centers the image */
  background-repeat: no-repeat;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* 2) DESIGN TOKENS -------------------------------------------------------- */
:root {
  /* Paleta (ajusta a tus códigos exactos) */
  --brand: #F2B400;           /* Amarillo protagonista (aprox. portada editorial) */
  --brand-600: #D89F00;       /* Hover/active más oscuro */
  --brand-100: #FFF3CC;       /* Tint para fondos y resaltes */
  --ink: #121212;             /* Tinta principal */
  --ink-2: #2D2D2D;           /* Titulares */
  --muted: #6B6B6B;           /* Texto secundario */
  --border: #E6E6E6;          /* Bordes sutiles */
  --bg: #FFFFFF;              /* Fondo */
  --surface: #FFFFFF;         /* Superficie tarjetas */
  --surface-2: #FAFAFA;       /* Alterno */
  --link: #141414;            /* Enlaces sobrios (con subrayado al hover) */
  --focus: #FFD34D;           /* Aro de foco accesible */
  --danger: #B00020;          /* Alertas */
  --success: #1C7C54;

  /* Tipografía (cambia por Gandhi Sans si la tienes) */
  --font-sans: "Inter", "Nunito Sans", "Open Sans", system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Escalas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --shadow-2: 0 6px 18px rgba(0,0,0,.08);
  --container: 1120px;

  /* Ritmo vertical */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
}

/* Modo oscuro respetando preferencias del usuario */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D0D;
    --surface: #141414;
    --surface-2: #1A1A1A;
    --fg: #EEEEEE;
    --ink: #EDEDED;
    --ink-2: #FFFFFF;
    --muted: #BDBDBD;
    --border: #2A2A2A;
    --link: #FFFFFF;
    --focus: #FFCA28;
    --brand-100: #4A3B00;
  }
}

/* 3) TIPOGRAFÍA ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  color: var(--ink-2);
  line-height: 1.2;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 700; }
p, ul, ol { margin: 0 0 var(--sp-4); color: var(--fg, #1b1b1b); }
.lead { font-size: 1.125rem; color: var(--muted); }

/* 4) UTILIDADES ----------------------------------------------------------- */
.container { width: min(100%, var(--container)); margin-inline: auto; padding: 0 var(--sp-4); }
.stack > * + * { margin-top: var(--sp-4); }
.grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(12, 1fr);
}
.hide { display: none !important; }

/* 5) HEADER / NAV --------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50; background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.brandbar {
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0 60%, transparent 60%);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0;
}
.nav .logo { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 800; color: var(--ink); }
.nav .menu { display: flex; gap: var(--sp-5); }
.nav .menu a {
  font-weight: 600; color: var(--ink); text-transform: uppercase;
  letter-spacing: .04em; padding: var(--sp-3) var(--sp-2); border-radius: var(--radius-sm);
}
.nav .menu a:hover { background: var(--brand-100); text-decoration: none; }

/* 6) HERO ----------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.04)),
    radial-gradient(1200px 300px at 10% 0%, rgba(242,180,0,.08), transparent 60%),
    var(--surface-2);
  padding: var(--sp-7) 0;
}
.hero .kicker {
  display: inline-block; padding: .25rem .5rem; border-radius: 999px;
  background: var(--brand-100); color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.hero .actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-5); }

/* 7) BOTONES -------------------------------------------------------------- */
.btn {
  --_bg: var(--ink); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.1rem; border-radius: var(--radius-md);
  border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg);
  font-weight: 700; cursor: pointer; transition: transform .04s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-1);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-1); }
.btn--primary { --_bg: var(--brand); --_fg: #141414; }
.btn--primary:hover { --_bg: var(--brand-600); }
.btn--outline { --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: transparent; }
.btn--danger { --_bg: var(--danger); }
.btn--success { --_bg: var(--success); }

/* 8) CARDS --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.card__bar { height: 4px; background: var(--brand); }
.card__body { padding: var(--sp-5); }
.card__title { margin: 0 0 var(--sp-2); font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.card__meta { color: var(--muted); font-size: .925rem; }

/* 9) LISTAS DESTACADAS --------------------------------------------------- */
.list--bullets { padding-left: 1.25rem; }
.list--bullets li { margin-bottom: .4rem; }
.list--check li { list-style: none; position: relative; padding-left: 1.5rem; }
.list--check li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem; font-weight: 800; color: var(--brand);
}

/* 10) BADGES / PILLS ----------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem; border-radius: 999px; font-weight: 700; font-size: .8125rem;
  background: var(--brand-100); color: var(--ink);
}
.badge--solid { background: var(--brand); }

/* 11) ALERTAS ------------------------------------------------------------ */
.alert {
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.alert--brand { background: linear-gradient(0deg, var(--brand-100), var(--surface)); border-color: #EFD68A; }
.alert--danger { border-color: #FFD1D7; background: #FFF0F2; color: #7E0D1A; }
.alert--success { border-color: #CDEDE1; background: #F1FFF8; color: #125C41; }

/* 12) TABS --------------------------------------------------------------- */
.tabs {
  display: flex; gap: var(--sp-4); border-bottom: 2px solid var(--border); margin-bottom: var(--sp-4);
}
.tabs a {
  display: inline-flex; gap: .5rem; padding: .75rem .25rem; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent;
}
.tabs a[aria-current="page"], .tabs a.is-active {
  color: var(--ink); border-color: var(--brand);
}

/* 13) TABLAS ------------------------------------------------------------- */
.table {
  width: 100%; border-collapse: collapse; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.table thead th {
  text-align: left; padding: .9rem .8rem; font-size: .9rem; letter-spacing: .02em;
  background: linear-gradient(0deg, var(--brand-100), #FFF); color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.table tbody td { padding: .8rem; border-top: 1px solid var(--border); }
.table tbody tr:hover { background: #FFF8E1; }

/* 14) FORMULARIOS -------------------------------------------------------- */
.input, .select, .textarea {
  width: 100%; padding: .7rem .8rem; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242,180,0,.25);
}

/* 15) BREADCRUMB --------------------------------------------------------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; font-size: .9rem; color: var(--muted);
}
.breadcrumb a { color: var(--ink); }
.breadcrumb .sep { opacity: .4; }

/* 16) PAGINACIÓN --------------------------------------------------------- */
.pagination { display: flex; gap: .25rem; align-items: center; }
.page {
  min-width: 2.25rem; height: 2.25rem; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.page[aria-current="page"] { background: var(--brand); color: #141414; font-weight: 800; }

/* 17) FOOTER ------------------------------------------------------------- */
.footer {
  margin-top: var(--sp-7);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-top: 1px solid var(--border);
}
.footer .top {
  padding: var(--sp-6) 0; display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer .title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-3); }
.footer .bottom {
  border-top: 1px solid var(--border);
  padding: var(--sp-4) 0; font-size: .9rem; color: var(--muted);
}

/* 18) COMPONENTES “ELECTORALES” (atajos útiles) -------------------------- */
.kpi {
  display: grid; gap: var(--sp-3); grid-auto-flow: column; align-items: end;
  padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
}
.kpi__value { font-size: clamp(1.75rem, 1.2vw + 1.2rem, 2.5rem); font-weight: 900; color: var(--ink); }
.kpi__label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* 19) HR / DIVISORES ----------------------------------------------------- */
hr {
  border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--sp-6) 0;
}

/* 20) PRINT --------------------------------------------------------------- */
@media print {
  .header, .hero .actions, .btn, .nav, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}

video {
    width: 100% !important;
    max-height: 100%;
}
.video-js {
    width: 100% !important;
}
h2 {
  margon-left: 8px;
  margin-top: 8px;
  margin-bottom: 7px;
}