@import url("/assets/bootstrap.min-2d5c1157.css");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --ink: #0d0d0d;
  --paper: #f5f5f5;
  --muted: #b9b9b9;
  --accent: #ff6a00;
  --accent-2: #ff8a33;
  --line: rgba(255, 255, 255, 0.12);
  --panel: #161616;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #3a3a3a #111; }
* { scrollbar-width: thin; scrollbar-color: #3a3a3a #111; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: #111; }
*::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: #555; }

body {
  font-family: "Outfit", sans-serif;
  background: var(--ink);
  color: var(--paper);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: none; }

.is-app {
  min-height: 100vh;
}

.app-bar { position: sticky; top: 0; z-index: 40; background: #111; border-bottom: 1px solid var(--line); }
.app-bar-row { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; }
.app-bar-brand { color: var(--paper); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.app-bar-brand:hover { color: var(--accent); }
.app-bar-favs { display: none; align-items: center; gap: 0.4rem; flex: 1; min-width: 0; flex-wrap: wrap; }
.app-bar-link { color: var(--paper); font-weight: 600; font-size: 0.95rem; background: none; border: 0; padding: 0; }
.app-bar-link:hover, .app-bar-link.is-on { color: var(--accent); }
.app-bar-favs .app-bar-link { background: #2a2a2a; border-radius: 999px; padding: 0.32rem 0.8rem; }
.app-bar-favs .app-bar-link:hover, .app-bar-favs .app-bar-link.is-on { background: #333; }
.app-bar-end { display: flex; align-items: center; gap: 0.85rem; margin-left: auto; }
.app-bar-account { display: none; align-items: center; gap: 0.85rem; }
.app-bar-exit-form { margin: 0; }
.nav-burger { display: grid; gap: 0.28rem; width: 2.4rem; height: 2.4rem; place-content: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.nav-burger span { display: block; width: 1.05rem; height: 2px; background: var(--paper); border-radius: 2px; }
body.nav-open { overflow: hidden; }
.nav-drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; pointer-events: none; }
.nav-drawer.is-open { visibility: visible; pointer-events: auto; }
.nav-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.2s ease; }
.nav-drawer.is-open .nav-backdrop { opacity: 1; }
.nav-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(100%, 22rem); display: flex; flex-direction: column; background: #141414; border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform 0.22s ease; overflow: auto; scrollbar-color: #3a3a3a #141414; }
.nav-drawer.is-open .nav-panel { transform: none; }
.nav-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #141414; }
.nav-panel-close { border: 0; background: transparent; color: var(--paper); font-size: 1.5rem; line-height: 1; width: 2rem; }
.nav-favorites, .nav-group, .nav-account { padding: 0.85rem 1rem 0.35rem; }
.nav-favorites .nav-row { background: #242424; border-radius: 12px; margin-bottom: 0.35rem; padding-right: 0.15rem; }
.nav-favorites .nav-item-link { padding: 0.55rem 0.35rem 0.55rem 0.75rem; }
.nav-favorites h2, .nav-group h2, .nav-account h2 { margin: 0 0 0.35rem; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.nav-hint { margin: 0; color: #d6d6d6; font-size: 0.88rem; }
.nav-row { display: flex; align-items: center; gap: 0.35rem; }
.nav-item-link { flex: 1; color: var(--paper); font-weight: 600; padding: 0.45rem 0; }
.nav-item-link:hover, .nav-item-link.is-on { color: var(--accent); }
.nav-icon-form { display: contents; }
.nav-star, .nav-fav-x { width: 2rem; height: 2rem; border: 0; background: transparent; color: #8d8d8d; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.nav-star.is-on { color: var(--accent); }
.nav-fav-x { display: none; color: #e57373; font-size: 1.25rem; }
.nav-exit-form { margin: 0; flex: 1; }
.nav-exit { width: 100%; text-align: left; background: none; border: 0; padding: 0.45rem 0; font-weight: 600; color: var(--paper); }
.nav-exit:hover { color: var(--accent); }
.nav-account { padding-bottom: 1.2rem; }
@media (max-width: 991.98px) {
  .app-bar-brand { order: -1; }
  .app-bar-end { display: none; }
  .nav-burger { margin-left: auto; }
  .nav-fav-x { display: grid; place-items: center; }
  .nav-favorites .nav-star { display: none; }
  .nav-panel { width: 100%; border-right: 0; }
}
@media (min-width: 992px) {
  .app-bar-favs, .app-bar-account { display: flex; }
}

.toast.alert { width: min(24rem, calc(100vw - 2rem)); background-color: var(--bs-alert-bg); color: var(--bs-alert-color); border-color: var(--bs-alert-border-color); }
body:has(.app-bar) .toast-container.top-0 { top: 4.75rem !important; }

.app-main .form-control,
.app-main .form-select,
.auth-card .form-control,
.auth-card .form-select,
.landing-contact .form-control {
  background: #111;
  color: var(--paper);
  border-color: #333;
}

.app-main .form-control:focus,
.app-main .form-select:focus,
.auth-card .form-control:focus,
.landing-contact .form-control:focus {
  background: #111;
  color: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.2);
}

.form-label, .form-check-label { color: var(--paper); }

/* Bootstrap pinta .text-muted y .text-secondary en gris oscuro, que se pierde sobre el fondo. */
.text-muted,
.text-secondary,
.form-text {
  color: #d6d6d6 !important;
}

.btn-accent {
  background: var(--accent);
  color: #1a0d00;
  border: none;
  font-weight: 600;
}

.btn-accent:hover { background: var(--accent-2); color: #1a0d00; }

.btn-ghost {
  border: 1px solid var(--paper);
  color: var(--paper);
  background: transparent;
}

.btn-ghost:hover { background: var(--paper); color: var(--ink); }

.panel-card, .auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
}

.table { --bs-table-bg: transparent; --bs-table-color: var(--paper); }
.table a { text-decoration: none; }

.badge-active { background: #1f7a3a; }
.badge-inactive { background: #5c5c5c; }
.badge-medical-missing { background: #5c5c5c; }
.badge-medical-valid { background: #1f7a3a; }
.badge-medical-expired { background: #b3261e; }
.badge-profile-complete { background: #1f7a3a; }
.badge-profile-incomplete { background: #5c5c5c; }
.wizard { max-width: 46rem; }
.wizard-bar { height: 0.55rem; border-radius: 999px; background: #2a2a2a; overflow: hidden; margin: 0.4rem 0 0.8rem; }
.wizard-bar span { display: block; height: 100%; background: var(--accent); }
.wizard-steps { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.wizard-steps a { color: var(--muted); font-weight: 650; }
.wizard-steps .is-on a { color: var(--accent); }
.wizard-questions { display: grid; gap: 1.1rem; }
.wizard-choices { display: flex; gap: 1rem; }
.wizard-choices label { display: flex; align-items: center; gap: 0.35rem; }
.wizard-declaration { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.wizard-declaration p { color: var(--muted); }
.wizard-banner { margin: 0.8rem 0 1rem; color: var(--paper); }
.wizard-banner a { color: var(--accent); font-weight: 750; }
.credit-adjust { display: inline-flex; align-items: center; gap: 0.35rem; }
.credit-adjust-count { min-width: 1.6rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.credit-adjust .stepper-btn { width: 1.8rem; height: 1.8rem; font-size: 1rem; }

.profile-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.profile-search { max-width: 22rem; }
.profile-filters { display: flex; gap: 0.35rem; }
.profile-filter { border: 1px solid var(--line); background: transparent; color: var(--paper); border-radius: 999px; padding: 0.18rem 0.7rem; font-size: 0.8rem; font-weight: 700; }
.profile-filter.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.profile-name { font-weight: 700; }
.profile-email { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.78rem; }
.profile-status { border: 0; padding: 0; background: transparent; }
.profile-status .badge { cursor: pointer; }
.profile-side-photo { text-align: center; margin-bottom: 1rem; }
.profile-avatar,
.profile-avatar-slot {
  width: 132px;
  height: 132px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.profile-avatar { display: block; object-fit: cover; }
.profile-avatar-slot {
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.25), transparent 40%),
    repeating-linear-gradient(45deg, #1c1c1c, #1c1c1c 10px, #141414 10px, #141414 20px);
  position: relative;
}
.profile-avatar-slot::after {
  content: "Foto";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.profile-facts { margin: 0; }
.profile-facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.75rem; }
.profile-facts dd { margin: 0.1rem 0 0; }
.inline-value { border-radius: 6px; cursor: text; touch-action: manipulation; }
.inline-value:hover { background: rgba(255, 255, 255, 0.05); }
.inline-title { margin-right: 0.35rem; }
.inline-title:last-of-type { margin-right: 0; }
.inline-sep { margin: 0 0.35rem; color: var(--muted); }
.inline-input { width: 100%; max-width: 100%; box-sizing: border-box; background: #111; color: var(--paper); border: 1px solid var(--accent); border-radius: 8px; padding: 0.2rem 0.45rem; font: inherit; }
.inline-title-input { width: auto; min-width: 5rem; font-size: inherit; font-weight: inherit; }
.inline-value.is-saved { box-shadow: inset 0 -2px 0 #1f7a3a; }
.inline-error { display: block; margin-top: 0.25rem; color: #ff8d7a; font-size: 0.75rem; font-weight: 600; }
.inline-error[hidden] { display: none !important; }
.profile-tablist { border: 0; }
.profile-tab { border: 1px solid var(--line); background: transparent; color: var(--paper); border-radius: 999px; padding: 0.28rem 0.75rem; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.profile-tab.active { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.profile-note { color: var(--muted); }
.profile-history, .profile-routines { list-style: none; margin: 1rem 0 0; padding: 0; }
.profile-history li, .profile-routines li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.profile-routine-name { display: block; font-weight: 700; }
.profile-routine-via { display: block; color: var(--muted); font-size: 0.8rem; }
.profile-empty { color: var(--muted); }
.badge-pending { background: var(--accent); color: #1a0d00; }
.msg-head, .msg {
  display: grid;
  grid-template-columns: 6.6rem minmax(9rem, 0.9fr) minmax(0, 1.6fr) auto auto;
  gap: 0.35rem 0.8rem;
  align-items: center;
}
.msg-head { margin-bottom: 0.35rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.msg-list { display: grid; gap: 0.55rem; }
.msg { padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.msg.is-done { opacity: 0.72; }
.msg-when { color: var(--muted); font-size: 0.78rem; }
.msg-who strong { display: block; }
.msg-meta { display: block; color: var(--muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-name { color: var(--paper); font-weight: 700; }
.msg-name:hover { color: var(--accent); }
.msg-body { margin: 0; color: var(--paper); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
a.msg-body:hover { color: var(--accent); }
.msg-status-form { margin: 0; }
.msg-status { border: 0; padding: 0; background: transparent; }
.msg-status .badge { cursor: pointer; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-self: start; }
.msg-actions .btn:disabled { cursor: not-allowed; }
.msg .modal { position: fixed; }
.msg-back { display: inline-block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.msg-back:hover { color: var(--accent); }
.msg-full { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .msg-head { display: none; }
  .msg { grid-template-columns: 1fr auto; align-items: start; }
  .msg-when { grid-column: 1; grid-row: 1; }
  .msg-status-form { grid-column: 2; grid-row: 1; justify-self: end; }
  .msg-who { grid-column: 1 / -1; grid-row: 2; }
  .msg-body { grid-column: 1 / -1; grid-row: 3; }
  .msg-actions { grid-column: 1 / -1; grid-row: 4; }
}
.exercise-table { width: 100%; table-layout: fixed; }
.exercise-col-name { width: 28%; }
.exercise-col-video { width: 8.5rem; }
.exercise-table th, .exercise-table td { overflow: hidden; vertical-align: middle; }
.exercise-name { display: flex; align-items: center; gap: 0.4rem; min-width: 0; max-width: 100%; }
.exercise-name a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exercise-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 100%; color: var(--muted); font-size: 0.9rem; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .exercise-col-name { width: 34%; }
  .exercise-col-video { width: 6.5rem; }
  .exercise-table .video-thumb { width: 84px; }
  .exercise-desc { -webkit-line-clamp: 2; line-clamp: 2; font-size: 0.82rem; }
}
@media (max-width: 640px) {
  .exercise-col-desc, .exercise-desc-cell { display: none; }
  .exercise-col-name { width: auto; }
}
.exercise-edit { display: inline-flex; flex: none; color: var(--muted); }
.exercise-edit svg { width: 1rem; height: 1rem; }
.exercise-edit:hover { color: var(--accent); }
.video-thumb { position: relative; display: block; width: 112px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #1a1a1a; aspect-ratio: 16 / 9; }
.video-thumb[hidden], .video-empty[hidden] { display: none !important; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-thumb img:not([src]) { display: none; }
.video-play { position: absolute; left: 50%; top: 50%; width: 1.7rem; height: 1.7rem; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(0, 0, 0, 0.55); }
.video-play::before { content: ""; position: absolute; left: 0.68rem; top: 0.48rem; border-style: solid; border-width: 0.36rem 0 0.36rem 0.55rem; border-color: transparent transparent transparent #fff; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-missing { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem; text-align: center; color: var(--muted); }
.video-missing[hidden], .video-frame iframe[hidden] { display: none; }
.video-link-form { margin-top: 0.9rem; }
.video-link-row { display: flex; gap: 0.5rem; }
.video-link-row .form-control { flex: 1; }
tr[hidden] { display: none !important; }

.modal-content { background: #161616; color: var(--paper); border: 1px solid var(--line); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal .btn-close { filter: invert(1); }

.nested-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #121212;
}

.nested-block .nested-block { background: #1b1b1b; }
.block-timer { margin: 0.2rem 0 0.9rem; }
.block-timer-fields { display: none; margin-top: 0.7rem; }
.block-timer:has(.block-timer-toggle:checked) .block-timer-fields { display: block; }
.assign-box { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem; }

.tab-scroll { position: relative; margin-bottom: 0.8rem; }
.tab-scroll-row {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.tab-scroll-row::-webkit-scrollbar { display: none; height: 0; }
.tab-scroll-row.is-dragging { cursor: grabbing; user-select: none; }
.tab-scroll-row > * { flex: 0 0 auto; }
.tab-scroll.can-left {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.6rem);
  mask-image: linear-gradient(to right, transparent, #000 1.6rem);
}
.tab-scroll.can-right {
  -webkit-mask-image: linear-gradient(to left, transparent, #000 1.6rem);
  mask-image: linear-gradient(to left, transparent, #000 1.6rem);
}
.tab-scroll.can-left.can-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.6rem, #000 calc(100% - 1.6rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 1.6rem, #000 calc(100% - 1.6rem), transparent);
}
.week-tab { border: 1px solid var(--line); background: transparent; color: var(--paper); border-radius: 999px; padding: 0.4rem 0.95rem; font-weight: 700; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.week-tab.is-active { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.week-tab.is-just-on { animation: week-tab-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.week-board:not(.is-ready) [data-week-panel] { display: none; }
[data-week-panel].is-entering { animation: week-in-right 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-week-panel].is-entering.from-left { animation-name: week-in-left; }
[data-week-panel].is-arriving { animation: week-arrive 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes week-tab-pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes week-in-right {
  from { opacity: 0; transform: translateX(48px); box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.7); }
  to { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}
@keyframes week-in-left {
  from { opacity: 0; transform: translateX(-48px); box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.7); }
  to { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}
@keyframes week-arrive {
  0% { opacity: 0; transform: translateY(28px); box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.85); }
  100% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .week-tab.is-just-on,
  [data-week-panel].is-entering,
  [data-week-panel].is-arriving { animation: none; }
}
.week-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.week-autosave { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.9rem; }
.draft-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; margin-bottom: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 106, 0, 0.12); border: 1px solid var(--accent); }
.draft-notice[hidden] { display: none; }

.search-select { position: relative; }
.search-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.search-select-toggle {
  width: 100%;
  text-align: left;
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23f5f5f5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 0.85rem;
  color: var(--paper);
  border: 1px solid #333;
  border-radius: 0.5rem;
  padding: 0.45rem 2.2rem 0.45rem 0.75rem;
  font-weight: 600;
}
.search-select-lg { padding: 0.7rem 2.4rem 0.7rem 0.9rem; font-size: 1.15rem; border-radius: 0.6rem; }
.search-select-toggle.is-blank { color: var(--muted); font-weight: 500; }
.search-select-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 0.35rem); padding: 0.55rem; border-radius: 14px; background: #1c1c1c; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.search-select-menu[hidden] { display: none; }
.search-select-list { max-height: 240px; overflow: auto; display: grid; gap: 0.1rem; margin-top: 0.45rem; }
.search-select-option { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--paper); border-radius: 10px; padding: 0.45rem 0.6rem; }
.search-select-option:hover, .search-select-option.is-selected { background: rgba(255, 106, 0, 0.16); }
.search-select-empty { margin: 0.45rem 0.2rem 0.15rem; color: var(--muted); }
.search-select-empty[hidden] { display: none; }
.search-select-create { display: block; width: 100%; margin-top: 0.4rem; padding: 0.45rem 0.6rem; border: 0; border-radius: 10px; background: rgba(255, 106, 0, 0.16); color: var(--accent); font-weight: 700; text-align: left; }
.search-select-create[hidden] { display: none; }
.search-select-create:disabled { opacity: 0.7; }
.inline-group-query { margin-bottom: 0.4rem; }

.assign-picker { position: relative; }
.assign-picker-toggle { width: 100%; text-align: left; background: #121212; color: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.85rem; font-weight: 700; }
.assign-picker-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 0.35rem); padding: 0.6rem; border-radius: 14px; background: #1c1c1c; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.assign-picker-menu[hidden] { display: none; }
.assign-picker-list { max-height: 240px; overflow: auto; display: grid; gap: 0.15rem; margin-top: 0.5rem; }
.assign-picker-option { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.45rem 0.55rem; border-radius: 10px; cursor: pointer; }
.assign-picker-note { margin-left: auto; color: var(--muted); font-size: 0.8rem; text-align: right; }
.assign-picker-option:hover { background: rgba(255, 255, 255, 0.06); }
.assign-picker-option:has(input:checked) { background: rgba(255, 106, 0, 0.16); }
.assign-picker-option[hidden] { display: none; }
.assign-picker-empty { margin: 0.4rem 0.2rem; color: var(--muted); }
.assign-picker-empty[hidden] { display: none; }
.assign-picker-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.assign-picker-chips:empty { display: none; }
.assign-chip { border: 0; background: rgba(255, 106, 0, 0.18); color: var(--paper); border-radius: 999px; padding: 0.25rem 0.7rem; font-weight: 700; }

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 6vw;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { color: var(--paper); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; }
.brand span { color: var(--accent); }
.brand sup, .hero h2 sup, .site-footer sup { font-size: 0.55em; margin-left: 0.12em; line-height: 0; }
.landing-nav a { color: var(--paper); text-decoration: none; }
.landing-links { display: flex; gap: 1.25rem; align-items: center; }
.landing-links a:hover, .nav-auth:hover { color: var(--accent); }
.nav-auth { color: var(--accent); font-weight: 600; white-space: nowrap; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.15fr;
  align-items: center;
  gap: 3rem;
  padding: 8vh 6vw 10vh;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 106, 0, 0.38), transparent 30%),
    linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 55%);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 836 / 396;
  object-fit: cover;
  object-view-box: inset(29.8% 9.4% 31.5% 9%);
  mix-blend-mode: screen;
  filter: contrast(1.35);
}

.eyebrow { color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; font-weight: 600; }
.hero h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.92; max-width: 12ch; margin: 0.6rem 0 1rem; }
.hero p { max-width: 38rem; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.section { padding: 5.5rem 6vw; }
.section h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.lead { color: var(--muted); font-size: 1.08rem; }

.photo-slot {
  min-height: 320px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.25), transparent 40%),
    repeating-linear-gradient(45deg, #1c1c1c, #1c1c1c 12px, #141414 12px, #141414 24px);
  border: 1px solid var(--line);
  position: relative;
}

.photo-slot::after {
  content: "Foto";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.photo-slot.alt { background: linear-gradient(200deg, #2a2a2a, #101010 60%); }
.photo-slot.warm { background: linear-gradient(160deg, #3a2418, #121212 70%); }
.photo-slot.tall { min-height: 460px; }
.photo-slot.photo-real {
  overflow: hidden;
  padding: 0;
  background: #121212;
}
.photo-slot.photo-real img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center 40%;
}
.photo-slot.photo-real::after {
  content: "";
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.38), transparent 46%);
  pointer-events: none;
}

.card-rail {
  display: flex;
  gap: 1rem;
  width: 100%;
  overflow: hidden;
}

.expand-card {
  flex: 1 1 0;
  min-width: 0;
  height: 440px;
  border: none;
  border-radius: 22px;
  padding: 0;
  text-align: left;
  color: white;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a center/cover no-repeat;
  transition: flex-grow 0.35s ease;
}

.expand-card.is-open { flex-grow: 2.6; }
.expand-card.tone-1 { background-image: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.72)), linear-gradient(145deg, #ff6a00, #2b2b2b); }
.expand-card.tone-2 { background-image: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.75)), linear-gradient(160deg, #444, #111); }
.expand-card.tone-3 { background-image: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.78)), linear-gradient(200deg, #8a3b12, #0d0d0d); }
.expand-card.tone-4 { background-image: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.8)), linear-gradient(120deg, #222, #ff6a00 160%); }

.expand-card .card-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}

.expand-card h3 { margin: 0 0 0.4rem; font-size: clamp(1rem, 1.5vw, 1.45rem); line-height: 1.15; }
.expand-card p { margin: 0; color: #ececec; max-height: 0; overflow: hidden; opacity: 0; transition: 0.3s ease; }
.expand-card.is-open p { max-height: 220px; opacity: 1; margin-top: 0.4rem; }

.gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.8rem; }
.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: #121212;
}
.gallery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.38), transparent 46%);
  pointer-events: none;
}
.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.gallery .gallery-photo:first-child { grid-row: span 2; min-height: 100%; }
.gallery .gallery-photo:first-child img { min-height: 100%; }

.photo-viewer[open] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1200px);
  overflow: visible;
}
.photo-viewer::backdrop { background: rgba(0, 0, 0, 0.84); }
.photo-viewer-frame { position: relative; flex: 1; min-width: 0; }
.photo-viewer-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.38), transparent 46%);
  pointer-events: none;
}
.photo-viewer img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.photo-viewer img.is-shown { opacity: 1; transform: none; }
.photo-viewer-arrow {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.78);
  color: #f5f5f5;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.about-grid { display: grid; grid-template-columns: 460px 1fr; gap: 2rem; align-items: start; }
.about-photos {
  width: min(100%, 460px);
  aspect-ratio: 1;
  min-height: 0;
  justify-self: start;
}
.photo-slot.photo-real.about-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 28% center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.photo-slot.photo-real.about-photos img.is-active { opacity: 1; }

.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 1.5rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(255, 106, 0, 0.45);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(255, 106, 0, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover { color: white; background: rgba(255, 106, 0, 0.2); border-color: var(--accent); }
.contact-link svg { width: 1.15rem; height: 1.15rem; flex: none; }
.about-note + .about-note { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.landing-contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; }
.site-footer { padding: 1.5rem 6vw 2rem; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.check-list { display: grid; gap: 0.35rem; }

@media (max-width: 900px) {
  .landing-links { display: none; }
  .split, .about-grid, .landing-contact, .gallery { grid-template-columns: 1fr; }
  .gallery .gallery-photo:first-child { grid-row: auto; min-height: 220px; }
  .gallery .gallery-photo:first-child img { min-height: 220px; }
  .section { padding: 3.5rem 1.25rem; }
  .hero, .landing-nav { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
    background:
      radial-gradient(circle at 50% 108%, rgba(255, 106, 0, 0.42), transparent 36%),
      linear-gradient(180deg, #141414 0%, #0d0d0d 70%);
  }
  .card-rail { flex-direction: column; gap: 0.75rem; }
  .expand-card { flex: none; width: 100%; height: 132px; }
  .expand-card.is-open { height: 300px; }
}

/* ---------- Proyectar: asistente ---------- */
.proj-wizard { max-width: 640px; }
.proj-wizard.is-split { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 1.25rem; align-items: start; }
.proj-wizard.is-split > .mb-4 { margin-bottom: 0; min-width: 0; }
.proj-wizard.is-split > .mb-4:has(.search-select-menu:not([hidden])) { z-index: 5; }
@media (max-width: 720px) {
  .proj-wizard.is-split { grid-template-columns: 1fr; }
}
.proj-step-label { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.35rem; margin-bottom: 0.8rem; }
.active-projections { margin-top: 2.2rem; }
.proj-back { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-weight: 700; text-decoration: none; }
.proj-back:hover { color: var(--paper); }
.proj-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.proj-choice input { position: absolute; opacity: 0; pointer-events: none; }
.proj-choice span { display: block; padding: 0.75rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.proj-choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #1a0d00; font-weight: 700; }

/* ---------- Proyectar: pantalla ---------- */
body.is-projection { margin: 0; background: #0d0d0d; color: #f5f5f5; overflow-x: hidden; }
body.projection-display { overflow: hidden; }
.proj-stage {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1rem, 2.4vw, 2.5rem) clamp(1.2rem, 3.5vw, 4rem);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 106, 0, 0.32), transparent 42%),
    linear-gradient(160deg, #1a1a1a, #0d0d0d 65%);
}
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.proj-source { margin: 0; font-size: clamp(1rem, 1.8vw, 2rem); color: #bdbdbd; text-transform: uppercase; letter-spacing: 0.12em; }
.proj-source strong { color: var(--accent); margin-left: 0.5rem; }
.proj-routine { margin: 0.2rem 0 0; font-size: clamp(2rem, 4.6vw, 5.5rem); line-height: 1; }
.proj-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.proj-day-chip { padding: 0.5rem 1.2rem; border-radius: 999px; background: rgba(255, 106, 0, 0.18); border: 1px solid var(--accent); font-size: clamp(1rem, 1.9vw, 2.2rem); font-weight: 700; white-space: nowrap; }
.proj-fs { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #f5f5f5; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.85rem; cursor: pointer; opacity: 0.55; }
.proj-fs:hover { opacity: 1; }
:fullscreen .proj-fs { display: none; }

.proj-slides { position: relative; overflow: hidden; margin: clamp(0.8rem, 2vh, 2rem) 0; }
.proj-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(8%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.proj-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.proj-slide.is-before { transform: translateX(-8%); }
.proj-kicker { margin: 0; color: var(--accent); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; font-size: clamp(1rem, 1.8vw, 2rem); }
.proj-block-name { margin: 0.2rem 0 clamp(0.6rem, 2vh, 1.6rem); font-size: clamp(2.2rem, 5.5vw, 6.5rem); line-height: 1; }
.proj-details { margin-top: 0.6rem; font-size: clamp(1.8rem, 4vw, 4.8rem); line-height: 1.25; max-width: 22em; overflow: auto; }
.proj-stage.is-on-block .proj-routine { font-size: clamp(1.15rem, 2.4vw, 2.4rem); }
.proj-stage.is-on-block .proj-source { font-size: clamp(0.8rem, 1.2vw, 1.1rem); }
.proj-stage.is-on-block .proj-day-chip { font-size: clamp(0.75rem, 1.1vw, 1rem); padding: 0.2rem 0.75rem; }
.proj-stage.is-on-block .proj-kicker { display: none; }
.proj-stage.is-on-block .proj-block-name { margin: 0 0 0.45rem; font-size: clamp(1.15rem, 2.2vw, 2.2rem); font-weight: 600; color: var(--muted); }
.proj-stage.is-on-block .proj-slides { margin: 0.3rem 0; }
.proj-stage.is-on-block .proj-exercises { gap: clamp(0.85rem, 1.6vw, 1.4rem); }
.proj-stage:not(.is-intro) .proj-connect { display: none; }
.proj-details p { margin: 0 0 0.8em; }

.proj-exercises { --num-overhang: calc(clamp(1.76rem, 4vw, 4.8rem) * 0.42); list-style: none; margin: 0; padding: var(--num-overhang) 0.3rem 0.2rem var(--num-overhang); display: grid; gap: clamp(0.6rem, 1.4vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-content: start; overflow: visible; }
.proj-exercises[hidden] { display: none; }
.proj-exercise { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.55rem; padding: calc(clamp(1.76rem, 4vw, 4.8rem) * 0.98) clamp(0.9rem, 1.4vw, 1.4rem) 0.9rem; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); min-height: clamp(5rem, 14vh, 11rem); }
.proj-exercise-name { width: 100%; }
.proj-number { flex: none; display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 0.15em; border-radius: 0.35em; background: var(--accent); color: #1a0d00; font-weight: 900; font-size: clamp(1.76rem, 4vw, 4.8rem); line-height: 1; }
.proj-exercise > .proj-number { position: absolute; top: 0; left: 0; z-index: 2; translate: -32% -32%; min-width: 1.05em; height: 1.05em; padding: 0; }
.proj-exercise-name { margin: 0; font-size: clamp(1.6rem, 3.2vw, 4.2rem); font-weight: 800; line-height: 1.05; }
.proj-exercises.count-1,
.proj-exercises.count-2,
.proj-exercises.count-3,
.proj-exercises.count-4,
.proj-exercises.count-6 { height: 100%; align-content: stretch; }
.proj-exercises.count-1 { grid-template-columns: 1fr; }
.proj-exercises.count-2,
.proj-exercises.count-4 { grid-template-columns: 1fr 1fr; }
.proj-exercises.count-3,
.proj-exercises.count-6,
.proj-exercises.count-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proj-exercises.count-4,
.proj-exercises.count-6 { grid-template-rows: 1fr 1fr; }
.proj-exercises.count-1 .proj-exercise,
.proj-exercises.count-2 .proj-exercise,
.proj-exercises.count-3 .proj-exercise,
.proj-exercises.count-4 .proj-exercise,
.proj-exercises.count-6 .proj-exercise { height: 100%; }
.proj-exercises.count-1 .proj-exercise,
.proj-exercises.count-2 .proj-exercise { container-type: inline-size; padding: calc(clamp(1.76rem, 4vw, 4.8rem) * 1.05) clamp(1.3rem, 2.2vw, 2.4rem) clamp(1.2rem, 2vh, 2rem); gap: clamp(0.8rem, 1.8vh, 1.6rem); }
.proj-exercises.count-1 .proj-exercise-name { font-size: clamp(3.4rem, 9cqi, 9rem); line-height: 0.98; }
.proj-exercises.count-2 .proj-exercise-name { font-size: clamp(2.8rem, 15cqi, 7rem); line-height: 0.98; }
.proj-exercises.count-4 .proj-exercise { padding-inline: clamp(1rem, 2vw, 1.6rem); }
.proj-exercises.count-4 .proj-exercise-name { font-size: clamp(2rem, 3.8vw, 4.8rem); }
.proj-chips { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; width: 100%; }
.proj-exercises.count-1 .proj-chips,
.proj-exercises.count-2 .proj-chips { flex-wrap: nowrap; }
.proj-chips span { padding: 0.2rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: clamp(1rem, 1.8vw, 2.2rem); font-weight: 700; white-space: nowrap; flex: none; }
.proj-exercises.count-1 .proj-chips span { font-size: clamp(1.7rem, 3.4cqi, 3.4rem); padding: 0.4rem 1.1rem; }
.proj-exercises.count-2 .proj-chips span { font-size: clamp(1.15rem, 4.7cqi, 2.3rem); padding: 0.35rem 0.8rem; }
.proj-exercises.is-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.proj-exercises.is-compact .proj-exercise { min-height: 0; }
.proj-exercises.is-compact.count-3 .proj-exercise-name,
.proj-exercises.is-compact.count-4 .proj-exercise-name,
.proj-exercises.is-compact.count-6 .proj-exercise-name,
.proj-exercises.is-compact.count-many .proj-exercise-name { font-size: clamp(1.15rem, 2.1vw, 2.6rem); }
.proj-exercises.is-compact.count-6 .proj-chips,
.proj-exercises.is-compact.count-many .proj-chips { display: none; }

.proj-timer { text-align: center; padding: clamp(0.4rem, 1.6vh, 1.6rem) 0; border-radius: 28px; margin-bottom: clamp(0.6rem, 1.6vh, 1.4rem); border: 3px solid var(--accent); background: rgba(255, 106, 0, 0.12); }
.proj-timer[hidden] { display: none; }
.proj-timer[data-phase="rest"] { border-color: #6c6c6c; background: rgba(255, 255, 255, 0.07); }
.proj-timer[data-phase="paused"] { border-color: #f5c400; background: rgba(245, 196, 0, 0.1); }
.proj-timer[data-phase="done"] { border-color: #34d27b; background: rgba(52, 210, 123, 0.12); }
.proj-timer-phase { margin: 0; font-size: clamp(1.4rem, 3vw, 3.6rem); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.proj-timer-clock { margin: 0; font-size: clamp(4rem, 17vh, 18rem); line-height: 0.95; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); }
.proj-timer-clock[data-kind="word"] { font-size: clamp(3rem, 9vw, 8rem); letter-spacing: 0.04em; font-variant-numeric: normal; }
.proj-timer-clock[data-kind="ready"] { font-size: clamp(2.4rem, 7.2vw, 6.4rem); letter-spacing: 0.02em; font-variant-numeric: normal; }
.proj-timer-clock.is-beat { animation: proj-beat 1.15s ease-in-out infinite; transform-origin: center; }
@keyframes proj-beat {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.07); }
  32% { transform: scale(1); }
  48% { transform: scale(1.05); }
  64% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .proj-timer-clock.is-beat { animation: none; }
}
.proj-timer[data-phase="rest"] .proj-timer-clock { color: #d0d0d0; }
.proj-timer[data-phase="paused"] .proj-timer-clock { color: #f5c400; }
.proj-timer[data-phase="done"] .proj-timer-clock { color: #34d27b; }
.proj-timer-round { margin: 0.3rem 0 0; font-size: clamp(1.1rem, 2.2vw, 2.6rem); color: #cfcfcf; }
.proj-timer-current { margin: 0.8rem auto 0; display: flex; align-items: center; justify-content: center; gap: 1.4rem; text-align: left; }
.proj-timer-current[hidden] { display: none; }
.proj-timer-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; min-width: 0; }
.proj-timer-exercise { font-size: clamp(1.6rem, 4.2vw, 5rem); font-weight: 900; line-height: 1; }
.proj-timer-meta { font-size: clamp(1rem, 2vw, 2.2rem); font-weight: 700; color: #d0d0d0; }
.proj-timer-meta:empty { display: none; }
.proj-timer-next { position: absolute; right: 0; bottom: 0.15rem; z-index: 3; margin: 0; max-width: 42%; text-align: right; font-size: clamp(0.95rem, 1.45vw, 1.55rem); font-weight: 700; color: #c8c8c8; text-transform: none; letter-spacing: 0; }
.proj-timer-next:empty { display: none; }

.proj-slide:has(.proj-timer:not([hidden])) .proj-block-name { font-size: clamp(1.4rem, 3vw, 3.4rem); margin-bottom: 0.4rem; }
.proj-timer-current .proj-number { font-size: clamp(1.8rem, 4vw, 5rem); }

.proj-slide-end { justify-content: center; }
.proj-end-title { margin: 0.4rem 0; font-size: clamp(3rem, 11vw, 13rem); line-height: 0.95; }
.proj-end-sub { margin: 0; font-size: clamp(1.4rem, 3vw, 3.6rem); color: #cfcfcf; }

.proj-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.proj-dots { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.proj-dot { width: clamp(0.9rem, 1.4vw, 1.6rem); height: clamp(0.9rem, 1.4vw, 1.6rem); border-radius: 999px; border: none; padding: 0; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: all 0.25s ease; }
.proj-dot.is-active { background: var(--accent); width: clamp(2.2rem, 4vw, 4.4rem); }
.proj-step { margin: 0; flex: 1; font-size: clamp(1rem, 1.6vw, 1.8rem); color: #bdbdbd; }
.proj-connect { display: grid; justify-items: end; gap: 0.35rem; color: #bdbdbd; }
.proj-connect-label { margin: 0; font-size: clamp(0.8rem, 1.3vw, 1.4rem); line-height: 1.2; }
.proj-pin { margin: 0; font-size: clamp(3rem, 8vw, 9rem); font-weight: 900; letter-spacing: 0.18em; line-height: 1; color: var(--paper); }
.proj-closed { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.92); font-size: clamp(2rem, 6vw, 7rem); font-weight: 900; text-align: center; }
.proj-closed[hidden] { display: none; }

@media (max-width: 700px) {
  .proj-top { flex-direction: column; }
  .proj-top-right { align-items: flex-start; }
}

/* ---------- Proyectar: control remoto (celular) ---------- */
body.projection-control { overflow: auto; }
.remote { max-width: 560px; margin: 0 auto; padding: 1rem 1rem 3rem; display: grid; gap: 1rem; }
.remote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.remote-head h1 { margin: 0.1rem 0 0; font-size: 1.5rem; }
.remote-source, .remote-day { margin: 0; color: #bdbdbd; font-size: 0.9rem; }
.remote-status { padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; background: #333; white-space: nowrap; }
.remote-status[data-online="true"] { background: rgba(52, 210, 123, 0.2); color: #34d27b; }
.remote-status[data-online="false"] { background: rgba(255, 80, 80, 0.2); color: #ff6b6b; }
.remote-now, .remote-card { padding: 1rem; border-radius: 22px; background: #181818; border: 1px solid var(--line); }
.remote-card h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.remote-now-label { margin: 0 0 0.8rem; font-weight: 700; font-size: 1.1rem; }
.remote-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.7rem; }
.remote-btn { min-height: 4.2rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 18px; background: #262626; color: #f5f5f5; font-size: 1.2rem; font-weight: 800; }
.remote-btn:active { transform: scale(0.97); }
.remote-btn-next, .remote-btn-go { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.remote-btn-stop { color: #ff8b8b; }
.remote-now .remote-nav .remote-btn { min-height: 6rem; font-size: 1.5rem; }
.remote-actions-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 0.8rem; }
.remote.is-timing .remote-actions-card { display: none; }
.remote-run { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.remote-run[hidden] { display: none; }
.remote-live { display: grid; justify-items: center; gap: 0.2rem; }
.remote-live-round:empty,
.remote-live-phase:empty,
.remote-live-exercise:empty,
.remote-live-next:empty { display: none; }
.remote-live-round { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.04em; color: #d7d7d7; }
.remote-live-phase { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.remote-live-exercise { margin: 0.45rem 0 0; font-size: 1.4rem; font-weight: 800; text-align: center; }
.remote-live-next { margin: 0; font-size: 1.05rem; color: #cfcfcf; text-align: center; }
.remote-progress { width: 100%; height: 0.7rem; margin: 0.35rem 0 0.15rem; border-radius: 999px; background: #242424; overflow: hidden; }
.remote-progress[hidden] { display: none; }
.remote-progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: #34d27b; box-shadow: 0 0 14px rgba(52, 210, 123, 0.7); transition: width 0.2s linear; }
.remote.is-timing .remote-timer { background: transparent; border: none; padding: 0.2rem 0 0; }
.remote.is-timing .remote-timer h2,
.remote.is-timing .remote-fields,
.remote.is-timing .remote-exercises,
.remote.is-timing .remote-hint,
.remote.is-timing .remote-clear,
.remote.is-timing .remote-card:not(.remote-timer),
.remote.is-timing .remote-foot { display: none; }
@media (max-width: 900px) {
  body.projection-control,
  body.projection-control * { touch-action: manipulation; }
  body.projection-control .remote { padding-bottom: calc(12.5rem + env(safe-area-inset-bottom)); }
  body.projection-control .remote.is-timing { padding-bottom: calc(17rem + env(safe-area-inset-bottom)); }
  body.projection-control .remote-dock {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    bottom: calc(3.1rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  body.projection-control .remote-now {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0.75rem 0.85rem 0.65rem;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
  }
  body.projection-control .remote-run {
    padding: 0.7rem 0.85rem;
    background: #181818;
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.4);
  }
  body.projection-control .remote.is-timing .remote-now { border-radius: 0; box-shadow: none; }
  body.projection-control .remote-now-label { order: 1; margin: 0; }
  body.projection-control .remote-jump { order: 2; margin-top: 0; }
  body.projection-control .remote-now .remote-nav { order: 3; }
  body.projection-control .remote-now .remote-nav .remote-btn { min-height: 4.4rem; font-size: 1.25rem; }
  body.projection-control .remote-run .remote-btn { min-height: 3.4rem; font-size: 1.05rem; }
}
.remote-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.remote-jump button { width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: #222; color: #f5f5f5; font-weight: 700; }
.remote-jump button.is-active { background: var(--accent); color: #1a0d00; border-color: var(--accent); }
.remote-clock { margin: 0 0 0.8rem; font-size: 2.4rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; color: var(--accent); }
.remote-clock[data-kind="ready"] { font-size: 1.92rem; font-variant-numeric: normal; }
.remote-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 0.8rem; }
.remote-fields label, .remote-select { display: grid; gap: 0.25rem; font-size: 0.8rem; color: #bdbdbd; }
.remote-fields input, .remote-select select { width: 100%; padding: 0.7rem; border-radius: 12px; border: 1px solid var(--line); background: #0f0f0f; color: #f5f5f5; font-size: 1.1rem; }
.remote-select { margin-bottom: 0.8rem; }
.remote-clear { margin: 0.2rem 0 0.8rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: #f5f5f5; font-weight: 700; }
.remote-clear[hidden] { display: none; }
.remote-hint { font-size: 0.85rem; color: #9a9a9a; margin: 0 0 0.6rem; }
.remote-hint[hidden], .remote-exercises[hidden] { display: none; }
.remote-ex { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; margin-bottom: 0.4rem; border-radius: 12px; background: #222; }
.remote-ex input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.remote-ex-num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--accent); color: #1a0d00; font-weight: 800; }
.remote-ex em { margin-left: auto; color: var(--accent); font-style: normal; font-weight: 800; }
.remote-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.remote-foot a { color: var(--accent); }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mode-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) {
  .mode-grid, .mode-grid-2 { grid-template-columns: 1fr; }
}
.mode-card { display: grid; gap: 0.4rem; align-content: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: #151515; color: var(--paper); text-decoration: none; }
.mode-card:hover { border-color: var(--accent); color: var(--paper); }
.mode-icon { font-size: 2.2rem; line-height: 1; }
.mode-title { font-size: 1.25rem; font-weight: 800; }
.mode-text { color: var(--muted); font-size: 0.95rem; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 640px; }
.guide-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: #151515; }
.guide-step.is-done { border-color: #2f8f4e; }
.guide-num { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: #1a0d00; font-weight: 900; display: grid; place-items: center; }
.guide-step.is-done .guide-num { background: #2f8f4e; color: #fff; }
.guide-title { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; }
.guide-text { margin: 0.6rem 0 0; color: var(--muted); }
.guide-url { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--accent); word-break: break-all; }
.guide-pin { display: inline-block; padding: 0 0.4rem; border-radius: 8px; background: #111; color: var(--paper); font-weight: 900; letter-spacing: 0.15em; }
.cast-fallback { color: #ffb36b; font-size: 0.95rem; }
.cast-wrap { display: inline-flex; align-items: center; }
.proj-fs.cast-btn { display: inline-flex; align-items: center; gap: 0.35rem; }
.proj-fs.cast-btn[hidden] { display: none; }
.proj-fs.cast-btn google-cast-launcher { width: 16px; height: 16px; }
:fullscreen .cast-wrap { display: none; }
.cast-btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.cast-btn[hidden] { display: none; }
.cast-btn google-cast-launcher { width: 22px; height: 22px; pointer-events: none; --connected-color: var(--accent); --disconnected-color: currentColor; }
.remote-close { background: none; border: none; color: #ff8b8b; padding: 0; }

body.screen-page { overflow: hidden; }
.screen-stage { position: fixed; inset: 0; background: var(--ink); }
.screen-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4vh 8vw 16vh; text-align: center; background: #121212; }
.screen-wait[hidden] { display: none; }
.screen-hero { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.screen-brand { margin: 0; font-size: clamp(1.4rem, 3vw, 3rem); font-weight: 800; color: var(--accent); }
.screen-hint { margin: 0; max-width: 36ch; font-size: clamp(1.1rem, 2.2vw, 2.2rem); color: #d6d6d6; }
.qr-box { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); width: 350px; height: 350px; flex: none; display: flex; align-items: center; justify-content: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.screen-pin { position: absolute; left: 0; right: 0; bottom: 2.5vh; display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin: 0; padding: 0 4vw; white-space: nowrap; }
.screen-code { font-size: clamp(1.6rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: 0.28em; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.screen-sub { font-size: clamp(0.85rem, 1.3vw, 1.3rem); color: var(--muted); }
.screen-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--ink); }
.screen-frame[hidden] { display: none; }

.qr-reader { max-width: 420px; margin-bottom: 1.4rem; }
.qr-reader-stage { position: relative; width: min(100%, 54dvh); }
.qr-reader video { display: block; width: 100%; height: min(78vw, 54dvh); object-fit: cover; border-radius: 22px; background: #161616; border: 1px solid var(--line); transform: translateZ(0); }
.qr-reader-frame { position: absolute; left: 50%; top: 50%; z-index: 1; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28); pointer-events: none; }
.qr-reader-stage:has(.qr-reader-start:not([hidden])) .qr-reader-frame { display: none; }
.qr-reader-start { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); padding: 0.9rem 1.4rem; border-radius: 999px; font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.qr-reader-start[hidden] { display: none; }
.qr-reader-status { margin: 0.8rem 0 0; color: var(--muted); }

.pin-entry { max-width: 420px; }
.pin-entry label { display: block; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.pin-entry-row { display: flex; gap: 0.5rem; }
.pin-entry-row input { flex: 1; min-width: 0; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); background: #111; color: var(--paper); font-size: 2rem; font-weight: 800; letter-spacing: 0.35em; text-align: center; }
.pin-entry-status { min-height: 1.3rem; margin: 0.6rem 0 0; color: #ff8b8b; }
.pin-entry-or { margin: 1.6rem 0 0.6rem; color: var(--muted); }

.routine-start { display: inline-flex; align-items: center; gap: 0.45rem; }
.routine-start svg { width: 1.05rem; height: 1.05rem; }

body.routine-practice { margin: 0; overflow: hidden; height: 100dvh; background: #070707; }
.player-app { height: 100dvh; max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.player-setup, .player-stage { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.player-setup { overflow: auto; padding: calc(1.2rem + env(safe-area-inset-top)) 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); }
.player-setup[hidden], .player-stage[hidden], .player-days[hidden], .player-timer[hidden], .player-card[hidden], .player-block-start[hidden], .player-video-bar[hidden], .player-facts[hidden] { display: none !important; }
.player-back { display: inline-flex; align-items: center; gap: 0.15rem; color: var(--muted); font-weight: 700; margin-bottom: 1.4rem; }
.player-back svg, .player-icon svg { width: 1.35rem; height: 1.35rem; }
.player-back:hover { color: var(--accent); }
.player-setup h1 { margin: 0.2rem 0 0.45rem; font-size: 2.4rem; font-weight: 800; }
.player-lead { margin: 0 0 1.2rem; color: var(--muted); }
.player-weeks { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 0.9rem; }
.player-weeks::-webkit-scrollbar { display: none; }
.player-chip, .player-day { border: 1px solid var(--line); background: transparent; color: var(--paper); }
.player-chip { border-radius: 999px; padding: 0.4rem 0.85rem; font-weight: 700; white-space: nowrap; }
.player-chip.is-on, .player-day.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.player-days { display: grid; gap: 0.55rem; }
.player-day { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; text-align: left; border-radius: 16px; padding: 0.95rem 1rem; background: #141414; }
.player-day span { color: var(--muted); font-size: 0.85rem; }
.player-day.is-on span { color: #1a0d00; }
.player-go { margin-top: auto; }
.player-go:disabled { opacity: 0.4; }
.player-top { display: flex; align-items: center; gap: 0.6rem; padding: calc(0.7rem + env(safe-area-inset-top)) 0.8rem 0.4rem; }
.player-top-copy { flex: 1; min-width: 0; }
.player-top .player-kicker, .player-where { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-where { color: var(--muted); font-size: 0.85rem; }
.player-top-spacer { width: 2.6rem; flex: none; }
.player-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 999px; background: #161616; color: var(--paper); }
.player-timer { margin: 0 0.9rem; padding: 0.7rem 0.8rem 0.85rem; border-radius: 22px; text-align: center; border: 2px solid var(--accent); background: rgba(255, 106, 0, 0.12); }
.player-timer[data-phase="rest"] { border-color: #666; background: rgba(255, 255, 255, 0.06); }
.player-timer[data-phase="paused"] { border-color: #f5c400; background: rgba(245, 196, 0, 0.1); }
.player-timer[data-phase="done"] { border-color: #34d27b; background: rgba(52, 210, 123, 0.12); }
.player-phase { margin: 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; font-weight: 800; color: var(--muted); }
.player-clock { margin: 0; font-size: 4.2rem; line-height: 0.95; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); }
.player-clock[data-kind="ready"] { font-size: 3.36rem; letter-spacing: 0; font-variant-numeric: normal; }
.player-clock.is-beat { animation: proj-beat 1.15s ease-in-out infinite; }
.player-timer[data-phase="rest"] .player-clock { color: #d0d0d0; }
.player-timer[data-phase="paused"] .player-clock { color: #f5c400; }
.player-timer[data-phase="done"] .player-clock { color: #34d27b; }
.player-round, .player-next { margin: 0.15rem 0 0; color: #cfcfcf; }
.player-next:empty, .player-round:empty, .player-phase:empty { display: none; }
.player-timer-actions { display: flex; justify-content: center; gap: 0.45rem; margin-top: 0.55rem; }
.player-timer-btn { border: 0; border-radius: 999px; padding: 0.35rem 0.9rem; background: #161616; color: var(--paper); font-weight: 700; }
.player-block-start { margin: 0 0.9rem 0.2rem; }
@media (min-width: 980px) {
  body.routine-practice .player-app { max-width: none; }
  .player-setup { max-width: 34rem; width: 100%; margin-inline: auto; }
  .player-stage:not(.is-split) .player-timer,
  .player-stage:not(.is-split) .player-block-start {
    display: block;
    width: min(36rem, 50%);
    max-width: none;
    margin-inline: auto;
  }
  .player-stage.is-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    padding: 0 2.5rem;
  }
  .player-stage.is-split .player-top { grid-column: 1 / -1; grid-row: 1; padding-left: 0; padding-right: 0; }
  .player-stage.is-split .player-scroller { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
  .player-stage.is-split .player-timer {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: none;
    margin: 0.35rem 0 0.2rem;
    justify-self: stretch;
  }
  .player-stage.is-timing {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
  .player-stage.is-timing .player-timer {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0.4rem 0 0;
    padding: 1.1rem 1rem 1.2rem;
  }
  .player-stage.is-timing .player-facts {
    display: block;
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: 0.85rem;
    text-align: left;
  }
  .player-stage.is-timing .player-clock { font-size: clamp(4.8rem, 7vw, 8rem); }
  .player-stage.is-timing .player-clock[data-kind="ready"] { font-size: clamp(3.2rem, 4.5vw, 5.2rem); }
  .player-stage.is-timing .player-scroller { grid-column: 2; grid-row: 2 / 5; }
  .player-stage.is-timing .player-block-start { grid-column: 2; grid-row: 2; align-self: end; justify-self: center; }
  .player-stage.is-timing .player-dots { grid-row: 5; }
  .player-stage.is-timing .player-copy { display: none; }
  .player-stage.is-timing .player-card:has(.player-video) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.2rem 0 0.4rem;
  }
  .player-stage.is-timing .player-facts .player-line,
  .player-stage.is-timing .player-facts .player-title,
  .player-stage.is-timing .player-facts .player-chips { justify-content: flex-start; }
  .player-stage.is-split .player-block-start { grid-column: 1; grid-row: 4; width: max-content; margin: 0.35rem auto 0.2rem; justify-self: center; }
  .player-stage.is-split .player-dots { grid-column: 1 / -1; grid-row: 5; padding-left: 0; padding-right: 0; }
  .player-card:has(.player-video) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    text-align: left;
    padding: 1.5rem 0 0.6rem;
  }
  .player-card:has(.player-video) .player-chips,
  .player-card:has(.player-video) .player-line,
  .player-card:has(.player-video) .player-title { justify-content: flex-start; }
  .player-card:has(.player-video) .player-video { width: 100%; margin: 0; }
  .player-card:has(.player-video) h1 { font-size: clamp(2.6rem, 4.2vw, 4.6rem); }
  .player-card:has(.player-video) .player-video-thumb,
  .player-card:has(.player-video) .player-video-stage { max-height: calc(100dvh - 16rem); }
}
.player-scroller { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.player-scroller::-webkit-scrollbar { display: none; }
.player-card { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.5rem 0.6rem; text-align: center; }
.player-card h1, .player-facts h1 { margin: 0.15rem 0 0.7rem; font-size: clamp(1.7rem, 6.5vw, 2.6rem); font-weight: 800; line-height: 1.05; }
.player-facts { display: none; }
.player-line, .player-title { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0.45rem 0.7rem; }
.player-line { margin: 0; }
.player-pos { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-num { margin: 0; font-size: 1.15em; font-weight: 800; color: var(--accent); line-height: 1; }
.player-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.player-chips span { padding: 0.35rem 0.7rem; border-radius: 999px; background: #161616; border: 1px solid var(--line); font-weight: 700; }
.player-video { width: min(100%, 28rem); margin: 1.1rem auto 0; }
.player-video-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #161616; aspect-ratio: 16 / 9; }
.player-video-thumb[hidden] { display: none !important; }
.player-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.player-video-thumb img:not([src]) { display: none; }
.player-video-play { position: absolute; left: 50%; top: 50%; width: 3.2rem; height: 3.2rem; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(0, 0, 0, 0.55); }
.player-video-play::before { content: ""; position: absolute; left: 1.25rem; top: 0.95rem; border-style: solid; border-width: 0.65rem 0 0.65rem 1rem; border-color: transparent transparent transparent #fff; }
.player-video-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; }
.player-video-stage[hidden] { display: none !important; }
.player-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-video-stage.is-clean { background: #000; }
.player-video[data-provider="youtube"] .player-video-stage.is-clean .player-video-frame,
.player-video[data-provider="vimeo"] .player-video-stage.is-clean .player-video-frame { top: -12%; left: -12%; width: 124%; height: 124%; pointer-events: none; }
.player-video[data-provider="youtube"] .player-video-stage.is-clean::after { content: ""; position: absolute; right: 0; bottom: 0; z-index: 1; width: 5.5rem; height: 2.6rem; background: linear-gradient(to top left, #000 45%, transparent); pointer-events: none; }
.player-video-full { position: absolute; right: 0.55rem; bottom: 0.55rem; z-index: 2; border: 0; border-radius: 999px; padding: 0.35rem 0.7rem; background: rgba(0, 0, 0, 0.72); color: #fff; font-weight: 700; font-size: 0.78rem; }
.player-video-bar { display: flex; gap: 0.28rem; width: 100%; margin-top: 0.4rem; }
.player-video-bar button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 999px; padding: 0.32rem 0.15rem; background: #161616; color: #fff; font-size: 0.72rem; font-weight: 700; }
.player-video.is-full { flex-direction: column; justify-content: center; padding: 0.6rem; }
.player-video.is-full .player-video-bar { width: min(100%, 52rem); margin: 0.45rem auto 0; }
.player-video.is-full { position: fixed; inset: 0; z-index: 80; width: auto; margin: 0; background: #000; display: flex; align-items: stretch; }
.player-video.is-full .player-video-stage { aspect-ratio: auto; flex: 1; width: 100%; height: auto; min-height: 0; border-radius: 0; }
.player-dots { display: flex; justify-content: stretch; align-items: center; gap: 0.28rem; min-height: 3.2rem; padding: 0.55rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom)); touch-action: none; cursor: ew-resize; }
.player-dot { flex: 1 1 0; width: auto; min-width: 0.35rem; height: 0.7rem; border: 0; border-radius: 999px; padding: 0; background: rgba(255, 255, 255, 0.28); }
.player-dot.is-break { margin-left: 0.45rem; }
.player-dot.is-active { background: var(--accent); }
.player-sheet { width: min(100%, 520px); max-height: min(88dvh, 720px); margin: auto auto 0; border: 0; border-radius: 24px 24px 0 0; padding: 0.4rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: #141414; color: var(--paper); }
.player-sheet::backdrop { background: rgba(0, 0, 0, 0.62); }
.player-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.player-sheet-head h2 { margin: 0.4rem 0; font-size: 1.25rem; }
.player-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.player-fields label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.player-fields input { width: 100%; padding: 0.65rem; border-radius: 12px; border: 1px solid var(--line); background: #0f0f0f; color: var(--paper); font-size: 1.15rem; }
.player-hint { color: var(--muted); font-size: 0.85rem; }
.player-timer-day { max-height: 34dvh; overflow: auto; }
.player-check { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; padding: 0.45rem 0.5rem; border-radius: 12px; background: #1c1c1c; }
.player-check span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 8px; background: var(--accent); color: #1a0d00; font-weight: 800; font-size: 0.8rem; }
.player-clear { margin: 0.2rem 0 0.8rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: var(--paper); font-weight: 700; }
.player-sheet-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.45rem; }

/* Cobros */
.month-bar { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 0.9rem; padding-bottom: 0.15rem; }
.month-bar::-webkit-scrollbar { display: none; }
.month-btn { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--paper); font-weight: 700; white-space: nowrap; }
.month-btn.is-current { border-color: var(--accent); }
.month-btn.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.month-btn-older { color: var(--accent); }
.month-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; flex: none; }
.month-dot.is-due { background: #e53935; }
.month-dot.is-paid { background: #2e7d32; }
.month-btn.is-on .month-dot { box-shadow: 0 0 0 1px #1a0d00; }
.badge-invoice-pending { background: #8a6d00; }
.badge-invoice-paid { background: #1f7a3a; }
.badge-invoice-overdue { background: #b3261e; }
.badge-invoice-cancelled { background: #5c5c5c; }
.membership-form:has(.membership-unlimited:checked) .membership-credits-field { display: none; }
.membership-form:has(.membership-discount-type option[value="none"]:checked) .membership-discount-value { display: none; }
.membership-form:has(.membership-late-type option[value="none"]:checked) .membership-late-value { display: none; }
.pay-amount { display: flex; align-items: center; gap: 0.4rem; min-width: 12rem; }
.pay-amount .form-control { min-width: 0; text-align: right; }
.fin-block { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fin-block h3 { font-size: 0.95rem; font-weight: 800; margin: 0 0 0.5rem; }
.fin-plan { display: grid; gap: 0.15rem; }
.fin-credits { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.fin-credits strong { font-size: 1.6rem; color: var(--accent); }

/* Horarios */
.dash-shortcuts { margin-top: 0.5rem; }
.sched-tabs, .sched-subtabs { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 0.9rem; }
button.sched-tab { background: transparent; font: inherit; cursor: pointer; }
button.sched-tab.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.sched-tabs::-webkit-scrollbar, .sched-subtabs::-webkit-scrollbar { display: none; }
.sched-tab { padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); color: var(--paper); font-weight: 700; white-space: nowrap; }
.sched-tab.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.sched-subtabs { gap: 1.1rem; border-bottom: 1px solid var(--line); }
.sched-subtab { padding: 0.3rem 0.1rem 0.5rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.sched-subtab.is-on { color: var(--paper); border-bottom-color: var(--accent); }
.sched-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.sched-nav-btn { padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--paper); font-weight: 700; white-space: nowrap; }
.sched-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.sched-nav-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sched-today { color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.schedule-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #101010; }
.schedule-grid { width: 100%; min-width: 40rem; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.schedule-grid thead th { padding: 0.6rem 0.3rem; text-align: center; font-weight: 800; border-bottom: 1px solid var(--line); }
.schedule-grid thead th small { display: block; color: var(--muted); font-weight: 600; }
.schedule-grid td { vertical-align: top; padding: 0.3rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); height: 3.2rem; }
.schedule-grid td.is-today, .schedule-grid thead th.is-today { background: rgba(255, 106, 0, 0.07); }
.schedule-grid .schedule-time { width: 4rem; position: sticky; left: 0; z-index: 1; background: #101010; text-align: center; vertical-align: top; padding: 0.55rem 0.2rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); }
.schedule-grid thead .schedule-time { border-top: 0; }
.slot { display: flex; flex-direction: column; gap: 0.05rem; margin-bottom: 0.25rem; padding: 0.4rem 0.5rem; border-radius: 10px; font-size: 0.82rem; line-height: 1.2; }
a.slot:hover { filter: brightness(1.08); }
.slot-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.slot-name { font-weight: 700; overflow-wrap: anywhere; }
.slot-meta { font-size: 0.78rem; opacity: 0.92; }
.slot-coach { font-size: 0.74rem; opacity: 0.8; }
.slot.is-muted { opacity: 0.45; filter: grayscale(0.7); }
.sched-swatch.is-muted { background: #3a3a3a; color: #bbb; opacity: 0.6; }
.slot.is-off { background: repeating-linear-gradient(135deg, #2a2a2a, #2a2a2a 8px, #232323 8px, #232323 16px); border: 1px solid #c62828; color: #a0a0a0; }
.slot.is-off .slot-name { text-decoration: line-through; text-decoration-color: #e53935; }
.slot.is-off .slot-meta { color: #ff7a7a; opacity: 1; }
.sched-legend { margin-top: 1.1rem; color: var(--muted); }
.sched-legend-title { margin: 0 0 0.4rem; font-weight: 800; color: var(--paper); }
.sched-legend-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.sched-legend-text { margin-left: 0.4rem; }
.sched-legend-off { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0; }
.sched-legend-note { margin: 0.6rem 0 0; font-size: 0.88rem; }
.sched-swatch { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 0.3rem; border-radius: 8px; font-weight: 800; font-size: 0.85rem; }
.sched-swatch.is-off { background: #2a2a2a; border: 1px solid #c62828; color: #ff7a7a; }
.sched-notices { padding-left: 1.1rem; }
.sched-list { display: grid; gap: 0.5rem; }
.sched-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: #121212; }
.sched-row.is-inactive { opacity: 0.6; }
.sched-row-main { display: grid; gap: 0.1rem; min-width: 0; }
.sched-row-actions { display: flex; gap: 0.4rem; }
.sched-row-actions form { display: inline; }
.stepper { display: flex; gap: 0.3rem; }
.stepper .form-control { min-width: 0; text-align: center; }
.stepper-btn { flex: none; width: 2.4rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #161616; color: var(--paper); font-size: 1.1rem; font-weight: 800; }
.stepper-btn:active { border-color: var(--accent); color: var(--accent); }
.priority-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.4rem; }
.priority-list:empty { display: none; }
.priority-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 12px; background: #121212; }
.priority-num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 999px; background: var(--accent); color: #1a0d00; font-weight: 800; }
.priority-name { font-weight: 800; }
.priority-hours { color: var(--muted); font-size: 0.9rem; }
.priority-actions { margin-left: auto; display: flex; gap: 0.3rem; }
.priority-actions .stepper-btn { width: 2.2rem; height: 2.2rem; }
.priority-actions .stepper-btn:disabled { opacity: 0.35; }
.priority-add { max-width: 22rem; }
.priority-add[hidden] { display: none; }
.priority-summary { margin: 0.9rem 0 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 106, 0, 0.1); border: 1px solid rgba(255, 106, 0, 0.4); }
/* Reservas de clases */
.dash-hello { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.25rem; margin-bottom: 1.5rem; }
.dash-hello .booking-credits { margin-left: auto; flex: 0 0 auto; }
.booking { margin-bottom: 2rem; }
.booking-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.booking-title { margin: 0 0 0.35rem; font-size: 1.6rem; font-weight: 800; }
.booking-steps { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.booking-steps span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--accent); color: #1a0d00; font-weight: 800; font-size: 0.8rem; }
.booking-steps span:not(:first-child) { margin-left: 0.4rem; }
.booking-credits { display: grid; justify-items: center; min-width: 6.5rem; padding: 0.5rem 1rem; border-radius: 16px; border: 2px solid var(--accent); background: rgba(255, 106, 0, 0.12); line-height: 1.1; }
.booking-credits strong { font-size: 2rem; color: var(--accent); }
.booking-credits.is-empty { border-color: #e23b2f; background: rgba(226, 59, 47, 0.12); }
.booking-credits.is-empty strong { color: #ff5a4d; }
.booking-credits-count { display: flex; align-items: center; gap: 0.35rem; }
.booking-credits-plus { width: 1.7rem; height: 1.7rem; border: 0; border-radius: 999px; background: #e23b2f; color: #fff; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.booking-credits-plus:hover { background: #ff5a4d; }
.credit-buy { display: grid; justify-items: center; gap: 0.35rem; margin-bottom: 1rem; text-align: center; }
.credit-buy-unit, .credit-buy-sum, .credit-buy-total { margin: 0; }
.credit-buy-discount { margin: 0; color: #3ddc84; font-weight: 700; }
.credit-buy-total strong { color: var(--accent); font-size: 1.35rem; }
.credit-buy-stepper { display: flex; align-items: center; gap: 0.8rem; margin: 0.4rem 0; }
.credit-buy-step { width: 2.6rem; height: 2.6rem; border: 0; border-radius: 999px; background: var(--accent); color: #1a0d00; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.credit-buy-step:disabled { opacity: 0.35; }
.credit-buy-count { min-width: 2.2rem; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay-choice { border: 0; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.4rem; }
.pay-choice-row { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay-choice-row:has(input:checked) { border-color: var(--accent); }
.pay-choice-price { margin-left: auto; color: var(--accent); font-weight: 800; }
.booking-credits small { color: var(--paper); font-weight: 700; font-size: 0.78rem; }
.booking-credits.is-pulsing { animation: booking-pulse 0.9s ease-out; }
.booking-days { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.2rem 0 0.6rem; margin-bottom: 0.4rem; }
.booking-days::-webkit-scrollbar { display: none; }
.booking-day { flex: none; display: grid; justify-items: center; align-content: center; min-width: 4.6rem; min-height: 5.2rem; padding: 0.4rem 0.6rem; border-radius: 18px; border: 2px solid var(--line); background: #141414; color: var(--paper); line-height: 1.15; transition: transform 0.15s ease, border-color 0.15s ease; }
.booking-day strong { font-size: 1.7rem; }
.booking-day small { color: var(--muted); font-weight: 700; text-transform: capitalize; }
.booking-day:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--paper); }
.booking-day.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.booking-day.is-on small { color: #1a0d00; }
.booking-day-title { margin: 0.6rem 0 0.7rem; font-size: 1.15rem; font-weight: 800; }
.booking-list { display: grid; gap: 0.7rem; }
.booking-card { --occ: #3ddc84; position: relative; display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 5.2rem; padding: 0.8rem 1rem; text-align: left; color: var(--paper); border-radius: 18px; border: 2px solid var(--occ); border-left-width: 8px; background: #151515; transition: transform 0.15s ease, box-shadow 0.15s ease; }
button.booking-card { cursor: pointer; }
button.booking-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
button.booking-card:active { transform: scale(0.98); }
.booking-time { flex: none; display: grid; line-height: 1.05; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4.6rem; }
.booking-time small { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.booking-info { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.booking-name { font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.booking-meta { color: var(--muted); font-size: 0.88rem; }
.booking-state { font-weight: 800; color: var(--occ); }
.booking-dots { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
.booking-dots i { width: 0.7rem; height: 0.7rem; border-radius: 999px; border: 2px solid var(--occ); }
.booking-dots i.is-taken { background: var(--occ); }
.booking-go { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; background: var(--occ); color: #111; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.booking-card.is-booked { background: rgba(46, 125, 50, 0.16); border-color: #3ddc84; --occ: #3ddc84; }
.booking-card.is-full { --occ: #e53935; }
.booking-card.is-no-credit .booking-state, .booking-card.is-incomplete .booking-state { color: #ffb74d; }
.booking-card.is-off { border-color: var(--line); border-left-color: #555; cursor: default; }
.booking-card.is-off .booking-time,
.booking-card.is-off .booking-info > :not(.booking-roster) { opacity: 0.45; filter: grayscale(0.7); }
.booking-card.is-off .booking-state, .booking-card.is-off .booking-dots i { color: var(--muted); border-color: #666; }
.booking-card.is-off .booking-dots i.is-taken { background: #666; }
.booking-card.is-just-booked { animation: booking-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1); }
.booking-card.is-just-booked .booking-go { animation: booking-spin 0.6s ease-out; }
.booking-roster { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.booking-roster a, .booking-roster span { padding: 0.2rem 0.6rem; border-radius: 999px; background: #222; color: var(--paper); font-weight: 700; font-size: 0.92rem; }
.booking-roster [data-controller="press-hold"] { user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: transform 0.15s ease, background 0.15s ease; }
.booking-roster .is-holding, .booking-time.is-holding { transform: scale(1.08); background: var(--accent); color: #1a0d00; }
.booking-time.is-holdable { cursor: pointer; border-radius: 12px; }
.booking-card.has-cancel { padding-right: 2.6rem; }
.booking-cancel { position: absolute; top: 0.4rem; right: 0.4rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #1b1b1b; color: #d0d0d0; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.booking-cancel.is-holding { background: #e53935; border-color: #e53935; color: #fff; transform: scale(1.12); }
.booking-roster .is-guest, .guest-badge { background: var(--accent); color: #1a0d00; }
.guest-badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-weight: 800; }
.hold-cancel .modal-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.hold-cancel .modal-footer.is-two { grid-template-columns: 1fr 1fr; }
.hold-cancel .modal-footer form { margin: 0; }
.hold-cancel .modal-footer .btn { width: 100%; min-height: 3rem; white-space: normal; }
.booking-footer { margin: 1rem 0 0; font-weight: 700; }
.booking-modal-when { margin: 0; font-size: 1.2rem; font-weight: 800; }
.booking-modal-meta { margin: 0 0 1rem; color: var(--muted); }
.booking-modal-spots { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 800; color: #3ddc84; }
.booking-modal-note { margin: 0.8rem 0 0; color: #d6d6d6; }
.booking-modal-warning { margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 183, 77, 0.12); border: 1px solid #ffb74d; color: #ffe0b2; }
.booking-modal-form { margin: 0; }
.btn-reserve, .btn-cancel-booking { display: block; width: 100%; min-height: 3.2rem; padding: 0.8rem 1rem; border: 0; border-radius: 14px; font-size: 1.2rem; font-weight: 800; transition: transform 0.12s ease, filter 0.12s ease; }
.btn-reserve { background: #2e9e4f; color: #fff; }
.btn-reserve:hover:not(:disabled) { filter: brightness(1.1); }
.btn-reserve:active:not(:disabled) { transform: scale(0.97); }
.btn-reserve:disabled { background: #333; color: #888; }
.btn-cancel-booking { background: transparent; border: 2px solid #e53935; color: #ff8a80; }
.btn-cancel-booking:hover { background: rgba(229, 57, 53, 0.15); }
@keyframes booking-pop { 0% { transform: scale(0.94); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7); } 60% { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(61, 220, 132, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes booking-pulse { 0% { transform: scale(1); } 30% { transform: scale(1.18); background: rgba(255, 106, 0, 0.35); } 100% { transform: scale(1); } }
@keyframes booking-spin { from { transform: rotate(-200deg) scale(0.3); } to { transform: rotate(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .booking-card.is-just-booked, .booking-card.is-just-booked .booking-go, .booking-credits.is-pulsing { animation: none; }
}
.res-day-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; }
.res-group { margin-bottom: 0.9rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 14px; background: #121212; border-left: 6px solid var(--occ, #3ddc84); }
.res-group.is-off { opacity: 0.6; }
.res-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-bottom: 0.5rem; }
.res-group-time { font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.res-group-count { margin-left: auto; padding: 0.15rem 0.7rem; border-radius: 999px; font-weight: 800; }
.res-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.res-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0; border-top: 1px solid var(--line); }
.res-person form { display: inline; }
.badge-res-booked { background: #1f7a3a; }
.badge-res-upcoming { background: #333; color: var(--paper); }
.badge-res-cancelled { background: #5c5c5c; }
.slot-recurrence .slot-days { display: none; }
.slot-recurrence .slot-date { display: block; }
.slot-recurrence:has(.slot-recurring:checked) .slot-days { display: block; }
.slot-recurrence:has(.slot-recurring:checked) .slot-date { display: none; }
@media (max-width: 640px) {
  .schedule-grid { min-width: 34rem; }
  .schedule-grid .schedule-time { width: 3.2rem; font-size: 0.78rem; }
  .sched-nav-btn { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
}

.credit-fab {
  position: fixed;
  z-index: 45;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 3.4rem;
  height: 3.4rem;
  padding: 0 0.85rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0d00;
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.credit-fab.is-empty { background: #2a1210; color: #ff5a4d; border: 2px solid #e23b2f; }
.credit-fab-plus { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px; background: #e23b2f; color: #fff; font-size: 1rem; line-height: 1; }
@media (max-width: 900px) {
  .credit-fab { bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
}

.mobile-browser { display: none; }
@media (max-width: 900px) {
  body:not(.projection-display):not(.routine-practice) { padding-bottom: calc(3.25rem + env(safe-area-inset-bottom)); }
  .mobile-browser {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(3.1rem + env(safe-area-inset-bottom));
    padding: 0 0.5rem env(safe-area-inset-bottom);
    background: rgba(13, 13, 13, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .mobile-browser button,
  .mobile-browser a {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--muted);
  }
  .mobile-browser svg { width: 1.35rem; height: 1.35rem; }
  .mobile-browser button:active,
  .mobile-browser a:active { color: var(--accent); }
}

/* Notificaciones push y automatizaciones */
.push-pill { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.push-pill.is-on { background: #1f7a3a; color: #fff; }
.push-pill.is-off { background: #2a2a2a; color: var(--muted); }
.push-toggle-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.push-toggle-text { display: flex; flex-direction: column; font-size: 0.88rem; }
.push-toggle-text span { color: #d6d6d6; }
.push-toggle:not(.is-banner) { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.push-toggle.is-banner { margin-bottom: 1rem; }
.push-toggle.is-banner .push-toggle-panel { padding: 0.75rem 1rem; border: 1px solid var(--accent); border-radius: 14px; background: rgba(255, 106, 0, 0.08); }
@media (hover: hover) and (pointer: fine) {
  .push-toggle.is-banner { display: none; }
}
.msg-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.msg-tab { border: 1px solid var(--line); background: transparent; color: var(--paper); border-radius: 999px; padding: 0.28rem 0.9rem; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.msg-tab.is-on { background: var(--accent); border-color: var(--accent); color: #1a0d00; }
.msg-reach { padding: 0.5rem 0.75rem; border-radius: 10px; background: #1d1d1d; font-size: 0.9rem; }
.auto-list { display: grid; gap: 0.75rem; }
.auto-card { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.auto-card.is-off { opacity: 0.7; }
.auto-card h3 { font-size: 1rem; margin: 0; }
.auto-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; font-size: 0.8rem; color: var(--muted); }
.auto-section { margin-top: 1.4rem; }
.auto-section h2 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.auto-tag { padding: 0.05rem 0.5rem; border-radius: 999px; background: #262626; color: #d6d6d6; font-weight: 700; }
.auto-tag.is-students { background: #3a2414; color: #ffd7b8; }
.auto-tag.is-system { background: #1e3a5f; color: #d6e6ff; }
.auto-card.is-system { border-color: #2c4d73; }
.auto-settings { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; }
.auto-settings .form-control { width: 6rem; }
.waitlist-list .sched-row-main strong { font-size: 0.95rem; }

/* Pagos (MercadoPago y transferencia) */
.pay-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.pay-summary.is-due { border-color: #8a6d00; }
.pay-total { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.pay-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.6rem; }
.pay-pack { display: grid; gap: 0.15rem; text-align: left; padding: 0.8rem 0.9rem; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #121212; color: var(--paper); }
.pay-pack strong { font-size: 1.05rem; }
.pay-pack span { color: var(--accent); font-weight: 800; }
.pay-pack small { color: var(--muted); }
.pay-pack:hover { border-color: var(--accent); }
.pay-unit { margin-top: 0.9rem; max-width: 22rem; }
.pay-options { display: grid; gap: 0.55rem; margin-top: 0.4rem; }
.pay-option-form { margin: 0; }
.pay-option { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #141414; color: var(--paper); text-align: left; }
.pay-option:hover { border-color: var(--accent); }
.pay-option-text { display: grid; gap: 0.1rem; flex: 1; }
.pay-option-text small { color: var(--muted); }
.pay-option-go { color: var(--muted); font-size: 1.6rem; line-height: 1; }
.pay-back { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 0 0 0.6rem; }
.pay-step-title { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 800; }
.booking-credits-more { border: 0; background: none; color: var(--accent); font-size: 0.75rem; font-weight: 800; padding: 0.25rem 0 0; }
.pay-method-title { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 1.1rem 0 0.5rem; }
.pay-transfer { display: grid; gap: 0.4rem; margin: 0 0 0.8rem; }
.pay-transfer > div { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 10px; }
.pay-transfer dt { color: var(--muted); font-size: 0.8rem; min-width: 3.5rem; }
.pay-transfer dd { margin: 0; flex: 1; font-weight: 700; word-break: break-all; }
.badge-receipt-pending { background: #8a6d00; }
.badge-receipt-approved { background: #1f7a3a; }
.badge-receipt-rejected { background: #b3261e; }
.badge-payment-pending { background: #8a6d00; }
.badge-payment-approved { background: #1f7a3a; }
.badge-payment-rejected, .badge-payment-needs_review { background: #b3261e; }
.pay-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem; border-color: #8a6d00; }
.receipt-preview { max-width: 12rem; max-height: 9rem; border-radius: 8px; border: 1px solid var(--line); display: block; }
.signup-sheet { max-width: 28rem; margin: 0 auto; text-align: center; }
.signup-qr { display: inline-block; background: #fff; padding: 1rem; border-radius: 12px; }
.signup-qr svg { display: block; width: 16rem; height: 16rem; }
.signup-url { color: var(--muted); word-break: break-all; font-size: 0.85rem; }
.signup-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media print {
  .app-bar, .no-print, .toast-container { display: none !important; }
  body, .signup-sheet { background: #fff !important; color: #111 !important; }
  .signup-url { color: #333 !important; }
}
