/* ============================================================
   MONSTER BIENESTAR — Salchimonster
   Paleta: Naranja #FF6B35, Negro #0F0F0F, Blanco #FFFFFF
   ============================================================ */

:root {
  --orange: #FF6B35;
  --orange-dark: #E5551E;
  --orange-soft: #FFE5D9;
  --black: #0F0F0F;
  --gray-900: #1F1F1F;
  --gray-700: #4A4A4A;
  --gray-500: #888;
  --gray-300: #D1D1D1;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --success: #2E7D32;
  --danger: #C62828;
  --warn: #F9A825;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gray-100);
  color: var(--black);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ============== TOPBAR ============== */
.topbar {
  background: var(--black);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1rem;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 1rem; }
.brand .logo { font-size: 2.5rem; }
.brand h1 {
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}
.brand .tag { font-size: .85rem; color: var(--gray-300); }

.filters { display: flex; align-items: center; gap: .5rem; }
.filters select, .filters button {
  background: var(--gray-900);
  color: var(--white);
  border: 1px solid var(--gray-700);
  padding: .5rem .9rem;
  border-radius: var(--radius);
  font-size: .9rem;
  cursor: pointer;
}
.filters select:hover, .filters button:hover { border-color: var(--orange); }
.year-label {
  font-weight: 900;
  color: var(--orange);
  font-size: 1.2rem;
  min-width: 60px;
  text-align: center;
}

.tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--gray-700);
  padding: .55rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s;
}
.tab:hover { color: var(--white); border-color: var(--orange); }
.tab.active {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
  font-weight: 700;
}

/* ============== ALERT BAR ============== */
.alert-bar {
  background: var(--orange);
  color: var(--black);
  padding: .8rem 1.5rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ============== MAIN ============== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade .25s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ============== CALENDARIO ============== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}

.month-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}

.month-header {
  background: var(--black);
  color: var(--white);
  padding: .8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.month-header h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
}
.month-header .count {
  font-size: .8rem;
  background: var(--orange);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--gray-100);
  padding: .3rem 0;
  font-size: .7rem;
  text-align: center;
  color: var(--gray-700);
  font-weight: 700;
}

.month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px;
}

.day-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: 6px;
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .12s;
}
.day-cell:hover {
  background: var(--orange-soft);
  border-color: var(--orange);
}
.day-cell.empty {
  background: transparent;
  cursor: default;
}
.day-cell.today {
  border-color: var(--orange);
  background: var(--orange-soft);
  font-weight: 900;
}
.day-cell.has-special {
  background: linear-gradient(135deg, #FFE5D9 0%, #FFD2BC 100%);
  font-weight: 700;
}
.day-cell.has-activity::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.day-cell.has-executed::after {
  background: var(--success);
}
.day-cell .special-icon {
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: .75rem;
}

/* ============== LISTA ============== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.toolbar h2 { color: var(--black); font-size: 1.4rem; }
.toolbar select {
  padding: .5rem .8rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  background: var(--white);
}

.activities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  border-left: 5px solid var(--orange);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s;
}
.activity-card:hover { transform: translateY(-2px); }
.activity-card.executed { border-left-color: var(--success); }
.activity-card .ac-date {
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: .25rem;
}
.activity-card .ac-title {
  font-weight: 700;
  margin-bottom: .35rem;
}
.activity-card .ac-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.tag-chip {
  background: var(--orange-soft);
  color: var(--orange-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tag-chip.sede { background: var(--black); color: var(--orange); }
.tag-chip.estado-prog { background: var(--warn); color: var(--black); }
.tag-chip.estado-exe { background: var(--success); color: var(--white); }

.budget-summary {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--gray-300);
}
.budget-summary .real-low { color: var(--success); font-weight: 700; }
.budget-summary .real-high { color: var(--danger); font-weight: 700; }

/* ============== MODAL ============== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.modal-header {
  background: var(--black);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { color: var(--orange); font-size: 1.2rem; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--orange); }

.special-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #FF8B5F 100%);
  color: var(--black);
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.modal-body label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .85rem;
  color: var(--gray-700);
  font-weight: 600;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  padding: .55rem .7rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--black);
}
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--gray-100);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--orange);
}
/* Cuando se programa (Gasto real oculto) usar una sola columna */
.budget-row:has(> #gastoRealLabel.hidden) {
  grid-template-columns: 1fr;
}

.photos-controls {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}
.photos-controls input[type=file] {
  width: 100%;
}
.photos-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}
.photos-picker-row input[type=file] {
  flex: 1 1 180px;
}
.btn-add-photos {
  flex: 0 0 auto;
  white-space: nowrap;
}
.photo-sede-label {
  display: block;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.photo-sede-label select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  font-size: 0.9rem;
}
.photos-controls .hint {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: .4rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .5rem;
  margin-top: .5rem;
}
.photos-grid .photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gray-300);
}
.photos-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}
.photo-sede-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(15, 15, 15, 0.82);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  pointer-events: none;
}
.photo-sede-badge.pending {
  background: rgba(255, 107, 53, 0.92);
}
.photo-tile-pending {
  border-color: var(--orange);
}

