.equipo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.profesor {
    flex: 1 1 100%;
    max-width: 300px;
    min-width: 200px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profesor:hover {
    box-shadow: 2px 5px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateY(-5px);
}

.profesor-imagen {
    background-color: #000;
    overflow: hidden;
    line-height: 0;
    position: relative;
}

.profesor:hover .profesor-imagen img {
    transform: scale(1.05);
    transition: all 0.3s ease;
    opacity: 1;
}

.profesor-imagen img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4/5;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.profesor-info {
    padding: 10px;
    color: #676767;
    font-size: 1.0rem;
    line-height: 1.5rem;

}

.profesor .profesor-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.profesor .profesor-etiquetas .badge {
    display: inline-block;
    padding: 5px 10px;
    line-height: 0.75rem;
    font-size: 0.75rem;
}

.profesor .profesor-etiquetas .badge-primary {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
}

.equipo-cv-control-bar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    max-width: 650px;
    height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    z-index: 1001;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.1s ease-in-out;
    opacity: 0;
    visibility: hidden;
    border-radius: 10px;
}

.equipo-cv-control-bar.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.equipo-cv-control-bar .close-cv {
    background-color: var(--pf-color-button-dark);
    border: none;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipo-cv-control-bar .close-cv:hover {
    background-color: var(--pf-color-button-dark);
    color: #fff;
}

.equipo-cv-control-bar .cv-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.open-cv {
    font-size: 0.7rem;
    border-radius: 50%;
    background-color: var(--pf-color-button-dark);
    color: #fff;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-top: 0.5rem; */
    float: right;
}

.profesor-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

/* Estilos para el detalle del CV */
.profesor-cv-detalle {
    padding: 50px 20px 20px 20px;
    color: var(--pf-color-text);
}

.profesor-cv-header {
    display: flex;
    flex-direction: column;
}

.profesor-cv-header-left {
    position: sticky;
    top: 50px;
    width: 25%;
    max-width: 300px;
}

.profesor-cv-imagen {
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 0;
    overflow: hidden;
}

.profesor-cv-imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.profesor-cv-titulo {
    flex: 3;
}

.profesor-cv-titulo h2 {
    color: #000;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.profesor-cv-detalle .profesor-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    position: relative;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.profesor-cv-detalle .badge {
    display: inline-block;
    padding: 5px 0;
    font-size: 0.8rem;
    line-height: 1rem;
}

.profesor-cv-detalle .badge::before {
    content: "•";
    margin-right: 5px;
}

.profesor-cv-contenido {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profesor-cv-descripcion {
    line-height: 1.6;
    font-size: 1rem;
}

.profesor-cv-curriculum h3 {
    color: var(--pf-color-button-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--pf-color-button-dark);
    display: inline-block;
}

.cv-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--pf-color-button-dark);
    font-size: 0.8rem;
}

/* Estilos para contenido del CV que pueden ser listas o párrafos */
.cv-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.cv-content p {
    margin-bottom: 10px;
}

/* Media queries para responsive */
@media (min-width: 768px) {
    .profesor-cv-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .profesor-cv-imagen {
        flex: 0 0 200px;
        margin-bottom: 0;
    }

    .profesor-cv-titulo {
        flex: 1;
    }
}

@media (max-width: 1600px) {
    .profesor {
        flex: 1 1 calc(100% / 6 - 20px);
        max-width: calc(100% / 6 - 20px);
    }
}

@media (max-width: 1200px) {
    .profesor {
        flex: 1 1 calc(100% / 4 - 20px);
        max-width: calc(100% / 4 - 20px);
    }
}

@media (max-width: 900px) {
    .profesor {
        flex: 1 1 calc(100% / 3 - 20px);
        max-width: calc(100% / 3 - 20px);
    }
}

@media (max-width: 768px) {
    .profesor {
        flex: 1 1 calc(100% / 2 - 20px);
        max-width: calc(100% / 2 - 20px);
    }
}

@media (max-width: 480px) {
    .profesor {
        flex: 1 1;
        max-width: 100%;
    }
}