/* ================================================================
   CRONOGRAMA DE ACTIVIDADES — Madre Kumbra
   Título y texto: Arial en todo el sitio — fuente de sistema,
   uniforme, no requiere descarga ni archivos propios.
================================================================ */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/raleway-normal-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/raleway-normal-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/raleway-normal-600.ttf') format('truetype');
}

:root {
  --eco-title-font: "Century Gothic", "Raleway", sans-serif;
  --eco-body-font: Arial, "Raleway", sans-serif;

  --cat-permacultura:    #5a9c1a;
  --cat-bioconstruccion: #b5651d;
  --cat-retiros:         #7b68ee;
  --cat-escuela:         #3d85c8;
  --cat-mingas:          #d97706;
  --cat-medicina:        #2e8b57;
  --cat-voluntariado:    #0d9488;
  --cat-ceremonias:      #b45309;
  --cat-libre:           #6b7280;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--eco-body-font);
  background: #fff;
  color: #333;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ---- Mini header for the standalone page (not needed in embed.html) ---- */
.mini-header {
  background: #1a4408;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-header .container { display: flex; align-items: center; justify-content: space-between; }
.mini-header .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 14px; }
.mini-header .brand img { width: 30px; height: 30px; }
.mini-header a.admin-link { color: #c0e890; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.mini-header a.admin-link:hover { color: #fff; }

/* ---- Page intro banner ---- */
.cronograma-hero {
  background: linear-gradient(160deg, #0d2a04 0%, #1a4408 55%, #2d6610 100%);
  padding: 56px 0 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cronograma-hero .inner { position: relative; z-index: 1; }
/* Botón "regresar": anclado a la esquina superior izquierda de la pantalla.
   Cuelga directo de .cronograma-hero (que ya es position: relative) para no
   quedar limitado al ancho del contenedor centrado; el z-index lo deja por
   encima de .inner y siempre clicable. */
.hero-back { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(119,199,32,0.5); background: rgba(255,255,255,0.08); color: #c0e890; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.hero-back:hover { background: rgba(119,199,32,0.25); color: #fff; }
.hero-title-row { display: inline-flex; align-items: center; gap: 20px; margin: 0 0 14px; }
.hero-logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 2px 14px rgba(0,0,0,0.45)); flex-shrink: 0; }
.cronograma-hero h1 { font-family: var(--eco-title-font); font-size: 58px; font-weight: 700; color: #fff; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.cronograma-hero p { color: #c0e890; font-size: 15px; max-width: 600px; margin: 0 auto; line-height: 1.8; }
.hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.hero-stat { background: rgba(255,255,255,0.10); border: 1px solid rgba(119,199,32,0.5); border-radius: 12px; padding: 14px 24px; text-align: center; min-width: 120px; }
.hero-stat .num { font-family: var(--eco-title-font); font-size: 32px; color: #77c720; display: block; line-height: 1; }
.hero-stat .lbl { font-size: 11px; color: #c0e890; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ---- Botones de categoria dentro del encabezado (reemplazan las tarjetas de cifras) ---- */
.hero-cats { margin-top: 26px; }
.hero-cats .legend-title { color: #c0e890; margin-bottom: 14px; }
.hero-cats .cat-pills-row { max-width: 1040px; margin: 0 auto; }
.hero-cats .cat-pill { box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero-cats .cat-pill.active { box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(0,0,0,0.4); }
.weekly-hint { display: none; text-align: center; font-size: 12px; font-weight: 700; color: #4f8a1f; margin: 0 0 10px; letter-spacing: 0.04em; }
.weekly-hint i { margin: 0 6px; animation: hint-nudge 1.6s ease-in-out infinite; }
@keyframes hint-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .weekly-hint i { animation: none; } }

/* ---- Info strip ---- */
.info-strip { background: #f0f7e6; border-top: 2px solid #c8e6a0; border-bottom: 2px solid #c8e6a0; padding: 20px 0; }
.info-strip .inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; align-items: center; }
.info-strip .i-item { font-size: 13px; color: #444; display: flex; gap: 8px; align-items: center; }
.info-strip .i-item i { color: #77c720; font-size: 16px; }

/* ---- Category legend pills ---- */
.legend-section { background: #f8fbf3; border-bottom: 2px solid #d8ecc0; padding: 28px 0; }
.legend-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #777; margin-bottom: 14px; }
.cat-pills-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 24px; font-size: 12px; font-weight: 700; color: #fff; cursor: pointer; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; border: none; letter-spacing: 0.03em; user-select: none; }
.cat-pill:hover   { opacity: 0.88; transform: translateY(-2px); }
.cat-pill.active  { box-shadow: 0 4px 14px rgba(0,0,0,0.28); transform: translateY(-2px); }
.cat-pill i       { font-size: 13px; }
.pill-todas           { background: #444; }
.pill-permacultura    { background: var(--cat-permacultura); }
.pill-bioconstruccion { background: var(--cat-bioconstruccion); }
.pill-retiros         { background: var(--cat-retiros); }
.pill-escuela         { background: var(--cat-escuela); }
.pill-mingas          { background: var(--cat-mingas); }
.pill-medicina        { background: var(--cat-medicina); }
.pill-voluntariado    { background: var(--cat-voluntariado); }
.pill-ceremonias      { background: var(--cat-ceremonias); }
.pill-libre           { background: var(--cat-libre); }

/* ---- View tabs ---- */
.view-tabs-bar { background: #f0f7e6; border-bottom: 2px solid #c8e6a0; position: sticky; top: 0; z-index: 50; padding: 10px 16px; box-shadow: 0 3px 10px rgba(0,0,0,0.10); }
.view-tabs { display: flex; gap: 6px; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
/* Centrado seguro: con justify-content:center los botones del extremo izquierdo
   quedaban fuera de la pantalla y no se podian alcanzar al deslizar. Con los
   margenes automaticos se centran cuando caben y arrancan en el borde cuando no. */
.view-tabs > :first-child { margin-left: auto; }
.view-tabs > :last-child { margin-right: auto; }
.view-tab { scroll-snap-align: center; }
.view-tabs::-webkit-scrollbar { display: none; }
.view-tab { padding: 10px 20px; font-size: 12px; font-weight: 800; color: #1f5a0a; cursor: pointer; border: 1.5px solid rgba(119,199,32,0.55); background: #fff; box-shadow: 0 2px 6px rgba(26,68,8,0.10); border-radius: 40px; white-space: nowrap; transition: all 0.22s; text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.view-tab.active { color: #fff; background: #77c720; border-color: #77c720; box-shadow: 0 4px 16px rgba(119,199,32,0.40); }
.view-tab:not(.active):hover { color: #1a4408; background: #e6f5cf; border-color: #77c720; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(119,199,32,0.28); }
.view-tab:focus-visible { outline: 3px solid rgba(119,199,32,0.55); outline-offset: 2px; }
.view-tab i { font-size: 15px; color: #4f9a14; }
.view-tab.active i { color: #fff; }

/* ---- Schedule views ---- */
.schedule-panel { display: none; padding: 18px 0 24px; }
.schedule-panel.active { display: block; }
#panel-lunar { padding: 0; }
.text-center { text-align: center; }

/* ---- Weekly table ---- */
.weekly-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: thin; scrollbar-color: #77c720 #e8f0dc; border-radius: 14px; box-shadow: 0 6px 32px rgba(0,0,0,0.12); }
.weekly-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 4px; background: #e8f0dc; padding: 6px; }
.weekly-table thead th { background: #1a4408; color: #fff; padding: 14px 8px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 8px; }
.weekly-table thead th.col-time { background: #2d6610; width: 90px; font-size: 11px; }
.weekly-table tbody td.row-label { background: #2d6610; color: #c0e890; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 6px; border-radius: 8px; white-space: nowrap; vertical-align: middle; line-height: 1.5; }
.weekly-table tbody td.row-label .rl-icon { font-size: 28px; display: block; margin-bottom: 4px; line-height: 1; }
.weekly-table tbody td { vertical-align: top; }
.sched-cell { border-radius: 10px; padding: 10px 9px; min-height: 78px; vertical-align: top; transition: transform 0.15s; position: relative; }
.sched-cell:hover { transform: scale(1.03); }
.sched-cell.empty { background: #f0f7e6; opacity: 0.55; min-height: 40px; }
.sched-cell.filtered-out { background: #f0f7e6 !important; opacity: 0.55; }
.sched-cell.filtered-out > * { visibility: hidden; }
.sched-cell.has-act { color: #fff; }
.sched-cell .act-icon { font-size: 17px; margin-bottom: 5px; display: block; }
.sched-cell .act-name { font-size: 11px; font-weight: 700; line-height: 1.35; margin-bottom: 3px; }
.sched-cell .act-time { font-size: 10px; opacity: 0.82; }
.sc-permacultura    { background: var(--cat-permacultura) !important; }
.sc-bioconstruccion { background: var(--cat-bioconstruccion) !important; }
.sc-retiros         { background: var(--cat-retiros) !important; }
.sc-escuela         { background: var(--cat-escuela) !important; }
.sc-mingas          { background: var(--cat-mingas) !important; }
.sc-medicina        { background: var(--cat-medicina) !important; }
.sc-voluntariado    { background: var(--cat-voluntariado) !important; }
.sc-ceremonias      { background: var(--cat-ceremonias) !important; }
.sc-libre           { background: #8dab6a !important; color: #fff !important; }

/* ---- Monthly timeline ---- */
.month-tabs-bar { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; display: flex; gap: 5px; flex-wrap: nowrap; margin-bottom: 30px; padding: 14px 0 18px; border-bottom: 2px solid #e4eedd; overflow-x: auto; scrollbar-width: none; }
.month-tabs-bar::-webkit-scrollbar { display: none; }
.month-tab-btn { flex: 1 0 auto; min-width: 44px; text-align: center; padding: 7px 10px; scroll-snap-align: center; border: 1.5px solid #c8e6a0; background: transparent; border-radius: 8px; font-size: 10px; font-weight: 700; color: #6a9a40; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em; transition: all 0.18s; font-family: var(--eco-body-font); white-space: nowrap; }
.month-tab-btn.active { background: #77c720; color: #fff; border-color: #77c720; box-shadow: 0 3px 12px rgba(119,199,32,0.35); }
.month-tab-btn:not(.active):not(.no-data):hover { background: rgba(119,199,32,0.10); color: #1a4408; border-color: #77c720; }
.month-tab-btn.no-data { opacity: 0.32; border-style: dashed; cursor: default; }
.month-tab-btn.no-data.active { opacity: 1; background: #bbb; border-color: #bbb; border-style: solid; box-shadow: none; }
.month-empty-state { text-align: center; padding: 52px 20px; color: #bbb; }
.month-empty-state span { display: block; font-size: 52px; margin-bottom: 14px; }
.month-empty-state p { font-size: 15px; margin: 0 0 6px; color: #aaa; }
.month-empty-state small { font-size: 12px; color: #ccc; }

.month-group { margin-bottom: 22px; }
.month-title { font-family: var(--eco-title-font); font-size: 30px; color: #1a4408; border-left: 5px solid #77c720; padding-left: 16px; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.month-title .month-year { font-size: 16px; color: #77c720; font-family: var(--eco-body-font); font-weight: 700; }
.timeline-list { position: relative; padding-left: 44px; max-height: 600px; overflow-y: auto; scroll-behavior: smooth; padding-right: 4px; }
.timeline-list::before { content: ''; position: absolute; left: 18px; top: 10px; bottom: 0; width: 2px; background: linear-gradient(to bottom, #77c720 0%, #c8e6a0 100%); }
.timeline-list::-webkit-scrollbar { width: 5px; }
.timeline-list::-webkit-scrollbar-track { background: #f0f5e8; border-radius: 4px; }
.timeline-list::-webkit-scrollbar-thumb { background: #bdd99a; border-radius: 4px; }
.timeline-list::-webkit-scrollbar-thumb:hover { background: #77c720; }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-dot { position: absolute; left: -34px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #77c720; border: 3px solid #fff; box-shadow: 0 0 0 2px #77c720; }
.tl-card { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 2px 14px rgba(0,0,0,0.08); border-left: 4px solid #77c720; display: flex; gap: 16px; align-items: flex-start; transition: transform 0.2s, box-shadow 0.2s; }
.tl-card:hover { transform: translateX(5px); box-shadow: 0 6px 28px rgba(0,0,0,0.14); }
.tl-date-box { flex-shrink: 0; width: 54px; height: 54px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.tl-date-box .d { font-family: var(--eco-title-font); font-size: 26px; line-height: 1; }
.tl-date-box .m { font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.tl-body { flex: 1; }
.tl-body h5 { font-size: 15px; font-weight: 700; color: #1a3a06; margin: 0 0 5px; line-height: 1.35; }
.tl-body p  { font-size: 12px; color: #555; margin: 0 0 8px; line-height: 1.6; }
.tl-meta    { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tl-meta > span:not(.evt-badge) { font-size: 11px; color: #666; }
.tl-meta .evt-badge { color: #fff; }
.tl-meta span i { margin-right: 4px; color: #77c720; }
.evt-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; }
.evt-btn { display: inline-block; padding: 4px 14px; background: #77c720; color: #fff; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: background 0.2s; }
.evt-btn:hover { background: #5a9c1a; color: #fff; }

/* ---- Seasonal grid ---- */
.seasonal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 768px) { .seasonal-grid { grid-template-columns: 1fr; } }
.season-card { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 22px rgba(0,0,0,0.12); }
.season-hd { padding: 22px 26px; color: #fff; display: flex; align-items: center; gap: 14px; }
.season-hd i { font-size: 30px; }
.season-hd .s-title { font-family: var(--eco-title-font); font-size: 26px; display: block; }
.season-hd .s-months { font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }
.season-bd { background: #fff; padding: 22px 26px; }
.season-bd ul { list-style: none; padding: 0; margin: 0; }
.season-bd ul li { padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #444; display: flex; gap: 12px; align-items: flex-start; }
.season-bd ul li:last-child { border-bottom: none; }
.s-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.s-txt { line-height: 1.4; }
.s-subtxt { font-size: 11px; color: #888; }
.s-primavera .season-hd { background: linear-gradient(135deg, #2e8b57, #5a9c1a); }
.s-primavera .s-dot     { background: #5a9c1a; }
.s-verano    .season-hd { background: linear-gradient(135deg, #c8a600, #d97706); }
.s-verano    .s-dot     { background: #d97706; }
.s-otono     .season-hd { background: linear-gradient(135deg, #8b4513, #b5651d); }
.s-otono     .s-dot     { background: #b5651d; }
.s-invierno  .season-hd { background: linear-gradient(135deg, #4a6fa5, #7b68ee); }
.s-invierno  .s-dot     { background: #4a6fa5; }

/* ---- Activity category cards ---- */
.act-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.act-cat-card { border-radius: 14px; overflow: hidden; box-shadow: 0 3px 18px rgba(0,0,0,0.10); background: #fff; transition: transform 0.2s, box-shadow 0.2s; }
.act-cat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,0.16); }
.act-cat-hd { padding: 24px 22px 18px; color: #fff; position: relative; }
.act-cat-hd .big-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.9; }
.act-cat-hd h4 { font-family: var(--eco-title-font); font-size: 22px; margin: 0 0 4px; color: #fff; }
.act-cat-hd .freq { font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }
.act-cat-bd { padding: 18px 22px 22px; }
.act-cat-bd p { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.act-cat-bd ul { list-style: none; padding: 0; margin: 0; }
.act-cat-bd ul li { font-size: 12px; color: #444; padding: 5px 0; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #f4f4f4; }
.act-cat-bd ul li:last-child { border-bottom: none; }
.act-cat-bd ul li i { font-size: 11px; }

/* ---- Section headings ---- */
.sched-section-h { font-family: var(--eco-title-font); font-size: 28px; color: #1a4408; margin-bottom: 8px; }
.sched-section-sub { font-size: 14px; color: #888; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- CTA section ---- */
.cta-cron { background: linear-gradient(135deg, #1a4408 0%, #2d6610 60%, #426f12 100%); padding: 36px 0; text-align: center; }
.cta-cron h2 { font-family: var(--eco-title-font); font-size: 38px; color: #fff; margin-bottom: 14px; }
.cta-cron p { color: #c0e890; font-size: 15px; max-width: 560px; margin: 0 auto; line-height: 1.8; }
.btn-cta-green { background: #77c720; color: #fff; padding: 14px 36px; border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; display: inline-block; margin: 6px; transition: background 0.2s, transform 0.2s; }
.btn-cta-green:hover { background: #5a9c1a; color: #fff; transform: translateY(-2px); }
.btn-cta-border { background: transparent; color: #fff; padding: 12px 34px; border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; display: inline-block; margin: 6px; border: 2px solid rgba(119,199,32,0.7); transition: background 0.2s, color 0.2s; }
.btn-cta-border:hover { background: #77c720; color: #fff; border-color: #77c720; }

/* ---- Mini footer ---- */
.mini-footer { background: #0d2a04; color: rgba(255,255,255,0.55); text-align: center; padding: 16px 0; font-size: 11px; }
.mini-footer a { color: #77c720; }
.mini-footer .footer-line { margin: 0; line-height: 1.7; }
.mini-footer .footer-line-main { color: rgba(255,255,255,0.8); font-weight: 700; }

/* ================================================================
   CALENDARIO LUNAR
================================================================ */
.lunar-hero { background: linear-gradient(160deg, #03020f 0%, #0b0820 40%, #160a35 70%, #1e0f42 100%); padding: 28px 0 18px; position: relative; overflow: hidden; }
.lunar-stars-canvas { position: absolute; inset: 0; pointer-events: none; }
.lunar-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.lunar-sup { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(200,180,255,0.7); margin-bottom: 10px; }
.lunar-hero-inner h2 { font-family: var(--eco-title-font); font-size: 42px; color: #e8e0f8; margin: 0 0 14px; text-align: center; text-shadow: 0 0 40px rgba(160,120,255,0.55); }
.lunar-hero-inner > div:first-child { text-align: center; }
.lunar-hero-inner > div:first-child p { color: rgba(200,190,230,0.78); font-size: 15px; max-width: 580px; line-height: 1.8; margin: 0 auto; }
.moon-cycle-strip { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.moon-phase-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.moon-phase-ring { width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(120,100,200,0.2); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.moon-phase-item.phase-current .moon-phase-ring { border-color: rgba(245,208,96,0.7); box-shadow: 0 0 22px rgba(245,208,96,0.35); }
.moon-emoji { font-size: 38px; transition: transform 0.25s, filter 0.25s; }
.moon-phase-item:hover .moon-emoji { transform: scale(1.15); }
.moon-phase-item.phase-current .moon-emoji { transform: scale(1.22); filter: drop-shadow(0 0 14px rgba(255,240,100,0.9)); }
.moon-label { font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(190,175,230,0.6); text-align: center; max-width: 68px; line-height: 1.3; }
.moon-phase-item.phase-current .moon-label { color: #f5d060; }
.current-phase-bar { background: linear-gradient(90deg, #0a0920, #14103a, #0a0920); border-top: 1px solid rgba(140,120,220,0.18); border-bottom: 1px solid rgba(140,120,220,0.18); padding: 10px 0; }
.cpb-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.cpb-moon-icon { font-size: 54px; filter: drop-shadow(0 0 14px rgba(255,240,120,0.8)); }
.cpb-divider { width: 1px; height: 52px; background: rgba(140,120,220,0.22); }
.cpb-info, .cpb-illumination, .cpb-next { display: flex; flex-direction: column; gap: 3px; }
.cpb-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(155,145,200,0.7); font-weight: 700; }
.cpb-phase-name { font-family: var(--eco-title-font); font-size: 24px; color: #e8e0f8; line-height: 1; }
.cpb-phase-date { font-size: 12px; color: rgba(200,190,230,0.6); }
.cpb-illum-val, .cpb-next-val { font-size: 18px; font-weight: 700; color: #f5d060; }
.lunar-calendar-section { background: #07061a; padding: 22px 0; }
.lc-section-title { font-family: var(--eco-title-font); font-size: 28px; color: #e8e0f8; text-align: center; margin-bottom: 6px; }
.lc-section-sub { font-size: 12px; color: rgba(190,180,230,0.6); text-align: center; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 28px; }
.lc-nav-bar { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 10px; }
.lc-nav-btn { background: rgba(110,90,210,0.22); border: 1px solid rgba(140,120,220,0.3); color: #c0b8e8; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.lc-nav-btn:hover { background: rgba(110,90,210,0.5); transform: scale(1.1); }
.lc-month-display { font-family: var(--eco-title-font); font-size: 22px; color: #e0d8f8; min-width: 220px; text-align: center; }
.lc-grid-wrap { max-width: 680px; margin: 0 auto 10px; background: rgba(18,14,48,0.85); border-radius: 20px; padding: 22px 18px; border: 1px solid rgba(110,90,200,0.18); box-shadow: 0 10px 50px rgba(0,0,0,0.65); }
.lc-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 8px; }
.lc-weekdays span { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(150,140,210,0.6); padding: 5px 0; }
.lc-days-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.lc-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; cursor: default; padding: 3px 0; transition: transform 0.15s, background 0.15s; }
.lc-day:not(.lc-empty):hover { transform: scale(1.1); background: rgba(110,90,200,0.2); }
.lc-day .ld-num { font-size: 11px; font-weight: 700; color: rgba(195,185,230,0.7); line-height: 1; }
.lc-day .ld-moon { font-size: 20px; line-height: 1.25; }
.lc-day.lc-empty { background: transparent; }
.lc-day.lc-today { background: rgba(245,208,96,0.14); border: 1.5px solid rgba(245,208,96,0.5); }
.lc-day.lc-today .ld-num { color: #f5d060; font-size: 13px; }
.lc-day.lc-new-moon  { background: rgba(24,18,58,0.75); }
.lc-day.lc-full-moon { background: rgba(245,208,96,0.1); }
.lc-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 620px; margin: 0 auto; }
.lc-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(190,180,230,0.65); }
.lc-legend-item .lem { font-size: 15px; }
.lc-day.lc-solstice { border: 1.5px solid rgba(255,175,40,0.6); background: rgba(255,160,20,0.09); }
.lc-day.lc-equinox  { border: 1.5px solid rgba(90,210,255,0.6); background: rgba(80,195,255,0.09); }
.lc-day .ld-solar   { font-size: 9px; line-height: 1; }
.phase-guide-section { background: #050416; padding: 24px 0 32px; }
.phase-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px,1fr)); gap: 16px; margin-top: 16px; }
.phase-guide-card { background: linear-gradient(160deg, #0e0c28, #160e38); border-radius: 18px; border: 1px solid rgba(110,90,200,0.2); overflow: hidden; box-shadow: 0 4px 22px rgba(0,0,0,0.45); transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s; }
.phase-guide-card:hover { transform: translateY(-6px); box-shadow: 0 14px 44px rgba(0,0,0,0.65); border-color: rgba(160,130,240,0.42); }
.pgc-header { padding: 22px 20px 16px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(110,90,200,0.14); }
.pgc-moon { font-size: 46px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(255,240,160,0.5)); }
.pgc-name { font-family: var(--eco-title-font); font-size: 22px; color: #e8e0f8; display: block; line-height: 1; }
.pgc-duration { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(170,155,230,0.58); font-weight: 700; margin-top: 5px; display: block; }
.pgc-body { padding: 16px 20px 22px; }
.pgc-energy { font-size: 12px; color: rgba(195,185,235,0.65); margin-bottom: 14px; line-height: 1.6; }
.pgc-list-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin: 10px 0 6px; }
.pgc-list-title.do   { color: #4ade80; }
.pgc-list-title.dont { color: #f87171; }
.pgc-list { list-style: none; padding: 0; margin: 0; }
.pgc-list li { font-size: 11px; color: rgba(195,185,235,0.8); padding: 3px 0; display: flex; gap: 7px; align-items: flex-start; line-height: 1.45; }
.pgc-dot { flex-shrink: 0; margin-top: 4px; font-size: 7px; }
.pgc-list.do-list   li .pgc-dot { color: #4ade80; }
.pgc-list.dont-list li .pgc-dot { color: #f87171; }

/* ---- Tabla semanal desplazable en pantallas estrechas ---- */
@media (max-width: 900px) {
  .weekly-hint { display: block; }
  .weekly-table { min-width: 720px; }
  .weekly-table thead th.col-time, .weekly-table tbody td.row-label { position: sticky; left: 0; z-index: 2; box-shadow: 6px 0 8px -4px rgba(0,0,0,0.25); }
  .weekly-table thead th.col-time { width: 84px; }
  .sched-cell .act-name { overflow-wrap: anywhere; hyphens: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .cronograma-hero h1 { font-size: 38px; }
  .hero-back { top: 10px; left: 10px; padding: 7px 13px; font-size: 11px; }
  .hero-title-row { flex-direction: column; gap: 10px; }
  .hero-logo { width: 72px; height: 72px; }
  .hero-cats { margin-top: 20px; }
  .hero-cats .cat-pills-row { gap: 6px; }
  .hero-cats .cat-pill { padding: 7px 12px; font-size: 11px; }
  .view-tab { padding: 12px 18px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-stat { min-width: 0; padding: 12px 10px; }
  .view-tab { padding: 12px 16px; font-size: 11px; }
  .tl-card { flex-direction: column; gap: 12px; }
  .tl-date-box { width: 100%; height: 44px; flex-direction: row; gap: 10px; border-radius: 8px; justify-content: flex-start; padding: 0 14px; }
  .tl-date-box .d { font-size: 20px; }
  .lunar-hero-inner h2 { font-size: 30px; }
  .moon-cycle-strip { gap: 10px; }
  .moon-emoji { font-size: 30px; }
  .moon-phase-ring { width: 50px; height: 50px; }
  .cpb-divider { display: none; }
  .phase-guide-grid { grid-template-columns: 1fr; }
}

/* ---- Auth / admin forms ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #0d2a04 0%, #1a4408 55%, #2d6610 100%); padding: 20px; }
.auth-card { background: #fff; border-radius: 16px; padding: 36px 32px; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-card h1 { font-family: var(--eco-title-font); font-size: 28px; line-height: 1.25; color: #1a4408; margin: 0 0 6px; text-align: center; }
.auth-logo { display: block; height: 100px; margin: 0 auto 14px; }
.brand-logo { height: 26px; vertical-align: middle; margin-right: 6px; border-radius: 4px; }
.auth-card .sub { text-align: center; font-size: 13px; color: #888; margin-bottom: 24px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 12px; font-weight: 700; color: #444; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.auth-field input { width: 100%; padding: 11px 14px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 14px; font-family: var(--eco-body-font); }
.auth-field input:focus { outline: none; border-color: #77c720; }
.auth-btn { width: 100%; padding: 12px; background: #77c720; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background 0.2s; }
.auth-btn:hover { background: #5a9c1a; }
.auth-btn:disabled { opacity: 0.6; cursor: default; }
.auth-msg { font-size: 12px; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; display: none; }
.auth-msg.show { display: block; }
.auth-msg.err { background: #fff0f0; color: #c53030; border: 1px solid #f5c6c6; }
.auth-msg.ok  { background: #f0f8e4; color: #2d6610; border: 1px solid #c0e060; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 12px; color: #888; }
.auth-foot a { color: #5a9c1a; font-weight: 700; }

/* ---- Admin dashboard ---- */
.adm-shell { background: #f4faec; min-height: 100vh; }
.adm-topbar { background: #1a4408; color: #fff; padding: 14px 0; display: flex; align-items: center; }
.adm-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.adm-topbar .brand { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.adm-topbar .who { font-size: 12px; color: #c0e890; display: flex; align-items: center; gap: 14px; }
.adm-topbar button.logout { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 6px 14px; border-radius: 6px; font-size: 11px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em; }
.adm-topbar button.logout:hover { background: rgba(255,255,255,0.12); }
.adm-main { padding: 28px 0 60px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.adm-head h2 { font-family: var(--eco-title-font); color: #1a4408; margin: 0; font-size: 26px; }
.btn-primary { background: #77c720; color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-primary:hover { background: #5a9c1a; }
.btn-secondary { background: #fff; color: #1a4408; border: 1.5px solid #c8e6a0; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 12px; cursor: pointer; }
.btn-secondary:hover { background: #f0f7e6; }
.adm-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.adm-tab { padding: 8px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1.5px solid #c8e6a0; background: #fff; color: #5a9c1a; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em; }
.adm-tab.active { background: #77c720; color: #fff; border-color: #77c720; }
.adm-table-wrap { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); overflow: hidden; }
table.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.adm-table th { background: #e8f0dc; color: #1a4408; text-align: left; padding: 12px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
table.adm-table td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
table.adm-table tr:last-child td { border-bottom: none; }
.adm-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; }
.adm-row-actions { display: flex; gap: 8px; }
.adm-row-actions button { border: none; background: none; cursor: pointer; font-size: 12px; padding: 4px 8px; border-radius: 6px; }
.adm-row-actions .edit { color: #3d85c8; }
.adm-row-actions .edit:hover { background: #e8f0f8; }
.adm-row-actions .del { color: #c53030; }
.adm-row-actions .del:hover { background: #fdeaea; }
.adm-empty { text-align: center; padding: 40px 20px; color: #aaa; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 999; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 14px; padding: 28px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-box h3 { font-family: var(--eco-title-font); color: #1a4408; margin: 0 0 18px; }
.form-grid { display: grid; gap: 14px; }
.form-grid label { display: block; font-size: 11px; font-weight: 700; color: #555; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 9px 12px; border: 1.5px solid #ddd; border-radius: 7px; font-size: 13px; font-family: var(--eco-body-font); }
.form-grid textarea { resize: vertical; min-height: 60px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ---- Tarjetas/celdas clicleables ---- */
.sched-cell.has-act, .tl-card-clickable { cursor: pointer; }
.evt-btn-open { background: transparent; color: #5a9c1a; border: 1.5px solid #c8e6a0; padding: 4px 12px; }
.evt-btn-open:hover { background: #f0f7e6; }

/* ---- Modal de detalle de evento + inscripción ---- */
.cr-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 30, 5, 0.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cr-modal-overlay.show { display: flex; }
.cr-modal {
  background: #fff; border-radius: 18px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.cr-modal-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: #f0f7e6; color: #1a4408;
  font-size: 20px; line-height: 1; cursor: pointer; z-index: 2;
}
.cr-modal-close:hover { background: #d8ecc0; }
.cr-modal-head {
  background: linear-gradient(135deg, #1a4408 0%, #2d6610 100%);
  padding: 28px 26px 20px; display: flex; gap: 16px; align-items: flex-start;
  border-radius: 18px 18px 0 0;
}
.cr-modal-icon { font-size: 40px; line-height: 1; }
.cr-modal-badge {
  display: inline-block; padding: 3px 12px; border-radius: 10px;
  font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.cr-modal-title { font-family: var(--eco-title-font); font-size: 28px; color: #fff; margin: 0 0 6px; line-height: 1.15; }
.cr-modal-when { font-size: 12px; color: #c0e890; margin: 0; }
.cr-modal-when i { margin-right: 5px; }
.cr-modal-body { padding: 22px 26px 28px; }
.cr-modal-chip { display: inline-block; background: #f0f7e6; color: #2d6610; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
.cr-modal-chip.cr-soon { background: #fff3e0; color: #b45309; }
.cr-modal-chip.cr-past { background: #f4f4f4; color: #888; }
.cr-modal-desc { font-size: 14px; color: #444; line-height: 1.7; margin: 0 0 16px; }
.cr-modal-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cr-info-item { display: flex; gap: 10px; align-items: flex-start; background: #f8fbf3; border-radius: 10px; padding: 10px 12px; }
.cr-info-item i { color: #77c720; font-size: 15px; margin-top: 2px; }
.cr-info-item div { display: flex; flex-direction: column; }
.cr-info-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #999; font-weight: 700; }
.cr-info-val { font-size: 13px; color: #333; font-weight: 600; }
.cr-modal-details { margin-bottom: 16px; }
.cr-modal-subhead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #5a9c1a; margin: 0 0 8px; }
.cr-modal-details ul { list-style: none; padding: 0; margin: 0; }
.cr-modal-details ul li { font-size: 13px; color: #444; padding: 5px 0 5px 20px; position: relative; line-height: 1.5; }
.cr-modal-details ul li::before { content: '✓'; position: absolute; left: 0; color: #77c720; font-weight: 700; }
.cr-modal-catblurb { font-size: 12px; color: #777; line-height: 1.6; background: #fafafa; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.cr-modal-catblurb i { color: #999; margin-right: 4px; }
.cr-modal-capacity {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: #2d6610; background: #f0f7e6; border-radius: 20px; padding: 6px 14px; margin-bottom: 18px;
}
.cr-modal-capacity.cr-full { color: #b45309; background: #fff3e0; }
.cr-modal-extlink { display: block; font-size: 12px; color: #3d85c8; margin-bottom: 16px; }
.cr-modal-cta-wrap { margin-top: 6px; }
.cr-modal-cta { width: 100%; text-align: center; }
.cr-reg-form { display: grid; gap: 14px; margin-top: 6px; }
.cr-reg-msg { font-size: 12px; padding: 10px 14px; border-radius: 8px; display: none; }
.cr-reg-msg.ok, .cr-reg-msg.err { display: block; }
.cr-reg-msg.ok { background: #f0f8e4; color: #2d6610; border: 1px solid #c0e060; }
.cr-reg-msg.err { background: #fff0f0; color: #c53030; border: 1px solid #f5c6c6; }
@media (max-width: 600px) {
  .auth-card h1 { font-size: 23px; }
  .auth-card { padding: 30px 20px; }
  .cr-modal-head { padding: 22px 20px 18px; }
  .cr-modal-body { padding: 18px 20px 24px; }
  .cr-modal-title { font-size: 24px; }
}

/* ================================================================
   PANEL — selector de íconos, categorías, administradores y limpieza
   ================================================================ */

/* ---- Selector de íconos (actividades y categorías) ---- */
.ip-slot { position: relative; }
.ip-row { display: flex; align-items: center; gap: 8px; }
.ip-preview { width: 42px; height: 42px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; border: 1.5px solid #ddd; border-radius: 9px; background: #fafdf6; font-size: 22px; color: #2d6610; }
.ip-toggle { background: #fff; border: 1.5px solid #c8e6a0; color: #1a4408; border-radius: 8px; padding: 10px 14px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ip-toggle:hover { background: #f0f7e6; }
.ip-custom { flex: 1; min-width: 92px; padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 14px; }
.ip-panel { margin-top: 10px; border: 1.5px solid #e4eedd; border-radius: 10px; padding: 12px; background: #fbfdf7; max-height: 250px; overflow-y: auto; }
.ip-group-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8aa86a; margin: 10px 0 6px; }
.ip-group-title:first-child { margin-top: 0; }
.ip-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid #e0e8d5; background: #fff; border-radius: 8px; cursor: pointer; font-size: 15px; color: #2d6610; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.ip-btn:hover { border-color: #77c720; background: #f0f7e6; transform: translateY(-1px); }
.ip-btn.selected { border-color: #77c720; background: #e8f6d6; box-shadow: 0 0 0 2px rgba(119,199,32,0.25); }
.ip-btn.emoji { font-size: 19px; }
.ip-hint { font-size: 11px; color: #aaa; margin-top: 8px; line-height: 1.6; }

/* ---- Tablas del panel: íconos, claves, roles y contadores ---- */
.adm-icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; font-size: 14px; }
.adm-icon-text { font-size: 17px; }
.adm-color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.adm-counter { font-size: 12px; font-weight: 700; color: #5a9c1a; background: #f0f7e6; border-radius: 20px; padding: 6px 14px; }
.adm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #8a8a8a; }
.adm-role { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.adm-role.super { background: #1a4408; color: #c0e890; }
.adm-role.admin { background: #eef4e6; color: #4a6b30; }
.adm-self { font-size: 10px; color: #999; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Tarjetas del panel (crear administrador, mi cuenta) ---- */
.adm-card { max-width: 480px; margin-top: 26px; background: #fff; padding: 22px 24px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.adm-card h3 { font-family: var(--eco-title-font); color: #1a4408; margin: 0 0 4px; font-size: 18px; }
.adm-card-sub { font-size: 12px; color: #999; margin: 0 0 14px; line-height: 1.6; }
.adm-card.disabled { opacity: 0.5; }
.adm-card .auth-msg { margin-bottom: 12px; }
.adm-table tr.audit-warn td { background: #fff6f5; }
.adm-table tr.audit-warn td strong { color: #b42318; }
.form-grid input[type="color"] { padding: 3px; height: 40px; cursor: pointer; }

/* ---- Zona de riesgo (dejar la base en limpio) ---- */
.adm-danger { margin-top: 26px; background: #fff8f8; border: 1.5px solid #f3cccd; border-radius: 12px; padding: 22px 24px; }
.adm-danger h3 { font-family: var(--eco-title-font); color: #a32929; margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 9px; }
.adm-danger p { font-size: 13px; color: #6b6b6b; line-height: 1.65; margin: 0 0 14px; max-width: 760px; }
.adm-danger hr { border: none; border-top: 1px solid #f3cccd; margin: 18px 0; }
.adm-danger-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.adm-danger-row input { padding: 10px 14px; border: 1.5px solid #f3cccd; border-radius: 8px; font-size: 13px; font-family: var(--eco-body-font); min-width: 240px; }
.btn-danger { background: #c53030; color: #fff; border: none; padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-danger:hover { background: #a32929; }
.btn-danger:disabled { opacity: 0.5; cursor: default; }
.adm-danger .auth-msg { margin-top: 12px; }


/* ---- Sitio público: ícono de la actividad en la línea de tiempo ---- */
.tl-icon { margin-right: 7px; font-size: 0.85em; }


/* ---- Navegación por año del calendario (corto, mediano y largo plazo) ---- */
.month-tab-btn.month-year-nav { flex: 0 0 34px; font-size: 12px; padding: 7px 0; }
.month-tab-btn.month-year-nav:disabled { opacity: 0.3; cursor: default; }
.month-year-label { flex: 0 0 auto; align-self: center; padding: 0 8px; font-weight: 800; font-size: 13px; color: #1a4408; letter-spacing: 0.03em; }

/* ---- Aporte (gratis / voluntario / de pago) ---- */
.evt-price { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #2d6610; }
.evt-price-paid { color: #9a5b00; }
.evt-price-voluntary { color: #0d7a70; }
.cr-info-aporte.cr-aporte-paid i { color: #d97706; }
.cr-info-aporte.cr-aporte-voluntary i { color: #0d9488; }
.cr-reg-aporte { display: block; padding: 10px 12px; border-radius: 8px; background: #f3f9ec; border: 1.5px solid #c8e6a0; font-weight: 700; color: #2d6610; font-size: 14px; }
.cr-reg-aporte.cr-aporte-paid { background: #fff7e8; border-color: #f3d19a; color: #9a5b00; }
.cr-reg-aporte.cr-aporte-voluntary { background: #eafaf7; border-color: #a6e3da; color: #0d7a70; }

/* ---- Panel admin: Aporte y totales ---- */
.price-box { border: 1.5px solid #c8e6a0; border-radius: 12px; padding: 14px 16px 12px; margin: 4px 0 14px; background: #fafdf6; }
.price-box legend { padding: 0 8px; font-weight: 800; font-size: 13px; color: #2d6610; }
.price-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.price-mode { flex: 1 1 120px; cursor: pointer; margin: 0; position: relative; }
.price-mode input { position: absolute; opacity: 0; pointer-events: none; }
.price-mode span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; min-height: 44px; border: 1.5px solid #c8e6a0; border-radius: 10px; background: #fff; font-weight: 700; font-size: 13px; color: #4a7a25; transition: all .18s; }
.price-mode input:checked + span { background: #77c720; border-color: #77c720; color: #fff; box-shadow: 0 3px 12px rgba(119,199,32,.35); }
.price-mode input:focus-visible + span { outline: 3px solid #1a4408; outline-offset: 2px; }
.price-input { display: flex; align-items: center; gap: 6px; }
.price-input span { font-weight: 800; color: #2d6610; }
.price-input input { flex: 1; }
.price-preview { margin: 10px 0 0; font-size: 12px; color: #6a8a50; }
.rev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.rev-card { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 4px 20px rgba(0,0,0,.06); border-left: 4px solid #c8e6a0; }
.rev-card span { display: block; font-size: 12px; color: #6a8a50; font-weight: 700; }
.rev-card strong { display: block; font-size: 22px; color: #1a4408; margin-top: 4px; }
.rev-card.rev-main { border-left-color: #77c720; background: linear-gradient(135deg, #f3fbe8, #fff); }
.rev-card.rev-main strong { color: #2d6610; font-size: 26px; }
