.profile-page {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.profile-page * {
  box-sizing: border-box;
}

/* MAIN */
.profile-page .profile-main {
  padding: 88px 16px 40px; /* aire para top-bar */
}

.profile-page .profile-container {
  max-width: 1100px;
  margin: 0 auto;
}

.profile-page .profile-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1c1e21;
}

/* GRID 2 columnas */
.profile-page .profile-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px) {
  .profile-page .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD base */
.profile-page .profile-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 16px;
}

/* HEADER CARD */
.profile-page .profile-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.profile-page .profile-pic {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  background: #fff;
}

.profile-page .profile-info {
  flex: 1;
  min-width: 0;
}

.profile-page .profile-info h2 {
  margin: 2px 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #1c1e21;
  line-height: 1.2;
}

.profile-page .subtitle {
  margin: 0 0 10px;
  color: #65676b;
  font-size: 13px;
  font-weight: 600;
}

/* contactos */
.profile-page .profile-contact p {
  margin: 6px 0;
  font-size: 13.5px;
  color: #1c1e21;
  display: flex;
  gap: 10px;
  align-items: center;
  word-break: break-word;
}

.profile-page .profile-contact i {
  color: #ffadad;
  width: 18px;
}

/* botón editar (profesional y sobrio) */
.profile-page .btn-edit {
  background: #e4e6eb;
  color: #050505;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: fit-content;
}

.profile-page .btn-edit:hover {
  background: #d8dadf;
  transform: translateY(-1px);
}

/* responsive header: apila botón si no entra */
@media (max-width: 980px) {
  .profile-page .profile-header {
    flex-wrap: wrap;
  }

  .profile-page .btn-edit {
    width: 100%;
    justify-content: center;
  }
}

/* STATS: tarjetitas en fila */
.profile-page .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 520px) {
  .profile-page .stats {
    grid-template-columns: 1fr;
  }
}

.profile-page .stat {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-page .stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.profile-page .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-page .stat i {
  font-size: 18px;
  color: #ffadad;
}

.profile-page .stat span {
  font-weight: 900;
  font-size: 18px;
  color: #1c1e21;
}

.profile-page .stat small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #65676b;
  font-weight: 600;
}

.profile-page .stat.clickable {
  cursor: pointer;
}

/* TURNOS (lista estilo FB) */
.profile-page .turnos h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: #1c1e21;
}

.profile-page .muted {
  margin: 0;
  color: #65676b;
  font-size: 13.5px;
}

.profile-page .turnos-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-page .turno-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.profile-page .turno-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  background: #fffdfc; /* leve cálido con tu paleta */
}

.profile-page .turno-main {
  min-width: 0;
}

.profile-page .turno-name {
  font-weight: 800;
  color: #1c1e21;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-page .turno-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #65676b;
  font-size: 12.5px;
  font-weight: 600;
  flex-wrap: wrap;
}

.profile-page .turno-dot {
  opacity: 0.7;
}

.profile-page .turno-icon i {
  color: #ffadad;
  font-size: 16px;
}

/* ================================
   FIX: estilos globales que pisan el perfil
   (main centrado / fondo blanco grande / etc.)
   Pegalo al FINAL del profile.css
================================ */
.profile-page main.profile-main{
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;

  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;

  display: block !important;
  align-items: initial !important;

  padding: 88px 16px 40px !important;
}

/* El título no centrado por reglas globales */
.profile-page .profile-title{
  text-align: left !important;
  margin: 0 0 12px !important;
}

/* Un poquito más ancho para que no se rompa el mail */
.profile-page .profile-container{
  max-width: 1200px !important;
  width: 100% !important;
}

/* Columna izquierda un poco más amplia */
.profile-page .profile-grid{
  grid-template-columns: 1fr 520px !important;
}

/* Header más “pro”: en grilla (avatar | info | acción) */
.profile-page .profile-header{
  display: grid !important;
  grid-template-columns: 88px 1fr auto !important;
  align-items: start !important;
  gap: 14px !important;
}

.profile-page .profile-info{
  min-width: 0 !important;
}

/* Evita cortes feos del email */
.profile-page .profile-contact span{
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Mobile: el botón baja y ocupa todo */
@media (max-width: 980px){
  .profile-page .profile-grid{
    grid-template-columns: 1fr !important;
  }

  .profile-page .profile-header{
    grid-template-columns: 88px 1fr !important;
  }

  .profile-page .btn-edit{
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ================================
   FONDO: dejar ver el body (imagen)
================================ */
.profile-page{
  background: transparent !important; /* deja ver el body */
}

/* overlay suave SOLO detrás del contenido del perfil */
.profile-page .profile-main{
  position: relative;
  background: transparent !important;
}

.profile-page .profile-container{
  position: relative;
  z-index: 1; /* por encima del overlay */
}

/* ================================
   TEXTO EN 1 SOLA LINEA (nombre/mail/tel)
================================ */
.profile-page .profile-info h2{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* evitar que mail/tel se partan */
.profile-page .profile-contact p{
  min-width: 0;
  white-space: nowrap;
}

.profile-page .profile-contact span{
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================
   TURNOS CLICKABLE
================================ */
.profile-page .turno-card.clickable{
  cursor: pointer;
}

/* Nombre + profesión alineados a la izquierda */
.profile-page .profile-info{
  text-align: left !important;
}

.profile-page .profile-info h2,
.profile-page .profile-info .subtitle{
  text-align: left !important;
  width: 100%;
}

.profile-page .income-card{
  margin-top: 14px;
  padding: 16px;
}

.profile-page .income-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.profile-page .income-head h3{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:#444;
  border-left:5px solid #ffadad;
  padding-left:10px;
}

.profile-page .income-controls select{
  border-radius:12px;
  border:1.5px solid #ffd6d6;
  padding:8px 10px;
  background:#fff;
  font-family:"Poppins", sans-serif;
}

.profile-page .income-kpis{
  display:flex;
  gap:12px;
  margin:10px 0 12px;
}

.profile-page .income-kpi{
  flex:1;
  background:#fff;
  border:1px solid rgba(255,173,173,.25);
  border-radius:14px;
  padding:10px 12px;
}

.profile-page .income-kpi .lbl{
  display:block;
  font-size:12px;
  color:#777;
  margin-bottom:4px;
}

.profile-page .income-kpi .val{
  font-weight:900;
  color:#333;
}

.profile-page .income-chart-wrap{
  height: 200px; /* importante para Chart.js */
  position: relative;
}
