/* ==========================================================================
   REGISTRO DE FUENTES LOCALES (Desde la carpeta static/fonts/)
   ========================================================================== */

/* Configuración para el texto Normal / Regular */
@font-face {
    font-family: 'PoppinsLocal';
    src: url('../fonts/Poppins-Regular_9.ttf') format('truetype'); /* Ajusta el nombre exacto de tu archivo ttf */
    font-weight: 400;
    font-style: normal;
}

/* Configuración para los títulos en Negrita / Bold */
@font-face {
    font-family: 'PoppinsLocal';
    src: url('../fonts/Poppins-Bold_B.ttf') format('truetype'); /* Ajusta el nombre exacto de tu archivo ttf */
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   CLASES DE UTILIDAD PARA TEXTOS 
   ========================================================================== */

/* Texto Morado Institucional (Telecapacitaciones) */
.text-purple {
    color: #7255A3 !important;
}

/* Texto Turquesa Institucional (TeleIEC) */
.text-teal {
    color: #20A19A !important;
}

/* ==========================================
   ESTILOS GENERALES DEL PORTAL
   ========================================== */
.portal-body {
    background-color: #F4F6F9; /* Fondo gris claro de la PPT */
    /* Creamos las ondas/curvas sutiles del fondo usando un degradado radial/lineal */
    background-image: url("../img/fondos/fondo-inicio-2.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; /* Hace que cubra todo el ancho y alto sin deformarse */
    background-attachment: fixed; /* Mantiene el fondo congelado si hay scroll */

    font-family: 'PoppinsLocal', sans-serif;
    min-height: 100vh;
}

/* Ajuste de logos superiores */
.logo-minsa {
    max-height: 80px;
    object-fit: contain;
}

.logo-submodulo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
}

/* ==========================================
   COLUMNA IZQUIERDA: MASCOTA Y BURBUJA
   ========================================== */
.bubble-chat {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #E2E8F0;
    font-size: 15px;
    color: #2D3748;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto 20px auto;
    position: relative;
}

/* Triángulo de la burbuja de diálogo */
.bubble-chat::after {
    content: '';
    position: absolute;
    bottom: -12px; /* La empujamos justo debajo del borde de la burbuja */
    left: 50%; /* La centramos horizontalmente en la burbuja */
    transform: translateX(-50%);
    border-width: 12px 12px 0; /* Triángulo invertido */
    border-style: solid;
    border-color: #FFFFFF transparent;
    display: block;
    width: 0;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.05)); /* Le da una leve sombra idéntica a la burbuja */
}

.dicky-img {
    max-height: 650px;
    margin-top: 10px;
}

/* ==========================================
   COLUMNA DERECHA: TÍTULOS Y TARJETAS
   ========================================== */
.main-title {
    color: #7255A3;
    font-size: 45px;
    font-weight: 700;
}

.main-subtitle {
    color: #718096;
    font-size: 20px;
    font-weight: 500;
}

/* Estructura Base de las Tarjetas */
.card-portal {
    border-radius: 20px !important;
    padding: 45px 30px;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Efecto hover profesional para dar vida al frontend */
.card-portal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Tarjeta Telecapacitaciones (Morado) */
.card-purple {
    background: linear-gradient(135deg, #7255A3 0%, #614098 50%, #4D1B88 100%);
}

/* Tarjeta TeleIEC (Turquesa) */
.card-teal {
    background: linear-gradient(135deg, #20A19A 0%, #21A29F 50%, #21A0AD 100%);
}

/* Contenedor de iconos dentro de las tarjetas */
.card-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.card-icon {
    width: 60px;
    height: 55px;
}

.card-portal h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-portal p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 30px;
    min-height: 44px; /* Evita que las tarjetas se desalineen si el texto cambia */
}

/* Botones de Acción Internos (Blancos) */
.btn-portal-action {
    background-color: #FFFFFF !important;
    color: #2D3748 !important;
    width: 100%;
    max-width: 240px;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 35px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.btn-portal-action:hover {
    background-color: #F8FAFC !important;
    color: #1A202C !important;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================
   FOOTER INSTITUTIONAL
   ========================================== */
.footer-portal {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0 auto;
    padding: 12px 30px !important;
    border-radius: 16px;
}

/* Alineación exacta para los bloques de texto que contienen íconos */
.footer-portal span {
    display: inline-flex;
    align-items: center; /* Centra verticalmente el ícono imagen junto al texto */
    gap: 8px; /* Espaciado uniforme entre el icono y el texto */
}

/* Control estricto del tamaño del icono del footer */
.footer-portal .btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}