/* Panel de barberos */

.panel-wrap { max-width: 1280px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }

.side { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.side-brand { display: flex; flex-direction: column; gap: 10px; }
.side-brand img { width: 220px; max-width: 100%; height: auto; display: block; }
.side-brand .eyebrow { letter-spacing: 0.16em; }
.side-group { display: flex; flex-direction: column; gap: 8px; }
.side-label { font-family: 'Archivo Narrow', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.side-barbero { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; font-weight: 700; }
.side-barbero .avatar { width: 36px; height: 36px; flex: 0 0 auto; font-size: 16px; }
.vista { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--text); font-weight: 600; text-align: left; }
.vista[aria-current="page"] { background: var(--sel-bg); color: var(--sel-fg); }
.side-tema { background: transparent; align-self: flex-start; min-height: 48px; }
.side-back { font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }

.panel-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.panel-head-txt { display: flex; flex-direction: column; gap: 4px; }
.hola { font-size: 15px; color: var(--muted); }
.panel-head h1 { margin: 0; font-size: 44px; line-height: 1.1; color: var(--accent); }
.panel-sub { font-size: 15px; color: var(--soft); }

.agenda { display: flex; flex-direction: column; gap: 24px; }
.dia { width: 78px; padding: 10px 6px; gap: 0; }
.dia .dow { font-size: 13px; }
.dia .num { font-size: 24px; line-height: 1.2; }
.dia .cuenta { font-size: 12px; }

.alerta { padding: 14px 18px; border-radius: 12px; border: 2px solid #C77B2E; background: var(--card); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.alerta-txt { font-size: 15px; color: var(--soft); }
.chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip.pendiente { background: #8A4A12; color: #FFF6D2; }
.chip.confirmado { background: var(--sel-bg); color: var(--sel-fg); }
.chip.atendido { background: #3E5A3A; color: #F3E9CF; }
.chip.novino { background: #9E2B25; color: #FFF6D2; }
.chip.cancelado { background: var(--line); color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.stat-val { font-family: 'Rye', serif; font-size: 28px; line-height: 1.2; color: var(--accent); }
.stat.prox { background: var(--sel-bg); color: var(--sel-fg); border: 0; }
.stat.prox .stat-label, .stat.prox .stat-val { color: inherit; }
.stat-extra { font-size: 14px; }

.vacio { padding: 32px; border-radius: 14px; border: 1px dashed var(--border); color: var(--muted); text-align: center; }

.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.slot { display: flex; gap: 16px; align-items: stretch; }
.slot-hora { flex: 0 0 64px; padding-top: 14px; font-family: 'Archivo Narrow', sans-serif; font-weight: 700; font-size: 18px; color: var(--accent); }
.slot-hora.pasado { color: var(--past); }
.turno { flex: 1 1 auto; min-width: 0; padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.turno.pendiente { background: var(--taken-bg); border-color: #C77B2E; }
.turno.confirmado { background: var(--taken-bg); border-color: var(--border); }
.turno-txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.turno-cliente { font-weight: 700; font-size: 17px; }
.turno.cancelado .turno-cliente { text-decoration: line-through; }
.turno-det { font-size: 14px; color: var(--soft); }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acc { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--border); background: transparent; color: var(--text); font-weight: 600; font-size: 14px; }
.acc.primario { border: 0; padding: 0 18px; background: var(--sel-bg); color: var(--sel-fg); font-weight: 700; }
.acc.acento { border-color: var(--accent); color: var(--accent); }
.acc.texto { border: 0; color: var(--muted); text-decoration: underline; }
.acc.texto.acento { color: var(--accent); }
.wa-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; }

.libre, .bloq { flex: 1 1 auto; min-width: 0; padding: 8px 18px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.libre { border: 1px dashed var(--line); }
.bloq { background: repeating-linear-gradient(-45deg, var(--card) 0 10px, var(--stripe) 10px 20px); border: 1px solid var(--line); }
.libre > span, .bloq > span { font-size: 15px; color: var(--muted); }

.semana { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sem-dia { text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.sem-titulo { font-family: 'Archivo Narrow', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sem-num { font-family: 'Rye', serif; font-size: 34px; line-height: 1; color: var(--accent); }
.sem-det { font-size: 14px; }
.barra { height: 8px; border-radius: 4px; background: var(--line); display: flex; overflow: hidden; }
.barra > span { background: var(--accent); }

.horarios { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.horarios > p { margin: 0; color: var(--soft); }
.hor-fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.hor-txt { display: flex; flex-direction: column; }
.hor-dia { font-weight: 700; font-size: 17px; }
.hor-rango { font-size: 14px; color: var(--muted); }
.hor-btn { min-height: 44px; min-width: 132px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--border); background: transparent; color: var(--text); font-weight: 700; font-size: 14px; }
.hor-btn[aria-pressed="true"] { border-color: var(--sel-bg); background: var(--sel-bg); color: var(--sel-fg); }

@media (max-width: 640px) {
  .panel-head h1 { font-size: 34px; }
}
