html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 56px; /* Espacio para el navbar fijo */
  margin: 0;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  width: 100%;
  background-color: #f8f9fa;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================
   NAVBAR FIJO
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* ============================================
   TEMA CLARO/OSCURO
   ============================================ */
#themeToggle,
#themeToggleMobile {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

#themeToggle:hover,
#themeToggleMobile:hover {
    transform: scale(1.1);
}

#themeIcon,
#themeIconMobile {
    transition: transform 0.5s ease;
}

/* Ajustes para móvil */
#themeToggleMobile,
#accountDropdownMobile {
    padding: 0.25rem !important;
    font-size: 1.3rem;
}

/* Botones móviles - contenedor */
.d-sm-none.gap-2 {
    gap: 0.25rem !important;
}

/* Estilo del icono de cuenta en móvil */
#accountDropdownMobile {
    border: none;
    background: transparent;
    color: inherit;
    transition: transform 0.3s ease;
}

#accountDropdownMobile:hover {
    transform: scale(1.1);
}

/* Estilos para modo oscuro */
[data-bs-theme="dark"] {
    background-color: #212529;
    color: #dee2e6;
}

[data-bs-theme="dark"] .footer {
    background-color: #1a1d20;
    border-top-color: #495057 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .navbar {
    border-bottom-color: #495057 !important;
}

/* Navbar en modo oscuro */
[data-bs-theme="dark"] .navbar-light .navbar-brand,
[data-bs-theme="dark"] .navbar-light .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="dark"] .navbar-light .nav-link:hover,
[data-bs-theme="dark"] .navbar-light .nav-link:focus {
    color: rgba(255, 255, 255, 1) !important;
}

[data-bs-theme="dark"] .navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown en modo oscuro */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #dee2e6;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #495057;
    color: #fff;
}

[data-bs-theme="dark"] .dropdown-divider {
    border-top-color: #495057;
}

/* Enlaces generales en modo oscuro */
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #86b7fe;
}

[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #6ea8fe;
}

/* ============================================
   BANNER PRINCIPAL
   ============================================ */
.hero-banner {
    position: relative;
    background-image: url('/img/alumnos/BannerFondo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-banner .container-fluid {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.min-vh-75 {
    min-height: 75vh;
}

.banner-content {
    padding: 2rem;
    animation: fadeInLeft 1s ease-in-out;
}

.banner-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    animation: fadeInRight 1s ease-in-out;
}

.banner-image img {
    max-height: 600px;
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    margin-bottom: -50px; /* Para que la imagen se extienda ligeramente fuera del contenedor */
}

/* Animaciones */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE - BANNER
   ============================================ */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .hero-banner {
        min-height: 60vh;
    }

    .banner-content {
        padding: 1.5rem;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1.1rem;
    }

    .banner-image img {
        max-height: 450px;
        margin-bottom: -30px;
    }
}

/* Móviles grandes (576px - 767px) */
@media (max-width: 767px) {
    .hero-banner {
        min-height: 50vh;
        padding: 1rem 0;
    }

    .hero-banner .container-fluid {
        padding: 1rem;
    }

    .banner-content {
        padding: 1rem 0.5rem;
    }

    .banner-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem !important;
    }

    .banner-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem !important;
    }

    .banner-content .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .banner-content .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.6rem 1.5rem;
    }

    /* Mantener imagen a la derecha en móvil */
    .banner-image {
        align-items: flex-end;
        justify-content: flex-end;
        padding-right: 0.5rem;
    }

    .banner-image img {
        max-height: 300px;
        margin-bottom: -20px;
    }
}

/* Móviles pequeños (menos de 576px) */
@media (max-width: 575px) {
    .hero-banner {
        min-height: 45vh;
        padding: 0.5rem 0;
    }

    .hero-banner .container-fluid {
        padding: 0.5rem;
    }

    .banner-content {
        padding: 0.5rem;
    }

    .banner-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem !important;
        line-height: 1.2;
    }

    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
        line-height: 1.4;
    }

    .banner-content .btn {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.9rem;
        max-width: 250px;
    }

    /* Imagen más pequeña pero mantiene posición derecha */
    .banner-image {
        padding-right: 0.25rem;
    }

    .banner-image img {
        max-height: 250px;
        margin-bottom: -15px;
    }
}