.variance-box {
  background: var(--gray-100);
  padding: .8rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}
.variance-box.under { background: #C8E6C9; color: var(--success); }
.variance-box.over  { background: #FFCDD2; color: var(--danger);  }
.variance-box.equal { background: var(--orange-soft); color: var(--orange-dark); }

.modal-footer {
  background: var(--gray-100);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  border-top: 1px solid var(--gray-300);
}
.footer-right { display: flex; gap: .5rem; }

.btn-primary, .btn-success, .btn-danger, .btn-ghost {
  padding: .6rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .12s;
}
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #1B5E20; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8B0000; }
.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-300); }

/* ============== FAB ============== */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  border: none;
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,107,53,.5);
  transition: transform .15s;
  z-index: 40;
}
.fab:hover { transform: scale(1.08); background: var(--orange-dark); color: var(--white); }

/* ============== REPORTE MENSUAL ============== */
.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border-left: 5px solid var(--orange);
  box-shadow: var(--shadow);
}
.kpi-card .label {
  font-size: .8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.kpi-card .value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--black);
  margin-top: .2rem;
}
.kpi-card.green { border-left-color: var(--success); }
.kpi-card.red   { border-left-color: var(--danger);  }
.kpi-card.orange{ border-left-color: var(--orange);  }

/* Cobertura Gestión Humana — días especiales vs programado */
.gh-coverage {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-300);
}
.gh-coverage-muted { background: var(--gray-100); }
.gh-coverage h2 {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.35rem;
}
.gh-coverage-hint {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.45;
  margin-bottom: 1rem;
}
.gh-kpis {
  margin-bottom: 1rem !important;
}
.gh-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
}
.gh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.gh-table th {
  background: var(--black);
  color: var(--orange);
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gh-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--gray-300);
  vertical-align: middle;
}
.gh-table tbody tr:hover { background: var(--gray-100); }
.gh-table tbody tr:last-child td { border-bottom: none; }
.gh-cell-date {
  font-weight: 700;
  color: var(--gray-700);
  white-space: nowrap;
}
.gh-num { text-align: center; font-weight: 700; }
.gh-chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.gh-chip-warn {
  background: #FFF3E0;
  color: #E65100;
}
.gh-chip-prog {
  background: #FFF9C4;
  color: #F57F17;
}
.gh-chip-ok {
  background: #C8E6C9;
  color: #1B5E20;
}
.gh-chip-mix {
  background: #E1F5FE;
  color: #01579B;
}

