/* =========================================================
   Calendario Iglesia Viva — página pública
   Estilo acuarela claro y minimalista. Todo va dentro de .ivc
   para no chocar con el tema cuando se usa el shortcode.
   ========================================================= */

.ivc {
  --paper: #fbf9f5;
  --ink: #2f3a45;
  --ink-soft: #55616e;
  --muted: #8b939d;
  --line: rgba(47, 58, 69, .09);
  --line-strong: rgba(47, 58, 69, .16);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);
  --accent-deep: #56748b;
  --accent: color-mix(in srgb, var(--accent-deep) 72%, #fff);
  --accent-wash: color-mix(in srgb, var(--accent-deep) 14%, #fff);
  --gold: #b09a70;
  --danger: #b0666c;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 1px rgba(47, 58, 69, .03), 0 14px 34px -22px rgba(47, 58, 69, .28);
  --shadow-lg: 0 30px 80px -30px rgba(47, 58, 69, .35);

  position: relative;
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.ivc *, .ivc *::before, .ivc *::after { box-sizing: border-box; }
.ivc [hidden] { display: none !important; }
.ivc h1, .ivc h2, .ivc h3, .ivc h4 { margin: 0; line-height: 1.15; font-weight: 500; color: var(--ink); letter-spacing: normal; text-transform: none; }
.ivc p { margin: 0; }
.ivc button, .ivc input, .ivc select { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
.ivc a { color: var(--accent-deep); text-decoration-color: color-mix(in srgb, var(--accent-deep) 35%, transparent); text-underline-offset: 3px; }
.ivc strong { font-weight: 500; }
.ivc :focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ivc .ivc-spacer { flex: 1; }
.ivc .ivc-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ===== Página independiente: papel y manchas de acuarela ===== */
body.ivc-standalone {
  margin: 0;
  min-height: 100vh;
  background: #fbf9f5;
  isolation: isolate;
}
body.ivc-standalone::before,
.ivc-embed::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 8% 6%,  rgba(233, 196, 202, .70), transparent 70%),
    radial-gradient(34% 30% at 92% 4%, rgba(184, 211, 232, .75), transparent 72%),
    radial-gradient(30% 38% at 98% 52%, rgba(208, 196, 232, .60), transparent 70%),
    radial-gradient(36% 32% at 4% 70%, rgba(190, 219, 199, .65), transparent 72%),
    radial-gradient(40% 30% at 70% 102%, rgba(241, 214, 184, .60), transparent 70%),
    radial-gradient(26% 22% at 45% 40%, rgba(255, 255, 255, .7), transparent 70%);
  filter: blur(18px) saturate(1.05);
}
body.ivc-standalone::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .5  0 0 0 0 .45  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ivc-standalone .ivc { max-width: 1440px; margin: 0 auto; }

/* Insertado con shortcode: lleva su propio fondo acuarela */
.ivc-embed {
  isolation: isolate; overflow: hidden;
  background: var(--paper); border-radius: 28px; padding-bottom: 8px;
}
.ivc-embed::before { position: absolute; }

/* ===== Botones ===== */
.ivc .ivc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass-strong);
  color: var(--ink); text-decoration: none; cursor: pointer;
  font-size: 14px; font-weight: 400; letter-spacing: .02em; white-space: nowrap; line-height: 1.4;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.ivc .ivc-btn:hover { background: #fff; border-color: color-mix(in srgb, var(--accent-deep) 40%, transparent); box-shadow: var(--shadow); }
.ivc .ivc-btn .ivc-i { color: var(--accent-deep); }
.ivc .ivc-btn-primary { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.ivc .ivc-btn-primary .ivc-i { color: #fff; }
.ivc .ivc-btn-primary:hover { background: color-mix(in srgb, var(--accent-deep) 88%, #000); border-color: transparent; color: #fff; }
.ivc .ivc-btn-ghost { background: transparent; border-color: transparent; }
.ivc .ivc-btn-ghost:hover { background: var(--glass-strong); border-color: var(--line); box-shadow: none; }
.ivc .ivc-btn-sm { padding: 5px 12px; font-size: 13px; gap: 6px; }
.ivc .ivc-icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass-strong);
  color: var(--ink-soft); cursor: pointer; transition: background .2s, border-color .2s;
}
.ivc .ivc-icon-btn .ivc-i { width: 18px; height: 18px; }
.ivc .ivc-icon-btn:hover { background: #fff; border-color: color-mix(in srgb, var(--accent-deep) 40%, transparent); color: var(--accent-deep); }
.ivc .ivc-link { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ivc .ivc-link:hover { color: var(--accent-deep); }

/* ===== Encabezado ===== */
.ivc .ivc-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 40px 20px;
}
.ivc .ivc-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ivc .ivc-logo { height: 58px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.ivc .ivc-brand-rule { width: 1px; height: 44px; background: linear-gradient(transparent, var(--line-strong), transparent); }
.ivc .ivc-brand-mark {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%;
  background:
    radial-gradient(70% 70% at 30% 30%, rgba(184, 211, 232, .9), transparent 70%),
    radial-gradient(70% 70% at 75% 70%, rgba(208, 196, 232, .85), transparent 72%),
    radial-gradient(60% 60% at 70% 20%, rgba(233, 196, 202, .6), transparent 70%),
    #f4f1ec;
  color: var(--accent-deep);
}
.ivc .ivc-brand-mark .ivc-i { width: 26px; height: 26px; stroke-width: 1.2; }
.ivc .ivc-kicker { margin: 0 0 2px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .24em; color: var(--gold); }
.ivc .ivc-title { font-family: var(--serif); font-size: 34px; font-weight: 500; overflow-wrap: anywhere; }
.ivc .ivc-header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.ivc .ivc-segmented {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ivc .ivc-segmented button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); letter-spacing: .03em;
  transition: background .2s, color .2s;
}
.ivc .ivc-segmented button:hover { color: var(--ink); }
.ivc .ivc-segmented button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 10px -4px rgba(47, 58, 69, .22); }

/* ===== Barra de herramientas ===== */
.ivc .ivc-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 22px 40px 8px; }
.ivc .ivc-period { display: flex; align-items: center; gap: 10px; }
.ivc .ivc-period-label { font-family: var(--serif); font-size: 32px; font-weight: 500; min-width: 230px; text-align: center; }
.ivc .ivc-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ivc .ivc-search { position: relative; display: inline-flex; align-items: center; }
.ivc .ivc-search .ivc-i { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.ivc .ivc-q, .ivc .ivc-ministry {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass-strong); min-width: 0; font-size: 14px; box-shadow: none;
}
.ivc .ivc-q { width: 230px; padding-left: 40px; }
.ivc .ivc-q::placeholder { color: var(--muted); }
.ivc .ivc-ministry { padding-right: 12px; color: var(--ink-soft); }
.ivc .ivc-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--ink-soft); }
.ivc .ivc-check input { width: 16px; height: 16px; accent-color: var(--accent-deep); }

