@import url("https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap");

/* =========================================================
   ReservaFácil — "Entrada de cancha"
   Papel, tinta, césped, cal y tarjetas de árbitro.
   ========================================================= */

:root {
  color-scheme: light;

  --paper: #f2ede1;
  --paper-light: #fbf8f1;
  --paper-dark: #e4dccb;
  --ink: #161513;
  --ink-soft: #4b4840;
  --ink-faint: #8a8578;

  --grass: #1d6b3b;
  --grass-dark: #145230;
  --grass-soft: #d5e6d6;
  --chalk: #f7f4ea;
  --yellow: #ffd23c;
  --orange: #ff5b1f;
  --red: #d22e3a;
  --blue: #2a4fb0;
  --blue-soft: #dbe3f7;

  --radius: 6px;
  --hard: 4px 4px 0 var(--ink);
  --hard-lg: 6px 6px 0 var(--ink);

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* compatibilidad con estilos inline existentes */
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --border: var(--ink);
  --primary: var(--grass);
  --primary-dark: var(--grass-dark);
  --primary-soft: var(--grass-soft);
  --surface: var(--paper-light);
  --surface-muted: var(--paper-dark);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(22, 21, 19, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

code {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.hidden {
  display: none !important;
}

/* =========================================================
   Topbar
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--yellow);
  padding: 12px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 1rem;
  transform: rotate(-6deg);
}

.topbar-link,
button.topbar-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: all 0.12s ease;
}

.topbar-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* =========================================================
   Layout + Cards
   ========================================================= */

.main-layout {
  padding-top: 30px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard-lg);
  padding: 24px;
}

/* =========================================================
   Hero de la página pública: la cancha
   ========================================================= */

.business-header {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 36px 32px 30px;
  color: var(--chalk);
  background-color: var(--grass);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045) 0 60px,
    transparent 60px 120px
  );
}

.business-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62%;
  width: 3px;
  background: rgba(247, 244, 234, 0.55);
  pointer-events: none;
}

.business-header::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 62%;
  width: 190px;
  height: 190px;
  border: 3px solid rgba(247, 244, 234, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.business-info {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.business-avatar {
  width: 72px;
  height: 72px;
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  flex-shrink: 0;
  box-shadow: var(--hard);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.pill-open {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.pill-open::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grass);
  animation: blink 1.4s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.business-header h1 {
  font-size: 3rem;
  line-height: 0.95;
  text-shadow: 3px 3px 0 var(--ink);
}

.business-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 8px;
}

.business-header .business-meta {
  color: rgba(247, 244, 234, 0.88);
}

.deposit-note {
  position: relative;
  z-index: 1;
  background: var(--ink);
  border: 3px solid var(--chalk);
  border-radius: 4px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--hard);
}

.deposit-note-label {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.deposit-note strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--yellow);
}

/* =========================================================
   Pasos de reserva
   ========================================================= */

.booking-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  align-items: start;
}

.booking-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.step-number {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.step-header h2 {
  font-size: 1.6rem;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card {
  width: 100%;
  text-align: left;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.resource-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard);
}

.resource-card.active {
  background: var(--grass);
  color: var(--chalk);
  box-shadow: var(--hard);
  transform: translate(-2px, -2px);
}

.resource-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.resource-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.resource-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.resource-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.resource-card.active .resource-desc {
  color: rgba(247, 244, 234, 0.85);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-light);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.date-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard);
}

.date-day {
  width: calc(100% + 8px);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}

.date-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.date-btn.active {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: var(--hard);
  transform: translate(-2px, -2px);
}

.date-btn.active .date-day {
  background: var(--yellow);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  display: inline-block;
}

.dot-available {
  background: var(--paper-light);
}

.dot-selected {
  background: var(--yellow);
}

.dot-occupied {
  background: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 4px);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 10px;
}

.slot-btn {
  padding: 12px 6px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.slot-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard);
}

.slot-btn.active {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: var(--hard);
}

