/* =====================================================
   TAB PROGRAMA - Sistema de pestañas para sección Programa
   Basado en metodologia.css
   ===================================================== */

/* Contenedor principal */
#programa-main {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 83, 72, 0.08);
}

#programa-main strong {
    color: #005348;
}

#programa-main h3 {
    color: #005348;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 3px solid #FF8200;
    padding-bottom: 10px;
}

/* Contenedor de tabs */
.tabs_ficha_programa {
    background: linear-gradient(135deg, #005348 0%, #00635a 100%);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    -webkit-border-top-left-radius: 12px;
    -webkit-border-top-right-radius: 12px;
    -moz-border-radius-topleft: 12px;
    -moz-border-radius-topright: 12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 3px solid #FF8200;
    overflow: hidden;
}

/* Botones de tab */
.tabs_ficha_programa button.but_programa {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    text-align: center;
    color: #fff;
    font-size: 14px;
    padding: 20px 10px;
    border-radius: 0;
    border: 0;
    width: 100%;
    background: none;
    margin-bottom: -2px;
    font-weight: 600;
    outline: none;
    text-transform: uppercase;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Estado hover */
.tabs_ficha_programa button.but_programa:hover {
    background-color: #095d53;
    transform: translateY(-1px);
}

/* Separador entre tabs */
.tabs_ficha_programa button.but_programa:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    height: 40%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease;
}

/* Estado activo */
.tabs_ficha_programa button.but_programa.active {
    background: #2d5b45;
}

/* Indicador de tab activa */
.tabs_ficha_programa button.but_programa .tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8200, #ff9533);
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease !important;
}

.tabs_ficha_programa button.but_programa.active .tab-indicator {
    width: 100%;
}

/* Contenedor de contenido */
.contenedor_tabs_programa {
    padding: 40px;
}

/* Contenido oculto por defecto */
.contenedor_tabs_programa .tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Contenido activo con animacion */
.contenedor_tabs_programa .tab-content.active {
    display: block;
    animation: fadeInUpPrograma 0.4s forwards;
}

/* Animacion de entrada */
@keyframes fadeInUpPrograma {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   DOBLE MÁSTER - Secciones de másteres asociados
   ===================================================== */

/* Contenedor de cada máster asociado */
.master-asociado-seccion {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.master-asociado-seccion:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Título del máster asociado */
.titulo-master-asociado {
    color: #005348 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #FF8200 !important;
    padding: 15px 0 !important;
}

/* Contenido del máster asociado */
.contenido-master-asociado {
    padding: 15px 0;
}

.contenido-master-asociado ul {
    margin: 0;
    padding-left: 20px;
}

.contenido-master-asociado li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
    .contenedor_tabs_programa {
        padding: 20px;
    }

    .tabs_ficha_programa button.but_programa {
        font-size: 12px;
        padding: 15px 8px;
    }
}

@media (max-width: 576px) {
    .tabs_ficha_programa {
        flex-direction: column;
    }

    .tabs_ficha_programa button.but_programa {
        width: 100%;
        border-radius: 0;
    }

    .tabs_ficha_programa button.but_programa:not(:last-child)::after {
        display: none;
    }

    /* Responsive para másteres asociados */
    .master-asociado-seccion {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .titulo-master-asociado {
        font-size: 16px !important;
        padding: 10px !important;
    }

    .contenido-master-asociado {
        padding: 10px;
    }
}
