/* ============================================================
   crm-base.css  ·  Refresh suave para templates/crm/base.html
   Solo acentos de color sobre la estructura existente. No agrega
   líneas, gradientes ni pseudo-elementos que rompan la maqueta.
   Paleta: --color-heading: #0B2E44 · --color-secondary: #F86F03
   ============================================================ */

:root {
    --sn-heading: #0B2E44;
    --sn-secondary: #F86F03;
    --sn-secondary-glow: rgba(248, 111, 3, 0.18);
}

/* -----------------------------------------------------------
   Navbar  ·  Fondo azul institucional + logo en blanco vía filter
   El estado .sticky (al hacer scroll) lleva !important en el CSS
   original (var(--color-white) !important), por lo que aquí
   también se usa !important para mantener el azul al hacer scroll.
   ----------------------------------------------------------- */
.edu-header,
.edu-header.disable-transparent,
.edu-header.header-sticky,
.edu-header.header-sticky.sticky {
    background-color: var(--sn-heading) !important;
}

/* Compactar altura del navbar (default y sticky)
   Theme original: .disable-transparent .logo a = 90px; sticky = 80px.
   Forzamos ~60px en ambos estados con !important.            */
.edu-header.header-sticky {
    min-height: auto;
}

.edu-header .logo a,
.edu-header.disable-transparent .logo a {
    height: 60px !important;
    line-height: 60px !important;
    display: inline-flex !important;
    align-items: center;
}

.edu-header.header-sticky.sticky {
    height: 60px !important;
}

.edu-header.header-sticky.sticky .logo a {
    height: 60px !important;
    line-height: 60px !important;
}

/* Logo blanco (markup ya usa ep_blanco_letras.svg) — solo altura compacta */
.edu-header .logo img.logo-light,
.edu-header .logo a img {
    max-height: 34px !important;
    width: auto;
    transition: transform 0.25s ease;
}

.edu-header .logo a:hover img.logo-light {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .edu-header .logo img.logo-light,
    .edu-header .logo a img {
        max-height: 28px !important;
    }
    .edu-header .logo a,
    .edu-header.disable-transparent .logo a,
    .edu-header.header-sticky.sticky .logo a {
        height: 56px !important;
        line-height: 56px !important;
    }
    .edu-header.header-sticky.sticky {
        height: 56px !important;
    }
}

/* Espaciado del menú principal — separar items */
.edu-header .mainmenu-nav .mainmenu {
    gap: 6px;
}

.edu-header .mainmenu-nav .mainmenu > li {
    margin: 0;
}

.edu-header .mainmenu-nav .mainmenu > li > a {
    font-size: 14px;
    padding: 0 18px !important;
    display: flex;
    align-items: center;
    height: 60px;
    line-height: normal;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .edu-header .mainmenu-nav .mainmenu {
        gap: 10px;
    }
    .edu-header .mainmenu-nav .mainmenu > li > a {
        padding: 0 22px !important;
    }
}

/* Botón hamburguesa móvil — ícono blanco */
.edu-header .hamberger-button,
.edu-header .hamberger-button i {
    color: #fff;
}

/* -----------------------------------------------------------
   Menú principal — links blancos sobre azul, hover naranja
   ----------------------------------------------------------- */
.edu-header .mainmenu-nav .mainmenu > li > a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.edu-header .mainmenu-nav .mainmenu > li:hover > a,
.edu-header .mainmenu-nav .mainmenu > li.active > a {
    color: var(--sn-secondary);
}

/* Carrito (icono y contador) — naranja del brand */
.edu-header .mainmenu-nav .mainmenu > li > a[href="/finanzas"] {
    color: var(--sn-secondary) !important;
}

/* Submenús desplegables — quedan en blanco con texto azul (legibilidad) */
.mainmenu-nav .mainmenu .submenu li a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mainmenu-nav .mainmenu .submenu li a:hover {
    color: var(--sn-secondary);
}

/* -----------------------------------------------------------
   Mobile menu — solo color en links al hover
   ----------------------------------------------------------- */
.popup-mobile-menu .mainmenu > li > a {
    transition: color 0.2s ease;
}

.popup-mobile-menu .mainmenu > li > a:hover,
.popup-mobile-menu .mainmenu .submenu li a:hover {
    color: var(--sn-secondary);
}

/* -----------------------------------------------------------
   Footer — armoniza con el navy del header
   ----------------------------------------------------------- */
.eduvibe-footer-one.edu-footer,
.eduvibe-footer-one.edu-footer .footer-top {
    background-color: var(--sn-heading) !important;
    background-image:
        radial-gradient(900px 460px at 8% 0%, rgba(248, 111, 3, 0.12), transparent 60%),
        radial-gradient(700px 360px at 100% 110%, rgba(255, 255, 255, 0.04), transparent 60%) !important;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.eduvibe-footer-one.edu-footer::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sn-secondary), transparent 70%);
    z-index: 2;
}

