.frame8-equipo {
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    min-height: 1000px;
}

.frame8-equipo-content {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #fff;
    
}


.h1-ns-equipo {
    text-align: center;
    margin-bottom: 30px;
}

/* Contenedor para el círculo de botones */
.button-container-ns8 {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 50px;
    z-index: 2;
}

.button-container-ns8 img {
    position: absolute;
    width: 230px;
    height: auto;
    cursor: pointer;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

.button-container-ns8 img:hover {
    transform: scale(1.15);
}

/* Posición en círculo (5 imágenes) */
.button-container-ns8 img.directivo {
    transform: translate(-70%, -50%) rotate(216deg) translate(140px) rotate(-216deg);
}

.button-container-ns8 img.academico {
    transform: translate(-90%, -90%) rotate(144deg) translate(140px) rotate(-144deg);
}

.button-container-ns8 img.marketing {
    transform: translate(-50%, -95%) rotate(72deg) translate(140px) rotate(-72deg);
}

.button-container-ns8 img.admin {
    transform: translate(-0%, -100%) rotate(0deg) translate(140px) rotate(0deg);
}

.button-container-ns8 img.educators {
    transform: translate(-40%, -50%) rotate(288deg) translate(140px) rotate(-288deg);
}

/* Equipos */
.team-section-ns8>div {
    display: none;
    z-index: 2;
}

.team-section-ns8>div.active {
    display: block;
    margin-bottom: 40px;
}

/* Contenedor de globo + frase */
.header-container-ns8 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    z-index: 2;
}

.globoed {
    position: relative;
    display: inline-block;
    border: 4px solid #35363f;
    border-radius: 25px;
    padding: 12px 24px;
    background-color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    min-width: 180px;
    text-align: center;
    transition: border-color 0.3s ease;
    z-index: 2;
}

.globoed span.blacked {
    color: #ffffff;
    margin-top: 1px;
    margin-left: 1px;
    transition: color 0.3s ease;
}

.globoed span.pinked {
    color: #5C6BF5;
    margin-top: 1px;
    margin-left: 1px;
    transition: color 0.3s ease;
}

.globoed::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 40px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #f5eeee;
    transition: border-top-color 0.3s ease;
}

/* Frase con parte rosa */
.fraseed {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 500px;
    padding: 5px 15px;
    border-radius: 5px;
    background-color: #ffffff00;
    color: rgb(255, 254, 254);
    transition: background-color 0.3s ease;
    z-index: 2;
}

.fraseed .parte1ed {
    color: rgb(0, 0, 0);
}

.fraseed .parte2ed {
    background-color: rgba(255 255 255 / 0.8);
    color: #ffffff;
    padding: 4px 8px;
    display: inline-block;
    transform: rotate(-1.5deg);
    border-radius: 4px;
    margin-left: 5px;
    margin-top: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.team-container-ns8 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
}

/* Persona individual */
.team-person-ns8 {
    max-width: 240px;
    text-align: center;
    z-index: 2;
}

.team-photo-ns8 {
    width: 240px;
    height: 240px;
    object-fit: cover;
    margin-bottom: 10px;
}

.team-person-ns8 h2 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.team-person-ns8 h3 {
    margin: 0 0 10px;
    font-weight: normal;
    color: #444;
    font-size: 1rem;
}

.team-person-ns8 p {
    font-size: 0.95rem;
    color: #333;
}


/* ------------------------
   GENERAL RESPONSIVE RULES
---------------------------*/

@media (min-width: 913px) and (max-width: 1024px) {
    .team-container-ns8 {
        gap: 30px;
    }

    .team-photo-ns8 {
        width: 180px;
        height: 180px;
    }

    .team-person-ns8 {
        max-width: 180px;
    }
}

