/* ===================================================================
   ARCHIVO: docentes.css
   CONTIENE: Estilos fusionados, corregidos y con mejoras de UX/UI
   =================================================================== */

/* --- 1. Estilos Generales y Fuente Base --- */
body, h1, h2, h3, h4, h5, h6, p, a, li, button, .btn {
  font-family: 'Gotham', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f9fc;
}
.section-title-modern {
    color: #003366;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}
.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #005BA8;
    border-radius: 2px;
}
.card-modern {
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 44, 92, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 44, 92, 0.12);
}

/* --- 2. Hero Banner Docentes --- */
.hero-docentes {
    min-height: 300px;
    height: auto;
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(to bottom right, #002f6c, #003f8a);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-docentes #networkCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}
.hero-docentes h1 {
    color: #FFD700;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}
.hero-docentes p.lead {
    opacity: 0.9;
}
.hero-docentes h1,
.hero-docentes h2,
.hero-docentes h3,
.hero-docentes p {
    position: relative;
    color: #ffffff;
    z-index: 2;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero-docentes .btn {
    position: relative;
    z-index: 2;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
}
.hero-docentes::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}

/* --- 3. Sección de Préstamo --- */
.loan-tabs .nav-pills .nav-link {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    color: #003366;
    background-color: #f0f6fb;
    border: 1px solid #e0e6f0;
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
}
.loan-tabs .nav-pills .nav-link.active {
    background-color: #005BA8;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 91, 168, 0.3);
}
.loan-tabs .tab-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 44, 92, 0.08);
}

/* --- 4. Biblioteca de Recursos Digitales --- */
.disclaimer-box {
    background-color: #e7f1ff;
    border-left: 5px solid #005BA8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}
.disclaimer-box p {
    margin-bottom: 0;
}
.disclaimer-box .bi {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* --- 5. Estilos para Tarjetas de Herramientas --- */
.tool-card {
    display: flex;
    align-items: stretch;
}
.tool-card .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 44, 92, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}
.tool-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 44, 92, 0.12);
}
.tool-card .card .mt-auto {
    margin-top: auto !important;
}

/* --- 6. Nuevos Estilos (Mejoras UX/UI para Tarjetas de Herramientas) --- */
.tool-card .card {
    position: relative; /* Necesario para la etiqueta de categoría */
    padding-top: 2rem; /* Espacio para la etiqueta */
}

.tool-card .category-tag {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #005BA8;
    color: white;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
}

.tool-card .rating-display {
    color: #FFC107; /* Amarillo para estrellas */
    font-weight: 600;
}

.tool-card .rating-display .text-muted {
    font-weight: 400;
    color: #6c757d !important; /* Asegurar color del contador */
}

/* Jerarquía de botones en tarjetas */
.tool-card .btn-outline-primary {
    border-color: #ced4da; /* Borde más sutil */
    color: #495057;      /* Texto menos intenso */
}
.tool-card .btn-outline-primary:hover {
    background-color: #e9ecef;
    color: #003366;
    border-color: #ced4da;
}

/* --- 7. Testimonios --- */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}
.testimonial-card .card-body {
    position: relative;
}
.testimonial-card .card-body::before {
    content: '“';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 5rem;
    color: #005BA8;
    opacity: 0.1;
    font-family: Georgia, serif;
}
.testimonial-card .card-footer img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #005BA8;
}

/* --- 8. Navbar --- */
.navbar .nav-link {
  transition: color 0.3s ease, background-color 0.3s ease;
}
.navbar .nav-link:hover {
  color: #FFD700 !important;
}
.navbar .nav-link.active {
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
}

/* --- 9. Paginación --- */
.pagination .page-link {
  color: #005BA8;
  font-weight: 500;
}
.pagination .active .page-link {
  background-color: #005BA8;
  border-color: #005BA8;
  color: #fff;
}

/* --- 10. Media Queries --- */
@media (max-width: 992px) {
    .hero-docentes {
        padding: 5rem 0;
        min-height: 250px;
    }
    .hero-docentes h1 {
        font-size: 2.5rem;
    }
    .hero-docentes .lead {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .hero-docentes {
        padding: 4rem 1rem;
        min-height: auto;
    }
    .hero-docentes h1 {
        font-size: 2rem;
    }
    .hero-docentes .lead {
        font-size: 1.1rem;
    }
    .loan-tabs .nav-pills .nav-link {
        text-align: center;
    }
}
@media (max-width: 576px) {
  .tool-card .card {
    padding: 1rem !important;
    padding-top: 2.5rem !important; /* Ajuste para la etiqueta de categoria */
    font-size: 0.95rem;
  }
}
/* --- 11. FIX: Aumentar Contraste en Botón del Hero --- */
.hero-docentes .btn-outline-light {
    color: #ffffff; /* Fuerza el texto y el icono a ser blancos */
    border-color: #ffffff; /* Asegura que el borde sea blanco y opaco */
}

/* Opcional: Mejorar el estado hover para asegurar legibilidad */
.hero-docentes .btn-outline-light:hover {
    color: #003366; /* Color oscuro del texto al pasar el mouse */
    background-color: #ffffff; /* Fondo blanco al pasar el mouse */
}
/* --- 12. MEJORA: Visibilidad y Estilo para Botones de Comunidad --- */

/* Estilo base para ambos botones en la sección de comunidad */
#comunidad-docentes .btn {
    font-weight: 600; /* Hacemos el texto un poco más notorio */
    padding: 0.75rem 1.5rem; /* Aumentamos ligeramente el padding */
    border-radius: 12px; /* Bordes un poco más redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra suave para dar profundidad */
    transition: all 0.3s ease; /* Transición suave para todos los efectos */
    border: none; /* Quitamos el borde por defecto para un look más limpio */
}

/* Efecto al pasar el mouse (hover) */
#comunidad-docentes .btn:hover {
    transform: translateY(-3px); /* Efecto de levantamiento */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
}

/* Colores específicos para cada botón */
#comunidad-docentes .btn-primary {
    background-color: #5865F2; /* Un azul-violeta similar a Teams/Discord */
}

#comunidad-docentes .btn-success {
    background-color: #25D366; /* Color clásico de WhatsApp */
}