/* =========================================
   Estilos para el Perfil Individual
========================================= */

.ppf-single-profile {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Header / Banner */
.ppf-sp-header {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-color: #f7a1c4;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 80px; /* Espacio para el avatar que sobresale */
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.ppf-sp-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    border-radius: 16px;
    z-index: 1;
}

.ppf-sp-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 25px;
    width: 100%;
    transform: translateY(50px); /* El avatar sobresale hacia abajo */
}

.ppf-sp-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ppf-sp-title-area {
    padding-bottom: 50px; /* Para alinear con el avatar sobresaliente */
}

.ppf-sp-name {
    margin: 0 0 5px 0 !important;
    font-size: 2.2rem !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
}

.ppf-sp-category {
    margin: 0 0 10px 0 !important;
    font-size: 1.1rem;
    color: #ffe0ef;
    font-weight: 500;
}

.ppf-sp-rating {
    color: #ffc107;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ppf-sp-rating span {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Cuerpo Layout */
.ppf-sp-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.ppf-sp-main {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ppf-sp-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Cajas de Contenido */
.ppf-sp-box, .ppf-sp-widget {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f2f2f2;
}

.ppf-sp-box h2, .ppf-sp-widget h3 {
    margin: 0 0 20px 0 !important;
    color: #d72660 !important;
    font-size: 1.5rem !important;
    font-weight: 700;
    border-bottom: 2px solid #ffe0ef;
    padding-bottom: 10px;
}

.ppf-sp-box p {
    line-height: 1.7;
    color: #555;
    font-size: 1.05rem;
}

/* Tags de Especialidades */
.ppf-sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ppf-sp-tag {
    background: #ffe0ef;
    color: #d72660;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Cédula */
.ppf-sp-cedula {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f7a1c4;
    color: #444;
}

/* Sidebar Contacto */
.ppf-sp-contact-widget ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ppf-sp-contact-widget li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #444;
}

.ppf-sp-contact-widget i {
    color: #f7a1c4;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.ppf-sp-contact-widget a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.ppf-sp-contact-widget a:hover {
    color: #d72660;
}

/* Botones */
.ppf-sp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff !important;
}

.ppf-sp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.ppf-sp-btn-whatsapp {
    background: #25D366;
}

.ppf-sp-btn-whatsapp:hover {
    background: #1ebc5a;
}

.ppf-text-muted {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .ppf-sp-body {
        flex-direction: column;
    }
    .ppf-sp-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        transform: translateY(75px);
    }
    .ppf-sp-header {
        margin-bottom: 100px;
        justify-content: center;
    }
    .ppf-sp-title-area {
        padding-bottom: 0;
    }
    .ppf-sp-rating {
        justify-content: center;
    }
}
