/**
 * Estilos para página de Equipo
 * Microdental QH Theme
 */

/* ========================================
   HERO SECTION
   ======================================== */
.team-hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #B85170 0%, #9A3E5C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.05"/><circle cx="60" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="30" cy="70" r="2.5" fill="white" opacity="0.05"/><circle cx="90" cy="10" r="1" fill="white" opacity="0.08"/></svg>') repeat;
    z-index: 0;
}

.team-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.team-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-icon {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========================================
   MAIN DOCTOR SECTION
   ======================================== */
.main-doctor {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.doctor-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-badge {
    margin-bottom: 1.5rem;
}

.badge-text {
    display: inline-block;
    background: linear-gradient(45deg, #B85170, #9A3E5C);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(183, 73, 110, 0.3);
}

.doctor-info h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(183, 73, 110, 0.1);
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list svg {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.doctor-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(183, 73, 110, 0.2);
    background: linear-gradient(135deg, #B85170 0%, #9A3E5C 100%);
    padding: 8px;
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ========================================
   TEAM MEMBERS SECTION
   ======================================== */
.team-members {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(183, 73, 110, 0.05);
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(183, 73, 110, 0.15);
    border-color: rgba(183, 73, 110, 0.2);
}

.team-member.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.team-member.featured .member-image {
    height: 400px;
}

.team-member.featured .member-info {
    padding: 3rem;
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(183, 73, 110, 0.8) 0%, rgba(158, 58, 92, 0.8) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.specialty-badge {
    background: white;
    color: #B85170;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-role {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.member-locations {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #B85170;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(183, 73, 110, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

/* ========================================
   TEAM VALUES SECTION
   ======================================== */
.team-values {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.value-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(183, 73, 110, 0.05);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #B85170, #9A3E5C);
    transition: left 0.3s ease;
}

.value-card:hover::before {
    left: 0;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(183, 73, 110, 0.15);
    border-color: rgba(183, 73, 110, 0.2);
}

.value-icon {
    margin-bottom: 2rem;
}

.value-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.team-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #B85170 0%, #9A3E5C 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: white;
    color: #B85170;
}

.team-cta .btn-primary {
    background: white !important;
    color: #B85170 !important;
    border: 2px solid white;
}

.team-cta .btn-primary:hover {
    background: rgba(255,255,255,0.9) !important;
    color: #B85170 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #B85170;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .team-member.featured {
        grid-column: span 1;
        display: block;
    }
    
    .team-member.featured .member-info {
        padding: 2rem;
    }
    
    .doctor-spotlight {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .image-frame img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .doctor-info h2 {
        font-size: 2rem;
    }
    
    .credentials-list li {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons a {
        width: 100%;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .member-locations {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .team-hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-doctor {
        padding: 3rem 0;
    }
    
    .team-members {
        padding: 3rem 0;
    }
    
    .team-values {
        padding: 3rem 0;
    }
    
    .doctor-spotlight {
        gap: 2rem;
    }
    
    .image-frame img {
        height: 300px;
    }
    
    .value-card,
    .member-info {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }
    
    .badge-text {
        font-size: 0.8rem;
        padding: 0.4rem 1.5rem;
    }
    
    .member-image {
        height: 250px;
    }
    
    .team-member.featured .member-image {
        height: 300px;
    }
}