/* =========================================================
   GUÍA SALUS — PERFIL
   Estilos específicos de perfil.php
   ========================================================= */

/* =========================================================
   PERFIL
   ========================================================= */

.perfil-publico-container {
    width: calc(100% - 30px);
    max-width: 820px;
    margin: 2.5rem auto 4rem;
    padding: 3rem;
    background: var(--tono-muyclaro);
    border: 1px solid #e5e7eb;
    border-radius: 12px;

}

.perfil-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid color-mix(in srgb, var(--tono-medio) 50%, transparent);
    flex-wrap: wrap;
}

.perfil-header-izquierda {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 280px;
}

.perfil-header-derecha {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

/* =========================================================
   FOTO
   ========================================================= */

.perfil-foto {
    flex-shrink: 0;
}

.perfil-foto img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================================================
   INFORMACIÓN
   ========================================================= */

.perfil-nombre {
    margin: 0;
    margin-bottom: 0.4rem;
    color: #1f2937;
    font-size: 1.8rem;
    line-height: 1;
}

.perfil-profesion {
    margin-top: 2px;
    margin-bottom: 0.1rem;
    color: var(--color-principal);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.2;
}

.perfil-especialidad {
    margin-bottom: 1.5rem; /* Empuja hacia abajo la matrícula y ciudad */
    color: var(--color-texto-secundario);
    font-size: .95rem;
    line-height: 1.2;
}

.perfil-datos {
    margin: 0;
    color: var(--color-texto-secundario);
    font-size: .9rem;
    line-height: 1.2;
}

/* =========================================================
   CONSULTORIO
   ========================================================= */

.consultorio-foto-header {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    max-height: 120px;
    overflow: hidden;
}

.consultorio-foto-header img {
    display: block;
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

/* =========================================================
   BIOGRAFÍA
   ========================================================= */

.perfil-biografia {
    margin-bottom: 2.5rem;
}

.perfil-biografia h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.2rem;
}

.perfil-biografia p {
    color: var(--color-texto-secundario);
    line-height: 1.8;
}

/* =========================================================
   HONORARIOS
   ========================================================= */

.perfil-honorarios {
    margin-bottom: 2.5rem;
    text-align: center;
}

.perfil-honorarios p {
    margin: 0;
    color: var(--color-texto-secundario);
    font-size: .95rem;
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .profesionales-header {
        padding: 18px 15px;
    }

    .profesionales-brand {
        gap: 9px;
    }

    .profesionales-brand img {
        width: 48px;
        height: 48px;
    }

    .profesionales-brand h1 {
        font-size: 1.45rem;
    }

    .profesionales-brand p {
        margin-top: 3px;
        font-size: .68rem;
    }

    .profesionales-back {
        padding: 7px 10px;
        font-size: .7rem;
        white-space: nowrap;
    }

    .perfil-publico-container {
        margin: 1rem auto 2rem;
        padding: 1.5rem;
    }

    .perfil-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .perfil-header-izquierda {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        min-width: 0;
        width: 100%;
    }

    .perfil-header-derecha {
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .perfil-nombre {
        font-size: 1.6rem;
    }

    .perfil-profesion {
        font-size: 1.1rem;
    }

    .perfil-especialidad {
        font-size: .9rem;
    }

    .perfil-datos {
        font-size: .85rem;
    }

    .consultorio-foto-header {
        max-width: 160px;
        max-height: 100px;
    }

    .consultorio-foto-header img {
        max-width: 160px;
        max-height: 100px;
    }

    .perfil-biografia {
        text-align: left;
    }

    .perfil-biografia h3 {
        font-size: 1.1rem;
    }

    .perfil-biografia p {
        font-size: .92rem;
        line-height: 1.7;
    }

    .perfil-honorarios p {
        font-size: .85rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {

    .profesionales-header {
        gap: 10px;
    }

    .profesionales-brand {
        gap: 7px;
    }

    .profesionales-brand img {
        width: 44px;
        height: 44px;
    }

    .profesionales-brand h1 {
        font-size: 1.3rem;
    }

    .profesionales-brand p {
        font-size: .6rem;
    }

    .profesionales-back {
        padding: 6px 8px;
        font-size: .65rem;
    }

    .perfil-publico-container {
        padding: 1.2rem;
    }

    .perfil-foto img {
        width: 145px;
        height: 145px;
    }

    .perfil-nombre {
        font-size: 1.45rem;
    }
}