/* Estilos para la sección de becas */
.becas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.becas-title {
    text-align: center;
    font-size: 32px;
    color: #4f2987;
    margin-bottom: 15px;
    font-weight: 700;
}

.becas-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

/* Sistema de pestañas con CSS puro */
.becas-tabs {
    margin-top: 30px;
    position: relative;
}

.becas-tab-content {
    position: relative;
    z-index: 1;
}

/* Ocultar todos los contenidos de pestañas por defecto */
.beca-section {
    display: none;
    animation: fadeIn 0.5s ease;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mostrar contenido cuando el radio button está seleccionado */
#tab-parcial:checked ~ .becas-tab-content #beca-parcial,
#tab-merito:checked ~ .becas-tab-content #beca-merito,
#tab-institucional:checked ~ .becas-tab-content #beca-institucional,
#tab-financiamiento:checked ~ .becas-tab-content #beca-financiamiento {
    display: block;
}

/* Ocultar los radio buttons */
.becas-tabs input[type="radio"] {
    display: none;
}

/* Estilo para las etiquetas de los radio buttons (pestañas) */
.becas-tab-labels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.becas-tab-label {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.becas-tab-label i {
    font-size: 20px;
    margin-right: 10px;
}

.becas-tab-label span {
    font-weight: 600;
    font-size: 15px;
}

/* Colores para cada tipo de beca */
.tab-label-parcial {
    color: #2c7be5;
    border-bottom: 3px solid #2c7be5;
}

.tab-label-merito {
    color: #e63757;
    border-bottom: 3px solid #e63757;
}

.tab-label-institucional {
    color: #00864e;
    border-bottom: 3px solid #00864e;
}

.tab-label-financiamiento {
    color: #9d6300;
    border-bottom: 3px solid #9d6300;
}

/* Estados activos cuando el radio button está seleccionado */
#tab-parcial:checked ~ .becas-tab-labels .tab-label-parcial {
    background: #2c7be5;
    color: white;
    transform: translateY(-3px);
}

#tab-merito:checked ~ .becas-tab-labels .tab-label-merito {
    background: #e63757;
    color: white;
    transform: translateY(-3px);
}

#tab-institucional:checked ~ .becas-tab-labels .tab-label-institucional {
    background: #00864e;
    color: white;
    transform: translateY(-3px);
}

#tab-financiamiento:checked ~ .becas-tab-labels .tab-label-financiamiento {
    background: #9d6300;
    color: white;
    transform: translateY(-3px);
}

/* Tarjetas de becas */
.beca-card {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: 12px;
}

.beca-image {
    flex: 1;
    min-width: 300px;
}

.beca-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beca-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

/* Colores para cada tipo de beca */
#beca-parcial .beca-info {
    background: linear-gradient(135deg, #eef5ff 0%, #d5e5ff 100%);
    border-left: 5px solid #2c7be5;
}

#beca-merito .beca-info {
    background: linear-gradient(135deg, #ffeeee 0%, #ffd5d5 100%);
    border-left: 5px solid #e63757;
}

#beca-institucional .beca-info {
    background: linear-gradient(135deg, #eefff4 0%, #d5ffe6 100%);
    border-left: 5px solid #00864e;
}

#beca-financiamiento .beca-info {
    background: linear-gradient(135deg, #fff8ee 0%, #ffe8c4 100%);
    border-left: 5px solid #9d6300;
}

.beca-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.beca-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
}

#beca-parcial .beca-info h3 {
    color: #2c7be5;
}

#beca-merito .beca-info h3 {
    color: #e63757;
}

#beca-institucional .beca-info h3 {
    color: #00864e;
}

#beca-financiamiento .beca-info h3 {
    color: #9d6300;
}

#beca-parcial .beca-info h3::after {
    background: #2c7be5;
}

#beca-merito .beca-info h3::after {
    background: #e63757;
}

#beca-institucional .beca-info h3::after {
    background: #00864e;
}

#beca-financiamiento .beca-info h3::after {
    background: #9d6300;
}

.beca-info p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #555;
}

.beca-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

#beca-parcial .beca-btn {
    background: #2c7be5;
    color: white;
}

#beca-merito .beca-btn {
    background: #e63757;
    color: white;
}

#beca-institucional .beca-btn {
    background: #00864e;
    color: white;
}

#beca-financiamiento .beca-btn {
    background: #9d6300;
    color: white;
}

.beca-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Responsivo */
@media (max-width: 992px) {
    .beca-info {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .becas-tab-labels {
        flex-direction: column;
        width: 100%;
    }
    
    .becas-tab-label {
        width: 100%;
        justify-content: center;
    }
    
    .beca-card {
        flex-direction: column;
    }
    
    .beca-image {
        height: 250px;
    }
}