@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* =========================================================
   PC Firmas Calendario · frontend
   Diseno tomado del cronograma del Observatorio del Contralor.
   Todo va dentro de .pcfc-wrap para no chocar con Divi.
   ========================================================= */

.pcfc-wrap{
  --pcfc-brand:#1343F3;
  --pcfc-paper:#F1F2F7;
  --pcfc-surface:#FFFFFF;
  --pcfc-surface2:#F8F9FC;
  --pcfc-ink:#14161F;
  --pcfc-ink2:#39404F;
  --pcfc-muted:#636A7A;
  --pcfc-rule:#DBDEE9;
  --pcfc-rule2:#EAECF3;
  --pcfc-accent:#1B3BB8;
  --pcfc-accent-soft:#E8ECFD;
  --pcfc-ok:#2E6A4F;
  --pcfc-ok-soft:#E3EFE8;
  --pcfc-hold:#8F6414;
  --pcfc-hold-soft:#F7EEDC;
  --pcfc-no:#97372B;
  --pcfc-no-soft:#F6E6E3;

  font-family:"IBM Plex Sans",system-ui,-apple-system,sans-serif;
  font-size:15px;
  line-height:1.55;
  color:var(--pcfc-ink);
  background:var(--pcfc-paper);
  border:1px solid var(--pcfc-rule);
  border-radius:2px;
  padding:26px 24px 30px;
}

.pcfc-wrap.pcfc-palette-menta-ciudadana{--pcfc-brand:#1F6F5C;--pcfc-accent:#1F6F5C;--pcfc-accent-soft:#E2F1EC}
.pcfc-wrap.pcfc-palette-naranja-convocatoria{--pcfc-brand:#B4501B;--pcfc-accent:#B4501B;--pcfc-accent-soft:#FAEBE0}
.pcfc-wrap.pcfc-palette-aqua-democracia{--pcfc-brand:#116B84;--pcfc-accent:#116B84;--pcfc-accent-soft:#E0F0F5}

.pcfc-wrap *{box-sizing:border-box}
.pcfc-wrap h2,.pcfc-wrap h3{font-family:Newsreader,Georgia,serif;font-weight:500;margin:0;text-wrap:balance;color:var(--pcfc-ink)}
.pcfc-mono{font-family:"IBM Plex Mono",ui-monospace,monospace;font-variant-numeric:tabular-nums}
.pcfc-wrap a{color:var(--pcfc-accent)}
.pcfc-wrap :focus-visible{outline:2px solid var(--pcfc-accent);outline-offset:2px;border-radius:3px}

/* ---------- encabezado ---------- */
.pcfc-head{border-bottom:1px solid var(--pcfc-rule);padding-bottom:18px;margin-bottom:22px}
.pcfc-kicker{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--pcfc-muted);font-weight:600;margin-bottom:7px}
.pcfc-head h2{font-size:clamp(24px,3.2vw,33px);line-height:1.12;max-width:22ch}
.pcfc-sub{color:var(--pcfc-muted);font-size:13.5px;max-width:66ch;margin:9px 0 0}

/* ---------- barra de mes ---------- */
.pcfc-nav{display:flex;align-items:center;gap:12px;margin:0 0 16px}
.pcfc-nav-btn{width:32px;height:32px;flex:none;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--pcfc-rule);border-radius:2px;background:var(--pcfc-surface);color:var(--pcfc-ink);
  font:600 15px/1 "IBM Plex Sans",system-ui,sans-serif;cursor:pointer;padding:0}
.pcfc-nav-btn:hover:not(:disabled){background:var(--pcfc-surface2)}
.pcfc-nav-btn:disabled{opacity:.32;cursor:default}
.pcfc-nav-label{font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--pcfc-muted);font-weight:600}
.pcfc-nav-hint{margin-left:auto;font-size:12px;color:var(--pcfc-muted)}

/* ---------- calendario ---------- */
.pcfc-months{margin-bottom:8px}
.pcfc-month{border:1px solid var(--pcfc-rule);border-radius:2px;background:var(--pcfc-surface);overflow:hidden;max-width:620px}
.pcfc-month[hidden]{display:none}
.pcfc-month h3{font-size:17px;padding:13px 16px;border-bottom:1px solid var(--pcfc-rule2)}
.pcfc-dow{display:grid;grid-template-columns:repeat(7,1fr);font-size:10px;letter-spacing:.05em;
  text-transform:uppercase;color:var(--pcfc-muted);text-align:center;padding:7px 0;
  border-bottom:1px solid var(--pcfc-rule2);background:var(--pcfc-surface2)}
.pcfc-days{display:grid;grid-template-columns:repeat(7,1fr)}
.pcfc-day{aspect-ratio:1;border:0;border-right:1px solid var(--pcfc-rule2);border-bottom:1px solid var(--pcfc-rule2);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  font-family:"IBM Plex Mono",monospace;font-size:12px;background:none;color:var(--pcfc-muted);
  cursor:default;padding:0;line-height:1}
.pcfc-day.pcfc-has{cursor:pointer;color:var(--pcfc-ink);font-weight:600}
.pcfc-day.pcfc-has:hover{background:var(--pcfc-surface2)}
.pcfc-day[aria-pressed="true"]{background:var(--pcfc-accent-soft)}
.pcfc-day.pcfc-is-today{box-shadow:inset 0 0 0 2px var(--pcfc-brand)}
.pcfc-day.pcfc-has.pcfc-is-past{color:var(--pcfc-muted);font-weight:400}
.pcfc-dots{display:flex;gap:2px;height:5px}
.pcfc-dots i{width:5px;height:5px;border-radius:50%;background:var(--pcfc-brand);display:block}
.pcfc-day.pcfc-is-past .pcfc-dots i{background:var(--pcfc-rule)}