.slot-btn:disabled {
  background: repeating-linear-gradient(
    45deg,
    var(--paper-dark) 0 6px,
    var(--paper) 6px 12px
  );
  border-style: dashed;
  color: var(--ink-faint);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* =========================================================
   Resumen: la entrada (ticket)
   ========================================================= */

.booking-summary {
  position: sticky;
  top: 86px;
}

.summary-card {
  position: relative;
  padding-top: 0;
  overflow: visible;
}

.summary-card h2 {
  margin: 0 -24px 20px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.5rem;
  border-radius: 3px 3px 0 0;
  position: relative;
}

.summary-card h2::after {
  content: "ENTRADA Nº 0001";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px dashed var(--ink);
  position: relative;
}

.summary-details::before,
.summary-details::after {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.summary-details::before {
  left: -37px;
}

.summary-details::after {
  right: -37px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.summary-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 2px;
}

.summary-row dd {
  font-weight: 700;
  text-align: right;
}

.summary-highlight {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 4px;
  align-items: center;
}

.summary-highlight dt {
  color: var(--ink);
}

.summary-highlight dd {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

/* =========================================================
   Formularios + Botones
   ========================================================= */

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.form-group input,
.resource-edit-grid input,
.add-resource-form input,
.select-input {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.93rem;
  background: #ffffff;
  color: var(--ink);
  transition: box-shadow 0.1s ease;
}

.select-input {
  width: auto;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group .select-input {
  width: 100%;
}

.form-group input::placeholder,
.add-resource-form input::placeholder {
  color: var(--ink-faint);
}

.form-group input:focus,
.resource-edit-grid input:focus,
.add-resource-form input:focus,
.select-input:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--grass);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: var(--hard);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard-lg);
}

.btn-primary:active:not(:disabled),
.btn-secondary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary:disabled {
  background: var(--paper-dark);
  color: var(--ink-faint);
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--paper-light);
  color: var(--ink);
  margin-top: 12px;
}

.secure-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

.policy-note {
  font-size: 0.8rem;
  color: var(--ink);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 210, 60, 0.35) 0 10px,
    rgba(255, 210, 60, 0.2) 10px 20px
  );
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 10px 12px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-option {
  position: relative;
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.payment-option:hover span {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.payment-option input:checked + span {
  background: var(--grass);
  color: var(--chalk);
  box-shadow: var(--hard);
  transform: translate(-2px, -2px);
}

.payment-option input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.extras-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.extra-item:has(input:checked) {
  background: var(--grass-soft);
  box-shadow: 3px 3px 0 var(--ink);
}

.extra-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.extra-left input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--grass);
}

.extra-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.confirmation-box {
  text-align: center;
  padding: 10px 4px;
}

.confirmation-icon {
  width: 70px;
  height: 70px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--grass);
  color: var(--chalk);
  font-size: 2rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--hard);
  transform: rotate(-8deg);
}

.confirmation-box h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.confirmation-box p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #25d366;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--hard);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-whatsapp:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--hard-lg);
}

.btn-copy {
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 6px;
}

.closure-banner {
  grid-column: 1 / -1;
  background: var(--red);
  color: var(--chalk);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  box-shadow: var(--hard);
}

.closure-banner strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

.footer {
  text-align: center;
  padding: 26px 0 36px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-top: 2px solid var(--ink);
}

/* =========================================================
   Panel del dueño
   ========================================================= */

.admin-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--grass);
}

.admin-header h1 {
  font-size: 2.4rem;
  color: var(--yellow);
}

.admin-header .business-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.share-code {
  background: var(--paper);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  border: 2px solid var(--ink);
  word-break: break-all;
}

.mp-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 800;
  background: #009ee3;
  color: #ffffff;
  border: 2px solid var(--paper);
  padding: 11px 16px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--paper);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.mp-connect-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--paper);
}

.mp-connect-btn.connected {
  background: var(--grass);
  color: var(--chalk);
}

