/* ═══════════════ Agenda de barbería · diseño ═══════════════
   Oscuro premium con acentos dorados y el poste de barbero como firma.
   Modo claro disponible (botón sol/luna). */

/* Colores y letras de la guía de marca «Peñalver Barber’s Club» (propuesta D · Firma con bigote):
   Azul noche #1B2A41 · Blanco #FFFFFF · Arena #E9DFCB · Mostaza #D4A23A
   Mr Dafoe (firma) · Barlow Condensed (rótulos y títulos) · Barlow (textos) */
:root {
  --azul: #1B2A41; --arena: #E9DFCB; --mostaza: #D4A23A; --blanco: #FFFFFF;
  --bg: #111B2B;
  --glow-1: rgba(212, 162, 58, .12);
  --glow-2: rgba(233, 223, 203, .05);
  --panel: #1B2A41;
  --panel-2: #213350;
  --panel-3: #2A3E5E;
  --glass: rgba(20, 31, 49, .82);
  --ink: #F6F1E7;
  --ink-2: #C9CED6;
  --ink-3: #8C97AA;
  --line: rgba(233, 223, 203, .12);
  --line-2: rgba(233, 223, 203, .06);
  --gold: #D4A23A;
  --gold-2: #E9DFCB;
  --gold-ink: #1B2A41;
  --gold-grad: linear-gradient(135deg, #E3B654 0%, #D4A23A 55%, #BE8C2A 100%);
  --gold-soft: rgba(212, 162, 58, .15);
  --ok: #5FC79B; --ok-soft: rgba(95, 199, 155, .14);
  --warn: #F2C35B; --warn-soft: rgba(242, 195, 91, .13);
  --bad: #F08A7E; --bad-soft: rgba(240, 138, 126, .14);
  --info: #8FB6E6; --info-soft: rgba(143, 182, 230, .14);
  --closed: repeating-linear-gradient(135deg, rgba(233,223,203,.035) 0 7px, transparent 7px 14px);
  --shadow: 0 12px 32px rgba(5, 10, 20, .45);
  --shadow-sm: 0 2px 10px rgba(5, 10, 20, .3);
  --radius: 14px;
  --slot: 24px;
  /* el «poste» ahora va en los colores de la marca: mostaza, arena y blanco */
  --pole: repeating-linear-gradient(-45deg, #D4A23A 0 8px, #E9DFCB 8px 16px, #1B2A41 16px 24px, #FFFFFF 24px 32px);
  /* colores del logo sobre fondo oscuro */
  --logo-bigote: #FFFFFF; --logo-firma: #E9DFCB; --logo-sub: #D4A23A; --logo-rotulo: #D4A23A; --logo-fondo: #1B2A41;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-t: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-firma: "Mr Dafoe", cursive;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FBF8F2;
  --glow-1: rgba(212, 162, 58, .14);
  --glow-2: rgba(27, 42, 65, .05);
  --panel: #FFFFFF;
  --panel-2: #F6F0E5;
  --panel-3: #E9DFCB;
  --glass: rgba(251, 248, 242, .86);
  --ink: #1B2A41;
  --ink-2: #4A5568;
  --ink-3: #7D8592;
  --line: #DED5C2;
  --line-2: #EAE3D5;
  --gold: #8A6418;
  --gold-2: #7A5814;
  --gold-soft: rgba(212, 162, 58, .16);
  --ok: #1E7A50; --ok-soft: #E1F2E9;
  --warn: #8A5A06; --warn-soft: #FBEFD6;
  --bad: #B3362A; --bad-soft: #FBE6E3;
  --info: #24548F; --info-soft: #E3ECF8;
  --closed: repeating-linear-gradient(135deg, rgba(27,42,65,.05) 0 7px, transparent 7px 14px);
  --shadow: 0 10px 30px rgba(27, 42, 65, .10);
  --shadow-sm: 0 2px 8px rgba(27, 42, 65, .07);
  --logo-bigote: #1B2A41; --logo-firma: #1B2A41; --logo-sub: #D4A23A; --logo-rotulo: #7A5814; --logo-fondo: #E9DFCB;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 500px at 0% -10%, var(--glow-1), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, var(--glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }
.oculto { display: none !important; }
h1, h2, h3, .titulo { font-family: var(--font-t); letter-spacing: .3px; }
h1 { font-size: 32px; margin: 0 0 4px; font-weight: 600; line-height: 1.1; }
h2 { font-size: 21px; margin: 0 0 10px; font-weight: 600; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.sub { color: var(--ink-2); margin: 0 0 18px; }
.oro { color: var(--gold); }
.firma-txt { font-family: var(--font-firma); font-weight: 400; color: var(--gold); font-size: 1.35em; letter-spacing: 0; display: inline-block; transform: rotate(-4deg); line-height: .8; }
::selection { background: var(--gold-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ── Poste de barbero (firma visual) ── */
.poste { height: 6px; border-radius: 6px; background: var(--pole); background-size: 45px 45px; animation: poste 2.2s linear infinite; opacity: .95; }
@keyframes poste { to { background-position: 45px 0; } }
@media (prefers-reduced-motion: reduce) { .poste { animation: none; } }

/* ═══════════ Estructura ═══════════ */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.lateral {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 20px 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
  border-right: 1px solid var(--line); backdrop-filter: blur(10px);
}
.marca { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.marca .logo { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #1d2330, #0d1016); box-shadow: inset 0 0 0 1px rgba(217,169,87,.35), 0 6px 18px rgba(217,169,87,.15); }
.marca b { display: block; font-family: var(--font-t); font-size: 15.5px; line-height: 1.2; }
.marca small { color: var(--ink-3); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.lateral .poste { margin: 2px 6px 6px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: none;
  border-radius: 12px; cursor: pointer; color: var(--ink-2); text-align: left; font-family: var(--font-t); font-size: 17px; font-weight: 500; letter-spacing: .4px; transition: background .15s, color .15s;
}
.nav button svg { opacity: .85; }
.nav button:hover { background: var(--panel-2); color: var(--ink); }
.nav button.activo { background: linear-gradient(90deg, var(--gold-soft), transparent); color: var(--ink); font-weight: 600; }
.nav button.activo svg { color: var(--gold); opacity: 1; }
.nav button.activo::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mostaza); }
.nav .badge { margin-left: auto; }
.lateral .esp { flex: 1; }
.yo-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.yo-card .t1 { font-weight: 600; font-size: 14px; }
.yo-card .t2 { font-size: 12px; color: var(--ink-3); }
.yo-card .principal { flex: 1; min-width: 0; }
.icono-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.icono-btn:hover { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.contenido { min-width: 0; padding: 26px 28px 40px; }
.top-movil, .nav-movil { display: none; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .top-movil {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; padding: 10px 14px;
    background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line);
  }
  .top-movil .marca { padding: 0; flex: 1; min-width: 0; }
  .top-movil .marca .logo { width: 36px; height: 36px; }
  .top-movil .marca b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-movil .poste { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 0; }
  .nav-movil {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); border-radius: 20px;
    padding: 6px; box-shadow: var(--shadow); overflow-x: auto; gap: 2px;
  }
  .nav-movil button {
    flex: 1; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border: 0; background: none;
    color: var(--ink-3); font-size: 10.5px; font-weight: 600; border-radius: 14px; position: relative; cursor: pointer;
  }
  .nav-movil button.activo { color: var(--gold); background: var(--gold-soft); }
  .nav-movil .badge { position: absolute; top: 2px; right: calc(50% - 20px); }
  .contenido { padding: 16px 12px 110px; }
  h1 { font-size: 22px; }
}

.badge { background: #C8473A; color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(200,71,58,.4); }

/* ═══════════ Componentes ═══════════ */
.tarjeta {
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 70%, var(--panel)), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 11px; min-height: 40px;
  border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-weight: 550; white-space: nowrap; text-decoration: none; color: var(--ink);
  transition: transform .08s, border-color .15s, background .15s, box-shadow .15s;
}
.btn:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn.prim { background: var(--mostaza); color: var(--azul); border-color: transparent; font-family: var(--font-t); font-weight: 600; font-size: 15.5px; letter-spacing: 1.2px; text-transform: uppercase; box-shadow: 0 6px 18px rgba(212,162,58,.25); }
.btn.prim:hover { background: #DDAE48; box-shadow: 0 8px 24px rgba(212,162,58,.38); }
.btn.ok { background: #2E9E6E; color: #fff; border-color: transparent; font-family: var(--font-t); font-weight: 600; font-size: 15.5px; letter-spacing: 1px; text-transform: uppercase; }
.btn.peligro { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); background: transparent; }
.btn.peq { padding: 6px 11px; font-size: 13px; min-height: 34px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fila .esp, .esp { flex: 1; }
label.campo { display: block; margin-bottom: 13px; }
label.campo > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 550; letter-spacing: .2px; }
input[type=text], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
select option { background: var(--panel); }
textarea { min-height: 74px; resize: vertical; }
input[type=checkbox] { accent-color: var(--gold); width: 17px; height: 17px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.oro { background: var(--gold-soft); color: var(--gold); -webkit-text-fill-color: currentColor; }
.aviso { padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 9px; align-items: flex-start; border: 1px solid transparent; }
.aviso.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.aviso.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.aviso.oro { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.vacio { color: var(--ink-3); text-align: center; padding: 34px 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; background: var(--gold-soft); color: var(--gold); font-family: var(--font); font-size: 14px; }
.avatar.c { background: var(--c); color: #fff; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px color-mix(in srgb, var(--c) 70%, transparent); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ═══════════ Cabecera de la agenda y resumen ═══════════ */
.saludo { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.saludo .sub { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi {
  position: relative; overflow: hidden; padding: 15px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--k, var(--gold)) 13%, var(--panel)), var(--panel) 65%); box-shadow: var(--shadow-sm);
}
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--k, var(--gold)) 22%, transparent), transparent 70%); }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--k, var(--gold)) 18%, transparent); color: var(--k, var(--gold)); margin-bottom: 10px; }
.kpi .val { font-family: var(--font-t); font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .val small { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.kpi .lbl { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.click { cursor: pointer; }
.kpi.click:hover { border-color: color-mix(in srgb, var(--k, var(--gold)) 45%, var(--line)); }
@media (max-width: 560px) {
  .kpis { gap: 8px; margin-bottom: 12px; }
  .kpi { padding: 10px 12px; border-radius: 14px; }
  .kpi .ico { display: none; }
  .kpi .val { font-size: 21px; }
  .kpi .val small { font-size: 12.5px; }
  .kpi .lbl { font-size: 11.5px; }
  .saludo { margin-bottom: 12px; }
  .saludo h1 { font-size: 21px; }
  .saludo .sub { font-size: 13.5px; }
  .agenda-cab .fecha { display: none; }
  .agenda-cab .btn.peq { padding: 6px 9px; }
  .aviso { font-size: 13px; padding: 9px 12px; margin-bottom: 10px; }
}

.agenda-cab { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.agenda-cab .fecha { font-family: var(--font-t); font-size: 22px; font-weight: 600; margin: 0 6px; letter-spacing: .3px; }
.agenda-cab input[type=date] { width: auto; min-height: 38px; padding: 6px 10px; }
.segmento { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.segmento button { border: 0; background: none; padding: 7px 12px; cursor: pointer; color: var(--ink-2); font-weight: 600; min-height: 38px; }
.segmento button:hover { color: var(--gold); background: var(--gold-soft); }
.segmento button + button { border-left: 1px solid var(--line); }

/* ═══════════ Agenda ═══════════ */
.agenda-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: auto; max-height: calc(100vh - 150px); position: relative; box-shadow: var(--shadow); }
@media (max-width: 860px) { .agenda-wrap { max-height: calc(100vh - 210px); } }
.agenda { display: grid; position: relative; min-width: 100%; }
.ag-cab { position: sticky; top: 0; z-index: 6; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 11px 10px; display: flex; align-items: center; gap: 10px; }
.ag-cab .avatar { width: 34px; height: 34px; font-size: 13px; }
.ag-cab .t1 { font-family: var(--font-t); font-weight: 600; font-size: 17px; line-height: 1.1; letter-spacing: .3px; }
.ag-cab .t2 { font-size: 11.5px; color: var(--ink-3); }
.ag-cab.esquina { left: 0; z-index: 8; }
.ag-horas { position: sticky; left: 0; z-index: 5; background: var(--panel); border-right: 1px solid var(--line); }
.ag-hora { height: var(--slot); font-size: 11px; color: var(--ink-3); text-align: right; padding-right: 8px; position: relative; top: -8px; font-variant-numeric: tabular-nums; font-weight: 500; }
.ag-col { position: relative; border-right: 1px solid var(--line-2); min-width: 160px; }
.ag-col:last-child { border-right: 0; }
.ag-slot { height: var(--slot); border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .1s; }
.ag-slot.hora { border-bottom-color: var(--line); }
.ag-slot.cerrado { background: var(--closed); }
.ag-slot:hover { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.ag-ahora { position: absolute; left: 0; right: 0; height: 2px; background: var(--mostaza); z-index: 4; pointer-events: none; box-shadow: 0 0 10px rgba(212,162,58,.6); }
.ag-ahora::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--mostaza); box-shadow: 0 0 0 3px rgba(212,162,58,.25); }
.cita {
  position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 4px 8px 4px 10px; font-size: 12.5px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, var(--panel)), color-mix(in srgb, var(--c) 14%, var(--panel)));
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-left: 4px solid var(--c);
  color: var(--ink); z-index: 3; line-height: 1.3; transition: transform .12s, box-shadow .12s;
}
.cita:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); z-index: 4; }
.cita .h { font-weight: 700; font-size: 11.5px; color: color-mix(in srgb, var(--c) 55%, var(--ink)); margin-right: 3px; font-variant-numeric: tabular-nums; }
.cita .n { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.cita .s { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.cita.completada { opacity: .55; }
.cita.completada .ico { color: var(--ok); }
.cita.no_presentado { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); border-left-color: var(--bad); }
.cita.no_presentado .n { text-decoration: line-through; }
.cita.cancelada { opacity: .4; background: var(--panel-2); border-left-style: dashed; }
.cita.cancelada .n { text-decoration: line-through; }
.cita.propuesta { background: repeating-linear-gradient(135deg, var(--warn-soft) 0 8px, transparent 8px 16px); border: 2px dashed var(--warn); color: var(--warn); z-index: 2; }
.cita .ico { position: absolute; top: 4px; right: 6px; font-size: 11px; }
.bloqueo { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(148,148,160,.14) 0 7px, rgba(148,148,160,.05) 7px 14px); border-top: 2px solid var(--ink-3); z-index: 2; font-size: 11.5px; color: var(--ink-2); padding: 3px 8px; cursor: pointer; overflow: hidden; font-weight: 600; }

/* ═══════════ Listas ═══════════ */
.lista { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.item { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.item:last-child { border-bottom: 0; }
.item.click { cursor: pointer; transition: background .12s; }
.item.click:hover { background: var(--panel-2); }
.item .principal { flex: 1; min-width: 160px; }
.item .t1 { font-weight: 600; }
.item .t2 { color: var(--ink-2); font-size: 13px; }
.barra { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; margin-top: 7px; max-width: 260px; }
.barra i { display: block; height: 100%; border-radius: 6px; background: var(--mostaza); }
.barra.bad i { background: linear-gradient(90deg, #fb7185, #e11d48); }
.cambio { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 12px 0; }
.cambio .caja { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; }
.cambio .caja.nuevo { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: var(--gold-soft); }
.cambio .caja b { display: block; font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.cambio .flecha { color: var(--gold); font-size: 18px; }
@media (max-width: 560px) { .cambio { grid-template-columns: 1fr; } .cambio .flecha { transform: rotate(90deg); justify-self: center; } }

/* ═══════════ Ajustes ═══════════ */
.opcion { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.opcion:last-child { border-bottom: 0; }
.opcion .txt { flex: 1; }
.opcion .txt b { display: block; margin-bottom: 3px; font-weight: 600; }
.opcion .txt small { color: var(--ink-2); font-size: 13.5px; }
.opcion .extra { margin-top: 10px; }
.opcion.hija { padding-left: 26px; position: relative; }
.opcion.hija::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 50%; width: 10px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 8px; }
.sw { position: relative; width: 50px; height: 29px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: var(--panel-3); border: 1px solid var(--line); border-radius: 99px; transition: .2s; cursor: pointer; }
.sw span::before { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.35); }
.sw input:checked + span { background: var(--mostaza); border-color: transparent; box-shadow: 0 0 12px rgba(212,162,58,.3); }
.sw input:checked + span::before { transform: translateX(21px); }
.sw input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mostaza); color: var(--azul); font-size: 13px; font-weight: 800; margin-right: 8px; font-family: var(--font-t); }
.horario-dia { display: grid; grid-template-columns: 100px 1fr; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.horario-dia .franjas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.horario-dia input[type=time] { width: 112px; min-height: 38px; padding: 5px 9px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { border: 1px solid var(--line); background: var(--panel); padding: 7px 15px; border-radius: 99px; cursor: pointer; color: var(--ink-2); font-family: var(--font-t); font-size: 16px; font-weight: 500; letter-spacing: .4px; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.tabs button.activo { background: var(--mostaza); color: var(--azul); border-color: transparent; font-weight: 600; }
.tabs button .chip { padding: 1px 7px; }
.tabs button.activo .chip { background: rgba(0,0,0,.18); color: var(--gold-ink); }
.enlace-box { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px dashed color-mix(in srgb, var(--gold) 50%, var(--line)); font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; word-break: break-all; }
.qr-box { width: 170px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 3px var(--gold-soft); }
.qr-box img { width: 100%; display: block; }

/* ═══════════ Ventanas ═══════════ */
.velo { position: fixed; inset: 0; background: rgba(5, 6, 9, .62); backdrop-filter: blur(4px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fundido .15s; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: sube .2s ease-out; }
.modal .cab { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal .cab h2 { margin: 0; flex: 1; }
.modal .cuerpo { padding: 18px; }
.modal .pie { display: flex; gap: 8px; flex-wrap: wrap; padding: 13px 18px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }
.modal .pie .esp { flex: 1; }
.x { border: 0; background: var(--panel-2); width: 34px; height: 34px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.x:hover { color: var(--ink); }
@keyframes fundido { from { opacity: 0; } }
@keyframes sube { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 560px) { .velo { padding: 0; align-items: flex-end; } .modal { border-radius: 22px 22px 0 0; max-height: 92vh; } }
.sugerencias { border: 1px solid var(--line); border-radius: 11px; margin-top: 6px; max-height: 200px; overflow: auto; background: var(--panel-2); }
.sugerencias div { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.sugerencias div:hover { background: var(--gold-soft); }
.huecos { display: flex; flex-wrap: wrap; gap: 7px; }
.huecos button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; }
.huecos button:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }

/* ═══════════ Avisos flotantes ═══════════ */
.toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); }
.toast { padding: 13px 15px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--ink-3); animation: sube .2s ease-out; font-weight: 500; }
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast.bad { border-left-color: var(--bad); }
.toast.info { border-left-color: var(--info); }

/* ═══════════ Acceso ═══════════ */
.acceso { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.acceso::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 50% 20%, rgba(217,169,87,.22), transparent 70%); pointer-events: none; }
.acceso .caja { position: relative; background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 26px; padding: 30px 24px 24px; width: 100%; max-width: 390px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.acceso .caja > .poste { position: absolute; top: 0; left: 0; right: 0; border-radius: 0; height: 7px; }
.acceso .logo-grande { width: 72px; height: 72px; margin: 6px auto 10px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #1d2330, #0d1016); box-shadow: inset 0 0 0 1px rgba(217,169,87,.4), 0 10px 30px rgba(217,169,87,.22); }
.acceso h1 { margin: 4px 0 2px; }
.quien { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.quien button { width: 104px; }
.quien button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 16px; padding: 16px 6px 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 9px; font-weight: 600; transition: transform .12s, border-color .12s; }
.quien button:hover { border-color: var(--gold); transform: translateY(-2px); }
.quien .avatar { width: 52px; height: 52px; font-size: 18px; }
.pin-puntos { display: flex; gap: 14px; justify-content: center; margin: 18px 0 20px; }
.pin-puntos i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); transition: .15s; }
.pin-puntos i.lleno { background: var(--mostaza); border-color: transparent; box-shadow: 0 0 10px rgba(212,162,58,.55); transform: scale(1.1); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.teclado button { height: 60px; font-size: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-weight: 600; font-family: var(--font-t); transition: background .1s, transform .08s; }
.teclado button:active { background: var(--gold-soft); transform: scale(.96); }
.teclado button[data-ok] { background: var(--mostaza); color: var(--azul); border-color: transparent; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 8px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th, .tabla td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tabla th { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }


/* ═══════════ Logo «Peñalver» (D · Firma con bigote) ═══════════ */
.logo-firma { --e: 1; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; user-select: none; }
.logo-firma .bigote { width: calc(var(--e) * 62px); height: auto; fill: var(--logo-bigote); margin-bottom: calc(var(--e) * -5px); position: relative; z-index: 1; }
.logo-firma .firma { font-family: var(--font-firma); font-size: calc(var(--e) * 66px); color: var(--logo-firma); transform: rotate(-5deg); line-height: 1.12; white-space: nowrap; padding: 0 .08em; }
.logo-firma .subrayado { width: calc(var(--e) * 180px); height: calc(var(--e) * 12px); margin-top: calc(var(--e) * -6px); }
.logo-firma .subrayado path { fill: none; stroke: var(--logo-sub); stroke-width: 7; stroke-linecap: round; }
.logo-firma .rotulo { font-family: var(--font-t); font-weight: 600; font-size: calc(var(--e) * 12.5px); letter-spacing: .5em; padding-left: .5em; color: var(--logo-rotulo); margin-top: calc(var(--e) * 8px); white-space: nowrap; }
.sello { --s: 40px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: var(--azul); border: max(1.5px, calc(var(--s) * .035)) solid var(--mostaza); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(5,10,20,.3); }
.sello .bigote { width: calc(var(--s) * .44); height: auto; fill: #FFFFFF; margin-top: calc(var(--s) * .08); }
.sello span { font-family: var(--font-firma); font-size: calc(var(--s) * .5); color: #E9DFCB; line-height: .95; padding-right: calc(var(--s) * .04); }
.lateral .marca-logo { display: flex; justify-content: center; padding: 8px 0 2px; }
.top-movil .marca-movil { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.top-movil .marca-movil .firma { font-family: var(--font-firma); font-size: 30px; color: var(--logo-firma); transform: rotate(-4deg); white-space: nowrap; line-height: 1.1; }
.acceso .logo-firma { margin: 18px 0 6px; }
.acceso .caja { padding-top: 22px; }

.fondo-marca { background: var(--azul); --logo-bigote: #FFFFFF; --logo-firma: #E9DFCB; --logo-sub: #D4A23A; --logo-rotulo: #D4A23A; }

/* Logo definitivo en imagen: se muestra la versión que toca según el tema */
.logo-marca { display: inline-block; line-height: 0; max-width: 100%; }
.logo-marca img { width: 100%; height: auto; }
.logo-marca .solo-claro { display: none; }
:root[data-theme="light"] .logo-marca .solo-claro { display: block; }
:root[data-theme="light"] .logo-marca .solo-oscuro { display: none; }
.sello-img { flex: none; border-radius: 50%; box-shadow: 0 4px 14px rgba(5,10,20,.3); }
.top-movil .marca-movil .logo-marca { margin-top: 2px; }
.acceso .logo-marca { margin: 20px auto 6px; }
.lateral .marca-logo { padding: 10px 4px 2px; }

/* ═══════════ Versión 5 ═══════════ */
.segmento button.activo { background: var(--mostaza); color: var(--azul); }
.segmento button { font-family: var(--font-t); font-size: 15.5px; letter-spacing: .3px; }
/* Arrastrar citas */
.cita { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cita.arrastrando { opacity: .3; }
.cita.fantasma { opacity: .92; box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 2px var(--mostaza); transform-origin: center; cursor: grabbing; }
.destino { position: absolute; left: 3px; right: 3px; border: 2px dashed var(--mostaza); border-radius: 10px; background: var(--gold-soft); z-index: 5; pointer-events: none;
  font-family: var(--font-t); font-weight: 600; color: var(--gold); font-size: 13px; padding: 2px 8px; }
@media (hover: hover) { .cita { cursor: grab; } }
/* Semana */
.agenda.semana .ag-cab.dia-cab { border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--ink); justify-content: center; }
.agenda.semana .ag-cab.dia-cab:hover { color: var(--gold); }
.agenda.semana .ag-cab.dia-cab.hoy .t1 { color: var(--gold); }
.sem-col.hoy { background: color-mix(in srgb, var(--mostaza) 4%, transparent); }
.cita.compacta { padding: 2px 5px 2px 6px; border-left-width: 3px; font-size: 11.5px; border-radius: 7px; }
.cita.compacta .n { padding-right: 12px; }
.cita.compacta .ico { top: 2px; right: 3px; font-size: 10px; }
/* Cobro */
.metodos { display: flex; gap: 8px; flex-wrap: wrap; }
.metodos label { flex: 1; min-width: 100px; }
.metodos input { position: absolute; opacity: 0; }
.metodos span { display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); cursor: pointer; font-weight: 600; }
.metodos input:checked + span { border-color: var(--mostaza); background: var(--gold-soft); color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.metodos input:focus-visible + span { outline: 2px solid var(--mostaza); }
details.producto summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: 14px; margin: 4px 0 8px; }
.total-cobro { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-t); font-size: 18px; color: var(--ink-2); }
.total-cobro b { font-size: 30px; color: var(--ink); font-weight: 600; }
/* Informe: barras por día (una sola serie, mostaza) */
.grafico { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding: 6px 0 22px; border-bottom: 1px solid var(--line); }
.barra-dia { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; }
.barra-dia i { display: block; width: 100%; max-width: 22px; min-height: 2px; background: var(--mostaza); border-radius: 4px 4px 0 0; opacity: .85; }
.barra-dia:hover i, .barra-dia.hoy i { opacity: 1; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--mostaza); }
.barra-dia span { position: absolute; bottom: -20px; font-size: 11px; color: var(--ink-3); }
.tip { position: fixed; transform: translate(-50%, -100%); background: var(--panel-3); color: var(--ink); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; pointer-events: none; z-index: 95; box-shadow: var(--shadow-sm); white-space: nowrap; }
/* Tarjeta de bigotes */
.tarjeta-bigotes { border: 1px solid color-mix(in srgb, var(--mostaza) 45%, var(--line)); border-radius: 16px; padding: 14px 16px; margin: 6px 0 14px; background: linear-gradient(160deg, var(--gold-soft), transparent 70%); }
.sellos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 8px; justify-items: center; }
.sello-b { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed var(--mostaza); display: grid; place-items: center; box-sizing: border-box; opacity: .7; }
.sello-b.lleno { background: var(--azul); border: 2px solid var(--mostaza); opacity: 1; }
.sello-b svg { width: 30px; fill: #fff; }
.sello-b.premio { background: var(--mostaza); color: var(--azul); border-style: solid; font-family: var(--font-t); font-weight: 600; opacity: 1; }
.sello-b.premio.lleno { font-size: 22px; box-shadow: 0 0 16px rgba(212,162,58,.6); }
@media (max-width: 420px) { .sello-b { width: 40px; height: 40px; } .sello-b svg { width: 26px; } }
/* Fotos */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.foto { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--panel-3); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); text-align: left; }

/* ═══════════════ Versión 6 · reparto por orden, ficha rápida, tarjeta y avisos ═══════════════ */
.orden-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.orden-lado, .orden-lista { min-width: 0; }
.orden-lado { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; order: 2; }
.orden-lista { order: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 30px; }
.kpis-lado { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 0; }
.kpis-lado .kpi .val { font-size: 25px; }
@media (max-width: 1100px) { .orden-grid { grid-template-columns: minmax(0, 1fr) 310px; } }
@media (max-width: 860px) {
  .orden-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .orden-lado { position: static; order: 1; }
  .orden-lista { order: 2; padding-bottom: 90px; }
  .solo-pc { display: none !important; }
  .kpis-lado { display: none !important; }
}

.grupo-hora { display: flex; flex-direction: column; gap: 6px; }
.gh-cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-3); padding: 0 2px; }
.gh-cab b { font-family: var(--font-t); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: .3px; }
.grupo-hora.pasada { opacity: .72; }
.fila-cita { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-height: 52px; transition: border-color .15s, background .15s; text-align: left; }
.fila-cita:hover, .fila-cita:focus-visible { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); outline: none; }
.fila-cita .h { font-family: var(--font-t); font-weight: 600; font-size: 15px; color: var(--ink-3); flex: none; width: 40px; }
.fila-cita .principal { flex: 1; min-width: 0; }
.fila-cita .t1 { font-weight: 600; font-size: 15.5px; }
.fila-cita .t2 { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-cita.en-curso { border-color: color-mix(in srgb, var(--info) 55%, transparent); background: linear-gradient(90deg, var(--info-soft), var(--panel-2) 60%); }
.fila-cita.cancelada { opacity: .55; }
.fila-cita.cancelada .t1 { text-decoration: line-through; }
.fila-cita.no_presentado .t1 { color: var(--bad); }
.pide { color: var(--gold-2); font-weight: 600; }
.fila-bloqueo { background: var(--closed), var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 9px 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.hueco-libre { border: 1px dashed var(--line); border-radius: 12px; background: transparent; color: var(--gold); font: 500 14.5px var(--font); padding: 11px 12px; text-align: left; min-height: 46px; cursor: pointer; transition: background .15s, border-color .15s; }
.hueco-libre:hover { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
details.pasadas { border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 12px; background: var(--panel); }
details.pasadas > summary { cursor: pointer; padding: 8px 0; font-weight: 600; color: var(--ink-2); font-size: 14px; }
details.pasadas[open] { padding-bottom: 12px; }
details.pasadas .grupo-hora { margin-top: 10px; }
.fab { display: none; }
@media (max-width: 860px) {
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--mostaza); color: var(--azul); box-shadow: 0 8px 22px rgba(0,0,0,.35); z-index: 35; cursor: pointer; }
}

/* Sillones y «el siguiente» */
.sala { display: flex; flex-direction: column; gap: 10px; }
.sillones { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sillon { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.sillon[role=button] { cursor: pointer; }
.sillon.libre { border-color: color-mix(in srgb, var(--ok) 70%, transparent); }
.sillon.fuera { opacity: .6; }
.s-cab { font-family: var(--font-t); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.s-est { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-est.verde { color: var(--ok); }
.s-det { font-size: 13px; color: var(--ink-3); }
.s-fin { margin-top: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 9px; padding: 6px 8px; font: 600 12.5px var(--font); cursor: pointer; min-height: 34px; }
.s-fin:hover { border-color: var(--gold); color: var(--gold); }
.siguiente { background: var(--arena); color: var(--azul); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.siguiente.vacia { background: var(--panel-2); color: var(--ink-2); }
.siguiente.vacia .sig-cab span:first-child { color: var(--ink-3); }
.sig-cab { display: flex; justify-content: space-between; align-items: baseline; }
.sig-cab span:first-child { font-family: var(--font-t); font-weight: 600; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: #7A5814; }
.sig-estado { font-size: 13px; color: #5A6577; }
.sig-fila { display: flex; gap: 10px; align-items: flex-start; }
.sig-fila .principal { flex: 1; min-width: 0; }
.sig-nom { font-weight: 600; font-size: 19px; }
.sig-det { font-size: 14px; color: #3D4A5E; }
.sig-iconos { display: flex; gap: 6px; }
.sig-nota { font-size: 13px; color: #5A6577; }
.pasa-varios { display: flex; gap: 8px; flex-wrap: wrap; }
.pasa-varios .btn-pasa { flex: 1 1 140px; }
.btn-pasa { border: 0; border-radius: 11px; background: var(--azul); color: #fff; font-family: var(--font-t); font-weight: 600; font-size: 18px; letter-spacing: .8px; text-transform: uppercase; padding: 12px 10px; min-height: 48px; cursor: pointer; }
.btn-pasa:hover { background: #24375A; }
.btn-pasa.sec { background: transparent; color: var(--azul); border: 1px solid var(--azul); }
.btn-pasa.peq { font-size: 15px; min-height: 40px; padding: 8px 12px; }
.pasa-caja { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--arena); color: var(--azul); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.pasa-caja span { font-weight: 600; margin-right: 4px; }

/* Botones redondos de WhatsApp y llamada */
.redondo { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; border: 0; text-decoration: none; cursor: pointer; }
.redondo.peq { width: 38px; height: 38px; }
.redondo.peq svg { width: 18px; height: 18px; }
.redondo.wa { background: #25D366; color: #fff; }
.redondo.tel { background: var(--arena); color: var(--azul); }
.siguiente .redondo.tel { background: #fff; }

/* Nueva cita */
.cli-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 10px; }
.cli-card .t1 { font-weight: 600; font-size: 17px; }
.cli-card .t2 { font-size: 13px; color: var(--ink-3); }
.enlace { background: none; border: 0; padding: 0; color: var(--gold); font: 600 13.5px var(--font); cursor: pointer; text-align: left; align-self: flex-start; }
.lo-siempre { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--ink); border-radius: 11px; padding: 10px 12px; font: 15px var(--font); text-align: left; cursor: pointer; min-height: 46px; }
.lo-siempre b { color: var(--gold); }
.lo-siempre span:last-child { color: var(--gold); font-weight: 700; opacity: 0; }
.lo-siempre.hecho span:last-child { opacity: 1; }
.sug-cli { display: flex; align-items: center; gap: 8px; }
.sug-cli .principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sug-cli small { color: var(--ink-3); font-size: 12.5px; }
.chips-sel { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-sel { border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); border-radius: 12px; padding: 8px 12px; font: 500 14.5px var(--font); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; min-height: 44px; text-align: left; }
.chip-sel small { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.chip-sel.activo { background: var(--mostaza); color: var(--azul); border-color: transparent; font-weight: 600; }
.chip-sel.activo small { color: var(--azul); }
.horas-sel { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.horas-sel button { border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); border-radius: 10px; padding: 7px 4px; display: flex; flex-direction: column; align-items: center; cursor: pointer; font-family: var(--font); min-height: 46px; }
.horas-sel button b { font-size: 15px; }
.horas-sel button small { font-size: 11px; color: var(--ok); }
.horas-sel button.llena small { color: var(--ink-3); }
.horas-sel button.activo { background: var(--mostaza); color: var(--azul); border-color: transparent; }
.horas-sel button.activo small { color: var(--azul); }
.seg-ancho { display: flex; width: 100%; }
.seg-ancho button { flex: 1; min-height: 42px; }
#barbs button.activo, #quien button.activo { background: var(--arena); color: var(--azul); font-weight: 600; }

/* Ficha del cliente */
.acciones3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.acc { border: 0; border-radius: 14px; font: 600 14.5px var(--font); padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 66px; text-decoration: none; cursor: pointer; }
.acc.wa { background: #25D366; color: #0B2416; }
.acc.tel { background: var(--arena); color: var(--azul); }
.acc.dar { background: var(--mostaza); color: var(--azul); }
.acc.off { background: var(--panel-2); color: var(--ink-3); justify-content: center; font-weight: 400; }
.datos-cli { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 6px; }
.datos-cli > span:nth-child(odd) { color: var(--ink-3); }
.sec-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 8px; }
.sec-cab h3 { margin: 0; font-family: var(--font-t); font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.chips-corte { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-corte { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 99px; padding: 7px 13px; font: 14px var(--font); cursor: pointer; min-height: 36px; }
.chip-corte.activo { background: var(--mostaza); color: var(--azul); border-color: transparent; font-weight: 600; }
.chip-corte.activo::before { content: '✓ '; }
.chip-corte.otro { border-style: dashed; color: var(--gold); }
.visitas { display: flex; flex-direction: column; gap: 10px; }
.visita { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.v-cab { display: flex; justify-content: space-between; align-items: baseline; }
.v-cab b { font-family: var(--font-t); font-size: 17px; letter-spacing: .5px; text-transform: uppercase; }
.v-cab span { font-size: 13px; color: var(--ink-3); }
.v-det { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.v-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.v-fotos .foto { aspect-ratio: 4 / 3; border-radius: 9px; }
.visita .btn svg { width: 16px; height: 16px; vertical-align: -3px; }
details.mas-visitas, details.plegable { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 6px; }
details.mas-visitas > summary, details.plegable > summary { cursor: pointer; font-weight: 600; color: var(--gold); padding: 8px 0; font-size: 14px; }
details.mas-visitas .visitas { margin-top: 8px; }
.tarjeta-movil { margin-top: 16px; }

/* Avisos y ajustes */
.banner-avisos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-avisos > span { flex: 1 1 220px; }
.banner-avisos svg { flex: none; }
.pasos-lista { margin: 0 0 10px; padding-left: 22px; line-height: 1.7; color: var(--ink-2); }
.pasos-lista b { color: var(--ink); }
.reparto-opc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reparto-opc label { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; background: var(--panel-2); position: relative; }
.reparto-opc label.activo { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.reparto-opc input { position: absolute; opacity: 0; pointer-events: none; }
.reparto-opc b { font-family: var(--font-t); font-size: 18px; letter-spacing: .4px; }
.reparto-opc small { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
@media (max-width: 560px) { .reparto-opc { grid-template-columns: 1fr; } }
.abierto-dia { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-left: 8px; }
.horario-dia.dia-cerrado .franjas { opacity: .4; }
#tiposCorte { width: 100%; font: 14.5px var(--font); }