/* ============== NOTIFICACIONES ============== */
.notify-intro {
  max-width: 900px;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.notify-intro code {
  background: var(--gray-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.notify-intro.muted {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}
.sedes-catalog-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border: 1px solid var(--gray-300);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.sedes-catalog-block h3 {
  margin-bottom: 0.35rem;
  color: var(--orange-dark);
}
.sedes-catalog-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
}
.sedes-catalog-block #btnSaveSedesCatalog {
  margin-top: 0.75rem;
}
.notify-env {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.notify-env-row {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.45;
}
.notify-env-row.is-ok {
  background: #E8F5E9;
  border: 1px solid var(--success);
}
.notify-env-row.is-warn {
  background: #FFF8E1;
  border: 1px solid var(--warn);
}
.notify-grid-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.notify-sede-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow);
}
.notify-sede-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--orange-dark);
}
.notify-sede-card label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}
.notify-sede-card input {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.9rem;
}
.notify-templates {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--gray-300);
  margin-bottom: 1.5rem;
}
.notify-templates h3 {
  margin-bottom: 0.35rem;
}
.notify-placeholders {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.notify-templates label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.notify-input-wide,
.notify-textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}
.notify-textarea {
  resize: vertical;
  min-height: 80px;
}
.notify-send-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  border-left: 5px solid var(--orange);
  box-shadow: var(--shadow);
}
.notify-send-box h3 {
  margin-bottom: 1rem;
}
.notify-send-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: flex-end;
}
.notify-send-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.notify-send-row select,
.notify-send-row input[type="date"] {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
}
.notify-send-box > label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.notify-send-box input[type="text"],
.notify-send-box textarea {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
}
.notify-channels {
  display: flex;
  gap: 1.25rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.notify-channels label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.notify-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.notify-preview,
.notify-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: 8px;
  border: 1px solid var(--gray-300);
}
.notify-preview h4,
.notify-result h4 {
  margin-bottom: 0.5rem;
  color: var(--orange-dark);
}
.notify-pre {
  white-space: pre-wrap;
  font-size: 0.85rem;
  background: var(--white);
  padding: 0.75rem;
  border-radius: 6px;
  max-height: 280px;
  overflow: auto;
  margin-top: 0.35rem;
}
.notify-err {
  color: var(--danger);
  font-weight: 700;
}

/* ============== PRESENTACIÓN (deck estilo PowerPoint) ============== */
.deck-intro {
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.deck-setup {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}
.deck-setup label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  min-width: 280px;
  flex: 1;
}
.deck-setup select {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  font-size: 0.9rem;
}
.deck-help-keys {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.deck-help-keys kbd {
  background: var(--gray-100);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
  font-size: 0.8rem;
}

body.deck-open {
  overflow: hidden;
}
body.deck-open .fab {
  display: none !important;
}

.deck-shell {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1512 40%, #0f0f0f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.deck-shell.hidden {
  display: none;
}
.deck-brand-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 4rem;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
}
.deck-brand-main {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  line-height: 1.2;
  min-width: 0;
  flex: 1;
}
.deck-brand-title-line {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.deck-brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck-logo {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.deck-counter {
  position: absolute;
  top: 3.2rem;
  right: 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-300);
  font-weight: 700;
}
.deck-close {
  position: absolute;
  top: 3.2rem;
  left: 1rem;
  z-index: 10;
  background: transparent;
  border: 2px solid var(--gray-700);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.deck-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.deck-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, 0.5);
  background: rgba(15, 15, 15, 0.8);
  color: var(--orange);
  font-size: 1.8rem;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}
.deck-nav:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}
.deck-prev {
  left: 0.75rem;
}
.deck-next {
  right: 0.75rem;
}
.deck-slides {
  flex: 1;
  position: relative;
  margin: 4.5rem 4rem 3.5rem;
  min-height: 0;
}
.deck-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.deck-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.deck-slide-inner {
  max-width: 960px;
  width: 100%;
  text-align: center;
}
.deck-kicker {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}
.deck-main-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(255, 107, 53, 0.25);
}
.deck-meta-line {
  font-size: 1.05rem;
  color: var(--gray-300);
  margin: 0.25rem 0;
}
.deck-cat {
  color: var(--orange);
  font-weight: 700;
}
.deck-estado-chip {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.deck-estado-exe {
  background: var(--success);
  color: #fff;
}
.deck-estado-prog {
  background: var(--warn);
  color: var(--black);
}
.deck-h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--orange);
  margin-bottom: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}
