/* TuSalón — portal público de reservas, cuenta del cliente y Panel Tukán: verde botella de barbería, amarillo navaja para "ahora".
   Pantallas internas: rosa TuSalón #DB2967 (el color de tukansoftware.com, decisión de Dimitry 10 nov 2026) con el kit común Tukán */
:root {
    --fondo: #F3F5F4;
    --superficie: #FFFFFF;
    --tinta: #18201E;
    --tinta-suave: #55615D;
    --linea: #DCE2DF;
    --verde: #1E5A4C;
    --verde-oscuro: #143F35;
    --verde-claro: #E3EFEB;
    --navaja: #E9B23C;
    --rojo: #B53D33;
    --rojo-claro: #F8E5E2;
    --ok-claro: #E1F1E6;
    --radio: 10px;
    --sombra: 0 1px 2px rgba(20, 63, 53, .08);
    --fuente: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--fuente);
    font-size: 16px;
    line-height: 1.5;
    color: var(--tinta);
    background: var(--fondo);
    font-feature-settings: "tnum" 1;
}
a { color: var(--verde); }
:focus-visible { outline: 3px solid var(--navaja); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
small, .suave { color: var(--tinta-suave); }

/* ---------- Estructura ---------- */
.principal { padding: 16px 16px 96px; max-width: 1100px; margin: 0 auto; }
.lateral {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    background: var(--verde-oscuro); color: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}
.lateral .marca, .lateral-pie { display: none; }
.menu { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.menu a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 2px 10px; color: #BFD3CC; text-decoration: none; font-size: .75rem; font-weight: 500;
}
.menu a.activo { color: #fff; box-shadow: inset 0 3px 0 var(--navaja); }
.menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solo-ancho { display: none; }

@media (min-width: 900px) {
    .lateral {
        top: 0; right: auto; width: 240px; display: flex; flex-direction: column;
        padding: 20px 14px;
    }
    .lateral .marca { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; margin: 0 6px 28px; }
    .marca-sello {
        width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
        background: var(--navaja); color: var(--verde-oscuro); font-weight: 700;
    }
    .marca-texto { display: flex; flex-direction: column; line-height: 1.25; }
    .marca-texto small { color: #BFD3CC; }
    .menu { display: flex; flex-direction: column; gap: 2px; }
    .menu a { flex-direction: row; gap: 12px; padding: 10px 12px; font-size: .95rem; border-radius: 8px; }
    .menu a.activo { background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--navaja); }
    .solo-ancho { display: inline; }
    .solo-celular { display: none; }
    .lateral-pie { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 0 12px; }
    .lateral-pie a { color: #BFD3CC; text-decoration: none; font-size: .9rem; }
    .lateral-pie a:hover { color: #fff; }
    .con-sesion .principal { margin-left: 240px; padding: 28px 32px 48px; max-width: none; }
}

/* ---------- Encabezado de página ---------- */
.cabecera { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cabecera h1 { margin: 0; }
.cabecera p { margin: 0; color: var(--tinta-suave); }

/* ---------- Bloques ---------- */
.bloque {
    background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio);
    padding: 16px; margin-bottom: 16px; box-shadow: var(--sombra);
}
.bloque > h2:first-child { margin-bottom: 12px; }
.rejilla { display: grid; gap: 12px; margin-bottom: 16px; align-items: start; }
.rejilla > .bloque { margin-bottom: 0; }
.rejilla > * { min-width: 0; }
.rejilla-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rejilla-3 > .bloque { padding: 12px 10px; }
@media (min-width: 700px) {
    .rejilla { gap: 16px; }
    .rejilla-2 { grid-template-columns: 1fr 1fr; }
    .rejilla-3 { gap: 16px; }
    .rejilla-3 > .bloque { padding: 16px; }
}

.cifra { font-size: 1.25rem; font-weight: 700; line-height: 1.1; color: var(--verde-oscuro); white-space: nowrap; }
.cifra-nombre { color: var(--tinta-suave); font-size: .8rem; line-height: 1.3; margin: 4px 0 0; }
@media (min-width: 700px) { .cifra { font-size: 1.9rem; } .cifra-nombre { font-size: .9rem; } }

/* ---------- Botones ---------- */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    background: var(--verde); color: #fff;
}
.boton:hover { background: var(--verde-oscuro); }
.boton-claro { background: var(--superficie); color: var(--verde); border-color: var(--linea); }
.boton-claro:hover { background: var(--verde-claro); }
.boton-peligro { background: var(--superficie); color: var(--rojo); border-color: #E9C3BE; }
.boton-peligro:hover { background: var(--rojo-claro); }
.boton-wa { background: #1F8A4C; }
.boton-wa:hover { background: #18703D; }
.boton-chico { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.boton-ancho { width: 100%; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.campo label, .campo .etiqueta { font-weight: 600; font-size: .95rem; }
.campo small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=search], select, textarea {
    font: inherit; width: 100%; min-height: 44px; padding: 9px 12px;
    border: 1px solid #C7D0CC; border-radius: 8px; background: #fff; color: var(--tinta);
}
input:focus, select:focus, textarea:focus { border-color: var(--verde); outline: 2px solid var(--verde-claro); }
.fila-campos { display: grid; gap: 12px; }
@media (min-width: 600px) { .fila-campos { grid-template-columns: 1fr 1fr; } }
.opciones { display: flex; flex-direction: column; gap: 8px; }
.opcion {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--linea);
    border-radius: 8px; cursor: pointer; background: #fff;
}
.opcion:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); }
.opcion input { margin-top: 4px; accent-color: var(--verde); width: 18px; height: 18px; flex: none; }
.opcion strong { display: block; }
.opcion span small { display: block; }
.oculto { display: none !important; }

/* ---------- Avisos ---------- */
.aviso { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.aviso-ok { background: var(--ok-claro); color: #1C5A31; }
.aviso-error { background: var(--rojo-claro); color: #7E2A23; }
.franja-prueba {
    background: #FBF0D3; color: #6A4D0D; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px;
    border-left: 4px solid var(--navaja);
}

/* ---------- Listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--linea); }
.lista > li:first-child { border-top: 0; }
.lista .principal-linea { font-weight: 600; }
.lista .linea-sub { color: var(--tinta-suave); font-size: .9rem; }
.hora { font-weight: 700; color: var(--verde-oscuro); min-width: 52px; }
.monto { font-weight: 700; white-space: nowrap; }
.monto-neg { color: var(--rojo); }
.vacio { padding: 24px 8px; text-align: center; color: var(--tinta-suave); }

.tabla { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabla th { text-align: left; font-weight: 600; color: var(--tinta-suave); padding: 8px; border-bottom: 1px solid var(--linea); }
.tabla td { padding: 10px 8px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla .der { text-align: right; }
.desliza { overflow-x: auto; }

/* Etiquetas de tipo de peluquero y estado */
.etq { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.etq-dueno { background: #FBF0D3; color: #6A4D0D; }
.etq-empleado { background: var(--verde-claro); color: var(--verde-oscuro); }
.etq-porcentaje { background: #E5ECF7; color: #2B4A78; }
.etq-alquiler { background: #F1E6F3; color: #6B3A73; }
.etq-reservada { background: #EEF1F0; color: var(--tinta-suave); }
.etq-confirmada { background: var(--ok-claro); color: #1C5A31; }
.etq-atendida { background: var(--verde); color: #fff; }
.etq-no_asistio, .etq-cancelada { background: var(--rojo-claro); color: #7E2A23; }
.candado { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta-suave); font-size: .9rem; }
.candado::before {
    content: ""; flex: none; width: 14px; height: 16px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M3 7V5a4 4 0 0 1 8 0v2h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Agenda: una columna por silla ---------- */
.agenda-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agenda-nav input[type=date] { width: auto; }
.agenda {
    --alto-hora: 72px;
    display: grid; grid-template-columns: 52px repeat(var(--sillas), minmax(150px, 1fr));
    overflow-x: auto; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio);
    position: relative;
}
.silla-cabeza {
    position: sticky; top: 0; z-index: 3; background: var(--superficie); padding: 10px 10px 8px;
    border-bottom: 2px solid var(--linea); border-left: 1px solid var(--linea);
}
.silla-cabeza strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.silla-cabeza .franja-color { display: block; height: 4px; border-radius: 2px; margin-bottom: 6px; }
.esquina { border-bottom: 2px solid var(--linea); position: sticky; left: 0; z-index: 4; background: var(--superficie); }
.horas { position: sticky; left: 0; z-index: 2; background: var(--superficie); }
.horas div { height: var(--alto-hora); font-size: .78rem; color: var(--tinta-suave); text-align: right; padding: 2px 6px 0 0; }
.columna {
    position: relative; border-left: 1px solid var(--linea);
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--alto-hora) - 1px), var(--linea) calc(var(--alto-hora) - 1px), var(--linea) var(--alto-hora));
}
.hueco { display: block; height: calc(var(--alto-hora) / 2); text-decoration: none; }
.hueco:hover, .hueco:focus-visible { background: var(--verde-claro); }
.turno {
    position: absolute; left: 4px; right: 4px; z-index: 1; overflow: hidden;
    border-radius: 6px; padding: 4px 8px; font-size: .82rem; line-height: 1.3; text-decoration: none;
    background: var(--verde-claro); color: var(--verde-oscuro); border-left: 4px solid var(--verde);
}
.turno strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turno.confirmada { background: #DDEFE3; }
.turno.atendida { background: #EDEFEE; color: var(--tinta-suave); border-left-color: #9AA5A1; }
.turno.no_asistio, .turno.cancelada { background: var(--rojo-claro); color: #7E2A23; border-left-color: var(--rojo); text-decoration: line-through; }
.ahora { position: absolute; left: 0; right: 0; height: 2px; background: var(--navaja); z-index: 2; pointer-events: none; }
.ahora::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--navaja); }

/* ---------- Acceso (login / registro) ---------- */
.sin-sesion .principal { max-width: 460px; padding-top: 32px; }
.acceso-marca { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.acceso-marca .marca-sello {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--verde); color: var(--navaja); font-weight: 700; font-size: 1.1rem;
}
.acceso-marca p { margin: 0; color: var(--tinta-suave); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Horario ---------- */
.fila-horario { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: center; margin-bottom: 12px; }
.fila-horario > * { min-width: 0; }
.fila-horario > .opcion { grid-column: 1 / -1; }
@media (min-width: 600px) {
    .fila-horario { grid-template-columns: 1.3fr 1fr 1fr; margin-bottom: 8px; }
    .fila-horario > .opcion { grid-column: auto; }
}

/* ---------- Portal público de reservas ---------- */
.publico-principal { max-width: 640px; padding-top: 20px; padding-bottom: 32px; }
.publico-cabeza { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.publico-cabeza .marca-sello {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: var(--verde); color: var(--navaja); font-weight: 700; font-size: 1.4rem;
}
.publico-cabeza h1 { margin: 0; }
.publico-cabeza p { margin: 0; color: var(--tinta-suave); }
.publico-pie { text-align: center; color: var(--tinta-suave); font-size: .85rem; margin-top: 24px; }
.paso { border: 1px solid var(--linea); min-width: 0; }
.paso legend { font-weight: 700; font-size: 1.05rem; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.paso-num {
    width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--verde); color: #fff; font-size: .85rem;
}
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.tarjeta {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; text-align: center;
    border: 1px solid var(--linea); border-radius: 10px; cursor: pointer; font-weight: 600; background: #fff;
}
.tarjeta input, .dia input, .hora-libre input { position: absolute; opacity: 0; pointer-events: none; }
.tarjeta:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); box-shadow: inset 0 0 0 1px var(--verde); }
.tarjeta:has(input:focus-visible), .dia:has(input:focus-visible), .hora-libre:has(input:focus-visible) { outline: 3px solid var(--navaja); outline-offset: 2px; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--verde-oscuro); color: var(--navaja); font-size: 1.2rem;
}
.dias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.dia {
    flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; padding: 8px 4px;
    border: 1px solid var(--linea); border-radius: 10px; cursor: pointer; background: #fff; scroll-snap-align: start; position: relative;
}
.dia-sem { font-size: .8rem; color: var(--tinta-suave); }
.dia-num { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.dia-mes { font-size: .75rem; color: var(--tinta-suave); }
.dia:has(input:checked) { background: var(--verde); border-color: var(--verde); color: #fff; }
.dia:has(input:checked) .dia-sem, .dia:has(input:checked) .dia-mes { color: #DCEBE6; }
.dia.cerrado { opacity: .45; cursor: not-allowed; }
.horas-libres { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.hora-libre {
    position: relative; display: grid; place-items: center; min-height: 44px; border-radius: 8px; cursor: pointer;
    border: 1px solid #BFD3CC; background: #fff; font-weight: 600; color: var(--verde-oscuro);
}
.hora-libre:has(input:checked) { background: var(--navaja); border-color: var(--navaja); color: var(--verde-oscuro); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirmacion { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); }

/* ---------- Portal del peluquero ---------- */
.cifras-peluquero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }

.hora-libre.en-confirmacion { background: #F4F1E6; border-style: dashed; border-color: #D9C58F; color: #7A6A3A; cursor: help; font-weight: 500; }
.hora-libre.en-confirmacion span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 4px 0; }
.hora-libre.en-confirmacion small { font-size: .65rem; }
.turno.pendiente { background: #FBF3DC; color: #6A4D0D; border-left-color: var(--navaja); border-style: dashed; }
.etq-pendiente { background: #FBF0D3; color: #6A4D0D; }
.etq-rechazada { background: var(--rojo-claro); color: #7E2A23; }
.campana { position: relative; }
.contador {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--navaja); color: var(--verde-oscuro); font-size: .72rem; font-weight: 700; margin-left: 4px;
}
.menu .contador { position: absolute; top: 4px; right: calc(50% - 22px); margin: 0; }
@media (min-width: 900px) { .menu .contador { position: static; margin-left: auto; } }

.franja-solicitudes { display: block; background: var(--navaja); color: var(--verde-oscuro); text-decoration: none; font-weight: 700; }
.franja-solicitudes:hover { filter: brightness(.96); }
.turno.rechazada { background: var(--rojo-claro); color: #7E2A23; border-left-color: var(--rojo); text-decoration: line-through; }

/* Portal del cliente */
.modos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modo { position: relative; display: flex; padding: 12px; border: 1px solid var(--linea); border-radius: 10px; cursor: pointer; background: #fff; }
.modo input { position: absolute; opacity: 0; pointer-events: none; }
.modo span { display: flex; flex-direction: column; }
.modo small { color: var(--tinta-suave); }
.modo:has(input:checked) { border-color: var(--verde); background: var(--verde-claro); box-shadow: inset 0 0 0 1px var(--verde); }
.modo:has(input:focus-visible) { outline: 3px solid var(--navaja); outline-offset: 2px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.galeria figure { margin: 0; position: relative; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--linea); }
.galeria figcaption { font-size: .75rem; color: var(--tinta-suave); text-align: center; }

/* ---------- Mejoras: servicios por peluquero, desplegable con detalle, calificaciones ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.enlace-chico { display: inline-block; font-size: .88rem; margin-top: 4px; }
.franja-avisos { display: block; background: var(--verde-claro); color: var(--verde-oscuro); text-decoration: none; font-weight: 600; }
.franja-avisos:hover { filter: brightness(.97); }

fieldset.campo { border: 0; padding: 0; min-width: 0; }
fieldset.campo legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.quien-hace { display: flex; flex-direction: column; gap: 8px; }
.fila-quien { display: grid; grid-template-columns: 1fr 130px; gap: 8px; align-items: center; }
.fila-quien .opcion { padding: 8px 10px; }
.fila-cumple { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fila-cumple select { width: auto; min-width: 90px; flex: 1; }
.fila-cumple .boton { flex: none; }

.fila-horario-prof { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.horas-prof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.horas-prof label { font-size: .85rem; color: var(--tinta-suave); display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .horas-prof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fila-horario-prof:has(input[type=checkbox]:not(:checked)) .horas-prof { opacity: .4; }
#form-horario-prof:has(input[name=modo][value=salon]:checked) .dias-propios { display: none; }

.form-aceptar { display: flex; flex-direction: column; gap: 8px; }
.valor-aceptar { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--tinta-suave); }
.con-signo { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--tinta); }
.con-signo input { width: 110px; }
.acciones-solicitud { align-items: flex-start; }

/* Desplegable de servicios del portal */
.select-servicio[hidden] { display: none; }
.desplegable { position: relative; }
.desplegable-boton {
    width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border: 1.5px solid var(--linea); border-radius: var(--radio); background: var(--superficie);
    font: inherit; color: var(--tinta); text-align: left; cursor: pointer;
}
.desplegable-boton.vacio { color: var(--tinta-suave); }
.desplegable-boton[aria-expanded=true] { border-color: var(--verde); }
.desplegable-lista {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none;
    background: var(--superficie); border: 1.5px solid var(--verde); border-radius: var(--radio);
    box-shadow: 0 10px 30px rgba(20, 63, 53, .18); max-height: min(420px, 60vh); overflow-y: auto;
}
.desplegable-lista:focus { outline: none; }
.desplegable-lista [role=option] { position: relative; padding: 10px 10px; border-radius: 8px; cursor: pointer; overflow: hidden; }
.desplegable-lista [role=option].activo { background: var(--verde-claro); }
.desplegable-lista [role=option][aria-selected=true] { box-shadow: inset 3px 0 0 var(--verde); }
.desplegable-lista [role=option][aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.op-fila { display: flex; align-items: center; gap: 10px; }
.op-nombre { flex: 1; font-weight: 600; min-width: 0; }
.op-nombre small { display: block; font-weight: 400; }
.op-precio { white-space: nowrap; }
.op-info {
    flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linea); background: var(--superficie);
    color: var(--verde); font-size: 1rem; cursor: pointer; line-height: 1;
}
.op-detalle { margin-top: 8px; padding: 10px 12px; background: var(--fondo); border-radius: 8px; font-size: .92rem; cursor: default; }
.op-detalle p { margin: 0 0 6px; }
.op-detalle p:last-child { margin: 0; }
.op-tiempo { color: var(--verde-oscuro); }
/* Barrita que se llena en 3 segundos mientras el mouse está encima */
.desplegable-lista [role=option].esperando::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px;
    background: var(--navaja); transform-origin: left; animation: llenar 3s linear forwards;
}
@keyframes llenar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .desplegable-lista [role=option].esperando::after { animation: none; transform: scaleX(1); opacity: .5; } }
.servicio-elegido { margin-top: 10px; padding: 12px 14px; background: var(--verde-claro); border-radius: var(--radio); font-size: .95rem; }
.servicio-elegido p { margin: 0 0 6px; }
.servicio-elegido p:last-child { margin: 0; }
.ayuda-servicio { font-size: .88rem; margin: 6px 0 0; }

/* Estrellas */
.estrellas { color: var(--navaja); letter-spacing: 2px; }
.estrellas.grande { font-size: 2rem; }
.calificar { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.calificar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calificar label { font-size: 2.6rem; line-height: 1; color: var(--linea); cursor: pointer; padding: 2px 4px; }
.calificar label:hover, .calificar label:hover ~ label,
.calificar input:checked ~ label { color: var(--navaja); }
.calificar input:focus-visible + label { outline: 3px solid var(--navaja); border-radius: 6px; }

/* ---------- Panel Tukán (super administrador) ---------- */
body.admin { background: var(--fondo); }
.admin-barra {
    position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 16px; padding: 10px 16px; background: var(--verde-oscuro); color: #fff;
}
.admin-marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.admin-marca small { display: block; color: rgba(255,255,255,.7); font-size: .78rem; }
.admin-menu { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-menu a { color: rgba(255,255,255,.85); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.admin-menu a:hover { background: rgba(255,255,255,.1); }
.admin-menu a.activo { background: var(--navaja); color: var(--verde-oscuro); }
.admin-menu a.admin-central { border: 1px solid rgba(255,255,255,.35); font-weight: 600; } /* volver al Panel Tukán Central */
.admin-principal { max-width: 1200px; margin: 0 auto; padding: 20px 16px 48px; }
.acceso-caja { max-width: 420px; }
.rejilla-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .rejilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cifra-chica { font-size: 1.3rem; }
.chips-estado { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-estado { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 12px; border-radius: 999px; text-decoration: none;
    border: 1px solid var(--linea); color: var(--tinta); background: var(--superficie); }
.chip-estado strong { font-size: 1.1rem; }
.etq.est-prueba, .chip-estado.est-prueba { background: #E8F0FB; color: #1F4E8C; border-color: #C9DAF2; }
.etq.est-activo, .chip-estado.est-activo { background: var(--ok-claro); color: #1C5A31; border-color: #BFE0C9; }
.etq.est-por_vencer, .chip-estado.est-por_vencer { background: #FFF4D9; color: #7A5300; border-color: #F2DCA2; }
.etq.est-prueba_vencida, .etq.est-vencido, .chip-estado.est-prueba_vencida, .chip-estado.est-vencido { background: var(--rojo-claro); color: #7E2A23; border-color: #F0C9C3; }
.etq.est-suspendido, .etq.est-cancelado, .chip-estado.est-suspendido, .chip-estado.est-cancelado { background: #ECEEED; color: #4A5551; border-color: #D5DAD8; }
.filtros-admin { display: grid; gap: 12px; align-items: end; }
@media (min-width: 700px) { .filtros-admin { grid-template-columns: 2fr 1fr auto; } .filtros-admin .campo { margin: 0; } .filtros-admin .boton { margin-bottom: 0; } }
.tabla-admin td { vertical-align: top; }
.fila-accion { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; margin-bottom: 12px; }
.fila-accion label { grid-column: 1 / -1; font-weight: 600; font-size: .95rem; }
.clave-temporal { font-family: ui-monospace, monospace; font-size: 1.15rem; background: var(--fondo); padding: 2px 8px; border-radius: 6px; letter-spacing: .5px; }
.franja-admin { background: var(--verde-oscuro); color: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.franja-admin a { color: var(--navaja); font-weight: 700; }
@media (max-width: 699px) { .admin-barra { position: static; } .admin-marca .marca-sello { flex: none; } }

/* Inventario, paquetes, tarjetas y puntos */
.caja-mov { border: 1px solid var(--linea); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.caja-mov h3 { margin-bottom: 8px; }
.codigo-regalo { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; color: var(--verde-oscuro); }
.tarjeta-regalo { border: 2px dashed var(--verde); border-radius: 14px; padding: 16px; background: var(--verde-claro); text-align: center; margin-bottom: 14px; }
.ya-pagado { border: 1px solid var(--linea); border-radius: 10px; padding: 12px; margin-bottom: 14px; background: #FAFBFA; }
.ya-pagado h3 { margin-bottom: 8px; }
.resumen-cobro { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 8px 0 14px; font-size: 1rem; }
.resumen-cobro .grande { font-size: 1.4rem; font-weight: 700; }
.fotos-ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fotos-ficha figure { margin: 0; }
.fotos-ficha img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--linea); background: #EEF1F0; }
.fotos-ficha figcaption { font-size: .8rem; color: var(--tinta-suave); text-align: center; }
.ficha-item { border-top: 1px solid var(--linea); padding: 12px 0; }
.ficha-item:first-child { border-top: 0; }
.ficha-datos { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .95rem; margin: 6px 0; }
.ficha-datos dt { color: var(--tinta-suave); }
.ficha-datos dd { margin: 0; font-weight: 600; }
.comprobante img { max-width: 100%; border-radius: 8px; border: 1px solid var(--linea); }
.instalar-app { display: flex; gap: 12px; align-items: center; background: var(--verde-claro); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.instalar-app img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.instalar-app p { margin: 0; }

/* Cifras con miles (Gastos y facturas): más chicas en el celular para que quepan en 3 columnas */
.cifras-largas .cifra { font-size: clamp(.95rem, 4.2vw, 1.25rem); overflow-wrap: anywhere; }
@media (min-width: 700px) { .cifras-largas .cifra { font-size: 1.9rem; } }

/* Módulos (Anexo B): Mi plan, "No está en tu plan" y los interruptores del panel de Tukán */
.etiqueta-plan { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--verde-oscuro); background: var(--verde-claro); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.modulos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.modulo { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--linea); border-radius: 12px; padding: 12px; background: var(--superficie); }
.modulo-icono { font-size: 1.5rem; line-height: 1; flex: none; width: 32px; text-align: center; }
.modulo-cuerpo { flex: 1; min-width: 0; }
.modulo-cuerpo p { margin: 4px 0 0; font-size: .92rem; }
.modulo-lado { flex: none; text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.modulo-activo { border-color: var(--verde); }
.modulo-precio { font-weight: 700; white-space: nowrap; }
.total-plan { display: flex; justify-content: space-between; gap: 12px; font-size: 1.1rem; font-weight: 700; border-top: 1px solid var(--linea); padding-top: 10px; margin-top: 10px; }
.interruptor { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.interruptor input { width: 20px; height: 20px; accent-color: var(--verde); }
@media (max-width: 560px) {
    .modulo { flex-wrap: wrap; }
    .modulo-lado { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
.tabla-desliza { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* «Cancelar mi plan» (módulo común TukanCancelarPlan.php, 7 nov 2026) */
.tukan-cancelar details summary{cursor:pointer;font-weight:600}
.tukan-cancelar label{display:block;margin:10px 0}
.tukan-cancelar textarea{width:100%;box-sizing:border-box}
.tukan-cancelar .tc-confirmo{display:flex;gap:8px;align-items:flex-start}
.tukan-cancelar .boton-peligro{background:#b42318;border-color:#b42318;color:#fff}
/* Aviso de términos y enlaces legales (módulo común TukanLegal.php, 7 nov 2026) */
.tukan-legal-aviso{background:#fff8e1;border:1px solid #f2c94c;border-radius:10px;padding:12px 14px;margin:0 0 14px}
.tukan-legal-aviso p{margin:0 0 8px}
.tukan-legal-aviso label{display:inline-flex;gap:8px;align-items:center;margin-right:10px}
.pie-legal{font-size:.85rem;opacity:.8;margin-top:10px}
.tukan-legal-enlaces a{color:inherit}

/* =====================================================================================================================
   Identidad gráfica común de Tukán (10 nov 2026) — SOLO las pantallas internas (body.tk). El portal público de reservas,
   el del cliente y el Panel Tukán no la usan y se ven como siempre.
   El kit (tukan-ui.css) es idéntico en todos los programas; aquí van las pocas reglas propias de TuSalón:
   las clases de siempre (.cabecera, .bloque, .boton, .tabla, .campo, .aviso, .etq, .cifra) toman el aspecto del kit,
   para las pantallas y los módulos comunes (src/Tukan*.php) que todavía las usan.
   ===================================================================================================================== */
/* Los tonos de antes (verde claro de fondos y verde oscuro de letra) pasan a tonos del rosa TuSalón (color de la web, 10 nov 2026) */
.tk { --verde: var(--tk-color); --verde-claro: color-mix(in srgb, var(--tk-color) 10%, #fff); --verde-oscuro: color-mix(in srgb, var(--tk-color) 45%, #000); }
.tk .dia:has(input:checked) .dia-sem, .tk .dia:has(input:checked) .dia-mes { color: inherit; }
.tk h1, .tk h2, .tk h3 { letter-spacing: 0; }
.tk a { color: color-mix(in srgb, var(--tk-color) 85%, #000); }   /* enlaces: el rosa en un tono un poco más oscuro (sobre el gris del kit el #DB2967 da 4,2:1) */
.tk .tk-menu a, .tk .tk-marca, .tk .tk-salir, .tk .tk-boton, .tk .boton { color: inherit; }
.tk .tk-boton, .tk .boton { color: var(--tk-color-texto); }
.tk .tk-boton.secundario, .tk .boton-claro, .tk .boton-peligro { color: var(--tk-tinta); }
.tk .tk-boton.ok, .tk .tk-boton.peligro, .tk .tk-boton.oscuro, .tk .boton-wa { color: #fff; }
.tk .tk-menu a { color: var(--tk-menu-texto); }
.tk .tk-menu a:hover { color: #fff; }
.tk .tk-menu a.activo { color: var(--tk-color-texto); }
.tk-menu-legal { color: var(--tk-menu-texto); padding: 16px 20px 0; margin: auto 0 0; font-size: 12px; }
.tk .tk-menu-legal a { color: var(--tk-menu-texto); padding: 0; min-height: 0; display: inline; font-size: 12px; }
.tk .tk-menu-legal a:hover { padding: 0; background: none; }
.tk-acceso { max-width: 520px; margin: 0 auto; width: 100%; }


/* Título de página (.cabecera = .tk-titulo-pagina) */
.tk .cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tk .cabecera h1 { font-size: 22px; font-weight: 900; margin: 0; }
.tk .cabecera p { font-size: 13.5px; color: var(--tk-muy-suave); margin: 4px 0 0; }

/* Bloques (.bloque = .tk-tarjeta) */
.tk .bloque { background: #fff; border: 1px solid var(--tk-linea); border-left: 5px solid var(--tk-color); border-radius: var(--tk-radio); padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.03); }
.tk .bloque > h2:first-child, .tk .bloque > h2, .tk .tk-tarjeta > h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; margin: 0 0 14px; }
.tk .bloque > h3 { font-size: 14px; font-weight: 800; }
/* Bloques con una cifra grande = tarjetas oscuras del kit (.tk-cifra) */
.tk .bloque:has(> .cifra) { background: var(--tk-noche); color: #fff; border: 0; border-left: 5px solid var(--tk-color); box-shadow: var(--tk-sombra); }
.tk .bloque:has(> .cifra) .cifra { color: var(--tk-color-claro); font-weight: 900; }
.tk .bloque:has(> .cifra) .cifra-nombre { color: #94a3b8; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.tk .bloque:has(> .cifra) a { color: var(--tk-color-claro); }

/* Botones (.boton = .tk-boton) */
.tk .boton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; min-height: 40px; border-radius: 6px;
             font: inherit; font-size: 13.5px; font-weight: 800; text-decoration: none; border: 1px solid transparent; cursor: pointer;
             background: var(--tk-color); line-height: 1.2; }
.tk .boton:hover { background: var(--tk-color); filter: brightness(.95); }
.tk .boton-claro { background: #fff; border-color: #cbd5e1; }
.tk .boton-claro:hover { background: var(--tk-fondo); }
.tk .boton-peligro { background: #fff; color: var(--tk-mal); border-color: #fca5a5; }
.tk .boton-peligro:hover { background: #fee2e2; }
.tk .boton-wa { background: var(--tk-ok); }
.tk .boton-wa:hover { background: var(--tk-ok); }
.tk .boton-chico { min-height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 5px; }
.tk .boton:disabled { opacity: .6; cursor: progress; }

/* Tablas (.tabla = .tk-tabla) y tablas-tarjeta del kit (no confundir con .tarjetas del portal público) */
.tk .tabla { font-size: 13px; }
.tk .tabla th { background: var(--tk-noche); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 800; padding: 10px 12px; border-bottom: 0; }
.tk .tabla td { padding: 10px 12px; vertical-align: middle; }
.tk table.tarjetas { display: table; grid-template-columns: none; }

/* Formularios (.campo = .tk-campo) */
.tk .campo label, .tk .campo .etiqueta, .tk fieldset.campo legend { font-size: 12px; font-weight: 800; color: #334155; text-transform: uppercase; letter-spacing: .3px; }
.tk input[type=text], .tk input[type=email], .tk input[type=password], .tk input[type=tel], .tk input[type=number], .tk input[type=date],
.tk input[type=time], .tk input[type=search], .tk input[type=url], .tk select, .tk textarea {
    border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; font-size: 14px; min-height: 42px; }
.tk input:focus, .tk select:focus, .tk textarea:focus { border-color: var(--tk-color); background: #fff; outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tk-color) 25%, transparent); }
.tk .opcion:has(input:checked) { border-color: var(--tk-color); background: color-mix(in srgb, var(--tk-color) 8%, #fff); }

/* Avisos (.aviso = .tk-aviso) y chips (.etq = .tk-chip) */
.tk .aviso { border-radius: var(--tk-radio); padding: 12px 16px; border-left: 5px solid var(--tk-info); font-size: 14px; font-weight: 600; }
.tk .aviso-ok { border-left-color: var(--tk-ok); background: #dcfce7; color: #14532d; }
.tk .aviso-error { border-left-color: var(--tk-mal); background: #fee2e2; color: #7f1d1d; }
.tk .etq { border-radius: 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; }
.tk .tk-tira .tk-boton { flex: none; }
.tk .tukan-legal-aviso { border-left: 5px solid var(--tk-aviso); border-radius: var(--tk-radio); }
.tk .franja-admin { background: var(--tk-noche); color: #fff; border-left-color: var(--tk-aviso); }
.tk .instalar-app { background: #fff; border: 1px solid var(--tk-linea); border-left: 5px solid var(--tk-color); border-radius: var(--tk-radio); }
.tk .tk-pasos .tk-tarjeta-cabeza form { margin: 0; }
.tk .tk-tabla td a:not(.tk-boton) { font-weight: 700; text-decoration: none; }

@media (max-width: 768px) {
    .tk table.tk-tabla.tarjetas, .tk table.tk-tabla.tarjetas tbody { display: block; }
    .tk .tk-tira { flex-wrap: wrap; }
    .tk .cabecera h1 { font-size: 20px; }
    .tk .boton { min-height: 44px; }
    .tk .boton-chico { min-height: 36px; }
}
/* Casillas y opciones dentro de un campo: tamaño normal (el kit pone los campos de texto a lo ancho) */
.tk .tk-campo input[type=checkbox], .tk .tk-campo input[type=radio], .tk .campo input[type=checkbox], .tk .campo input[type=radio] { width: auto; min-height: 0; padding: 0; }
.tk .tk-campo input[type=file] { background: #fff; }
.tk .tk-campo label:has(input), .tk .campo label:has(input), .tk .tk-campo .opcion, .tk .tk-campo .opcion * { text-transform: none; letter-spacing: 0; font-size: 14px; }
.tk .tk-campo .opcion small { font-size: 12.5px; font-weight: 400; }
.tk .tk-campo small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tk .tk-arriba small { color: inherit; }
.tk .tk-salir { color: var(--tk-noche); }
.tk .tk-tabla .tk-boton, .tk .tk-tira .tk-boton { white-space: nowrap; }
@media (max-width: 768px) {
    .tk .tk-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tk .tk-cifra { padding: 14px 14px; }
    .tk .tk-cifra .tk-cifra-valor { font-size: 21px; overflow-wrap: anywhere; }
    .tk .tk-cifra .tk-cifra-detalle { font-size: 11.5px; }
}
/* Lo que es solo del celular o solo de la computadora (los botones del kit no lo pisan) */
@media (min-width: 900px) { .tk .solo-celular { display: none !important; } }
@media (max-width: 899px) { .tk .solo-ancho { display: none !important; } }