.eduvibe-footer-one .footer-top {
    padding-top: 60px;
    padding-bottom: 40px;
}

.eduvibe-footer-one .edu-footer-widget .description {
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.6;
}

.eduvibe-footer-one .widget-title {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding-bottom: 12px;
    margin-bottom: 18px;
    position: relative;
}

.eduvibe-footer-one .widget-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--sn-secondary);
}

.eduvibe-footer-one .edu-footer-widget .submenu li,
.eduvibe-footer-one .edu-footer-widget .information-list li {
    margin-bottom: 8px;
}

.eduvibe-footer-one .edu-footer-widget .submenu li a,
.eduvibe-footer-one .edu-footer-widget .information-list li a,
.eduvibe-footer-one .footer-link.link-hover li a {
    color: rgba(255, 255, 255, 0.82) !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.eduvibe-footer-one .edu-footer-widget .submenu li a:hover,
.eduvibe-footer-one .edu-footer-widget .information-list li a:hover,
.eduvibe-footer-one .footer-link.link-hover li a:hover {
    color: var(--sn-secondary) !important;
    padding-left: 6px;
}

.eduvibe-footer-one .edu-footer-widget .information-list li {
    color: rgba(255, 255, 255, 0.78);
}

.eduvibe-footer-one .edu-footer-widget .information-list li i {
    color: var(--sn-secondary);
    margin-right: 6px;
}

.eduvibe-footer-one .social-share {
    margin-top: 18px;
}

.eduvibe-footer-one .social-share li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.eduvibe-footer-one .social-share li a:hover {
    background: var(--sn-secondary);
    color: #fff;
    border-color: var(--sn-secondary);
    transform: translateY(-2px);
}

.eduvibe-footer-one .copyright-area,
.eduvibe-footer-one .copyright-area.copyright-default {
    background: rgba(0, 0, 0, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    height: auto !important;
    padding: 18px 0;
}

.eduvibe-footer-one .copyright-area p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.02em;
}

.eduvibe-footer-one .copyright-area a {
    color: var(--sn-secondary);
}

/* Cubrir bloques con utilidad .text-white que vienen inline en el footer */
.eduvibe-footer-one .text-white {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Ocultar shapes decorativas que ya no encajan con el fondo navy */
.eduvibe-footer-one .shape-dot-wrapper .shape-image-1 img,
.eduvibe-footer-one .shape-dot-wrapper .shape-image-2 img {
    opacity: 0.18;
    filter: brightness(2);
}

/* Métodos de pago — fondo claro en pill para que los logos resalten */
.eduvibe-footer-one .card-type-display {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

/* -----------------------------------------------------------
   Spinner / blockUI — color naranja del brand
   ----------------------------------------------------------- */
.blockUI .spinner-border-lg {
    color: var(--sn-secondary) !important;
}

/* -----------------------------------------------------------
   SweetAlert — solo botón confirmar al heading
   ----------------------------------------------------------- */
.swal2-styled.swal2-confirm {
    background-color: var(--sn-heading) !important;
}

.swal2-icon.swal2-warning {
    border-color: var(--sn-secondary) !important;
    color: var(--sn-secondary) !important;
}

/* -----------------------------------------------------------
   Selección de texto
   ----------------------------------------------------------- */
::selection {
    background: var(--sn-secondary);
    color: #fff;
}

/* -----------------------------------------------------------
   Scrollbar (webkit) — discreto
   ----------------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f4f8;
}

::-webkit-scrollbar-thumb {
    background: rgba(11, 46, 68, 0.45);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sn-secondary);
}

/* -----------------------------------------------------------
   Modal Noticias  ·  diseño editorial moderno
   ----------------------------------------------------------- */

#itemNoticias .modal-dialog {
    max-width: min(740px, 96vw);
    margin: 8px auto;
}

/* Tarjeta blanca limpia */
#itemNoticias .modal-wrap {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(11, 46, 68, 0.30);
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Scroll solo en el cuerpo; el header queda fijo arriba */
#itemNoticias .modal-body.p-0 {
    overflow-y: auto;
    max-height: calc(100vh - 110px);
}

#itemNoticias .modal-content {
    background: transparent;
    border: none;
}

/* Encabezado: barra azul institucional */
#itemNoticias .modal-header {
    background: var(--sn-heading);
    border-bottom: none !important;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#itemNoticias .modal-header .paneltitle {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    flex: 1;
    padding-right: 14px;
    white-space: normal;
}

/* Botón X blanco */
#itemNoticias .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.85;
    flex-shrink: 0;
    background-size: 14px 14px;
    transition: opacity 0.2s, transform 0.2s;
}

#itemNoticias .modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.18);
}

