* { margin:0; padding:0; box-sizing:border-box; font-family:"Poppins", Arial, Helvetica, sans-serif; }
    :root {
      --azul:#0f2f57; --azul2:#1870a8; --celeste:#e8f3fb; --borde:#d9e3f0;
      --texto:#06152d; --gris:#59677f; --rosa:#ec4899; --blue:#2563eb; --ambar:#f59e0b; --verde:#10b981;
    }
    body { background:#f3f6fb; color:var(--texto); }
    header { background:linear-gradient(135deg,#0f2f57,#1870a8); color:#fff; padding:30px 24px; text-align:center; }
    header h1 { font-size:clamp(24px,4vw,38px); margin-bottom:8px; }
    header p { opacity:.95; font-size:15px; }
    .container { width:96%; max-width:1500px; margin:28px auto; }
    .notice { background:#fff; border-left:6px solid var(--azul2); padding:16px 24px; border-radius:18px; box-shadow:0 4px 16px rgba(15,47,87,.08); margin-bottom:22px; line-height:1.45; font-size:18px; }
    .notice strong { color:#06152d; }
    .filters { display:grid; grid-template-columns:1.35fr .95fr 1.05fr; gap:18px; margin-bottom:24px; }
    label { display:block; font-weight:800; font-size:14px; color:#314568; margin-bottom:8px; }
    select,input { width:100%; padding:15px 16px; border:1px solid #cfdced; border-radius:16px; font-size:16px; outline:none; background:#fff; }
    select:focus,input:focus { border-color:var(--azul2); box-shadow:0 0 0 3px rgba(24,112,168,.13); }
    .cards { display:grid; grid-template-columns:repeat(5,minmax(180px,1fr)); gap:18px; margin-bottom:28px; }
    .card { background:#fff; padding:24px; border-radius:20px; box-shadow:0 4px 16px rgba(15,47,87,.08); border-top:5px solid var(--azul2); min-height:136px; }
    .card h3 { font-size:14px; color:var(--gris); margin-bottom:14px; line-height:1.3; }
    .card .value { font-size:30px; font-weight:900; color:var(--azul); letter-spacing:.2px; }
    .card small { display:block; color:#52617d; margin-top:10px; line-height:1.35; }
    .section-title { color:var(--azul); font-size:26px; margin:14px 0 16px; border-left:7px solid var(--azul2); padding-left:12px; }
    .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(360px,1fr)); gap:22px; }
    .box { background:#fff; padding:22px; border-radius:20px; box-shadow:0 4px 16px rgba(15,47,87,.08); min-height:350px; }
    .box h2 { color:var(--azul); font-size:19px; margin-bottom:14px; }
    .box p { color:#61708a; font-size:13px; margin-bottom:10px; }
    canvas { max-height:285px; }
    .table-box { margin-top:28px; background:#fff; padding:24px; border-radius:20px; box-shadow:0 4px 16px rgba(15,47,87,.08); overflow-x:auto; }
    .table-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:14px; flex-wrap:wrap; }
    .table-head h2 { color:var(--azul); font-size:23px; }
    .badge { background:var(--celeste); color:var(--azul); padding:8px 12px; border-radius:999px; font-weight:800; font-size:13px; }
    table { width:100%; border-collapse:collapse; min-width:1050px; }
    th,td { padding:7px 10px; border-bottom:1px solid #edf0f5; text-align:left; font-size:13px; vertical-align:middle; line-height:1.15; }
    th { background:var(--azul); color:#fff; position:sticky; top:0; z-index:1; padding:10px 10px; }
    td.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
    tr:hover { background:#f8fbff; }
    .pill { display:inline-block; border-radius:999px; padding:3px 8px; font-size:12px; font-weight:800; background:var(--celeste); color:var(--azul); white-space:nowrap; }
    .muted { color:#667085; }
    footer { text-align:center; padding:24px; color:#667085; font-size:13px; }
    @media (max-width:1100px) { .cards { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); } .filters { grid-template-columns:1fr; } }

    /* ===== Estilo institucional tipo home-page Hermes Gaibor ===== */
    .home-page { min-height:100vh; background:#f3f6fb; }
    .hg-topbar { background:#fff; padding:14px 24px; border-bottom:1px solid #e7edf5; }
    .hg-topbar-inner { width:96%; max-width:1500px; margin:0 auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:18px; }
    .hg-social { display:flex; gap:10px; align-items:center; }
    .hg-social a { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; color:#0f2f57; background:#e8f3fb; text-decoration:none; transition:.25s; }
    .hg-social a:hover { color:#fff; background:#1870a8; transform:translateY(-2px); }
    .hg-logo-link { display:flex; align-items:center; justify-content:center; gap:12px; color:#0f2f57; font-weight:900; text-decoration:none; letter-spacing:.2px; }
    .hg-logo-link img { max-height:66px; max-width:220px; object-fit:contain; }
    .hg-logo-fallback { font-size:20px; text-align:center; line-height:1.05; }
    .hg-logo-fallback small { display:block; font-size:12px; color:#1870a8; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
    .hg-online-wrap { display:flex; justify-content:flex-end; }
    .hg-online-btn { position:relative; display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:999px; background:linear-gradient(135deg,#0f2f57,#1870a8); color:#fff; text-decoration:none; font-weight:800; box-shadow:0 10px 24px rgba(15,47,87,.22); overflow:hidden; }
    .hg-online-btn:before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent); transform:translateX(-100%); transition:.45s; }
    .hg-online-btn:hover:before { transform:translateX(100%); }
    .hg-online-btn i { z-index:1; }
    .hg-online-btn span { z-index:1; }

    .hg-menu-wrap { background:#0f2f57; position:sticky; top:0; z-index:50; box-shadow:0 8px 24px rgba(15,47,87,.18); }
    .hg-menu { width:96%; max-width:1500px; margin:0 auto; display:flex; align-items:center; justify-content:center; min-height:58px; position:relative; }
    .hg-nav-links { list-style:none; display:flex; gap:4px; align-items:center; justify-content:center; flex-wrap:wrap; }
    .hg-nav-links li { position:relative; }
    .hg-nav-links a { color:#fff; text-decoration:none; display:flex; align-items:center; gap:8px; padding:18px 15px; font-size:14px; font-weight:700; transition:.25s; border-radius:12px; }
    .hg-nav-links a:hover, .hg-nav-links a.active { background:#1870a8; }
    .hg-dropdown-content { display:none; position:absolute; min-width:245px; background:#fff; border-radius:0 0 16px 16px; overflow:hidden; box-shadow:0 18px 34px rgba(15,47,87,.18); top:100%; left:0; z-index:60; }
    .hg-dropdown-content a { color:#0f2f57; padding:13px 16px; border-radius:0; justify-content:flex-start; }
    .hg-dropdown-content a:hover { background:#e8f3fb; color:#1870a8; }
    .hg-dropdown:hover .hg-dropdown-content { display:block; }
    .hg-hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; position:absolute; right:0; }
    .hg-hamburger span { width:28px; height:3px; border-radius:999px; background:#fff; }

    .hg-hero { background:radial-gradient(circle at top left,rgba(24,112,168,.35),transparent 30%), linear-gradient(135deg,#0f2f57 0%,#123f73 48%,#1870a8 100%); color:#fff; padding:58px 24px 52px; position:relative; overflow:hidden; }
    .hg-hero:after { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background:rgba(255,255,255,.08); right:-120px; top:-160px; }
    .hg-hero-inner { width:96%; max-width:1500px; margin:0 auto; position:relative; z-index:2; display:grid; grid-template-columns:1.15fr .85fr; gap:26px; align-items:center; }
    .hg-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.25); padding:9px 13px; border-radius:999px; font-size:13px; font-weight:800; margin-bottom:16px; }
    .hg-hero h1 { font-size:clamp(30px,4.2vw,52px); line-height:1.08; margin-bottom:14px; letter-spacing:-.6px; }
    .hg-hero p { font-size:17px; opacity:.95; max-width:850px; line-height:1.55; }
    .hg-hero-actions { margin-top:24px; display:flex; flex-wrap:wrap; gap:12px; }
    .hg-hero-btn, .hg-hero-btn-light { display:inline-flex; align-items:center; gap:9px; padding:13px 18px; border-radius:999px; text-decoration:none; font-weight:800; }
    .hg-hero-btn { background:#fff; color:#0f2f57; }
    .hg-hero-btn-light { color:#fff; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); }
    .hg-hero-card { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); border-radius:24px; padding:24px; backdrop-filter:blur(10px); box-shadow:0 22px 50px rgba(0,0,0,.14); }
    .hg-hero-card h3 { font-size:18px; margin-bottom:14px; }
    .hg-hero-stat { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.16); }
    .hg-hero-stat:last-child { border-bottom:0; }
    .hg-hero-stat span { opacity:.86; }
    .hg-hero-stat strong { font-size:20px; }

    .hg-breadcrumb { width:96%; max-width:1500px; margin:22px auto 0; display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:#52617d; font-size:13px; }
    .hg-breadcrumb a { color:#1870a8; text-decoration:none; font-weight:800; }
    .dashboard-shell { width:96%; max-width:1500px; margin:22px auto 40px; }
    .container { width:100%; max-width:1500px; margin:0 auto; }
    .notice { margin-top:0; }

    .hg-info-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin-bottom:24px; }
    .hg-info-card { background:#fff; border-radius:18px; padding:20px; box-shadow:0 4px 16px rgba(15,47,87,.08); border:1px solid #e7edf5; }
    .hg-info-card i { color:#1870a8; font-size:24px; margin-bottom:12px; }
    .hg-info-card h3 { color:#0f2f57; font-size:17px; margin-bottom:8px; }
    .hg-info-card p { color:#59677f; font-size:13px; line-height:1.45; }

    .hg-footer { color:#e8f3fb; background:#0f2f57; margin-top:44px; }
    .hg-footer-main { padding:42px 24px 26px; background:linear-gradient(135deg,#0f2f57,#123f73); }
    .hg-footer-inner { width:96%; max-width:1500px; margin:0 auto; display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:24px; }
    .hg-footer-widget { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:22px; min-height:170px; }
    .hg-footer-widget h5 { color:#fff; font-size:18px; margin-bottom:12px; }
    .hg-footer-widget p, .hg-footer-widget a { color:#d6e5f7; font-size:14px; line-height:1.55; text-decoration:none; }
    .hg-footer-widget i { color:#78c6f4; margin-right:8px; }
    .hg-footer-btn { display:inline-flex; margin-top:12px; background:#1870a8; color:#fff !important; padding:10px 14px; border-radius:999px; font-weight:800; }
    .hg-sub-footer { background:#071d38; padding:17px 24px; }
    .hg-sub-footer-inner { width:96%; max-width:1500px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; }
    .hg-footer-social { list-style:none; display:flex; gap:10px; }
    .hg-footer-social a { width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.1); color:#fff; border-radius:50%; text-decoration:none; }
    .scrollup { position:fixed; right:18px; bottom:18px; width:44px; height:44px; background:#1870a8; color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; text-decoration:none; box-shadow:0 12px 26px rgba(15,47,87,.22); z-index:70; }

    @media (max-width:900px) {
      .hg-topbar-inner { grid-template-columns:1fr; text-align:center; }
      .hg-social, .hg-online-wrap { justify-content:center; }
      .hg-hero-inner { grid-template-columns:1fr; }
      .hg-nav-links { display:none; width:100%; flex-direction:column; align-items:stretch; padding:12px 0; }
      .hg-nav-links.is-open { display:flex; }
      .hg-menu { justify-content:flex-start; padding:10px 0; }
      .hg-hamburger { display:flex; top:22px; }
      .hg-dropdown-content { position:static; box-shadow:none; border-radius:12px; margin:0 12px 8px; }
      .hg-dropdown:hover .hg-dropdown-content { display:none; }
      .hg-dropdown.open .hg-dropdown-content { display:block; }
      .hg-footer-inner { grid-template-columns:1fr; }
    }

/* Fallback visual para Laragon cuando Chart.js no está disponible */
.fallback-chart { display:flex; flex-direction:column; gap:10px; min-height:245px; max-height:285px; overflow:auto; padding:6px 2px; }
.fallback-alert { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; padding:8px 10px; border-radius:12px; font-size:12px; display:flex; align-items:center; gap:8px; }
.fallback-row, .fallback-bar-row { display:grid; grid-template-columns: minmax(110px, 1fr) 2fr minmax(72px, auto); gap:8px; align-items:center; font-size:12px; }
.fallback-group { border-bottom:1px solid #edf0f5; padding:4px 0 8px; }
.fallback-group-title { color:#0f2f57; font-weight:800; font-size:12px; margin-bottom:5px; }
.fallback-track { display:block; height:10px; background:#edf2f7; border-radius:999px; overflow:hidden; }
.fallback-track span { display:block; height:100%; border-radius:999px; min-width:0; }
.fallback-label { display:flex; align-items:center; gap:6px; font-weight:700; color:#314568; }
.fallback-dot { width:10px; height:10px; border-radius:50%; flex:0 0 auto; }
.fallback-series { color:#59677f; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fallback-value, .fallback-bar-row strong { text-align:right; color:#06152d; font-variant-numeric:tabular-nums; }


/* Oculta avisos de versiones anteriores: ahora los gráficos se dibujan localmente en canvas. */
.chart-alert, .chart-warning, .fallback-alert, .fallback-warning, .chartjs-warning, .chartjs-alert, .local-chart-warning {
  display: none !important;
}
/* ==========================================================================
   ¡CORRECCIÓN INMEDIATA DE CONTRASTE PARA EL HERO DE INDICADORES DE GÉNERO!
   ========================================================================== */

/* Fuerza el Título Principal H1 y su texto a blanco brillante */
#wrapper .hg-genero-hero h1,
.hg-genero-hero h1,
.hg-genero-hero .hg-genero-hero-content h1 {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Fuerza el texto secundario (Span) dentro del H1 a Amarillo/Dorado Corporativo */
#wrapper .hg-genero-hero h1 span,
.hg-genero-hero h1 span,
.hg-genero-hero .hg-genero-hero-content h1 span {
    color: #ffd466 !important; /* Dorado claro premium */
    opacity: 1 !important;
}

/* Fuerza el párrafo explicativo a blanco translúcido legible */
#wrapper .hg-genero-hero p,
.hg-genero-hero p,
.hg-genero-hero .hg-genero-hero-content p {
    color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

/* Asegura que la insignia superior mantenga su color dorado sin opacidad */
.hg-genero-hero .hg-genero-badge {
    color: #ffd466 !important;
    opacity: 1 !important;
}
/* ==========================================================================
   ¡SOLUCIÓN DE CONTRASTE RADICAL PARA EL HEADER DE INDICADORES DE GÉNERO!
   ========================================================================== */

/* Fuerza el título principal del encabezado a blanco brillante */
html body #wrapper header h1,
html body header h1,
#wrapper header h1,
header h1 {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Fuerza el párrafo o subtítulo descriptivo a blanco translúcido legible */
html body #wrapper header p,
html body header p,
#wrapper header p,
header p {
    color: rgba(255, 255, 255, 0.94) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 15px !important;
}
/* ==========================================================================
   ¡BYPASS ABSOLUTO DE COLOR PARA EL HEADER DE GÉNERO!
   ========================================================================== */

/* Forza el color blanco sobre cualquier etiqueta H1 dentro del header */
html body #wrapper header h1,
body #wrapper header h1,
#wrapper header h1,
header h1,
.home-page header h1 {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}

/* Forza el color blanco translúcido en el párrafo descriptivo */
html body #wrapper header p,
body #wrapper header p,
#wrapper header p,
header p,
.home-page header p {
    color: rgba(255, 255, 255, 0.96) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}
/* ==========================================================================
   ¡DESTRUCCIÓN ABSOLUTA DE COLOR OSCURO EN EL HEADER DE GÉNERO!
   ========================================================================== */

/* Fuerza el título principal a color blanco puro */
#wrapper header h1,
header h1,
.home-page header h1,
html body #wrapper header h1 {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Fuerza el texto descriptivo inferior a blanco translúcido legible */
#wrapper header p,
header p,
.home-page header p,
html body #wrapper header p {
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}
/* ==========================================================================
   ESTILOS PREMIUM PARA EL NUEVO HERO DE GÉNERO
   ========================================================================== */

.hg-genero-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 34px;
  align-items: center;
  padding: 76px clamp(18px, 5vw, 84px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(236, 72, 153, 0.18), transparent 24%),
    linear-gradient(135deg, #082a67 0%, #0d58b0 62%, #1b94e8 100%) !important;
  border-bottom: 6px solid #ec4899;
}

.hg-genero-hero-inner {
  display: contents;
}

.hg-genero-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Forzado de textos del Hero a Blanco Brillante */
.hg-genero-hero-content h1 {
  color: #ffffff !important;
  font-size: clamp(32px, 4vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  text-align: left !important;
}

.hg-genero-hero-content h1 span {
  color: #ffd466 !important; /* Dorado sutil institucional */
  display: inline-block;
}

.hg-genero-hero-content p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  max-width: 620px !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Badge Superior */
.hg-genero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Botones de Acción */
.hg-genero-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.hg-genero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #ec4899 !important; /* Rosa Género */
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.hg-genero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.45);
}

.hg-genero-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.hg-genero-btn-light:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
}

/* Tarjeta Lateral de Métricas */
.hg-genero-hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hg-genero-hero-card h3 {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 18px !important;
}

.hg-genero-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hg-genero-stat:last-child {
  border-bottom: none;
}

.hg-genero-stat span {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px;
}

.hg-genero-stat strong {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
}

/* Adaptabilidad para Dispositivos Móviles */
@media (max-width: 900px) {
  .hg-genero-hero {
    grid-template-columns: 1fr;
    padding: 50px 20px;
  }
  .hg-genero-hero-card {
    margin-top: 10px;
  }
}
