/* ============================================
   Lista de Personas con Popup
   ============================================ */

/* Lista */
#people-wrapper span {
    text-transform: uppercase;
    cursor: pointer;
    display: block;
    text-align: center;
    padding: 5px 10px;
}

#people-wrapper span:hover {
    color: #ff4e36;
}

/* Popup wrapper */
#people-image-wrapper {
    position: fixed;
    width: 279px;
    max-width: min(520px, 90vw);
    max-height: 90vh;
    overflow: hidden;
    top: 0;
    left: 0;
    padding: 0;
    display: none;
    background: rgba(0, 0, 0, 1);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 0px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
    z-index: 1000;
    will-change: opacity, transform;
}

#people-image-wrapper.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Imagen dentro del popup */
#people-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(90vh - 16px);
    object-fit: contain;
}

/* Títulos */
#people-title-wrapper .people-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

#people-title-wrapper .people-role {
    font-weight: 400;
    font-size: 0.85rem;
    color: #666;
}

/* Móvil: popup centrado */
.people-image-wrapper__mobile {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.people-image-wrapper__mobile img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.people-image-wrapper__mobile .people-name,
.people-image-wrapper__mobile .people-role {
    text-align: center;
}

.people-image-wrapper__mobile.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
