/* ============================================================
   Perfil público de usuario (dp-up-*) — user-profile.php
   Tokens del sitio: naranja #f07a2a (hover #e66a1a), tarjetas
   1.5px #e5e7eb radio 16px, sombra suave. Igual que el resto
   de formularios (login/register/account).
   ============================================================ */

.dp-up {
    background: #fff;
    padding: 0 0 56px;
}

.dp-up-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 16px 0;
}

/* Volver al directorio */
.dp-up-back {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #f07a2a !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}
.dp-up-back:hover {
    color: #e66a1a !important;
}

/* Tarjeta principal */
.dp-up-hero {
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff7f0 0%, #ffffff 65%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 24px 32px;
    text-align: center;
    margin-bottom: 16px;
}

.dp-up-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(240, 122, 42, 0.25);
    margin-bottom: 16px;
    background: #f3f4f6;
}

.dp-up-name {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.2;
}

/* Pills (nivel de membresía, provincia) */
.dp-up-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.dp-up-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f4f4f5;
    color: #444;
    border: 1px solid #e4e4e7;
}
.dp-up-pill--level {
    background: #fff3e8;
    border-color: #f5b683;
    color: #c2560d;
}

/* Grid de tarjetas */
.dp-up-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Tarjeta genérica */
.dp-up-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 22px 24px;
}
.dp-up-card__title {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Bio */
.dp-up-bio {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}
.dp-up-bio p {
    margin: 0 0 10px;
}
.dp-up-bio p:last-child {
    margin-bottom: 0;
}
.dp-up-bio a {
    color: #f07a2a;
}

/* Contacto */
.dp-up-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dp-up-contact li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}
.dp-up-contact__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}
.dp-up-contact a {
    color: #f07a2a;
    text-decoration: none;
    word-break: break-word;
}
.dp-up-contact a:hover {
    text-decoration: underline;
    color: #e66a1a;
}

/* Espaciado uniforme entre tarjetas de primer nivel (Sobre mí,
   Certificaciones). Las tarjetas dentro del grid no se ven afectadas. */
.dp-up-wrap > .dp-up-card {
    margin-bottom: 16px;
}
.dp-up-wrap > .dp-up-card:last-child {
    margin-bottom: 0;
}
.dp-up-cert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dp-up-cert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff9f5;
    border: 1px solid #f5d9c0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #6b3d17;
    line-height: 1.5;
}
.dp-up-cert__check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f07a2a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.dp-up-empty {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Móvil */
@media (max-width: 700px) {
    .dp-up-grid {
        grid-template-columns: 1fr;
    }
    .dp-up-hero {
        padding: 32px 18px 26px;
    }
    .dp-up-name {
        font-size: 23px;
    }
    .dp-up-avatar {
        width: 104px;
        height: 104px;
    }
}
