/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN BASE (PUCE CORES)
   ========================================================================== */
:root {
    --puce-blue: #004b93;       /* Azul institucional primario */
    --puce-teal: #3baea0;       /* Verde azulado para servicios académicos */
    --puce-btn-teal: #00bfa5;   /* Turquesa vivo para botón de inicio de sesión */
}

/* Clases utilitarias de color */
.custom-txt-blue { color: var(--puce-blue); }
.custom-border-purple { border-color: #8e44ad !important; }

/* Botones con colores de marca exactos */
.custom-btn-dark-blue { background-color: #1e3a5f; }
.custom-btn-orange { background-color: #e67e22; }
.custom-btn-teal { background-color: var(--puce-btn-teal); }
.custom-btn-purple { background-color: #8942a5; }
.custom-btn-violet { background-color: #7d359c; }

/* ==========================================================================
   2. BARRA SUPERIOR Y CABECERA BANNER (COMÚN EN AMBAS VISTAS)
   ========================================================================== */
.main-banner-header {
    background-image: url('../img/franja-azul.png'); 
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.logo-puce {
    max-height: 52px;
    width: auto;
}

/* Botón interactivo de la Gaceta de la PUCE */
.custom-gaceta-btn {
    background-color: transparent;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease-in-out;
}

.custom-gaceta-btn:hover {
    background-color: var(--puce-blue);
    border-color: var(--puce-blue);
    filter: brightness(0.85);
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Botones de utilería de la barra superior rígida */
.custom-top-btn {
    border-radius: 2px !important;
    font-size: 12.5px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    border: none;
    transition: filter 0.2s ease;
}

.custom-top-btn:hover {
    filter: brightness(0.88);
    color: #ffffff !important;
}

/* Línea divisoria vertical gris de la barra superior */
.custom-top-divider {
    width: 1px;
    height: 22px;
    background-color: #dddddd;
    margin: 0 4px;
    display: inline-block;
}

/* ==========================================================================
   3. CINTA DE SOPORTE (INDEX.HTML - FIEL A IMAGE_5D3A62.PNG)
   ========================================================================== */
.bg-light-gray {
    background-color: #e2e2e2 !important;
}

.custom-ribbon-btn {
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: 2px !important;
    display: inline-flex;
    align-items: center;
    transition: filter 0.2s ease;
}

.custom-ribbon-btn:hover {
    filter: brightness(0.85); 
    color: #ffffff !important;
}

.btn-ribbon-dark { background-color: #1f3141 !important; }
.btn-ribbon-purple { background-color: #8942a5 !important; }
.btn-ribbon-violet { background-color: #7d359c !important; }
.btn-ribbon-blue { background-color: #3b86f7 !important; }

/* ==========================================================================
   4. SECCIÓN DESCARGA PUCEAPP (INDEX.HTML - FIEL A IMAGE_5DA33E.PNG)
   ========================================================================== */
.custom-app-box {
    background-color: #edf7fd !important;
    border: none !important;
}

.custom-app-title {
    color: #556677;
    font-size: 25px;
    font-weight: 300;
}

.custom-app-title strong {
    color: #1f3141;
    font-weight: bold;
}

.custom-app-link {
    color: #4fa3e3 !important;
    font-weight: bold;
    text-decoration: none;
}

.custom-app-link:hover {
    text-decoration: underline;
}

.custom-app-banner-bg {
    background-image: url('../img/app/puceapp-2026-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 185px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 25px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.custom-app-buttons-stack {
    width: 165px;
}

.custom-store-badge {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.15s ease;
}

.custom-store-badge:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* ==========================================================================
   5. BLOQUES DE SERVICIOS DEL HOME (INDEX.HTML - FIEL A IMAGE_5CD80E.PNG)
   ========================================================================== */
.custom-bg-teal { background-color: var(--puce-teal); }
.custom-bg-blue { background-color: #4b71af; }
.custom-bg-gray { background-color: #95a5a6; }

.custom-service-card {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    cursor: pointer;
    overflow: hidden;
}

.custom-service-card:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-icon-center {
    font-size: 3rem; 
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 10px;
}

.card-title-bottom {
    position: absolute;
    bottom: 12px;
    left: 15px;
    font-weight: bold;
    font-size: 12.5px;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.letter-spacing-custom {
    letter-spacing: 8px;
}

/* ==========================================================================
   6. PANEL INTERNO DEL ESTUDIANTE (PANEL.HTML - FIEL A IMAGE_5E39C0.JPG)
   ========================================================================== */
/* Sidebar delgada de iconos izquierda */
.sidebar-icon-strip {
    width: 55px;
    min-width: 55px;
}

.sidebar-icon-link {
    color: #778899;
    font-size: 18px;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    display: block;
    transition: all 0.15s ease;
}

.sidebar-icon-link:hover {
    color: var(--puce-blue);
    background-color: #e9ecef;
}

.sidebar-icon-link.active {
    color: #ffffff;
    background-color: #8c43a2; /* Sintonizado con el morado de la marca */
}

/* Cuadrados del Dashboard (Texto abajo a la izquierda - Fiel a image_5e8fdd.png) */
.dashboard-square-btn {
    height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #ffffff;
    padding: 10px;
    cursor: pointer;
    border-radius: 1px;
    overflow: hidden;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.dashboard-square-btn:hover {
    filter: brightness(0.85);
    transform: translateY(-1px);
}

.dashboard-square-btn i {
    font-size: 2.6rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 15px;
}

.dashboard-square-btn span {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: bold;
    text-align: left;
    max-width: calc(100% - 20px);
    letter-spacing: 0.2px;
}

/* Asignación de colores fijos a las categorías del panel */
.bg-orange { background-color: #e88004 !important; }
.bg-mid-blue { background-color: #2585f3 !important; }
.bg-purple { background-color: #8c43a2 !important; }
.bg-bright-blue { background-color: #3b86f7 !important; }

/* Personalización de tarjetas y componentes del estudiante */
.custom-bg-card-purple {
    background-color: #9152b1 !important;
}

.custom-alert-card-blue {
    background-color: #d9edf7 !important;
    color: #31708f !important;
}

.custom-cyan-progress {
    background-color: #e9ecef;
}

.custom-cyan-progress .progress-bar {
    background-color: var(--puce-teal) !important; /* Barra turquesa de uso de equipos */
}
/* ==========================================================================
   7. VISTA INTERNA: AUTOSERVICIO BANNER ALUMNOS (IMAGE_91D697.JPG)
   ========================================================================== */
/* Caja informativa izquierda color durazno */
.custom-banner-apricot-box {
    background-color: #f1d0a5 !important; /* El tono crema/durazno institucional exacto */
}

/* Color marrón oscuro para el texto del banner */
.custom-txt-banner-brown {
    color: #724707 !important;
}

/* Modificamos las flechas del acordeón para que luzcan limpias y pequeñas */
.custom-accordion-toggle::after {
    background-size: 1rem !important;
}

/* Quita el borde azul molesto al dar clic en los manuales */
.custom-accordion-toggle:focus {
    box-shadow: none !important;
    border-color: rgba(0,0,0,0.125) !important;
}

/* ==========================================================================
BOTÓN DE INGRESO AL AUTOSERVICIO (IMAGE_91EDBB.PNG)
   ========================================================================== */
.custom-banner-submit-btn {
    background-color: #e67e22 !important; /* El color naranja exacto de la captura */
    border-radius: 2px !important;       /* Esquinas casi rectas idénticas al diseño */
    font-size: 14px;
    border: none;
    transition: filter 0.2s ease;
}

/* Efecto de oscurecimiento suave al pasar el cursor */
.custom-banner-submit-btn:hover {
    filter: brightness(0.9);
    color: #ffffff !important;
}