/* Imagen: ancho completo, altura natural, sin fondo de relleno */
#itemNoticias .news-img-wrap {
    width: 100%;
    overflow: hidden;
    background: #dde4ea;
    line-height: 0;
    display: block;
}

#itemNoticias .news-img-wrap a {
    display: block;
    line-height: 0;
}

#itemNoticias .news-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#itemNoticias .news-img-wrap a:hover img {
    transform: scale(1.015);
    opacity: 0.92;
}

/* Cuerpo de texto */
#itemNoticias .news-content-area {
    padding: 22px 26px 10px;
    color: #1a2535;
    font-size: 1rem;
    line-height: 1.8;
}

#itemNoticias .news-content-area p {
    margin-bottom: 0.9em;
    font-size: 1rem;
}

#itemNoticias .news-content-area h1,
#itemNoticias .news-content-area h2,
#itemNoticias .news-content-area h3,
#itemNoticias .news-content-area h4 {
    color: var(--sn-heading);
    margin-top: 1.1em;
    margin-bottom: 0.5em;
}

/* CTA — sin fondo, solo borde superior suave */
#itemNoticias .news-cta-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 26px 22px;
    background: transparent;
    border-top: 1px solid #eef2f7;
}

#itemNoticias .news-dismiss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#itemNoticias .news-dismiss-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

#itemNoticias .news-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sn-secondary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

#itemNoticias .news-cta-btn i {
    font-size: 0.95rem;
}

#itemNoticias .news-cta-btn:hover {
    background: #d95c00;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(248, 111, 3, 0.38);
}

/* Anular residuos de .cuadro-imagen */
#itemNoticias .cuadro-imagen {
    aspect-ratio: unset;
    background: transparent;
    display: block;
    align-items: unset;
    justify-content: unset;
}

@media (max-width: 576px) {
    #itemNoticias .modal-header {
        padding: 14px 16px;
    }
    #itemNoticias .modal-header .paneltitle {
        font-size: 1.05rem;
    }
    #itemNoticias .news-content-area {
        padding: 16px 16px 6px;
        font-size: 0.95rem;
    }
    #itemNoticias .news-cta-area {
        padding: 8px 16px 18px;
        justify-content: center;
    }
}

/* -----------------------------------------------------------
   Breadcrumb global  ·  identidad UNEMI unificada
   Reemplaza las imágenes (bread3.jpg, etc.) por un fondo
   institucional navy en degradados con halo azul claro.
   Aplica a toda vista CRM que use .edu-breadcrumb-area,
   sin requerir cambios en HTML.
   ----------------------------------------------------------- */
.edu-breadcrumb-area {
    background-image: none !important;
    background:
        radial-gradient(700px 360px at 88% 130%, rgba(91, 154, 198, 0.22), transparent 60%),
        radial-gradient(600px 300px at 5% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
        linear-gradient(135deg, var(--sn-heading) 0%, #143a55 55%, var(--sn-heading) 100%) !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 3px solid var(--sn-secondary);
}

.edu-breadcrumb-area::before,
.edu-breadcrumb-area::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
}

.edu-breadcrumb-area::before {
    width: 320px;
    height: 320px;
    top: -130px;
    right: -80px;
    background: radial-gradient(circle at 30% 30%, rgba(91, 154, 198, 0.38), rgba(91, 154, 198, 0) 70%);
    animation: edubcFloat 9s ease-in-out infinite;
}

.edu-breadcrumb-area::after {
    width: 200px;
    height: 200px;
    bottom: -90px;
    left: 12%;
    background: radial-gradient(circle at 30% 30%, rgba(248, 111, 3, 0.22), rgba(248, 111, 3, 0) 70%);
    animation: edubcFloat 11s ease-in-out infinite reverse;
}

.edu-breadcrumb-area > * { position: relative; z-index: 2; }

.edu-breadcrumb-area .page-title .title {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.edu-breadcrumb-area .edu-breadcrumb li,
.edu-breadcrumb-area .edu-breadcrumb li a,
.edu-breadcrumb-area .edu-breadcrumb li.breadcrumb-item {
    color: rgba(255, 255, 255, 0.85);
}

.edu-breadcrumb-area .edu-breadcrumb li a:hover {
    color: #9ed1eb;
}

.edu-breadcrumb-area .edu-breadcrumb li.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 700;
}

.edu-breadcrumb-area .edu-breadcrumb li.separator i,
.edu-breadcrumb-area .separator i {
    color: rgba(255, 255, 255, 0.55);
}

/* Shapes decorativas del tema base ya no encajan con el fondo navy */
.edu-breadcrumb-area .shape-image,
.edu-breadcrumb-area .eduvibe-animated-shape > .shape {
    display: none !important;
}

@keyframes edubcFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -10px) scale(1.08); }
}
