/* ============================================================
   Perfil público del fotógrafo (/{slug})

   Es su vitrina, y le llegan dos públicos distintos: el deportista que recibió
   el link y quiere encontrar SU evento, y quien lo está evaluando —un
   organizador, un cliente— y mira portafolio y datos.

   Era la página que más se alejaba del lenguaje del sitio: avatar circular
   montado sobre una portada, todo centrado, botones en píldora y un degradado
   azul de ninguna parte cuando no había portada. El sitio no tiene un solo
   border-radius y alinea a la izquierda.

   Lo que sigue del bloque original es la mecánica que funciona —la retícula del
   portafolio y su visor—, acá solo normalizada a la paleta.
   ============================================================ */

/* El bloque original redefinía acá --accent, --text-secondary, --text-primary,
   --bg-dark y --bg-card. Tres de esos son tokens del SISTEMA: pisarlos en un
   :root local le cambiaba el significado a la paleta dentro de esta página
   —--accent es el verde del deportista en todo el sitio y acá quedaba morado—,
   así que cualquier primitiva ps- se habría dibujado con el color equivocado.
   Se usan los tokens reales del tema. */

.profile-header {
    position: relative;
    margin-bottom: 80px;
}

.cover-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 100%);
}

.profile-avatar-container {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 0;
    border: 4px solid var(--black);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.pro-badge {
    background: var(--warning);
    color: var(--black);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.profile-info {
    text-align: center;
    padding: 0 20px;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.stats-card {
    background: var(--panel);
    border-radius: 0;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.nav-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.nav-link {
    color: var(--text-secondary);
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-weight: 500;
    position: relative;
}

.nav-link.active {
    color: var(--accent);
    background: transparent;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ── Portfolio Gallery ── */
.portfolio-masonry {
    columns: 3;
    column-gap: 12px;
}
@media (max-width: 991px) {
    .portfolio-masonry { columns: 2; }
}
@media (max-width: 575px) {
    .portfolio-masonry { columns: 1; }
}
.portfolio-item {
    break-inside: avoid;
    margin-bottom: 12px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
}
.portfolio-item img {
    width: 100%;
    display: block;
    border-radius: 0;
    transition: transform 0.35s ease;
}
.portfolio-item:hover img {
    transform: scale(1.03);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-caption {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
/* Lightbox */
#portfolioLightbox .modal-content {
    background: var(--black);
    border: none;
}
#portfolioLightbox .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}
#portfolioLightbox img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0;
}
#portfolioLightbox .btn-close {
    filter: invert(1);
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
}
#lbCaption {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    padding: 10px 16px 14px;
    text-align: center;
    min-height: 40px;
}
.lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.lb-nav-btn:hover { background: rgba(123, 110, 232,0.5); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.portfolio-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.portfolio-empty i { font-size: 3rem; opacity: 0.35; }

.search-box {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 12px 20px;
    color: var(--white);
    width: 100%;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(123, 110, 232, 0.2);
}

.event-card {
    background: var(--panel);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(123, 110, 232, 0.3);
}

.event-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.event-body {
    padding: 15px;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white);
}

.event-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-share {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    border-radius: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-share:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* ============================================================
   IDENTIDAD

   A la izquierda y con la cara cuadrada. El avatar circular montado sobre la
   portada es el patrón de red social de hace diez años, y era la mayor
   violación del lenguaje del sitio: acá no hay una sola esquina redondeada.
   ============================================================ */
.pu { padding-bottom: 0; }
.pu__head { min-height: 260px; }

.pu__identity { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.pu__face {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--panel);
    /* Filete morado: lo mismo que marca al fotógrafo en el resto del sitio. */
    border-left: 2px solid var(--ice);
    display: block;
}
.pu__who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pu .page-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pu__plan {
    padding: 2px 8px;
    background: var(--ice);
    color: var(--black);
    font-family: var(--font-display);
    font-size: var(--ps-fs-label);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pu__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    font-size: var(--ps-fs-support);
    color: var(--muted);
}
.pu__dot { width: 3px; height: 3px; background: var(--border-light); flex-shrink: 0; }

.pu__bio {
    max-width: 62ch;
    margin: 0 0 28px;
    font-size: var(--ps-fs-body);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   PESTAÑAS
   Se conserva el mecanismo de Bootstrap —el marcado no cambia— y solo se
   reviste: filete de 2px abajo en vez de la subrayada por defecto.
   ============================================================ */
.pu .nav-tabs {
    justify-content: flex-start !important;
    gap: 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.pu .nav-tabs .nav-link {
    padding: 12px 0;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: var(--ps-fs-label);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.pu .nav-tabs .nav-link:hover { color: var(--white); }
.pu .nav-tabs .nav-link.active {
    background: none;
    color: var(--white);
    border-bottom-color: var(--ice);
}
.pu .nav-tabs .nav-link i { display: none; }

/* ============================================================
   EVENTOS
   Misma ficha que la galería, pero sin el autor: en su propio perfil, decir
   quién sacó las fotos en cada tarjeta es repetirse.
   ============================================================ */
.pu .event-card {
    background: var(--panel);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    transition: none;
}
.pu .event-card:hover { transform: none; }
.pu .event-card .event-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--black);
    display: block;
    transition: filter .2s ease;
}
.pu .event-card:hover .event-image { filter: brightness(1.08); }
.pu__nocover { background: var(--charcoal); }

.pu .event-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.pu .event-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: -.01em;
    line-height: 1.2;
    color: var(--white);
    margin: 0;
}
.pu .event-date { font-size: var(--ps-fs-support); color: var(--muted); }
.pu__price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--ps-fs-support);
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* El buscador de eventos, en el lenguaje del sitio. */
.pu .search-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--white);
    min-height: var(--ps-h-control);
}
.pu .search-box:focus { border-color: var(--ice); box-shadow: none; outline: none; }

@media (max-width: 767px) {
    .pu__head { min-height: 220px; }
    .pu__identity { gap: 14px; }
    .pu__face { width: 62px; height: 62px; }
    .pu .nav-tabs { gap: 18px; }
    .pu .nav-tabs .nav-link { letter-spacing: .1em; }
}

/* ----------- Columna de contenido -----------
   La banda va a sangre; el resto vive en una columna centrada. Sin esto, en
   una pantalla ancha la biografía, las pestañas y la grilla quedaban pegadas al
   borde izquierdo con la mitad derecha vacía.

   1240px y no los 1100 de /PaymentInfo o /Profile: esas son columnas de
   formulario, donde un renglón largo se vuelve ilegible. Acá abajo hay una
   grilla de eventos y un portafolio, que necesitan ancho. */
.pu__body { max-width: 1240px; margin-inline: auto; }

/* La banda se alinea a la misma columna: si no, el nombre del fotógrafo queda
   en el borde de la pantalla y las pestañas centradas, desalineados entre sí. */
.pu .ps-band__inner { max-width: 1240px; margin-inline: auto; }