/* ===== Distribución ===== */
.ivc .ivc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; padding: 16px 40px 36px; align-items: start; }
.ivc .ivc-content { min-width: 0; }
.ivc .ivc-legend {
  position: sticky; top: 16px; padding: 20px 16px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ivc .ivc-legend h3 { font-family: var(--serif); font-size: 20px; margin: 0 6px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ivc .ivc-legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ivc .ivc-legend-list li { margin: 0; }
.ivc .ivc-legend-list button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; padding: 6px 8px; border-radius: 10px;
  cursor: pointer; text-align: left; font-size: 14px; color: var(--ink-soft); transition: background .2s;
}
.ivc .ivc-legend-list button:hover { background: rgba(255, 255, 255, .75); }
.ivc .ivc-legend-list button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 10px -6px rgba(47, 58, 69, .3); }
.ivc .ivc-sw {
  width: 14px; height: 14px; flex: none; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); opacity: .9;
}
.ivc .ivc-n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ivc .ivc-legend-hint { font-size: 12px; color: var(--muted); margin: 14px 8px 0; font-style: italic; }

/* ===== Calendario mensual ===== */
.ivc .ivc-month-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.ivc .ivc-dow { background: rgba(255, 255, 255, .8); padding: 12px 4px 10px; text-align: center; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.ivc .ivc-day {
  background: rgba(255, 255, 255, .72); min-height: 118px; padding: 8px; min-width: 0;
  display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: background .2s;
}
.ivc .ivc-day:hover { background: rgba(255, 255, 255, .95); }
.ivc .ivc-day.is-out { background: rgba(252, 251, 248, .5); }
.ivc .ivc-day.is-out .ivc-day-num { opacity: .35; }
.ivc .ivc-day.is-weekend:not(.is-out) { background: rgba(252, 250, 246, .8); }
.ivc .ivc-day-num { font-size: 13px; color: var(--ink-soft); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.ivc .ivc-day.is-today .ivc-day-num {
  color: var(--accent-deep); font-weight: 500;
  background: radial-gradient(circle at 40% 40%, rgba(184, 211, 232, .95), rgba(208, 196, 232, .55) 70%, transparent 72%);
}
.ivc .ivc-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ivc .ivc-chip {
  display: block; width: 100%; min-width: 0; text-align: left; cursor: pointer;
  border: 0; border-radius: 8px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 34%, #fff), color-mix(in srgb, var(--c) 12%, #fff) 85%);
  padding: 3px 8px; font-size: 12px; line-height: 1.4; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: filter .2s;
}
.ivc .ivc-chip:hover { filter: saturate(1.25) brightness(.98); }
.ivc .ivc-chip-time { font-variant-numeric: tabular-nums; color: var(--ink-soft); margin-right: 4px; }
.ivc .ivc-more { font-size: 11px; color: var(--muted); padding-left: 6px; }
.ivc .ivc-dots { display: none; }

.ivc .ivc-month-agenda { margin-top: 36px; }
.ivc .ivc-section-title { font-family: var(--serif); font-size: 26px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; }
.ivc .ivc-count { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ===== Tarjetas ===== */
.ivc .ivc-cards { display: grid; gap: 12px; }
.ivc .ivc-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px 14px 14px; box-shadow: var(--shadow); transition: box-shadow .2s;
}
.ivc .ivc-card:hover { box-shadow: 0 1px 1px rgba(47, 58, 69, .03), 0 20px 40px -24px rgba(47, 58, 69, .35); }
.ivc .ivc-card.is-past { opacity: .55; }
.ivc .ivc-card-date {
  width: 68px; height: 76px; display: grid; align-content: center; justify-items: center; line-height: 1.05;
  border: 0; cursor: pointer; color: var(--ink); padding: 0;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  background:
    radial-gradient(75% 70% at 35% 35%, color-mix(in srgb, var(--c) 55%, #fff), transparent 72%),
    radial-gradient(70% 70% at 70% 75%, color-mix(in srgb, var(--c) 30%, #fff), transparent 72%);
}
.ivc .ivc-cd-dow, .ivc .ivc-cd-mon { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-soft); }
.ivc .ivc-cd-day { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 2px 0; }
.ivc .ivc-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 4px 0; overflow-wrap: anywhere; }
.ivc .ivc-card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.ivc .ivc-meta { color: var(--ink-soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; overflow-wrap: anywhere; }
.ivc .ivc-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ivc .ivc-meta .ivc-i { color: var(--muted); }
.ivc .ivc-card-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ivc .ivc-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; color: var(--ink-soft);
  background: color-mix(in srgb, var(--c, var(--accent)) 24%, #fff);
}
.ivc .ivc-tag-soft { background: #fff; border: 1px solid var(--line); letter-spacing: .06em; text-transform: none; font-size: 12px; font-weight: 400; }
.ivc .ivc-tag .ivc-i { width: 13px; height: 13px; }
.ivc .ivc-month-group { margin-bottom: 36px; }
.ivc .ivc-empty { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--glass); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.ivc .ivc-empty strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 24px; font-weight: 500; margin-bottom: 4px; }

/* ===== Diálogos ===== */
.ivc .ivc-dialog {
  border: 0; padding: 0; border-radius: 26px; margin: auto;
  width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: #fdfcfa; color: var(--ink); box-shadow: var(--shadow-lg);
}
.ivc .ivc-dialog::backdrop { background: rgba(240, 236, 230, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ivc .ivc-dlg-head {
  position: relative; padding: 28px 64px 22px 28px;
  background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--c, var(--accent)) 45%, transparent), transparent 70%),
    radial-gradient(50% 100% at 100% 0%, color-mix(in srgb, var(--c, var(--accent)) 22%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.ivc .ivc-dlg-head h2 { font-family: var(--serif); font-size: 32px; margin-top: 10px; overflow-wrap: anywhere; }
.ivc .ivc-dlg-head.is-plain {
  background:
    radial-gradient(50% 120% at 0% 0%, rgba(184, 211, 232, .45), transparent 70%),
    radial-gradient(40% 100% at 100% 0%, rgba(233, 196, 202, .35), transparent 70%);
}
.ivc .ivc-dlg-head.is-plain h2 { margin-top: 0; }
.ivc .ivc-dlg-head .ivc-lead { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.ivc .ivc-dlg-close { position: absolute; top: 18px; right: 18px; background: rgba(255, 255, 255, .7); border-color: transparent; }
.ivc .ivc-dlg-body { padding: 24px 28px; }
.ivc .ivc-dlg-foot {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 16px 22px; border-top: 1px solid var(--line); background: rgba(250, 248, 244, .95);
  position: sticky; bottom: 0;
}
.ivc .ivc-facts { display: grid; gap: 14px; margin: 0; }
.ivc .ivc-facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ivc .ivc-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.ivc .ivc-facts dt .ivc-i { width: 16px; height: 16px; color: var(--accent); }
.ivc .ivc-facts dd { margin: 0; overflow-wrap: anywhere; }
.ivc .ivc-desc {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 16px;
  font-family: var(--serif); font-size: 19px; line-height: 1.5; font-style: italic; color: var(--ink-soft);
  background: linear-gradient(135deg, rgba(223, 234, 243, .6), rgba(235, 230, 244, .45));
}
.ivc .ivc-notice { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; color: var(--ink-soft); background: linear-gradient(135deg, rgba(226, 237, 229, .9), rgba(226, 237, 229, .4)); }
.ivc .ivc-notice .ivc-i { color: #6f9c7e; }
.ivc .ivc-day-list, .ivc .ivc-sub-list { display: grid; gap: 8px; }
.ivc .ivc-day-item, .ivc .ivc-sub-item {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; cursor: pointer; text-decoration: none; color: var(--ink);
  padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(100deg, color-mix(in srgb, var(--c, var(--accent)) 26%, #fff), #fff 70%);
  transition: box-shadow .2s;
}
.ivc .ivc-day-item:hover, .ivc .ivc-sub-item:hover { box-shadow: var(--shadow); }
.ivc .ivc-day-item .t, .ivc .ivc-sub-item .t { font-family: var(--serif); font-size: 19px; font-weight: 600; display: block; }
.ivc .ivc-day-item .m, .ivc .ivc-sub-item .m { font-size: 13px; color: var(--ink-soft); display: block; }
.ivc .ivc-sub-item > .ivc-i { width: 22px; height: 22px; color: var(--accent-deep); }
.ivc .ivc-sub-url {
  display: flex; gap: 8px; align-items: center; margin-top: 16px; padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-soft);
}
.ivc .ivc-sub-url code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; background: none; }

/* ===== Aviso flotante y pie ===== */
.ivc .ivc-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 99999;
  padding: 11px 22px; border-radius: 999px; max-width: calc(100vw - 32px); text-align: center;
  background: rgba(255, 255, 255, .95); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.ivc .ivc-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.ivc .ivc-footer { padding: 8px 40px 44px; color: var(--muted); font-size: 13px; text-align: center; }
.ivc .ivc-ornament { display: block; width: 120px; height: 1px; margin: 0 auto 18px; background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative; }
.ivc .ivc-ornament::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); background: var(--paper); border: 1px solid var(--gold); }
.ivc .ivc-noscript { text-align: center; padding: 40px; color: var(--muted); }

/* ===== Adaptable ===== */
@media (max-width: 1020px) {
  .ivc .ivc-layout { grid-template-columns: minmax(0, 1fr); }
  .ivc .ivc-legend { position: static; order: -1; padding: 10px; }
  .ivc .ivc-legend h3, .ivc .ivc-legend-hint { display: none; }
  .ivc .ivc-legend-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .ivc .ivc-legend-list button { width: auto; padding: 4px 12px; border-radius: 999px; font-size: 13px; }
  .ivc .ivc-n { display: none; }
}
@media (max-width: 720px) {
  .ivc .ivc-header { padding: 20px 16px 12px; }
  .ivc .ivc-title { font-size: 28px; }
  .ivc .ivc-logo { height: 46px; }
  .ivc .ivc-header-actions { width: 100%; }
  .ivc .ivc-toolbar, .ivc .ivc-layout, .ivc .ivc-footer { padding-left: 16px; padding-right: 16px; }
  .ivc .ivc-toolbar { padding-top: 14px; }
  .ivc .ivc-period { width: 100%; justify-content: space-between; }
  .ivc .ivc-period-label { min-width: 0; font-size: 26px; flex: 1; }
  .ivc .ivc-filters { width: 100%; }
  .ivc .ivc-search { flex: 1 1 100%; }
  .ivc .ivc-q { width: 100%; }
  .ivc .ivc-ministry { flex: 1; }
  .ivc .ivc-day { min-height: 60px; padding: 5px 2px; align-items: center; }
  .ivc .ivc-chips { display: none; }
  .ivc .ivc-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
  .ivc .ivc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .85; }
  .ivc .ivc-dow { font-size: 10px; letter-spacing: .06em; }
  .ivc .ivc-card { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .ivc .ivc-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .ivc .ivc-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ivc .ivc-dlg-head { padding: 22px 60px 18px 18px; }
  .ivc .ivc-dlg-head h2 { font-size: 27px; }
  .ivc .ivc-dlg-body { padding: 18px; }
  .ivc .ivc-dlg-foot { padding: 12px 14px; }
}

/* ===== Impresión ===== */
@media print {
  body.ivc-standalone { background: #fff; }
  body.ivc-standalone::before, body.ivc-standalone::after, .ivc-embed::before { display: none; }
  .ivc .ivc-header-actions, .ivc .ivc-filters, .ivc .ivc-period button, .ivc .ivc-legend, .ivc .ivc-footer,
  .ivc .ivc-card-actions, .ivc .ivc-dialog, .ivc .ivc-toast { display: none !important; }
  .ivc .ivc-toolbar, .ivc .ivc-layout { padding: 0; }
  .ivc .ivc-layout { display: block; }
  .ivc .ivc-month-grid, .ivc .ivc-card { box-shadow: none; break-inside: avoid; }
  .ivc .ivc-card.is-past { opacity: 1; }
}
