
/* Popup Mediateam Specific Styles */
.popup-mediateam-style {
    background-color: #e6e6e6; /* Light gray background */
    border: none;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.popup-mediateam-style .popup-content {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
}

/* Left Decor (Cats) */
.popup-left-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 25%;
    pointer-events: none;
}

.gatos-img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(10px); /* Slight adjustment */
}

/* Center Content */
.popup-center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px 40px 15%; /* Restored padding */
    z-index: 3;
    max-width: 60%; /* Restored max-width */
    margin-left: 70px;
}

.personas-title-img {
    max-width: 300px; /* Restored size */
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.mediateam-text {
    font-family: 'gogh-regular', sans-serif;
    color: #444;
    font-size: 1.1rem; /* Restored size */
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 500%; /* Restored width */
    width: 450px; /* Restored width */
    position: relative;
    z-index: 10;
    margin-left: 20px;
}

.mediateam-text p {
    margin-bottom: 15px;
}

.mediateam-text strong {
    color: #000;
    font-weight: 600;
}

.mediateam-logo-img {
    max-width: 180px; /* Restored size */
    height: auto;
    display: block;
}

/* Right Visual (Person with Rhombus) */
.popup-right-visual {
    flex: 0 0 40%; /* Restored width */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Restored overflow */
}

.circle-bg-mediateam {
    display: none; /* Keep hidden as requested previously */
}

.persona-rombo-img {
    position: relative;
    z-index: 2;
    max-width: 100%; /* Proportional size */
    width: auto;
    height: auto;
    object-fit: contain;
    margin-right: -20px; 
    transform: none; /* Removed scaling */
}

/* Responsive Mediateam Popup */
@media (max-width: 900px) {
    .popup-mediateam-style {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popup-mediateam-style .popup-content {
        flex-direction: column;
        padding-bottom: 50px;
    }

    .popup-left-decor {
        position: relative;
        width: 150px;
        margin-top: -50px;
        margin-left: -20px;
        order: 3;
    }

    .popup-center-content {
        padding: 40px 30px;
        max-width: 100%;
        order: 1;
    }

    .popup-right-visual {
        height: 300px;
        width: 100%;
        order: 2;
        overflow: visible;
    }

    .circle-bg-mediateam {
        width: 300px;
        padding-bottom: 300px;
        right: -50px;
    }
    
    .persona-rombo-img {
        max-height: 120%;
        margin-top: -20px;
    }
}

/* Animations for Mediateam Popup */
.popup-overlay.active .popup-mediateam-style .personas-title-img {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.popup-overlay.active .popup-mediateam-style .mediateam-text {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.popup-overlay.active .popup-mediateam-style .mediateam-logo-img {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.popup-overlay.active .popup-mediateam-style .gatos-img {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.popup-overlay.active .popup-mediateam-style .popup-right-visual {
    animation: fadeInRight 1s ease-out 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