.pcfc-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:11.5px;color:var(--pcfc-muted);margin:14px 0 26px}
.pcfc-legend span{display:flex;align-items:center;gap:6px}
.pcfc-legend i{width:8px;height:8px;border-radius:50%;display:block}
.pcfc-legend i.pcfc-l-next{background:var(--pcfc-brand)}
.pcfc-legend i.pcfc-l-past{background:var(--pcfc-rule)}
.pcfc-legend i.pcfc-l-today{background:transparent;box-shadow:inset 0 0 0 2px var(--pcfc-brand)}

/* ---------- guia de fechas ---------- */
.pcfc-guide-h{font-size:21px;margin:0 0 4px;padding-top:26px;border-top:1px solid var(--pcfc-rule)}
.pcfc-guide-s{color:var(--pcfc-muted);font-size:13px;margin:0 0 14px;max-width:66ch}
.pcfc-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.pcfc-chip{font:500 12.5px/1 "IBM Plex Sans",system-ui,sans-serif;padding:9px 13px;border-radius:2px;
  border:1px solid var(--pcfc-rule);background:var(--pcfc-surface);color:var(--pcfc-ink);cursor:pointer}
.pcfc-chip:hover{background:var(--pcfc-surface2)}
.pcfc-chip.pcfc-on{background:var(--pcfc-brand);border-color:var(--pcfc-brand);color:#fff}

.pcfc-guide{border:1px solid var(--pcfc-rule);border-radius:2px;background:var(--pcfc-surface)}
.pcfc-item{display:grid;grid-template-columns:180px 1fr;gap:16px;padding:14px 16px 14px 14px;
  border-bottom:1px solid var(--pcfc-rule2);border-left:3px solid transparent}
.pcfc-item:last-child{border-bottom:0}
.pcfc-item .pcfc-when{display:block}
.pcfc-item .pcfc-f{font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--pcfc-muted);display:block}
.pcfc-item .pcfc-h{font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--pcfc-ink2);display:block;margin-top:3px}
.pcfc-item .pcfc-t{display:block;font-weight:600;font-size:14px;line-height:1.35;color:var(--pcfc-ink)}
.pcfc-item .pcfc-place{display:block;font-size:13px;color:var(--pcfc-ink2);margin-top:3px;line-height:1.5}
.pcfc-item .pcfc-d{display:block;font-size:12.8px;color:var(--pcfc-muted);margin-top:4px;line-height:1.55}
.pcfc-item .pcfc-org{display:block;font-size:12.4px;color:var(--pcfc-muted);margin-top:3px}
.pcfc-item .pcfc-st{display:inline-block;margin-left:8px;font-family:"IBM Plex Mono",monospace;font-size:9.5px;
  letter-spacing:.06em;text-transform:uppercase;padding:2px 6px;border-radius:2px;
  background:var(--pcfc-ok-soft);color:var(--pcfc-ok);vertical-align:middle}
.pcfc-item.pcfc-tbc .pcfc-st-next{background:var(--pcfc-hold-soft);color:var(--pcfc-hold)}
.pcfc-item .pcfc-st-past{display:none}
.pcfc-item.pcfc-is-past .pcfc-st-next{display:none}
.pcfc-item.pcfc-is-past .pcfc-st-past{display:inline-block}
.pcfc-item.pcfc-is-past .pcfc-st-next{display:none}
.pcfc-item.pcfc-next{border-left-color:var(--pcfc-brand)}
.pcfc-item.pcfc-on{background:var(--pcfc-accent-soft)}

/* pasadas: en gris, calculado solo por la fecha del navegador */
.pcfc-item.pcfc-is-past{background:var(--pcfc-surface2);color:var(--pcfc-muted)}
.pcfc-item.pcfc-is-past .pcfc-t,
.pcfc-item.pcfc-is-past .pcfc-place,
.pcfc-item.pcfc-is-past .pcfc-h{color:var(--pcfc-muted);font-weight:400}
.pcfc-item.pcfc-is-past .pcfc-st{background:var(--pcfc-rule2);color:var(--pcfc-muted)}
.pcfc-item.pcfc-is-past .pcfc-map-link{opacity:.6}
.pcfc-guide:not(.pcfc-show-past) .pcfc-item.pcfc-is-past{display:none}

.pcfc-empty{padding:18px 16px;font-size:13px;color:var(--pcfc-muted)}

.pcfc-notes-text{display:block}
.pcfc-notes-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.pcfc-map-link{display:inline-block;font-family:"IBM Plex Mono",monospace;font-size:10.5px;
  letter-spacing:.05em;text-transform:uppercase;text-decoration:none;
  border:1px solid var(--pcfc-rule);border-radius:2px;padding:4px 8px;
  background:var(--pcfc-surface2);color:var(--pcfc-ink2)}
.pcfc-map-link:hover{background:var(--pcfc-accent-soft);color:var(--pcfc-accent)}

.pcfc-foot{margin-top:16px;font-size:12px;color:var(--pcfc-muted);line-height:1.6}

@media (max-width:640px){
  .pcfc-wrap{padding:20px 14px 24px}
  .pcfc-item{grid-template-columns:1fr;gap:6px}
  .pcfc-item .pcfc-h{display:inline-block;margin-left:10px;margin-top:0}
  .pcfc-nav-hint{display:none}
  .pcfc-month{max-width:none}
}


/* En pantalla ancha la leyenda se acomoda al lado del calendario,
   para que no quede un hueco blanco a la derecha. */
@media (min-width:1000px){
  .pcfc-months{float:left;margin-right:30px;width:clamp(320px,54%,620px)}
  .pcfc-legend{flex-direction:column;gap:11px;padding-top:6px;margin:0 0 26px}
  .pcfc-guide-h{clear:both}
}
