/* ============================================
   0) ELIMINAR ESPACIO SUPERIOR DEL TEMA
============================================ */
.entry-content.is-layout-constrained > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html {
    margin-top: 0 !important;
}

/* ============================================
   BARRA DEL CAMPUS — FONDO EXTENDIDO
============================================ */
#bazan-campus-header {
    position: relative;
    width: 100%;
    background: transparent !important;
    z-index: 10;
}

/* Fondo extendido SOLO detrás del banner */
#bazan-campus-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    margin-left: -50vw;

    background: linear-gradient(180deg, #007fa2 0%, #0A2A43 100%);
    z-index: -1;

    pointer-events: none;   /* evita interferencias */
}

/* Línea divisoria extendida */
#bazan-campus-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    height: 1px;
    background: #e0e0e0;
}

/* Contenedor interior: mantener altura y evitar que se estire */
.bazan-campus-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    margin: 0;
    padding: 8px 12px;

    background: transparent !important;
    position: relative;      /* clave: fija el contenido */
    z-index: 1;              /* queda por encima del fondo */
}


/* ============================================
   2) NUEVO MENÚ SUPERIOR — SOLO CAMBIO DE COLORES
============================================ */
.bazan-campus-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.bazan-menu-item {
    background: transparent !important;      /* SIN FONDO */
    border: 1px solid #0EA5C6 !important;    /* BORDE TURQUESA SATURADO */
    border-radius: 6px;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;

    display: flex;                           /* NO SE TOCA */
    flex-direction: column;                  /* NO SE TOCA */
    justify-content: center;                 /* NO SE TOCA */
    align-items: center;                     /* NO SE TOCA */

    position: relative;                      /* NECESARIO PARA BADGE */

    transition: background 0.2s ease,
                border-color 0.2s ease,
                opacity 0.2s ease;
}

.bazan-menu-perfil .bazan-menu-icon {
    filter: invert(63%) sepia(93%) saturate(600%) hue-rotate(165deg) brightness(95%) contrast(95%);
}

/* HOVER → fondo corporativo + borde blanco */
.bazan-menu-item:hover {
    background: #007fa2 !important;          /* FONDO CORPORATIVO */
    border-color: #ffffff !important;        /* BORDE BLANCO */
    opacity: 1;
}

/* ACTIVO → igual que hover */
.bazan-menu-item.active {
    background: #007fa2 !important;          /* FONDO CORPORATIVO */
    border-color: #ffffff !important;        /* BORDE BLANCO */
}

.bazan-menu-icon {
    font-size: 22px;
    margin-bottom: 4px;
    color: #ffffff !important;               /* ICONO BLANCO */
}

.bazan-menu-text {
    font-size: clamp(10px, 3.5vw, 14px);
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff !important;               /* TEXTO BLANCO */
}


/* ============================================
   BADGES OVALADOS (PÍLDORA)
============================================ */
.bazan-badge {
    position: absolute;
    top: -4px;
    right: -4px;

    height: 18px;
    padding: 0 6px;
    border-radius: 999px;

    background: #e53935;
    color: white;
    font-size: 12px;
    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;

    white-space: nowrap;
    line-height: 1;

    z-index: 5;                           /* Asegura que se vea */
}


/* ============================================
   3) SUBMENÚ PERFIL
============================================ */
.bazan-menu-perfil {
    position: relative;
}

.bazan-submenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);

    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    padding: 6px 0;
    min-width: 160px;

    display: none;
    z-index: 9999;
    
    text-align: left;
}

.bazan-submenu.visible {
    display: block;
}

.bazan-submenu div {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
}

.bazan-submenu div:hover {
    background: #f2f2f2;
}

/* ============================================
   4) MENÚ ADMIN
============================================ */
.bazan-campus-admin {
    position: relative;
}