.mp-connect-btn .dot {
  border-color: currentColor;
  background: var(--yellow);
  border-radius: 50%;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-header-actions > button {
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 4px;
  line-height: 1.1;
}

.admin-header-actions .mp-connect-btn {
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 var(--paper);
}

.admin-header-actions .mp-connect-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--paper);
}

.admin-header-actions .btn-export,
.admin-header-actions .btn-release {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.25);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--ink-faint);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.kpi-success {
  color: var(--yellow);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
  align-items: start;
}

.admin-main-col,
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.sidebar-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.panel-header h2 {
  font-size: 1.6rem;
}

.panel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrapper {
  overflow-x: auto;
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bookings-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--ink);
  padding: 9px 10px;
}

.bookings-table td {
  padding: 13px 10px;
  border-bottom: 1.5px dashed var(--ink-faint);
  vertical-align: middle;
}

.bookings-table td:first-child strong {
  font-family: var(--font-mono);
}

.bookings-table tbody tr:hover {
  background: rgba(255, 210, 60, 0.18);
}

.client-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-phone {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  white-space: nowrap;
}

.badge-paid {
  background: var(--grass);
  color: var(--chalk);
}

.badge-manual {
  background: var(--blue);
  color: #ffffff;
}

.btn-release,
.btn-export,
.btn-save-res {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-release {
  background: var(--paper-light);
  color: var(--ink);
}

.btn-release:hover {
  background: var(--red);
  color: var(--chalk);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.btn-export {
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
}

.btn-export:hover,
.btn-save-res:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.btn-save-res {
  background: var(--grass);
  color: var(--chalk);
}

.schedule-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.schedule-matrix th {
  text-align: left;
  padding: 9px 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
}

.schedule-matrix td {
  padding: 4px;
  border-bottom: 1.5px dashed var(--ink-faint);
  vertical-align: middle;
}

.matrix-time {
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
  width: 86px;
}

.matrix-cell {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cell-free {
  background: transparent;
  border: 2px dashed var(--ink-faint);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  justify-content: center;
  transition: all 0.1s ease;
}

.cell-free:hover {
  border-style: solid;
  border-color: var(--ink);
  background: var(--yellow);
  color: var(--ink);
}

.cell-paid {
  background: var(--grass);
  color: var(--chalk);
  border: 2px solid var(--ink);
}

.cell-manual {
  background: var(--blue);
  color: #ffffff;
  border: 2px solid var(--ink);
}

.cell-closed {
  background: repeating-linear-gradient(
    45deg,
    var(--red) 0 8px,
    #b8232e 8px 16px
  );
  color: var(--chalk);
  border: 2px solid var(--ink);
}

.matrix-client {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.matrix-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.resources-manager,
.extras-manager,
.closures-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resources-manager {
  margin-bottom: 18px;
}

.extras-manager {
  margin-bottom: 14px;
}

.closures-list {
  margin-top: 14px;
}

.resource-edit-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.resource-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.resource-edit-grid label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.resource-edit-grid input,
.add-resource-form input {
  padding: 9px 10px;
  font-size: 0.88rem;
}

.resource-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.add-resource-form {
  padding-top: 18px;
  border-top: 2px dashed var(--ink);
}

.add-resource-form h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.extra-admin-row,
.closure-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 0.86rem;
}

.extra-admin-row {
  background: #ffffff;
}

.extra-admin-row strong,
.closure-item strong {
  display: block;
}

.extra-admin-row span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--grass);
}

.closure-item {
  background: var(--red);
  color: var(--chalk);
}

.closure-item span {
  font-size: 0.78rem;
  opacity: 0.9;
}

.block-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 6px;
}

.block-time-pill {
  padding: 8px 4px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.block-time-pill:hover {
  background: var(--paper-dark);
}

.block-time-pill.active {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

.saved-msg {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grass);
  text-align: center;
}

/* =========================================================
   Login: la boletería
   ========================================================= */

.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 0 28px 28px;
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 -28px 24px;
  border-bottom: 2px solid var(--ink);
}