@media (min-width: 769px) and (max-width: 912px) {
    .button-container-ns8 {
        width: 300px;
        height: 300px;
    }

    .button-container-ns8 img {
        width: 180px;
    }

    .header-container-ns8 {
        gap: 20px;
    }

    .fraseed {
        font-size: 1.2rem;
    }

    .globoed {
        font-size: 1.4rem;
        padding: 10px 20px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {

    .h1-ns-equipo {

        margin-bottom: 50px;
    }

    .button-container-ns8 img.directivo {
        transform: translate(-50%, -50%) rotate(216deg) translate(130px) rotate(-216deg);
    }

    .button-container-ns8 img.academico {
        transform: translate(-50%, -100%) rotate(144deg) translate(130px) rotate(-144deg);
    }

    .button-container-ns8 img.marketing {
        transform: translate(-50%, -100%) rotate(72deg) translate(130px) rotate(-72deg);
    }

    .button-container-ns8 img.admin {
        transform: translate(-50%, -50%) rotate(0deg) translate(130px) rotate(0deg);
    }

    .button-container-ns8 img.educators {
        transform: translate(-50%, -50%) rotate(288deg) translate(130px) rotate(-288deg);
    }

    .team-container-ns8 {
        flex-direction: column;
        align-items: center;
    }

    .team-person-ns8 {
        max-width: 100%;
    }

    .button-container-ns8 {
        width: 250px;
        height: 250px;
    }

    .button-container-ns8 img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .h1-ns-equipo {
        font-size: 1.0rem;
        margin-bottom: 50px;
    }

    .button-container-ns8 {
        width: 220px;
        height: 220px;
    }

    .button-container-ns8 img {
        width: 120px;
    }

    .globoed {
        font-size: 1.2rem;
        padding: 8px 16px;
    }

    .fraseed {
        font-size: 1rem;
        padding: 5px 10px;
    }

    .team-photo-ns8 {
        width: 160px;
        height: 160px;
    }

    .team-person-ns8 {
        max-width: 100%;
    }

    .team-person-ns8 h2,
    .team-person-ns8 h3,
    .team-person-ns8 p {
        font-size: 0.95rem;
    }
}

/* ------------------------
   SPECIAL ORIENTATION RULES
---------------------------*/

@media (min-width: 913px) and (max-width: 1024px) and (orientation: landscape) {
    .team-container-ns8 {
        flex-wrap: wrap;
        justify-content: center;
    }

    .button-container-ns8 {
        transform: scale(0.8);
    }
}

@media (min-width: 913px) and (max-width: 1024px) and (orientation: portrait) {
    .button-container-ns8 {
        transform: scale(0.9);
    }

    .header-container-ns8 {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) and (orientation: portrait) {


    .button-container-ns8 img.directivo {
        transform: translate(-50%, -50%) rotate(216deg) translate(110px) rotate(-216deg);
    }

    .button-container-ns8 img.academico {
        transform: translate(-50%, -100%) rotate(144deg) translate(110px) rotate(-144deg);
    }

    .button-container-ns8 img.marketing {
        transform: translate(-50%, -100%) rotate(72deg) translate(110px) rotate(-72deg);
    }

    .button-container-ns8 img.admin {
        transform: translate(-50%, -50%) rotate(0deg) translate(110px) rotate(0deg);
    }

    .button-container-ns8 img.educators {
        transform: translate(-50%, -50%) rotate(288deg) translate(110px) rotate(-288deg);
    }

    .team-photo-ns8 {
        width: 140px;
        height: 140px;
    }

    .fraseed {
        font-size: 0.9rem;
    }
}

/* ------------------------
   LARGE SCREENS
---------------------------*/

@media (min-width: 1440px) {
    .button-container-ns8 {
        width: 450px;
        height: 450px;
    }

    .button-container-ns8 img {
        width: 270px;
    }

    .team-photo-ns8 {
        width: 280px;
        height: 280px;
    }

    .team-person-ns8 {
        max-width: 280px;
    }

    .globoed {
        font-size: 2rem;
    }

    .fraseed {
        font-size: 1.6rem;
    }
}