.bazan-campus-admin-btn {
    background: #E67E22;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #cf6f1d;
    transition: background 0.2s ease, border-color 0.2s ease;

    /* Corrección: icono + texto en una sola línea */
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bazan-campus-admin-btn:hover {
    background: #cf6f1d;
    border-color: #b86119;
}

.bazan-campus-admin-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;

    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    padding: 6px 0;
    min-width: 200px;

    display: none;
    z-index: 9999;
}

.bazan-campus-admin-menu.visible {
    display: block;
}

.bazan-campus-admin-menu div {
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 15px;
}

.bazan-campus-admin-menu div:hover {
    background: #f2f2f2;
}

/* ============================================
   5) RESPONSIVE — ESCRITORIO
============================================ */
@media (min-width: 768px) {

    .bazan-campus-menu {
        display: flex;
        gap: 12px;
    }

    .bazan-menu-item {
        flex-direction: row;
        gap: 6px;
        padding: 6px 12px;
    }

    .bazan-menu-icon {
        margin-bottom: 0;
        font-size: 18px;
    }

    .bazan-menu-text {
        font-size: 15px;
    }
}

/* ============================================
   6) CONTENIDO DEL CAMPUS
============================================ */
#bazan-campus {
    margin-top: 0 !important;
}

/* Con admin bar → empujar SOLO la barra del campus */
body.admin-bar #bazan-campus-header {
    margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #bazan-campus-header {
        margin-top: 46px !important;
    }
}



/* ============================
   MODAL GENÉRICO DE AVISOS
   ============================ */
.bazan-modal-generico {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    
    display: none; /* Se cambia a 'flex' por JS al abrir */
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    box-sizing: border-box;
    z-index: 999999;
}

/* Contenido del modal (mantiene el texto alineado a la izquierda) */
.bazan-modal-generico-contenido {
    background: #fff;
    width: 90%;
    max-width: 650px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: left; /* Asegura que el título y mensaje estén a la izquierda */
}

/* Títulos y texto */
.bazan-modal-generico-contenido h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.bazan-modal-generico-contenido h4 {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Botón centrado individualmente */
.bazan-modal-generico-btn {
    display: block;       /* Permite que los márgenes automáticos funcionen */
    margin-top: 25px;
    margin-left: auto;   /* Empuja desde la izquierda */
    margin-right: auto;  /* Empuja desde la derecha */
    padding: 10px 24px;
    background: #007fa2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.bazan-modal-generico-btn:hover {
    background: #005f8d;
}

/* ============================
   BADGE DE VENCIMIENTO DEL CURSO. Aviso en menú principal, submenú y cursos
   ============================ */

.bazan-card-expirebox {
    background: #eef6ff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
}

.bazan-expire-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
}

.bazan-expire-date {
    font-weight: normal;
}

.bazan-expire-status {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
}

/* Suscripción vencida */
.bazan-expire-red {
    background: #d32f2f;
    color: #fff;
}

/* Últimos 7 días */
.bazan-expire-orange {
    background: #f57c00;
    color: #fff;
}


/* Icono de exclamación aviso fin de suscripción (estilo base) */
.bazan-suscrip-icon {
    font-size: 16px;
    color: #d32f2f;
    font-weight: bold;
    display: none; /* Se activa con JS */
}

/* Icono en el botón Cuenta (posición absoluta en la esquina) */
.bazan-menu-item[data-action="perfil"] #suscripcion-badge {
    position: absolute;
    top: -15px;     /* alineado con el badge del correo */
    right: -10px;    /* esquina superior derecha */
    font-size: 20px; /* más grande para equilibrar visualmente */
    color: #d32f2f;
    font-weight: bold;
    display: none;
}

/* Icono en el submenú Suscripciones (posición absoluta dentro del item) */
#bazan-submenu-perfil div[data-action="suscripciones"] {
    position: relative;
}

#bazan-submenu-perfil div[data-action="suscripciones"] .bazan-suscrip-icon {
    position: absolute;
    top: -5px;        /* más abajo → se acerca al texto */
    right: 25px;      /* más hacia dentro → queda junto al texto */
    font-size: 18px; /* tamaño equilibrado */
    display: none;
}


