/*---------------------------------------------------------------------------------------------------------------------------------------------*/

/* ==================================== */
/* 1. Estilos generales para el contenedor */
/* ==================================== */
.career-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 15px;
    gap: 25px; 
    background-color: #f7f9fc;
}

/* ==================================== */
/* 2. Estilos de la tarjeta individual */
/* ==================================== */
.career-card {
    width: 320px;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ==================================== */
/* 3. Sección superior (Imagen y título) */
/* ==================================== */
.card-image-section {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end; 
    justify-content: center; 
    padding: 20px;
    color: white; /* Ya está en blanco */
    background: linear-gradient(135deg, #00c6ff, #0072ff); 
}

/* Variantes de color */
.card-image-section.bg-green {
     background: linear-gradient(135deg, #13D29D, #00A97C); 
}
.card-image-section.bg-purple {
     background: linear-gradient(135deg, #8A2387, #E94057); 
}

/* Título de la carrera */
.card-image-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    z-index: 2;
    text-align: center; 
    /* Detalle para diferenciarlo (Sombra de texto negra para que el blanco resalte) */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); 
    color: white; 
}

/* Placeholder para tus fotos */
.card-image-section .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover; 
    opacity: 0.9; 
    z-index: 1;
}

/* ==================================== */
/* 4. Sección de contenido inferior (Botón azul a la derecha) */
/* ==================================== */
.card-content {
    padding: 20px;
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.card-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.card-duration {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 10px 0 auto 0; 
}

/* Botón "Ver más" (azul y a la derecha en la parte inferior) */
.ver-mas-btn {
    display: inline-flex; 
    justify-content: center;
    
    width: 100px; 
    padding: 10px 0; 
    background-color: #1e3a8a; 
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    
    align-self: flex-end; 
    margin-top: 20px; 
}

.ver-mas-btn:hover {
    background-color: #0056b3; 
}

/* ==================================== */
/* 5. Responsividad (Agregado)           */
/* ==================================== */

@media (max-width: 768px) {
    .career-cards-container {
        padding: 20px 10px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .career-card {
        width: 100%; /* La tarjeta ocupa el ancho disponible en móviles pequeños */
        max-width: 320px; /* Pero no crece más de su diseño original */
    }

    .card-image-section h2 {
        font-size: 1.5rem; /* Título un poco más pequeño en móviles */
    }

    .card-duration {
        font-size: 1.3rem; /* Duración ajustada para pantallas pequeñas */
    }
}