body { background-color: #111111; color: #F4F4F0; overflow-x: hidden; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.marquee-container { display: flex; white-space: nowrap; overflow: hidden; }
.marquee-content { animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.link-hover { position: relative; }
.link-hover::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 0; background-color: #9A765D; transition: width .3s ease; }
.link-hover:hover::after { width: 100%; }

.img-bw-color { filter: grayscale(100%); transition: filter .6s ease, transform .6s ease; }
.gallery-item:hover .img-bw-color { filter: grayscale(0%); transform: scale(1.03); }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8A8A8A; }
.input { background: #111; border: 1px solid rgba(255,255,255,.12); color: #F4F4F0; padding: 12px 14px; font-size: 15px; outline: none; transition: border-color .2s; width: 100%; }
.input:focus { border-color: #9A765D; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; transition: all .25s; cursor: pointer; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-primary { background: #F4F4F0; color: #111; }
.btn-primary:not(:disabled):hover { background: #9A765D; color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.2); color: #F4F4F0; }
.btn-ghost:not(:disabled):hover { border-color: #F4F4F0; }
.btn-accent { background: #9A765D; color: #fff; }
.btn-accent:not(:disabled):hover { background: #b08a6e; }

/* Selector de reservas */
.chip { border: 1px solid rgba(255,255,255,.12); background: #111; padding: 12px 14px; text-align: left; transition: all .2s; cursor: pointer; }
.chip:hover:not(:disabled) { border-color: rgba(255,255,255,.4); }
.chip.is-active { border-color: #9A765D; background: rgba(154,118,93,.15); }
.chip:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

/* Tarjeta de sellos */
.stamp { aspect-ratio: 1; border-radius: 9999px; border: 1.5px dashed rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.15); font-size: 22px; }
.stamp.is-on { border: 1.5px solid #9A765D; background: radial-gradient(circle, rgba(154,118,93,.45), rgba(154,118,93,.15)); color: #F4F4F0; }
.stamp.is-prize { border-color: rgba(154,118,93,.6); color: #9A765D; }

.qr-box { background: #F4F4F0; padding: 16px; display: inline-block; }
.qr-box img, .qr-box canvas { display: block; }

.tab-btn { padding: 12px 18px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8A8A8A; border-bottom: 2px solid transparent; }
.tab-btn.is-active { color: #F4F4F0; border-color: #9A765D; }

.badge { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; padding: 3px 8px; border: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
.badge-ok { border-color: rgba(74,222,128,.4); color: #86efac; }
.badge-warn { border-color: rgba(154,118,93,.6); color: #d6b49b; }
.badge-off { color: #8A8A8A; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: all .3s; z-index: 10001; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.btn.hidden { display: none; }

/* Interruptor */
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 9999px; background: #2a2a2a; border: 1px solid rgba(255,255,255,.12); transition: all .25s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 9999px; background: #8A8A8A; transition: all .25s; }
.switch input:checked + span { background: rgba(154,118,93,.35); border-color: #9A765D; }
.switch input:checked + span::after { transform: translateX(18px); background: #F4F4F0; }
.switch input:focus-visible + span { outline: 2px solid #9A765D; outline-offset: 2px; }

/* Píldoras de sub-navegación y filtros */
.pill { padding: 8px 16px; border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #8A8A8A; transition: all .2s; white-space: nowrap; }
.pill:hover { color: #F4F4F0; border-color: rgba(255,255,255,.3); }
.pill.is-active { color: #111; background: #F4F4F0; border-color: #F4F4F0; }
.pill .count { font-family: 'Space Grotesk', sans-serif; margin-left: 6px; opacity: .6; }

/* Tabla de clientes */
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #8A8A8A; font-weight: 600; text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1); white-space: nowrap; user-select: none; }
.tabla th[data-sort] { cursor: pointer; }
.tabla th[data-sort]:hover, .tabla th.is-sorted { color: #F4F4F0; }
.tabla td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; white-space: nowrap; }
.tabla tbody tr { cursor: pointer; transition: background .15s; }
.tabla tbody tr:hover { background: rgba(154,118,93,.08); }
.progreso { height: 4px; background: rgba(255,255,255,.08); border-radius: 9999px; overflow: hidden; width: 90px; }
.progreso > i { display: block; height: 100%; background: linear-gradient(90deg, #7d5f4a, #c9a27e); border-radius: 9999px; }

/* Calendario */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #8A8A8A; text-align: center; padding-bottom: 6px; }
.cal-d { position: relative; min-height: 76px; border: 1px solid rgba(255,255,255,.08); background: #141414; padding: 8px; text-align: left; transition: all .2s; display: flex; flex-direction: column; gap: 4px; }
.cal-d:hover:not(:disabled) { border-color: rgba(154,118,93,.7); transform: translateY(-1px); }
.cal-d:disabled { opacity: .25; cursor: default; }
.cal-d .n { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.cal-d .t { font-size: 10px; line-height: 1.2; color: #8A8A8A; }
.cal-d.is-today { border-color: #9A765D; }
.cal-d.is-closed { background: repeating-linear-gradient(135deg, #1a1414, #1a1414 6px, #161212 6px, #161212 12px); border-color: rgba(248,113,113,.25); }
.cal-d.is-closed .t { color: #fca5a5; }
.cal-d.is-special { background: rgba(154,118,93,.12); border-color: rgba(154,118,93,.5); }
.cal-d.is-special .t { color: #d6b49b; }
.cal-d.is-off { background: #121212; }
@media (max-width: 640px) { .cal-d { min-height: 56px; padding: 5px; } .cal-d .t { display: none; } .cal-d .dot { display: block; } }
.cal-d .dot { display: none; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }

.opt-card { border: 1px solid rgba(255,255,255,.12); padding: 12px; text-align: left; transition: all .2s; }
.opt-card:hover { border-color: rgba(255,255,255,.35); }
.opt-card.is-active { border-color: #9A765D; background: rgba(154,118,93,.15); }

.saved { font-size: 11px; color: #86efac; opacity: 0; transition: opacity .3s; }
.saved.show { opacity: 1; }
