/**
 * SW Widgets - Estilos específicos
 * Solo se carga cuando se usan los widgets SW
 */

/* ==================================================
   SW TEAM WIDGET
================================================== */
.sw-team .team-thumb {
    overflow: hidden;
}
/* Botón + posicionado sobre la imagen */
.sw-team .team-thumb .team-button-popup {
    position: absolute;
    bottom: 15px;
    left: 15px;
}
.sw-team .team-button-popup > span.sw-popup-trigger {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--primary-color, #EB9100);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
}
.sw-team .team-button-popup > span.sw-popup-trigger:hover {
    background: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.3);
    border-color: #fff;
}
/* Estilos para el icono Flaticon */
.sw-popup-trigger span.ot-flaticon-signs {
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
.sw-team .team-info {
    padding: 25px 20px;
}
/* POPUP STYLES */
.sw-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.sw-popup-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    max-width: 1257px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s ease;
}
.sw-popup-overlay.active .sw-popup-container {
    transform: scale(1) translateY(0);
}
.sw-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 20px;
}
.sw-popup-close:hover {
    transform: scale(1.1);
    color: #000;
}
.sw-popup-content {
    display: flex;
    overflow-y: auto;
}
.sw-popup-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sw-popup-image img {
    width: 100%;
    object-fit: cover;
}
.sw-popup-info {
    padding: 60px;
}
h3.sw-popup-name {
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: uppercase;
}
.sw-popup-position {
    margin-bottom: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color, #EB9100);
    text-transform: uppercase;
}
.sw-popup-description {
    color: #000000;
    font-size: 16px;
    overflow-y: auto;
}

/* Scrollbar personalizada para la descripción */
.sw-popup-description::-webkit-scrollbar {
    width: 6px;
}

.sw-popup-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sw-popup-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sw-popup-description::-webkit-scrollbar-thumb:hover {
    background: #999;
}
@media (max-width: 768px) {
    .sw-popup-container {
        width: 95%;
    } 
    .sw-popup-content {
        flex-direction: column;
        min-height: auto;
    }
    .elementor .sw-popup-image img {
        max-width: 200px;
    }
    .sw-popup-info {
        padding: 30px;
    }
    .sw-popup-position {
        margin-bottom: 30px;
    }
}

/* ==================================================
   SW ICON BOX WIDGET
================================================== */
.sw-iconbox {
    text-align: center;
}
.sw-iconbox:hover {
    background-color: #262832;
}
.sw-iconbox.icon-box-1 .icon-main {
    background-color: transparent;
}
.sw-iconbox.icon-box .icon-main svg {
    width: 75px;
}
.sw-iconbox.icon-box .title-box {
    color: #000000;
}
.sw-iconbox.icon-box:hover .title-box,
.sw-iconbox.icon-box:hover .sw-iconbox-shortdesc {
    color: #ffffff;
}
.sw-iconbox-shortdesc {
    font-weight: 400;
}
button.sw-iconbox-btn.link-details {
    padding: 0;
    border: none;
    background: none;
}
button.sw-iconbox-btn.link-details::after {
    position: absolute;
    content: "";
    width: 70px;
    height: 3px;
    bottom: -2px;
    left: 50%;
    margin-left: -35px;
    background-color: var(--primary-color, #EB9100);
    -webkit-border-radius: 1.5px;
    -moz-border-radius: 1.5px;
    border-radius: 1.5px;
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
}
.sw-iconbox.icon-box:hover button.sw-iconbox-btn.link-details::after {
    opacity: 0;
}
.sw-popup-container.sw-popup-icon-container {
    max-width: 900px;
}
.sw-popup-icon-container h3.sw-popup-name {
    margin-bottom: 30px;
    font-size: 20px;
    text-transform: none;
}