/*
 * Estilos de la plataforma.
 * Estructura y medidas: prototipos de docs/disenos (Admin-*.dc.html).
 * Marca (colores y tipografías): configuración de cada centro, que sobrescribe
 * las variables --brand-*, --text y --font-* (ver layouts).
 */

:root {
    --bg: #F2F3F1;
    --card: #FFFFFF;
    --text: #191A18;
    --text-soft: #3E413D;
    --muted: #5B5F5A;
    --line: #ECEEEA;
    --input-line: #D6D9D3;
    --tag-line: #C9CCC5;
    --radius: 16px;

    /* Estados que calcula la aplicación (fondo de color). */
    --ok-bg: #E6F1E8;   --ok: #24502F;
    --bad-bg: #F8E7E5;  --bad: #7A231E;
    --warn-bg: #F3E6D8; --warn: #6B3A12;
    --info-bg: #E8F0EF; --info: #1C3F3C;

    /* Marca: cada centro las cambia en Configuración → Centro y marca. */
    --brand-primary: #191A18;
    --brand-accent: #E3E4E1;
    --brand-highlight: #C9CBC6;
    --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
    --font-heading: var(--font-body);

    /* Menú lateral del panel. */
    --side-bg: var(--brand-primary);
    --side-text: #E4E6E1;
    --side-muted: #B9BDB6;
    --side-field: rgba(255, 255, 255, .09);
    --side-line: rgba(255, 255, 255, .22);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
    font-size: 15px;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
h1 { font-size: 28px; margin: 0; line-height: 1.2; }
h2 { font-size: 18px; margin: 0 0 4px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--text); }
small { font-size: 13px; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 40px; padding: 0 16px; border-radius: 10px; border: 0;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
    background: var(--brand-primary); color: #fff; white-space: nowrap;
}
.btn--secondary { background: var(--card); color: var(--text); border: 1px solid var(--input-line); font-weight: 500; }
.btn--ghost { background: transparent; color: var(--text); height: auto; padding: 4px 0; font-weight: 600; text-decoration: underline; }
.btn--danger { background: transparent; color: var(--bad); height: auto; padding: 4px 0; font-weight: 600; text-decoration: underline; }
.btn--small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.link { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

/* ---------- Formularios ---------- */

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=url], select, textarea {
    width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--input-line); border-radius: 10px;
    font: inherit; font-size: 15px; background: #fff; color: var(--text); margin-bottom: 16px;
}
textarea { height: auto; padding: 10px 12px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand-primary); }
input[type=color] { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--input-line); border-radius: 10px; background: #fff; }
input[type=file] { margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.error { color: var(--bad); font-size: 13px; margin: -10px 0 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.inline-form input, .inline-form select { margin: 0; flex: 1 1 200px; width: auto; }

/* Filas de ajustes (Reglas de reserva, Tipos de clase…). */
.field { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.field__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; }
.field__text label { margin: 0; font-size: 15px; }
.field__text small { color: var(--muted); }
.field__text .error { margin: 4px 0 0; }
.field__input { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.field__input input, .field__input select { width: 64px; height: 40px; margin: 0; text-align: right; }
.field__input input[type=time] { width: 130px; text-align: left; }
.field__input select { width: auto; text-align: left; }
.field__input input[type=checkbox] { width: 18px; height: 18px; }
.card__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__footer p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Tarjetas, tablas y etiquetas ---------- */

.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card--flush { padding: 8px 20px 12px; overflow-x: auto; }
.card__intro { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td a { color: var(--text); }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 4px; font-size: 13px; color: var(--muted); }

.state { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.state--bad { background: var(--bad-bg); color: var(--bad); }
.state--warn { background: var(--warn-bg); color: var(--warn); }
.state--info { background: var(--info-bg); color: var(--info); }
.state--off { background: var(--line); color: var(--muted); }
.state--lg { font-size: 13px; padding: 4px 10px; }
.tag { display: inline-block; font-size: 12px; border: 1px solid var(--tag-line); padding: 2px 8px; border-radius: 999px; margin: 2px 0; white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--input-line); background: #fff; font-size: 14px; color: var(--text); text-decoration: none; }
.chip.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 600; }

.notice { background: color-mix(in srgb, var(--brand-highlight) 30%, white); border-radius: 12px; padding: 12px 14px; margin: 0; font-size: 14px; }
.legend { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Páginas sencillas (entrar, superadmin, apps aún sin diseño) ---------- */

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.wrap--narrow { max-width: 420px; }
.wrap .card { margin-bottom: 16px; }
.wrap h1 { margin-bottom: 8px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.topbar__brand { font-weight: 700; font-size: 18px; }
.topbar__logo { max-height: 44px; max-width: 200px; display: block; }
.topbar__user { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.center { text-align: center; margin: 16px 0 0; }

/* ---------- Panel del centro: menú lateral ---------- */

.shell { display: flex; min-height: 100vh; align-items: stretch; background: linear-gradient(to right, var(--side-bg) 240px, transparent 240px); }

.sidebar {
    flex: 0 0 240px; background: var(--side-bg); color: #fff;
    padding: 24px 16px; display: flex; flex-direction: column; gap: 24px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar__brand { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; color: #fff; text-decoration: none; }
.sidebar__brand strong { font-size: 14px; letter-spacing: .24em; font-weight: 700; }
.sidebar__brand span { font-size: 10px; letter-spacing: .34em; color: var(--side-muted); }
.sidebar__logo { background: #fff; border-radius: 10px; padding: 8px 10px; display: inline-flex; }
.sidebar__logo img { max-height: 34px; max-width: 180px; display: block; }
.sidebar__search { display: flex; align-items: center; gap: 8px; background: var(--side-field); border-radius: 10px; padding: 0 10px; height: 40px; }
.sidebar__search svg { flex: 0 0 auto; color: var(--side-muted); }
.sidebar__search input { flex: 1; min-width: 0; height: 38px; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; font-size: 14px; outline: none; }
.sidebar__search input::placeholder { color: var(--side-muted); }
.sidebar__search kbd { font-family: inherit; font-size: 12px; color: var(--side-muted); border: 1px solid var(--side-line); border-radius: 4px; padding: 1px 6px; }
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav a { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--side-text); text-decoration: none; font-size: 15px; }
.sidebar__nav a:hover { background: var(--side-field); }
.sidebar__nav a.is-active { background: #fff; color: var(--text); font-weight: 600; }
.sidebar__nav .is-soon { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--side-muted); opacity: .55; font-size: 15px; cursor: default; }
.sidebar__nav .is-soon small { font-size: 11px; border: 1px solid var(--side-line); border-radius: 999px; padding: 0 7px; }
.sidebar__user { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--side-line); font-size: 13px; color: var(--side-muted); }
.sidebar__user strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.sidebar__user .link { color: var(--side-text); font-size: 13px; margin-top: 6px; }

.main { flex: 1 1 auto; min-width: 0; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 -8px; }
.section-title h2 { margin: 0; font-size: 18px; }
.section-title span { font-size: 13px; color: var(--muted); }

/* Configuración: submenú a la izquierda y contenido a la derecha. */
.settings { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.settings__nav { flex: 1 1 200px; max-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.settings__nav a { height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: 14px; color: var(--text-soft); }
.settings__nav a.is-active { background: var(--card); color: var(--text); font-weight: 600; }
.settings__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Catálogo: tarjetas de planes. */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.plan strong { font-size: 15px; }
.plan__price { font-size: 26px; font-weight: 700; line-height: 1.2; }
.plan small { color: var(--muted); }
.plan .link { margin-top: 6px; align-self: flex-start; }
.price-lg { font-size: 20px; font-weight: 700; }

/* Ficha de clienta. */
.client-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.client-head__who { flex: 1 1 280px; display: flex; gap: 16px; align-items: center; }
.client-head__who h1 { font-size: 26px; }
.client-head__who h1 small { font-size: 15px; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.client-head__contact { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin-top: 4px; }
.avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: color-mix(in srgb, var(--brand-accent) 60%, white); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.client-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.client-meta .sep { width: 1px; height: 20px; background: var(--line); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.summary div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.summary span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.summary strong { display: block; font-size: 15px; }
.summary small { color: var(--muted); }
.columns { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.columns > .wide { flex: 999 1 460px; min-width: 0; }
.columns > .narrow { flex: 1 1 280px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs span { height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--muted); }
.tabs span.is-active { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--text); }
.data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 12px; font-size: 14px; }
.data dt { color: var(--muted); }
.data dd { margin: 0; }
.note { white-space: pre-line; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.history { display: flex; flex-direction: column; }
.history div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history div:last-child { border-bottom: 0; }
.history strong { display: block; }
.history small { display: block; color: var(--muted); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 46px; z-index: 5; width: min(340px, 90vw); background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .12); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.menu__panel h3 { margin: 0; font-size: 15px; font-family: var(--font-body); }
.menu__panel p { font-size: 13px; color: var(--muted); margin: 0; }
.menu__panel form + form, .menu__panel form + h3 { padding-top: 12px; border-top: 1px solid var(--line); }

.tag-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.tag-row { padding: 14px 0; border-top: 1px solid var(--line); }
details summary { cursor: pointer; }
.logo-preview { max-height: 80px; max-width: 240px; display: block; margin-bottom: 12px; background: #fff; }
.room { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.row small { display: block; color: var(--muted); }
.row__actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; }

/* ---------- Móvil ---------- */

@media (max-width: 860px) {
    .shell { flex-direction: column; background: none; }
    .sidebar { position: static; height: auto; flex: none; padding: 16px; gap: 14px; }
    .sidebar__nav { flex-direction: row; overflow-x: auto; gap: 4px; }
    .sidebar__nav a, .sidebar__nav .is-soon { flex: 0 0 auto; height: 36px; font-size: 14px; gap: 6px; }
    .sidebar__user { margin-top: 0; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
    .sidebar__user .link { margin-top: 0; }
    .main { padding: 20px 16px 32px; }
    .settings__nav { max-width: none; flex-direction: row; overflow-x: auto; }
    .settings__nav a { flex: 0 0 auto; }
}

@media (max-width: 640px) {
    .hide-mobile { display: none; }
    .field__input input[type=time] { width: 100px; }
}

/* Horario semanal (diseño Admin-Plantilla). */
.schedule-status { padding: 16px 20px; }
.schedule-status__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.schedule-status .sep { width: 1px; height: 18px; background: var(--line); }
.schedule-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.schedule-card { overflow-x: auto; padding: 16px; }
.schedule-grid { display: grid; gap: 6px; min-width: 560px; }
.schedule-grid__day { text-align: center; font-size: 13px; font-weight: 600; padding: 4px 0 8px; }
.schedule-grid__day.is-closed { color: var(--muted); font-weight: 500; }
.schedule-grid__hour { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 8px; }
.schedule-grid__cell { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.schedule-grid__cell.is-closed { background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 6px, #E9EAE7 6px, #E9EAE7 12px); border-radius: 8px; border-bottom: 0; min-height: 40px; }
.slot { display: block; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--input-line); border-left: 4px solid var(--room); border-radius: 6px; padding: 4px 7px; font-size: 12px; line-height: 1.3; }
.slot strong { display: block; font-size: 12px; }
.slot strong small { font-weight: 400; color: var(--muted); }
.slot span { display: flex; justify-content: space-between; gap: 4px; color: var(--muted); }
.slot span i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.slot b { flex: 0 0 auto; }
.slot b { color: var(--ok); }
.slot em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--warn); }
.slot.is-new { border-style: dashed; border-left-style: solid; }
.slot.is-removed { opacity: .5; text-decoration: line-through; }
.slot.is-selected { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); border-left-color: var(--room); }
.slot.is-selected span, .slot.is-selected b, .slot.is-selected strong small { color: #fff; }
.slot-add { display: none; text-align: center; color: var(--muted); text-decoration: none; font-size: 14px; border: 1px dashed var(--input-line); border-radius: 6px; line-height: 22px; }
.schedule-grid__cell:hover .slot-add { display: block; }
.schedule-panel { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.schedule-panel__title { border-left: 6px solid var(--room); padding-left: 12px; }
.schedule-panel .grid2 { grid-template-columns: 1fr 1fr; gap: 0 10px; }
.schedule-panel__title h2 { margin: 0; font-size: 20px; }
.schedule-panel__fixed { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 12px; font-size: 14px; }
.schedule-panel__fixed small { display: block; }
.schedule-panel__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--text-soft); }
.btn--danger-outline { color: var(--bad); border-color: #E3BDB9; }
.btn.is-disabled { opacity: .5; cursor: default; }
.btn.is-disabled small { font-size: 11px; font-weight: 400; }
.weekdays { gap: 10px; }
.weekdays .check { font-size: 14px; color: var(--text); }

/* Agenda (día y semana) */
.agenda-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.agenda-head h1 { margin: 0; }
.agenda-head__date { display: flex; align-items: center; gap: 6px; }
.agenda-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.agenda-head__picker label { position: relative; font-weight: 600; cursor: pointer; margin: 0; }
.agenda-head__picker input[type=date] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.btn--icon { width: 40px; padding: 0; font-size: 18px; }
.segmented { display: inline-flex; background: #E6E7E4; border-radius: 12px; padding: 4px; }
.segmented a { padding: 7px 14px; border-radius: 9px; font-size: 14px; color: var(--text); text-decoration: none; }
.segmented a.is-active { background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.agenda-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-filters select { width: auto; height: 36px; margin: 0; border-radius: 999px; padding: 0 30px 0 14px; font-size: 14px; }
.agenda-grid { display: grid; gap: 8px; min-width: 520px; }
.agenda-grid__room { font-size: 14px; font-weight: 600; padding-bottom: 4px; }
.agenda-grid__cell { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.session { display: block; text-decoration: none; border-radius: 10px; padding: 7px 10px; font-size: 12px; line-height: 1.3; border: 1.5px solid var(--text); background: #fff; color: var(--text); }
.session strong { display: block; font-size: 14px; }
.session strong small { font-weight: 400; font-size: 12px; }
.session span { display: block; color: inherit; opacity: .85; }
.session.is-full { background: var(--text); color: #fff; }
.session.is-cancelled { border: 1.5px dashed var(--input-line); color: var(--muted); }
.session.is-selected { outline: 3px solid var(--brand-primary); outline-offset: 2px; }
.agenda-panel { position: sticky; border: 2px solid var(--brand-primary); }
.agenda-panel__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; text-decoration: none; color: var(--text); }
.agenda-panel .schedule-panel__title { padding-right: 40px; }
.agenda-panel__section h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); font-family: var(--font-body); }
.agenda-panel__section p { margin: 0; font-size: 13px; }
.agenda-panel__form .grid2 { grid-template-columns: 1fr; }
.agenda-panel__form select, .agenda-panel__cancel input { margin-bottom: 0; }
.agenda-panel__form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.agenda-panel__cancel summary { list-style: none; }
.agenda-panel__cancel summary::-webkit-details-marker { display: none; }
.agenda-panel__cancel form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.week-grid { display: grid; gap: 6px; min-width: 760px; }
.week-grid__day { display: block; background: var(--bg); border-radius: 10px; padding: 8px 10px 4px; text-decoration: none; color: var(--text); }
.week-grid__day strong { display: block; font-size: 14px; }
.week-grid__day small { display: block; font-size: 12px; color: var(--muted); }
.week-grid__day.is-today { background: var(--text); color: #fff; }
.week-grid__day.is-today small { color: #D7D8D5; }
.week-grid__day.is-closed { opacity: .6; }
.week-grid__codes { display: flex; justify-content: space-around; margin-top: 8px; }
.week-grid__codes i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); width: 30px; text-align: center; }
.week-grid__day.is-today .week-grid__codes i { color: #D7D8D5; }
.week-grid__cell { display: flex; justify-content: space-around; align-items: center; background: #FAFAF9; border-radius: 10px; padding: 4px; min-height: 40px; }
.mini { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--text); color: var(--text); background: #fff; }
.mini.is-full { background: var(--text); color: #fff; }
.mini.is-cancelled { border-style: dashed; border-color: var(--input-line); color: var(--muted); }
.mini.is-empty { border: 0; background: transparent; color: #C9CAC6; font-weight: 400; }
.week-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.week-legend span { display: inline-flex; align-items: center; gap: 6px; }
.week-legend .mini { width: 16px; height: 12px; border-radius: 3px; }

/* Asignar horario fijo */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--text); font-weight: 600; }
.assign { position: relative; display: flex; flex-direction: column; gap: 22px; }
.assign h1 { margin: 0; }
.assign > .muted { margin: -18px 0 0; }
.assign__step h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; font-family: var(--font-body); }
.assign__step h2 small { font-weight: 400; font-size: 14px; }
.assign__step .chips + * { margin-top: 10px; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: #fff; font-size: 13px; }
.assign-grid { display: grid; gap: 6px; min-width: 640px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.assign-grid__cell { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--input-line); border-left: 4px solid var(--room); border-radius: 6px; padding: 5px 8px; font-size: 13px; }
.pick strong small { font-weight: 400; color: var(--muted); }
.pick span { color: var(--ok); font-size: 12px; white-space: nowrap; }
.pick.is-full { background: var(--bg); color: var(--muted); border-color: var(--line); border-left-color: var(--line); }
.pick.is-full span { color: var(--muted); }
.pick.is-selected { background: var(--text); color: #fff; border-color: var(--text); border-left-color: var(--room); }
.pick.is-selected span { color: #fff; }
.assign__date { display: inline-flex; }
.assign__date > input[type=date] { width: auto; height: 36px; margin: 0; border-radius: 999px; }
.assign__date label.chip { position: relative; cursor: pointer; margin: 0; font-weight: 400; }
.assign__date label.chip.is-active { font-weight: 600; }
.assign__date label input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.assign__dates { gap: 0 30px; }
.assign__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.assign__summary { display: flex; flex-direction: column; gap: 3px; font-size: 14px; flex: 1 1 380px; }
.assign__summary strong { font-size: 16px; }
.assign__amount { display: grid; grid-template-columns: 160px 1fr; gap: 0 12px; margin-top: 10px; max-width: 520px; }
.assign__amount input { margin-bottom: 6px; }
.assign__buttons { display: flex; align-items: center; gap: 18px; }
.btn:disabled { opacity: .4; cursor: default; }
.notice--bad { background: var(--bad-bg); color: var(--bad); }
.notice--bad p { margin: 0; }
.fixed-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.fixed-list li { border-left: 4px solid var(--room); padding: 4px 10px; background: var(--bg); border-radius: 6px; }
.attendee { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.attendee a { color: var(--text); text-decoration: none; }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.move-dates { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.move-dates label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.move-dates input { width: auto; margin: 0; }
.move-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.move-list__row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.move-list__row:last-child { border-bottom: 0; }
.move-list__row small { margin-left: auto; font-size: 12px; font-weight: 600; }
.move-list__row small.ok { color: var(--ok); }
.check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--input-line); font-size: 13px; color: #fff; }
.check.is-on { background: var(--text); border-color: var(--text); }
.switch-row { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 400; margin-bottom: 12px; }
.switch-row input[type=checkbox] { margin-top: 3px; }
.switch-row span { display: flex; flex-direction: column; gap: 2px; }
.switch-row small { font-size: 12px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.subhead { margin: 18px 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); font-family: var(--font-body); }
