/* =========================================================================
   LUCIDE ICONS + REFINAMIENTO VISUAL
   Se carga después de pro-ui.css (y después del <style> de cada página).
   Solo toca propiedades cosméticas.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1 · ICONOS LUCIDE
   Los <i class="bi bi-..."> conservan sus clases y estilos; la capa JS
   (assets/js/lucide-icons.js) les inserta un <svg> de Lucide. Aquí se anula
   el glifo de Bootstrap Icons y se ajusta el tamaño/alineación del SVG para
   que ocupe exactamente el lugar del icono original.
   ------------------------------------------------------------------------- */
i[data-lucide-icon]::before,
i.bi.lucide-icon::before,
i.lucide-icon::before {
    content: none !important;
    display: none !important;
}

i[data-lucide-icon],
i.lucide-icon {
    font-style: normal;
    line-height: 1;
}

i[data-lucide-icon] > svg.lucide-icon-svg {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    vertical-align: -0.125em;
    stroke-width: 1.85;
    overflow: visible;
}

/* En el menú lateral el icono vive dentro de un recuadro de 42px:
   se le da un poco más de presencia sin tocar el layout. */
body .sidebar .menu-item .menu-icon > svg.lucide-icon-svg {
    width: 1.2em;
    height: 1.2em;
}

body .sidebar.collapsed .menu-item .menu-icon > svg.lucide-icon-svg {
    width: 1.05em;
    height: 1.05em;
}

/* -------------------------------------------------------------------------
   2 · DETALLES TIPOGRÁFICOS Y DE DATOS
   ------------------------------------------------------------------------- */
body {
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
}

body ::selection {
    background: rgba(71, 85, 105, 0.18);
    color: inherit;
}

/* Encabezados de tabla como micro-etiquetas: más limpios y legibles */
body .table thead th,
body .tabla-solicitudes thead th,
body .tabla-embarazadas thead th,
body .tabla-usuarios thead th,
body .tabla-solicitantes thead th {
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------
   3 · ICONOS DENTRO DE BOTONES Y CAMPOS
   ------------------------------------------------------------------------- */
body .btn > i.lucide-icon,
body .btn > svg.lucide-icon-svg {
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   4 · TEXTO BLANCO EN CABECERAS OSCURAS
   La capa pro-ui fija el color de todos los h1–h6; sin esta regla el título
   de una tarjeta con cabecera oscura queda invisible (texto oscuro sobre fondo
   oscuro), como ocurría en el Catálogo de Ayudas.
   ------------------------------------------------------------------------- */
body .card-header.text-white h1,
body .card-header.text-white h2,
body .card-header.text-white h3,
body .card-header.text-white h4,
body .card-header.text-white h5,
body .card-header.text-white h6,
body .modal-header.text-white h1,
body .modal-header.text-white h2,
body .modal-header.text-white h3,
body .modal-header.text-white h4,
body .modal-header.text-white h5,
body .modal-header.text-white h6 {
    color: #ffffff !important;
}

/* -------------------------------------------------------------------------
   5 · PORTADA PÚBLICA (index.php) · CONTRASTE EN ESCALA DE GRISES
   Se mantiene la paleta gris; solo se oscurece el velo y se da más presencia
   al texto y al botón para que la portada se lea mejor.
   ------------------------------------------------------------------------- */
body .hero-carrusel .carrusel-slide::after {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(30, 41, 59, 0.62) 45%,
        rgba(15, 23, 42, 0.60) 100%
    );
}

body .hero-carrusel .hero-title .text-accent {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body .hero-carrusel .hero-side-card::before {
    background: linear-gradient(90deg, #334155, #94a3b8);
}

body .top-nav .btn-login-nav {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

body .top-nav .btn-login-nav:hover {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

body .cta-final {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

body .section-tag {
    background: #f1f5f9;
    color: #334155;
}
