
body {
   background-color: #0D0D0D;
    color: #e0e0e0;
    font-family: 'Segoe UI', Arial, sans-serif; 
    background-size: 60px 60px;
    background-size: 60px 60px;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
}

.team-header {

    text-align: center;
    padding: 150px 50px 100px;
    background: linear-gradient(rgba(54, 54, 54, 0.6), rgba(0,0,0,0.6));
}


.main-title {
      font-size: clamp(32px, 8vw, 60px);
    margin-bottom: 20px;
    display: block;
    text-align: center;
    width: 100%;
    animation: 
        fadeInDown 1.5s ease-out forwards, 
        metallic-shine 6s linear infinite;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 300% auto; 
    -webkit-background-clip: text; 
    background-clip: text;       
    color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.2));
    line-height: 1.2;
    overflow-wrap: break-word;
}
@keyframes metallic-shine {
    0%   { background-position: 0% 50%; }
    100% { background-position: -300% 50%; }
}


.subtitle {
    color: #ffffff;
    font-size: 1.2rem;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 95%;
    max-width: 1600px; 
    margin: 0 auto;
    padding: 20px;
}

.member-card {
    background: #1A1A1A;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #1f2937;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-10px);
    border-color: #b38728;
    box-shadow: 0 10px 30px rgba(255, 240, 32, 0.3);
}

.image-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 10px;
}

.image-container img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.member-card:hover .image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px 10px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.role {
    color: #b38728;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-content {
    background: #0f172a;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    border: 1px solid #334155;
    overflow-y: auto;
    color: #f8fafc;
}

.modal-body {
    display: flex;
    gap: 30px;
    padding: 30px; 
}



.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    line-height: 1.2;
    color: #ffffff;
}

.modal-info .role {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 40px; 
    text-transform: uppercase;
    letter-spacing: 1px; 
}

.modal-info p {
    line-height: 1.8;
    margin-bottom: 5px; 
    font-size: 1.05rem;
    color: #cbd5e1; 
}

.modal-info .contact-item {
    margin-top: 10px;
    display: block;
    font-size: 0.95rem;
}
.modal-image img {
    width: 280px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}
.btn-agendar {
    background: #512D6D;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    width: 100%;
    margin-top: 15px; 
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 15px
}
/* --- MODAL CELULAR --- */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px; /
    }

    .modal-content {
        max-height: 95vh; 
    }

    .modal-body {
        flex-direction: column; 
        padding: 25px; 
        gap: 20px; 
        align-items: center;
    }

    .modal-image img {
        width: 100%;
        max-width: 200px; 
        height: auto;
        aspect-ratio: 3/4; 
        border-radius: 10px;
    }

    .modal-info {
        width: 100%;
        text-align: center; 
    }

  
    .modal-info h2 {
        font-size: 1.4rem; 
        margin-bottom: 10px;
    }

    .modal-info .role {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .modal-info p, 
    .especialidad-texto {
        font-size: 0.95rem; 
        line-height: 1.5; 
    }

    .info-group {
        margin-bottom: 15px; 
    }

    .btn-agendar {
        padding: 12px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
}