/**
 * Estilos para Página Individual de Médico
 * ========================================
 */

/* ===== DOCTOR HEADER ===== */

.doctor-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.doctor-profile-image {
    position: relative;
    display: inline-block;
}

.doctor-profile-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 8px solid white;
}

.doctor-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.doctor-badge i {
    font-size: 2rem;
    color: white;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ===== CONTENT CARDS ===== */

.content-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* ===== ESPECIALIDADES ===== */

.specialty-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
}

.specialty-item:last-child {
    border-bottom: none;
}

.specialty-item i {
    font-size: 1.25rem;
}

/* ===== TIMELINE ===== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.timeline-content h5 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0.25rem;
}

/* ===== MEMBRESÍAS ===== */

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

.membership-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

/* ===== SIDEBAR ===== */

.sidebar-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

/* Horarios */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.schedule-day {
    font-weight: 600;
    color: var(--gray-700);
}

.schedule-time {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Obras Sociales */
.insurance-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.insurance-list li {
    padding: 0.5rem 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991.98px) {
    .doctor-profile-image img {
        width: 250px;
        height: 250px;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -2rem;
    }
}

@media (max-width: 767.98px) {
    .doctor-profile-image img {
        width: 200px;
        height: 200px;
    }
    
    .doctor-badge {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }
    
    .doctor-badge i {
        font-size: 1.5rem;
    }
    
    .info-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}


/* ===== DOCTOR PROFILE AVATAR (sin foto — ícono de especialidad) ===== */
.doctor-profile-avatar {
    position: relative;
    width: 300px;
    height: 300px;
    border: 8px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--av-1, var(--primary-color)) 0%, var(--av-2, var(--primary-dark)) 100%);
}

.doctor-profile-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.22), transparent 60%);
    pointer-events: none;
}

.doctor-profile-avatar i {
    position: relative;
    z-index: 1;
    font-size: 7rem;
    color: #ffffff;
    opacity: 0.96;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.20));
}

@media (max-width: 991.98px) {
    .doctor-profile-avatar { width: 250px; height: 250px; }
    .doctor-profile-avatar i { font-size: 6rem; }
}

@media (max-width: 575.98px) {
    .doctor-profile-avatar { width: 200px; height: 200px; }
    .doctor-profile-avatar i { font-size: 5rem; }
}
