:root {
    --dif-rosa: #E91E63;
    --dif-rosa-dark: #C2185B;
    --dif-gris: #f8f9fa;
}

.directory-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--dif-rosa) 0%, var(--dif-rosa-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}
.directory-hero::after {
    content: "\F4E1";
    font-family: bootstrap-icons;
    position: absolute;
    right: -20px;
    bottom: -50px;
    font-size: 15rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.card-directory {
    border: none;
    border-radius: 16px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: visible;
    position: relative;
}
.card-directory:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.12);
}
.card-top-accent { height: 8px; width: 100%; border-radius: 16px 16px 0 0; }

.avatar-container {
    margin: -50px auto 15px auto;
    margin-top: 0; margin-bottom: 20px;
    border-radius: 50%;
    padding: 4px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #eee;
    cursor: pointer; 
    transition: transform 0.2s;
}
.avatar-container:hover { transform: scale(1.05); }

.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background-color: #f8f9fa; }

.avatar-badge {
    position: absolute; bottom: 2px; right: 2px; width: 32px; height: 32px;
    border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center;
    font-size: 16px; border: 3px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Textos y Botones --- */
.titular-name { font-size: 1.1rem; font-weight: 700; color: #333; letter-spacing: -0.5px; }
.area-name { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }

.contact-btn {
    text-decoration: none; color: #666; font-size: 0.9rem; padding: 10px 15px;
    border-radius: 10px; background-color: #f8f9fa; transition: all 0.2s;
    display: flex; align-items: center; justify-content: flex-start; margin-bottom: 8px;
    border: 1px solid transparent;
}
.contact-btn:hover { 
    background-color: white; color: var(--dif-rosa); border-color: var(--dif-rosa);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.1); transform: translateX(5px);
}
.contact-btn i { margin-right: 12px; font-size: 1.2rem; color: #aaa; transition: 0.2s;}
.contact-btn:hover i { color: var(--dif-rosa); }

.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); 
    z-index: 9999;
    display: none; 
    align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}
.lightbox-content {
    position: relative;
    max-width: 500px; 
    width: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}
.lightbox-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 4px solid white;
}
.lightbox-close {
    position: absolute; top: -40px; right: 0;
    color: white; font-size: 2rem; cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover { color: var(--dif-rosa); transform: rotate(90deg); }
.lightbox-caption {
    color: white; margin-top: 15px; font-size: 1.2rem; font-weight: bold;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}