/* ════════════════════════════════════════
   PERFIL & EXPLORAR
   ════════════════════════════════════════ */

/* ── Perfil: hero con portada ── */
.profile-hero {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.profile-cover {
  height: 120px;
  position: relative;
  overflow: hidden;
  background: var(--crimson-deep);
  z-index: 1;
}
/* Arco dorado */
.profile-cover::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50%;
}
/* Arco blanco sutil */
.profile-cover::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 30%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.profile-cover-edit {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  z-index: 3;
}

.profile-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 1.5rem;
  margin-top: -28px;
}

.profile-big-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
  outline: 3px solid var(--gold);
  position: relative;
  z-index: 2;
}

.profile-details { flex: 1; padding-top: 52px; padding-bottom: 0.5rem; }
.profile-role-line    { font-size: 0.875rem; color: var(--ink3); margin: 3px 0; }
.profile-location     { font-size: 0.8rem; color: var(--ink3); display: flex; align-items: center; gap: 4px; }
.profile-location svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.profile-cta { display: flex; gap: 0.5rem; padding: 0 1.5rem 1.25rem; }

/* Estadísticas del perfil */
.profile-stats-row {
  display: flex;
  gap: 2rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.pstat       { text-align: center; }
.pstat-num   { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; color: var(--crimson); display: block; }
.pstat-label { font-size: 0.7rem; color: var(--ink3); }

/* Bio */
.profile-bio-section { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.section-label       { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink3); margin-bottom: 0.5rem; }
.profile-bio-text    { font-size: 0.875rem; color: var(--ink2); line-height: 1.7; }

/* ── Grid de proyectos (Perfil & Explorar) ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.project-card-grid {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}
.project-card-grid:hover { transform: translateY(-3px); }

.project-thumb {
  height: 160px;
  background: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Arco decorativo en thumbnails */
.project-thumb::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(155, 28, 46, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.project-thumb-placeholder { opacity: 0.08; font-size: 3rem; position: relative; z-index: 1; }
.project-thumb-img         { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.project-card-info    { padding: 0.75rem 1rem; }
.project-card-title   { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.project-card-cat     { font-size: 0.73rem; color: var(--ink3); }
.project-card-likes   { font-size: 0.73rem; color: var(--ink3); display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.project-card-likes svg { width: 12px; height: 12px; stroke: var(--crimson); fill: var(--crimson-light); stroke-width: 1.5; }

.cover-swatches {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.cover-swatch {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.cover-swatch.active {
  border-color: var(--gold);
}