/* Muy pequeños (menos de 400px) */
@media (max-width: 399px) {
    .hero-banner {
        min-height: 40vh;
    }

    .banner-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem !important;
    }

    .banner-content p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem !important;
    }

    .banner-content .btn {
        padding: 0.45rem 1rem !important;
        font-size: 0.85rem;
        max-width: 220px;
    }

    .banner-image img {
        max-height: 200px;
        margin-bottom: -10px;
    }
}

/* ============================================
   RESPONSIVE GLOBAL - VISTAS DEL ALUMNO
   ============================================ */

/* Optimización general de cards en móvil */
@media (max-width: 768px) {
    .card {
        border-radius: 0.5rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Botones más compactos en cards */
    .card .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Alertas más compactas */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .alert-heading {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Container con menos padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Cards sin bordes redondeados en móviles muy pequeños */
    .card {
        border-radius: 0.25rem;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    /* Tablas más compactas */
    .table {
        font-size: 0.85rem;
    }
    
    .table td, .table th {
        padding: 0.4rem;
    }
    
    /* Modales ocupan toda la pantalla en móviles pequeños */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer {
        padding: 0.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    /* Form controls más legibles */
    .form-control, .form-select {
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .form-text {
        font-size: 0.75rem;
    }
    
    /* Input groups compactos */
    .input-group-text {
        font-size: 0.85rem;
        padding: 0.375rem 0.5rem;
    }
    
    /* Badges más pequeños */
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }
    
    /* Botones a ancho completo en móvil cuando es apropiado */
    .btn-block-mobile {
        width: 100%;
        display: block;
    }
}

/* Para pantallas muy pequeñas (menos de 400px) */
@media (max-width: 400px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-header {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    h5 {
        font-size: 0.95rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mejoras para tablas responsivas en todas las vistas */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-responsive {
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Indicador visual de scroll horizontal */
    .table-responsive::after {
        content: '← Desliza para ver más →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #6c757d;
        padding: 0.5rem;
        background: #f8f9fa;
        border-top: 1px solid #dee2e6;
    }
    
    .table-responsive.scrolled::after {
        content: '← Desliza →';
    }
}

/* Optimización de lista de horarios/cursos en scroll */
.border.rounded {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
    /* Listas con scroll más compactas */
    .border.rounded {
        max-height: 200px !important;
        padding: 0.5rem !important;
    }
    
    .form-check {
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Mejoras para dropdowns en móvil */
@media (max-width: 576px) {
    .dropdown-menu {
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
    }
    
    .dropdown-header {
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
    }
}

/* Spinner overlay responsive */
@media (max-width: 576px) {
    .spinner-overlay .spinner-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .spinner-border-custom {
        width: 3rem !important;
        height: 3rem !important;
    }
}

/* ============================================
   SECCIÓN DE CARACTERÍSTICAS
   ============================================ */
.features-section {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .features-section {
    background-color: #1a1d20;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.features-section .card:hover .feature-icon {
    transform: scale(1.1);
}

.features-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="dark"] .features-section .card {
    background-color: #2d3135;
}

[data-bs-theme="dark"] .features-section .card:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05) !important;
}

/* ============================================
   CARRUSEL DE CURSOS
   ============================================ */
.courses-carousel-section {
    background-color: #ffffff;
}

[data-bs-theme="dark"] .courses-carousel-section {
    background-color: #212529;
}

.carousel-courses {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    width: max-content;
}

.carousel-card-wrapper {
    flex: 0 0 auto;
    /* El ancho se calculará dinámicamente con JavaScript */
}

.carousel-card-wrapper .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-card-wrapper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-card-image {
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z'/%3e%3c/svg%3e");
}

/* Responsive para carrusel */
@media (max-width: 991px) {
    .carousel-control-prev {
        left: -20px;
    }
    
    .carousel-control-next {
        right: -20px;
    }
}

@media (max-width: 767px) {
    .carousel-track {
        gap: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: -15px;
    }
    
    .carousel-control-next {
        right: -15px;
    }
}

@media (max-width: 575px) {
    .courses-carousel-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .carousel-control-prev {
        left: -10px;
    }
    
    .carousel-control-next {
        right: -10px;
    }
}

/* Modo oscuro para carrusel */
[data-bs-theme="dark"] .carousel-card-wrapper .card {
    background-color: #2d3135;
    border-color: #495057;
}

[data-bs-theme="dark"] .carousel-card-wrapper .card:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER - ICONOS DE REDES SOCIALES Y RESPONSIVE
   ============================================ */

/* Estilos generales del footer */
.footer {
    padding: 1rem 0;
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: inherit;
}

.footer-tagline {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-info i {
    vertical-align: top;
    margin-top: 0.2rem;
}

.footer-links li {
    transition: transform 0.2s ease;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0d6efd !important;
    text-decoration: underline;
}

.footer-schedule p {
    font-size: 0.9rem;
}

.footer-copyright {
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.footer .social-icons a {
    transition: transform 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.footer .social-icons a:hover {
    transform: scale(1.2);
}

/* Colores originales de redes sociales */
.footer .bi-whatsapp {
    color: #25D366 !important;
}

.footer .bi-facebook {
    color: #1877F2 !important;
}

.footer .bi-telegram {
    color: #0088CC !important;
}

.footer .bi-instagram {
    color: #E4405F !important;
}

/* Mantener colores en modo oscuro */
[data-bs-theme="dark"] .footer .bi-whatsapp {
    color: #25D366 !important;
}

[data-bs-theme="dark"] .footer .bi-facebook {
    color: #1877F2 !important;
}

[data-bs-theme="dark"] .footer .bi-telegram {
    color: #0088CC !important;
}

[data-bs-theme="dark"] .footer .bi-instagram {
    color: #E4405F !important;
}

/* Responsive - Tablets y menores (768px y menos) */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-heading {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .footer-info {
        text-align: left;
        display: inline-block;
    }

    .footer-links {
        text-align: center;
    }

    .footer-schedule {
        text-align: left;
        display: inline-block;
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }
}

/* Responsive - Móviles (576px y menos) */
@media (max-width: 576px) {
    .footer {
        padding: 0.5rem 0;
    }

    .footer-section {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .footer-info p,
    .footer-schedule p {
        font-size: 0.85rem;
    }

    .social-icons a {
        margin: 0 0.5rem !important;
    }

    .social-icons i {
        font-size: 1.8rem !important;
    }

    .footer-copyright {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

/* Móviles muy pequeños (400px y menos) */
@media (max-width: 400px) {
    .footer-section {
        padding: 0 0.5rem;
    }

    .footer-heading {
        font-size: 1rem;
    }

    .footer-info p,
    .footer-schedule p,
    .footer-links a {
        font-size: 0.8rem;
    }

    .social-icons i {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   PÁGINA DE SERVICIOS
   ============================================ */

/* Card con gradiente para la sección "Expande Tu Carrera Profesional" */
.services-about-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Iconos de servicios */
.services-icon {
    font-size: 4rem;
}

/* Tarjetas con efecto hover */
.services-hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

/* Botones con efecto hover */
.services-hover-card .btn-primary {
    transition: all 0.3s ease;
}

.services-hover-card .btn-primary:hover {
    transform: scale(1.05);
}

/* Modo oscuro para página de servicios */
[data-bs-theme="dark"] .bg-light {
    background-color: #1a1d20 !important;
}

[data-bs-theme="dark"] .services-hover-card {
    background-color: #2d3135;
}

[data-bs-theme="dark"] .services-hover-card:hover {
    box-shadow: 0 1rem 3rem rgba(255,255,255,.1) !important;
}

[data-bs-theme="dark"] .services-hover-card .card-text {
    color: #adb5bd !important;
}

/* Responsive para página de servicios */
@media (max-width: 767px) {
    .services-icon {
        font-size: 3rem;
    }

    .services-about-card .card-body {
        padding: 2rem !important;
    }
}

@media (max-width: 575px) {
    .services-icon {
        font-size: 2.5rem;
    }

    .services-about-card .card-body {
        padding: 1.5rem !important;
    }
}

/* ============================================
   EXAM CARDS - EXAMENES Y SIMULACROS
   ============================================ */

.exam-card {
    width: 230px;
    border-radius: 20px;
    background: #1b233d;
    padding: 5px;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 20px 0px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exam-card:hover {
    transform: scale(1.05);
}

.exam-card .top-section {
    height: 150px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.exam-card .top-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.exam-card .top-section .border {
    border-bottom-right-radius: 10px;
    height: 30px;
    width: 130px;
    background: white;
    background: #1b233d;
    position: relative;
    transform: skew(-40deg);
    box-shadow: -10px -10px 0 0 #1b233d;
    z-index: 2;
}

.exam-card .top-section .icons {
    position: absolute;
    top: 0;
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.exam-card .top-section .icons .logo-text {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 7px 0 7px 15px;
}

.exam-card .top-section .icons .logo-text-content {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.exam-card .top-section .icons .social-media {
    height: 100%;
    padding: 8px 15px;
    display: flex;
    gap: 7px;
}

.exam-card .top-section .icons .social-media .svg {
    height: 100%;
    fill: #1b233d;
    transition: fill 0.3s ease;
}

.exam-card .top-section .icons .social-media .svg:hover {
    fill: white;
}

.exam-card .top-section .border::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 0;
    right: -15px;
    background: rgba(255, 255, 255, 0);
    border-top-left-radius: 10px;
    box-shadow: -5px -5px 0 2px #1b233d;
}

.exam-card .top-section::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    background: rgba(255, 255, 255, 0);
    height: 15px;
    width: 15px;
    border-top-left-radius: 15px;
    box-shadow: -5px -5px 0 2px #1b233d;
    z-index: 2;
}

.exam-card .bottom-section {
    margin-top: 15px;
    padding: 10px 5px;
}

.exam-card .bottom-section .title {
    display: block;
    font-size: 17px;
    font-weight: bolder;
    color: white;
    text-align: center;
    letter-spacing: 2px;
}

.exam-card .bottom-section .row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.exam-card .bottom-section .row .item {
    flex: 30%;
    text-align: center;
    padding: 5px;
    color: rgba(170, 222, 243, 0.721);
}

.exam-card .bottom-section .row .item .big-text {
    font-size: 12px;
    display: block;
}

.exam-card .bottom-section .row .item .regular-text {
    font-size: 9px;
}

.exam-card .bottom-section .row .item:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.126);
    border-right: 1px solid rgba(255, 255, 255, 0.126);
}

/* Responsive para exam cards */
@media (max-width: 768px) {
    .exam-card {
        width: 210px;
    }
}

@media (max-width: 576px) {
    .exam-card {
        width: 200px;
    }

    .exam-card .top-section {
        height: 130px;
    }

    .exam-card .bottom-section .title {
        font-size: 15px;
    }

    .exam-card .bottom-section .row .item .big-text {
        font-size: 11px;
    }

    .exam-card .bottom-section .row .item .regular-text {
        font-size: 8px;
    }
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    min-height: 650px;
    height: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-left {
    flex: 0 0 40%;
    background: linear-gradient(135deg, rgba(0, 32, 63, 0.8), rgba(0, 32, 63, 0.6)), url('/img/alumnos/BannerFondo.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
    color: white;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 32, 63, 0.85), rgba(30, 58, 138, 0.75));
}

.login-left-content {
    position: relative;
    z-index: 2;
}

.login-images-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100%;
}

.login-logo-image {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-cambridge-image {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-brand {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-brand i {
    font-size: 1.8rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.login-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.login-right {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-text {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-right .form-group {
    margin-bottom: 1.2rem;
}

.login-right .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.login-right .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.login-right .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

.login-right .form-control::placeholder {
    color: #9ca3af;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.85rem;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.signup-link {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

.signup-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Tablet Styles for Login */
@media (max-width: 992px) {
    .login-container {
        padding: 15px;
    }

    .login-wrapper {
        max-width: 800px;
        height: 550px;
    }

    .login-left {
        padding: 30px;
    }

    .login-title {
        font-size: 2.2rem;
    }

    .login-right {
        padding: 30px;
    }

    .welcome-text {
        font-size: 1.8rem;
    }

    .login-logo-image {
        max-height: 180px;
    }

    .login-cambridge-image {
        max-height: 130px;
    }
}

/* Mobile Styles for Login */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
    }

    .login-wrapper {
        flex-direction: column;
        height: auto;
        margin: 0;
        max-width: none;
        border-radius: 15px;
    }

    .login-left {
        min-height: 250px;
        padding: 30px 25px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .login-brand {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .login-right {
        padding: 30px 25px;
    }

    .welcome-text {
        font-size: 1.6rem;
    }

    .welcome-subtitle {
        margin-bottom: 1.5rem;
    }

    .login-images-container {
        gap: 1.5rem;
    }

    .login-logo-image {
        max-height: 120px;
    }

    .login-cambridge-image {
        max-height: 90px;
    }
}

/* Small Mobile Styles for Login */
@media (max-width: 480px) {
    .login-container {
        padding: 5px;
    }

    .login-left {
        min-height: 220px;
        padding: 25px 20px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-brand {
        font-size: 1.1rem;
    }

    .login-right {
        padding: 25px 20px;
    }

    .welcome-text {
        font-size: 1.4rem;
    }

    .login-right .form-control {
        padding: 12px;
    }

    .login-btn {
        padding: 14px;
    }

    .login-images-container {
        gap: 1rem;
    }

    .login-logo-image {
        max-height: 100px;
    }

    .login-cambridge-image {
        max-height: 75px;
    }
}

/* ============================================
   ALERTAS CON MEJOR CONTRASTE
   ============================================ */

/* Alert Info - Tema Claro */
.alert-info {
    background-color: #dbeafe;
    border: 2px solid #3b82f6;
    border-left: 5px solid #1d4ed8;
    color: #1e3a8a;
    font-weight: 500;
}

.alert-info strong {
    color: #1e40af;
    font-weight: 700;
}

.alert-info a {
    color: #1e40af;
    font-weight: 600;
}

.alert-info a:hover {
    color: #1e3a8a;
}

/* Alert Warning - Tema Claro */
.alert-warning {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    border-left: 5px solid #d97706;
    color: #78350f;
    font-weight: 500;
}

.alert-warning strong {
    color: #92400e;
    font-weight: 700;
}

.alert-warning a {
    color: #92400e;
    font-weight: 600;
}

.alert-warning a:hover {
    color: #78350f;
}

/* Alert Success - Tema Claro */
.alert-success {
    background-color: #d1fae5;
    border: 2px solid #10b981;
    border-left: 5px solid #059669;
    color: #064e3b;
    font-weight: 500;
}

.alert-success strong {
    color: #065f46;
    font-weight: 700;
}

.alert-success a {
    color: #065f46;
    font-weight: 600;
}

.alert-success a:hover {
    color: #064e3b;
}

/* Alert Danger - Tema Claro */
.alert-danger {
    background-color: #fee2e2;
    border: 2px solid #ef4444;
    border-left: 5px solid #dc2626;
    color: #7f1d1d;
    font-weight: 500;
}

.alert-danger strong {
    color: #991b1b;
    font-weight: 700;
}

.alert-danger a {
    color: #991b1b;
    font-weight: 600;
}

.alert-danger a:hover {
    color: #7f1d1d;
}

/* Alertas en Modo Oscuro */
[data-bs-theme="dark"] .alert-info {
    background-color: #1e3a8a;
    border-color: #60a5fa;
    border-left-color: #93c5fd;
    color: #dbeafe;
}

[data-bs-theme="dark"] .alert-info strong {
    color: #bfdbfe;
}

[data-bs-theme="dark"] .alert-info a {
    color: #bfdbfe;
}

[data-bs-theme="dark"] .alert-info a:hover {
    color: #ffffff;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: #78350f;
    border-color: #fbbf24;
    border-left-color: #fcd34d;
    color: #fef3c7;
}

[data-bs-theme="dark"] .alert-warning strong {
    color: #fde68a;
}

[data-bs-theme="dark"] .alert-warning a {
    color: #fde68a;
}

[data-bs-theme="dark"] .alert-warning a:hover {
    color: #ffffff;
}

[data-bs-theme="dark"] .alert-success {
    background-color: #064e3b;
    border-color: #34d399;
    border-left-color: #6ee7b7;
    color: #d1fae5;
}

[data-bs-theme="dark"] .alert-success strong {
    color: #a7f3d0;
}

[data-bs-theme="dark"] .alert-success a {
    color: #a7f3d0;
}

[data-bs-theme="dark"] .alert-success a:hover {
    color: #ffffff;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #7f1d1d;
    border-color: #f87171;
    border-left-color: #fca5a5;
    color: #fee2e2;
}

[data-bs-theme="dark"] .alert-danger strong {
    color: #fecaca;
}

[data-bs-theme="dark"] .alert-danger a {
    color: #fecaca;
}

[data-bs-theme="dark"] .alert-danger a:hover {
    color: #ffffff;
}

/* Headers de cards con mejor contraste */
.card-header.bg-warning {
    background-color: #f59e0b !important;
    color: #78350f !important;
    font-weight: 600;
}

.card-header.bg-info {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.card-header.bg-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.card-header.bg-danger {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Headers en modo oscuro */
[data-bs-theme="dark"] .card-header.bg-warning {
    background-color: #d97706 !important;
    color: #fef3c7 !important;
}

[data-bs-theme="dark"] .card-header.bg-info {
    background-color: #1d4ed8 !important;
    color: #dbeafe !important;
}

[data-bs-theme="dark"] .card-header.bg-success {
    background-color: #059669 !important;
    color: #d1fae5 !important;
}

[data-bs-theme="dark"] .card-header.bg-danger {
    background-color: #dc2626 !important;
    color: #fee2e2 !important;
}