.deck-slide-text .deck-slide-inner {
  text-align: left;
}
.deck-prose {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: #e8e8e8;
}
.deck-resp {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--gray-300);
}
.deck-obs {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 107, 53, 0.12);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
}
.deck-obs-p {
  margin-top: 0.35rem;
  line-height: 1.5;
  color: #eee;
}
.deck-muted {
  color: var(--gray-500);
  font-style: italic;
}
.deck-big-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.deck-num-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.deck-num-card .lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.deck-num-card .val {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
}
.deck-num-card.muted .val {
  color: var(--gray-500);
  font-size: 1.1rem;
}
.deck-num-card.save {
  border-color: var(--success);
}
.deck-num-card.save .val {
  color: #81c784;
}
.deck-num-card.over {
  border-color: var(--danger);
}
.deck-num-card.over .val {
  color: #ef9a9a;
}
.deck-photo-wrap {
  max-width: min(92vw, 1100px);
  max-height: min(68vh, 720px);
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--orange);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.deck-photo-wrap img {
  width: 100%;
  height: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  display: block;
  background: #000;
}
.deck-photo-cap {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gray-300);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.deck-fname {
  color: var(--gray-500);
  font-size: 0.85rem;
}
.deck-slide-end .deck-end-inner {
  text-align: center;
}
.deck-end-logo {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}
.deck-end-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--orange);
}
.deck-end-sub {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--gray-300);
}

.deck-cover-inner {
  max-width: 56rem;
  margin: 0 auto;
}
.deck-slide-cover .deck-slide-inner {
  text-align: center;
}
.deck-cover-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.75rem;
  font-weight: 800;
}
.deck-cover-brand {
  font-size: clamp(1.9rem, 5.5vw, 3.5rem);
  font-weight: 900;
  margin: 0 0 0.25rem;
  color: #fff;
  line-height: 1.05;
}
.deck-cover-month {
  font-size: clamp(1.35rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 1rem;
}
.deck-cover-filter,
.deck-cover-count {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0.4rem 0;
}
.deck-cover-hint {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.deck-shell:fullscreen .deck-brand-bar,
.deck-shell:-webkit-full-screen .deck-brand-bar {
  padding: 0.85rem 4.5rem;
}
.deck-shell:fullscreen .deck-brand-title-line,
.deck-shell:-webkit-full-screen .deck-brand-title-line {
  font-size: 1.05rem;
}
.deck-shell:fullscreen .deck-brand-sub,
.deck-shell:-webkit-full-screen .deck-brand-sub {
  font-size: 0.8rem;
}

.deck-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-700);
}

.report-activity {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--orange);
}
.report-activity.executed { border-left-color: var(--success); }
.report-activity h3 {
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: .3rem;
}
.report-activity .ra-meta {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: .5rem;
}
.report-activity .ra-budget {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--gray-100);
  padding: .5rem 1rem;
  border-radius: 8px;
  margin: .5rem 0;
  font-size: .9rem;
}
.report-activity .ra-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem;
  margin-top: .8rem;
}
.report-activity .ra-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--gray-300);
}

/* ============== ANUAL ============== */
.annual-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-collapse: collapse;
}
.annual-table th, .annual-table td {
  padding: .8rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-300);
}
.annual-table th {
  background: var(--black);
  color: var(--orange);
  font-size: .85rem;
  text-transform: uppercase;
}
.annual-table tr:hover { background: var(--gray-100); }

/* ============== PRINT ============== */
@media print {
  .deck-shell { display: none !important; }
  .topbar, .fab, .toolbar button, .tabs, .filters { display: none !important; }
  .alert-bar { display: none !important; }
  body { background: white; }
  .tab-pane { display: block !important; }
  #tab-calendar, #tab-list, #tab-annual, #tab-notify, #tab-deck { display: none !important; }
  .report-activity { break-inside: avoid; }
  .gh-coverage { break-inside: avoid; }
  .gh-table tr { break-inside: avoid; }
  main { padding: 0; }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .topbar { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; flex-wrap: wrap; }
  .brand h1 { font-size: 1.1rem; }
  .grid-2, .budget-row { grid-template-columns: 1fr; }
  .deck-slides { margin: 4.5rem 0.35rem 3rem; }
  .deck-nav { width: 42px; height: 42px; font-size: 1.35rem; }
  .deck-brand-bar { padding-left: 3rem; padding-right: 1rem; font-size: 0.65rem; }
}