.auth-tab {
  padding: 16px 12px;
  border: none;
  background: var(--paper-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}

.auth-tab + .auth-tab {
  border-left: 2px solid var(--ink);
}

.auth-tab.active {
  background: var(--yellow);
  color: var(--ink);
}

.auth-error {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--chalk);
  background: var(--red);
  border: 2px solid var(--ink);
  padding: 10px 12px;
  border-radius: 4px;
}

/* =========================================================
   Landing / Precios
   ========================================================= */

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  text-align: center;
  color: var(--chalk);
  background-color: var(--grass);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0 90px,
    transparent 90px 180px
  );
  border-bottom: 4px solid var(--ink);
}

.landing-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: min(760px, 90%);
  height: 220px;
  border: 3px solid rgba(247, 244, 234, 0.45);
  border-bottom: none;
  transform: translateX(-50%);
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 216px;
  width: 200px;
  height: 100px;
  border: 3px solid rgba(247, 244, 234, 0.45);
  border-top: none;
  border-radius: 0 0 100px 100px;
  transform: translateX(-50%);
  pointer-events: none;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.landing-hero h1 {
  font-size: 5.2rem;
  line-height: 0.92;
  margin-top: 6px;
  text-shadow: 4px 4px 0 var(--ink);
}

.landing-hero h1 .accent {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 0 14px;
  transform: rotate(-2deg);
  text-shadow: none;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.landing-lead {
  color: rgba(247, 244, 234, 0.9);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 26px auto 34px;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-cta,
.hero-cta-sec {
  width: auto;
  padding: 15px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 56px;
  background: var(--ink);
  border: 3px solid var(--chalk);
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.hero-stat {
  padding: 14px 26px;
}

.hero-stat + .hero-stat {
  border-left: 2px dashed var(--ink-soft);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--yellow);
}

.hero-stat span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.landing-section {
  padding-top: 84px;
  padding-bottom: 10px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: 3.4rem;
}

.section-heading p {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 1.02rem;
}

.steps-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-step-card .step-number {
  font-size: 1.8rem;
  min-width: 52px;
  height: 52px;
}

.feature-step-card h3 {
  font-size: 1.6rem;
  margin: 18px 0 8px;
}

.feature-step-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.feature-step-card:nth-child(2) {
  transform: rotate(-1deg);
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bento-item {
  padding: 26px;
}

.bento-item.wide {
  grid-column: span 2;
}

.bento-item:nth-child(1) {
  background: var(--grass);
  color: var(--chalk);
}

.bento-item:nth-child(3) {
  background: var(--yellow);
}

.bento-item:nth-child(6) {
  background: var(--ink);
  color: var(--paper);
}

.bento-item:nth-child(5) {
  background: var(--orange);
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
  box-shadow: 3px 3px 0 var(--ink);
}

.bento-item h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.bento-item p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.mini-grid-preview {
  display: grid;
  grid-template-columns: 56px repeat(3, 1fr);
  gap: 6px;
  margin-top: 20px;
}

.mini-grid-preview span {
  height: 30px;
  border: 1.5px dashed rgba(247, 244, 234, 0.45);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(247, 244, 234, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-grid-preview span.mg-head {
  height: 24px;
  border: none;
  background: var(--ink);
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.mini-grid-preview span.mg-time {
  border: none;
  justify-content: flex-start;
  padding-left: 2px;
  color: var(--chalk);
}

.mini-grid-preview span.p {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.mini-grid-preview span.m {
  background: var(--blue);
  color: #ffffff;
  border: 2px solid var(--ink);
}

.billing-toggle {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 4px;
  margin-top: 26px;
  overflow: hidden;
  box-shadow: var(--hard);
}

.billing-btn {
  border: none;
  background: var(--paper-light);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-btn + .billing-btn {
  border-left: 2px solid var(--ink);
}

.billing-btn.active {
  background: var(--ink);
  color: var(--yellow);
}

.discount-tag {
  background: var(--orange);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 26px 26px;
  overflow: visible;
}

.pricing-featured {
  background: var(--yellow);
  transform: translateY(-10px) rotate(0.6deg);
}

.popular-badge {
  position: absolute;
  top: -18px;
  right: -14px;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  transform: rotate(6deg);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 2;
}

.pricing-header {
  margin: 0 -26px;
  padding: 18px 26px 16px;
  border-bottom: 2px dashed var(--ink);
  position: relative;
}

.pricing-header::before {
  content: "SECTOR";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.pricing-header h3 {
  font-size: 2.6rem;
}

.pricing-header p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.pricing-price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-price strong {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pricing-price span {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.billing-note {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 3px;
  margin: 10px 0 20px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 26px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pricing-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  background: var(--grass);
  color: var(--chalk);
  font-size: 0.66rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pricing-btn {
  text-decoration: none;
  text-align: center;
  display: block;
  margin-top: 0;
}

.pricing-trust {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 34px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.final-cta {
  margin-top: 90px;
  margin-bottom: 70px;
  text-align: center;
  padding: 60px 28px;
  background: var(--orange);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
}

.final-cta h2 {
  font-size: 4rem;
  line-height: 0.95;
}

.final-cta p {
  color: var(--ink);
  margin: 16px auto 28px;
  max-width: 520px;
  font-weight: 600;
}

.final-cta .btn-primary {
  width: auto;
  display: inline-flex;
  padding: 15px 30px;
  text-decoration: none;
  background: var(--yellow);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid,
  .booking-grid,
  .steps-3-grid,
  .pricing-grid,
  .faq-grid,
  .features-bento {
    grid-template-columns: 1fr;
  }

  .bento-item.wide {
    grid-column: auto;
  }

  .pricing-featured,
  .feature-step-card:nth-child(2) {
    transform: none;
  }

  .booking-summary {
    position: static;
  }

  .date-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .landing-hero h1 {
    font-size: 3.4rem;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: 2.5rem;
  }

  .business-header::before,
  .business-header::after {
    left: 80%;
  }
}

@media (max-width: 600px) {
  .resource-edit-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .business-header {
    padding: 24px 20px;
  }

  .business-header h1 {
    font-size: 2.1rem;
  }

  .topbar-link {
    padding: 7px 8px;
    font-size: 0.68rem;
  }

  .landing-hero {
    padding: 60px 0;
  }

  .landing-hero h1 {
    font-size: 2.6rem;
  }

  .hero-stat + .hero-stat {
    border-left: none;
    border-top: 2px dashed var(--ink-soft);
  }

  .hero-stats {
    flex-direction: column;
  }
}

/* Días de apertura semanal */

.open-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-toggle {
  position: relative;
  cursor: pointer;
}

.day-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.day-toggle span {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.1s ease;
}

.day-toggle input:checked + span {
  background: var(--grass);
  color: var(--chalk);
  box-shadow: 2px 2px 0 var(--ink);
}

.date-btn.date-closed {
  opacity: 0.55;
}

.date-btn.date-closed .date-day {
  background: var(--paper-dark);
  color: var(--ink-soft);
}

.pill-closed {
  background: var(--red);
  color: var(--chalk);
  border: 2px solid var(--ink);
}

/* Plan único centrado en precios.html */

.pricing-single {
  max-width: 680px;
  margin: 0 auto;
}

.pricing-single .pricing-featured {
  transform: none;
}

.pricing-features-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

@media (max-width: 650px) {
  .pricing-features-2col {
    grid-template-columns: 1fr;
  }
}

/* Modal de compra de plan */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(22, 21, 19, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 440px;
}

/* Guía paso a paso (Onboarding) */

.onboarding-card {
  border-color: var(--grass);
  background: var(--grass-soft);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.onboarding-step.done {
  border-color: var(--grass);
  background: #ffffff;
}

.onboarding-step.done .step-number {
  background: var(--grass);
  color: var(--chalk);
}

.onboarding-step-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.onboarding-step-body strong {
  font-size: 0.88rem;
}

.onboarding-step-body span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .onboarding-steps {
    grid-template-columns: 1fr;
  }
}

/* Modal Wizard Paso a Paso */

.wizard-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
}

.wizard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wizard-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--yellow);
  padding: 5px 10px;
  border-radius: 3px;
}

.wizard-progress {
  width: 100%;
  height: 8px;
  background: var(--paper-dark);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.wizard-progress-bar {
  height: 100%;
  background: var(--grass);
  transition: width 0.25s ease;
}

.wizard-pane h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.wizard-next {
  width: auto;
  padding: 12px 20px;
}

.wizard-mp-box {
  padding: 20px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.wizard-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.wiz-resources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 170px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.wiz-add-res-box {
  padding-top: 12px;
  border-top: 2px dashed var(--ink);
}

.wiz-res-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--ink-faint);
}

.wiz-extra-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--grass-soft);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 3px 8px;
}

.wiz-extra-chip button {
  border: none;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  color: var(--red);
  font-size: 0.9rem;
  line-height: 1;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  flex-shrink: 0;
}

/* Rubros y link de consulta por WhatsApp */

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.usecase-card {
  padding: 22px;
}

.usecase-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 2px 2px 0 var(--ink);
}

.usecase-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.whatsapp-inquiry-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.whatsapp-inquiry-link:hover {
  color: var(--grass);
}

@media (max-width: 960px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .usecases-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Ajustes específicos para celular (<= 640px)
   ========================================================= */

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .card {
    padding: 18px 16px;
  }

  .topbar {
    padding: 10px 0;
  }

  .topbar-actions {
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .topbar-link,
  button.topbar-link {
    padding: 5px 7px;
    font-size: 0.62rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hero página pública */
  .main-layout,
  .booking-grid,
  .booking-grid > *,
  .booking-steps,
  .booking-summary,
  .step-card,
  .summary-card {
    min-width: 0;
    max-width: 100%;
  }

  .business-header {
    padding: 20px 16px;
    gap: 14px;
    max-width: 100%;
  }

  .business-header::before,
  .business-header::after {
    display: none;
  }

  .business-info {
    gap: 12px;
    align-items: flex-start;
  }

  .business-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .business-header h1 {
    font-size: 1.75rem;
  }

  .deposit-note {
    width: 100%;
    padding: 10px 14px;
  }

  /* Canchas en celular */
  .resource-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .resource-title {
    font-size: 1.12rem;
  }

  /* Selector de días horizontal deslizable */
  .date-strip {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .date-btn {
    flex: 0 0 60px;
    scroll-snap-align: start;
  }

  /* Grilla de horarios */
  .slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .slot-btn {
    padding: 10px 4px;
    font-size: 0.84rem;
    min-width: 0;
  }

  /* Ticket resumen */
  .summary-card h2 {
    margin: 0 -16px 16px;
    padding: 12px 16px;
    font-size: 1.3rem;
  }

  .summary-card h2::after {
    display: none;
  }

  .summary-details::before {
    left: -29px;
  }

  .summary-details::after {
    right: -29px;
  }

  /* Evita zoom automático en iOS al tocar inputs */
  .form-group input,
  .select-input,
  .resource-edit-grid input,
  .add-resource-form input {
    font-size: 16px;
  }

  /* Panel del dueño */
  .topbar-inner {
    gap: 8px;
  }

  .brand-name {
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .notif-bell-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 8px;
  }

  .notif-dropdown {
    position: fixed;
    top: 62px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .admin-main-col,
  .admin-main,
  .admin-sidebar,
  .admin-grid > *,
  .card,
  .resources-manager,
  .extras-manager,
  .resource-edit-row,
  .add-resource-form {
    min-width: 0;
    max-width: 100%;
  }

  .resource-edit-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .resource-edit-grid input,
  .add-resource-form input,
  .form-group input,
  .select-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .resource-edit-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .resource-edit-actions > button {
    flex: 1 1 120px;
  }

  .table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .panel-filters .select-input {
    flex: 1 1 100%;
  }

  .panel-filters .btn-export {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    justify-content: center;
  }

  /* Grilla visual de canchas en celular: Hora fija a la izquierda */
  .schedule-resource-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }

  .schedule-tab-btn {
    padding: 7px 11px;
    background: var(--paper);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .schedule-tab-btn.active {
    background: var(--yellow);
  }

  .schedule-matrix.single-col {
    width: 100%;
    table-layout: fixed;
  }

  .schedule-matrix.single-col th:first-child,
  .schedule-matrix.single-col td.matrix-time {
    width: 78px;
    min-width: 78px;
    position: static;
    box-shadow: none;
  }

  .schedule-matrix.single-col th:not(:first-child),
  .schedule-matrix.single-col td:not(:first-child) {
    width: auto;
    min-width: 0;
  }

  .schedule-matrix th:first-child,
  .schedule-matrix td.matrix-time {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 72px;
    box-shadow: 2px 0 0 var(--ink);
  }

  .schedule-matrix th:first-child {
    background: var(--ink);
  }

  .schedule-matrix td.matrix-time {
    background: var(--paper);
  }

  .schedule-matrix th:not(:first-child),
  .schedule-matrix td:not(:first-child) {
    min-width: 142px;
  }

  /* Detalle de reservas en celular: vista de tarjetas sin scroll horizontal */
  .bookings-table,
  .bookings-table tbody {
    display: block;
    width: 100%;
  }

  .bookings-table thead {
    display: none;
  }

  .bookings-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    align-items: center;
    border: 2px solid var(--ink);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--paper);
  }

  .bookings-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .bookings-table tbody td {
    display: block;
    padding: 0;
    border: none;
  }

  .bookings-table tbody td[colspan] {
    grid-column: 1 / -1;
  }

  .bookings-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 1rem;
  }

  .bookings-table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .bookings-table tbody td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--ink-soft);
  }

  .bookings-table tbody td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 0.86rem;
  }

  .bookings-table tbody td:nth-child(5) {
    grid-column: 1;
    grid-row: 4;
    font-weight: 800;
    font-size: 0.9rem;
    padding-top: 6px;
    border-top: 1px dashed var(--ink-faint);
  }

  .bookings-table tbody td:nth-child(5)::before {
    content: "Seña: ";
    font-weight: 600;
    color: var(--ink-soft);
  }

  .bookings-table tbody td:nth-child(6) {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    padding-top: 6px;
  }

  .admin-header {
    padding: 16px 14px;
    gap: 12px;
  }

  .admin-header h1 {
    font-size: 1.55rem;
    line-height: 1.1;
  }

  .admin-header .business-meta {
    width: 100%;
  }

  .admin-header .share-code {
    max-width: 100%;
    font-size: 0.72rem;
  }

  .admin-header .admin-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-header .admin-header-actions > button {
    width: 100%;
    justify-content: center;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .kpi-card {
    padding: 12px;
  }

  .kpi-label {
    font-size: 0.72rem;
  }

  .kpi-value {
    font-size: 1.35rem;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .export-actions,
  .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .export-actions button,
  .filter-tabs button {
    flex: 1 1 auto;
    text-align: center;
  }

  .open-days-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .wizard-card {
    padding: 16px;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .wizard-next {
    width: 100%;
  }

  /* Landing / Precios */
  .landing-hero {
    padding: 48px 0 54px;
  }

  .landing-hero h1 {
    font-size: 2.35rem;
  }

  .landing-lead {
    font-size: 0.98rem;
  }

  .hero-cta,
  .hero-cta-sec {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    margin-top: 32px;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .pricing-card {
    padding: 0 18px 20px;
  }

  .pricing-header {
    margin: 0 -18px;
    padding: 16px 18px 14px;
  }

  .pricing-header h3 {
    font-size: 2.1rem;
  }

  .popular-badge {
    right: 8px;
    top: -15px;
    font-size: 0.8rem;
  }

  .mini-grid-preview {
    grid-template-columns: 44px repeat(3, 1fr);
    gap: 4px;
  }

  .mini-grid-preview span {
    font-size: 0.58rem;
    padding: 0 3px;
  }
}

/* ==========================================
   Toast de notificaciones en Panel Dueño
   ========================================== */
.toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100vw - 32px);
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  background: #fef08a;
  color: #1c1917;
  border: 2px solid #1c1917;
  box-shadow: 4px 4px 0 #1c1917;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  animation: toastSlideIn 0.22s ease-out;
}

.toast-body strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.toast-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.toast-close {
  background: #fff;
  color: #1c1917;
  border: 1.5px solid #1c1917;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   Campana e historial de notificaciones
   ========================================== */
.notif-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fef08a;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.notif-bell-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.notif-bell-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.notif-badge {
  background: #ef4444;
  color: #fff;
  border: 1.5px solid #1c1917;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 2px 5px;
  min-width: 18px;
  text-align: center;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 350px;
  max-width: calc(100vw - 24px);
  background: #fffdf7;
  color: #1c1917;
  border: 2px solid #1c1917;
  box-shadow: 5px 5px 0 #1c1917;
  border-radius: 10px;
  z-index: 9998;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #fef08a;
  border-bottom: 2px solid #1c1917;
  font-size: 0.88rem;
}

.notif-header-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notif-enable-btn,
.notif-clear-btn {
  background: #fff;
  color: #1c1917;
  border: 1.5px solid #1c1917;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.notif-enable-btn:hover,
.notif-clear-btn:hover {
  background: #f5f5f4;
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid #e7e5e4;
  font-size: 0.82rem;
  line-height: 1.35;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item.unread {
  background: #fef9c3;
}

.notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.notif-item-top strong {
  font-size: 0.84rem;
}

.notif-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notif-item-time {
  font-size: 0.72rem;
  color: #57534e;
  white-space: nowrap;
}

.notif-item-dismiss {
  background: transparent;
  color: #78716c;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.notif-item-dismiss:hover {
  color: #1c1917;
  background: #f5f5f4;
  border-color: #d6d3d1;
}

.notif-item p {
  margin: 0;
  color: #292524;
}

.notif-empty {
  margin: 0;
  padding: 20px 14px;
  text-align: center;
  font-size: 0.84rem;
  color: #78716c;
}

/* ==========================================
   Banner interactivo de Demo
   ========================================== */
.demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fef08a;
  color: #1c1917;
  border: 2px solid #1c1917;
  box-shadow: 4px 4px 0 #1c1917;
  border-radius: 8px;
}

.demo-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.demo-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.demo-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: #ffffff;
  color: #1c1917;
  border: 2px solid #1c1917;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 2px 2px 0 #1c1917;
  transition: transform 0.08s ease;
}

.demo-banner-btn:hover {
  transform: translate(-1px, -1px);
}

.demo-banner-sim {
  background: #15803d;
  color: #ffffff;
}

.demo-banner-cta {
  background: #ea580c;
  color: #ffffff;
}

/* ==========================================
   Menú hamburguesa en barra superior
   ========================================== */
.topbar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .topbar {
    position: relative;
  }

  .menu-toggle-btn {
    display: inline-flex;
  }

  .topbar-actions.mobile-collapsible {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 3px solid var(--yellow);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 9995;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  .topbar-actions.mobile-collapsible.open {
    display: flex;
  }

  .topbar-actions.mobile-collapsible .topbar-link,
  .topbar-actions.mobile-collapsible button.topbar-link {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.85rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
  }

  .demo-banner {
    padding: 12px;
  }

  .demo-banner-actions {
    width: 100%;
  }

  .demo-banner-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
