/* SmartCourts POS — wizard público de reservación */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

.scw-wizard, .scw-wizard *, .scw-wizard *::before, .scw-wizard *::after {
	box-sizing: border-box;
}

.scw-wizard {
	--scw-bg: #0A0A0A;
	--scw-surface: #141414;
	--scw-surface-2: #1F1F1F;
	--scw-border: #2A2A2A;
	--scw-text: #FFFFFF;
	--scw-text-dim: #8A8A8A;
	--scw-primary: #E8FF00;
	--scw-primary-text: #0A0A0A;
	--scw-font-display: 'Barlow Condensed', sans-serif;

	min-height: 100vh;
	width: 100%;
	margin: 0;
	background: var(--scw-bg);
	color: var(--scw-text);
	padding: 40px max(20px, 5vw) 60px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	box-sizing: border-box;
}

.scw-inner { max-width: 820px; margin: 0 auto; }

body.smartcourts-fullscreen { margin: 0; background: #0A0A0A; }
html:has(.scw-wizard) { background: #0A0A0A; }

.scw-progress { background: var(--scw-border); height: 6px; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.scw-progress-bar { height: 100%; width: 16.66%; background: var(--scw-primary); transition: width .3s ease; }

.scw-steps-labels { display: flex; justify-content: space-between; margin-bottom: 28px; font-size: 12px; color: var(--scw-text-dim); }
.scw-steps-labels span.active { color: #fff; font-weight: 700; }

.scw-step { display: none; animation: scw-fade .3s ease; }
.scw-step.active { display: block; }
@keyframes scw-fade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.scw-step h2 { font-family: var(--scw-font-display); font-size: 26px; font-weight: 700; margin-bottom: 18px; color: #fff; }

.scw-court-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: 1fr; gap: 14px; align-items: stretch; min-width: 0; }
.scw-court-option {
	background: var(--scw-surface); border: 2px solid var(--scw-border); border-radius: 16px; padding: 18px;
	cursor: pointer; transition: all .15s ease;
	display: flex; flex-direction: column; height: 100%; min-width: 0;
}
.scw-court-option:hover { border-color: var(--scw-accent, var(--scw-primary)); transform: translateY(-2px); }
.scw-court-option.selected { border-color: var(--scw-accent, var(--scw-primary)); background: var(--scw-surface-2); }
.scw-badge { display: inline-block; align-self: flex-start; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--scw-accent, var(--scw-primary)); color: var(--scw-primary-text); font-weight: 700; margin-bottom: 8px; flex-shrink: 0; }
.scw-court-option h3 {
	margin: 0 0 6px; font-size: 19px; line-height: 1.25; font-weight: 700;
	height: calc(1.25em * 2); overflow: hidden; flex-shrink: 0;
	word-break: break-word; min-width: 0; max-width: 100%;
}
.scw-court-option p { margin: 0 0 4px; flex-shrink: 0; }
.scw-court-hours { color: var(--scw-text-dim); font-size: 12px; margin-top: auto; padding-top: 6px; flex-shrink: 0; }

.scw-wizard input[type="text"], .scw-wizard input[type="email"], .scw-wizard input[type="tel"], .scw-wizard input[type="number"], .scw-wizard input[type="date"], .scw-wizard input[type="file"], .scw-wizard textarea, .scw-wizard select {
	background: var(--scw-surface-2); border: 1px solid var(--scw-border); border-radius: 10px;
	color: var(--scw-text); padding: 12px 14px; font-size: 15px; width: 100%; max-width: 420px; margin-bottom: 12px;
	font-family: 'Inter', sans-serif;
}
.scw-field-group { margin-bottom: 16px; }
.scw-field-group label { display: block; font-size: 13px; color: var(--scw-text-dim); margin-bottom: 6px; }

/* ---------- Calendario propio (pantalla completa, sin input nativo) ---------- */
.scw-calendar { max-width: 420px; }
.scw-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.scw-calendar-header span { font-family: var(--scw-font-display); font-size: 20px; font-weight: 700; }
.scw-cal-nav { background: var(--scw-surface); border: 1px solid var(--scw-border); color: var(--scw-text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 20px; }
.scw-cal-nav:hover { border-color: var(--scw-primary); }
.scw-calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--scw-text-dim); font-size: 12px; margin-bottom: 6px; }
.scw-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.scw-cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; font-size: 14px; background: var(--scw-surface); border: 1px solid transparent; }
.scw-cal-day:hover { border-color: var(--scw-primary); }
.scw-cal-day.scw-cal-empty { background: transparent; cursor: default; }
.scw-cal-day.scw-cal-disabled { opacity: .25; cursor: not-allowed; }
.scw-cal-day.scw-cal-disabled:hover { border-color: transparent; }
.scw-cal-day.scw-cal-today { border-color: var(--scw-text-dim); }
.scw-cal-day.scw-cal-selected { background: var(--scw-primary); color: var(--scw-primary-text); font-weight: 700; }

.scw-slots-grid, .scw-duration-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.scw-slot, .scw-duration-option {
	background: var(--scw-surface); border: 1px solid var(--scw-border); border-radius: 10px; padding: 10px; text-align: center;
	cursor: pointer; font-size: 14px;
}
.scw-slot.selected, .scw-duration-option.selected { border-color: var(--scw-primary); background: var(--scw-primary); color: var(--scw-primary-text); font-weight: 700; }
.scw-slot.taken { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.scw-summary { background: var(--scw-surface); border: 1px solid var(--scw-border); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.scw-summary p { margin: 6px 0; }
.scw-error { color: #ef4444; font-size: 14px; }

/* ---------- Confirmación final ---------- */
.scw-confirmation { text-align: center; padding: 20px 0; }
.scw-confirmation-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--scw-primary); color: var(--scw-primary-text); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; margin: 0 auto 20px; }
.scw-confirmation .scw-summary { text-align: left; max-width: 360px; margin: 0 auto 16px; }
.scw-confirmation-note { color: var(--scw-text-dim); font-size: 14px; max-width: 420px; margin: 0 auto 20px; }
.scw-btn-full { width: 100%; max-width: 420px; padding: 16px; font-size: 16px; }

/* ---------- Carrito de canchas (múltiples reservas en una sesión) ---------- */
.scw-cart-list { margin-bottom: 16px; }
.scw-cart-item { display: flex; justify-content: space-between; align-items: center; background: var(--scw-surface); border: 1px solid var(--scw-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.scw-cart-item-meta { color: var(--scw-text-dim); font-size: 13px; }
.scw-cart-item-right { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.scw-cart-remove { background: none; border: none; color: #ef4444; font-size: 16px; cursor: pointer; padding: 4px; }
.scw-add-another { width: 100%; margin-bottom: 16px; border-style: dashed; }
.scw-cart-total-line { font-family: var(--scw-font-display); font-size: 22px; text-align: right; padding-top: 10px; border-top: 1px solid var(--scw-border); }

/* ---------- Botón de archivo estilizado (no el input nativo genérico) ---------- */
.scw-file-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.scw-file-btn { background: var(--scw-primary); color: var(--scw-primary-text); padding: 12px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px; white-space: nowrap; }
.scw-file-btn:hover { filter: brightness(1.08); }
.scw-file-name { color: var(--scw-text-dim); font-size: 13px; word-break: break-all; }

.scw-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.scw-btn { padding: 12px 22px; border-radius: 10px; border: 1px solid var(--scw-border); background: var(--scw-surface-2); color: var(--scw-text); cursor: pointer; font-size: 14px; }
.scw-btn-primary { background: var(--scw-primary); border-color: var(--scw-primary); color: var(--scw-primary-text); font-weight: 700; }
.scw-btn-ghost { background: transparent; }

/* ---------- Paso de pago: métodos reales de Montecristo ---------- */
.scw-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.scw-method-card { background: var(--scw-surface); border: 2px solid var(--scw-border); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .15s ease; }
.scw-method-card:hover { border-color: var(--scw-primary); }
.scw-method-card.selected { border-color: var(--scw-primary); background: var(--scw-surface-2); color: var(--scw-primary); }

.scw-display-note { background: var(--scw-surface); border-left: 3px solid var(--scw-primary); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; color: var(--scw-text-dim); }
.scw-payment-details { background: var(--scw-surface); border: 1px solid var(--scw-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.scw-payment-details h4 { margin: 0 0 8px; font-family: var(--scw-font-display); font-size: 16px; }
.scw-payment-details ul { list-style: none; padding: 0; margin: 0; }
.scw-payment-details li { padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--scw-border); }
.scw-payment-details li:last-child { border-bottom: none; }
.scw-method-description { font-size: 13px; color: var(--scw-text-dim); margin-bottom: 14px; }
.scw-required { color: #ef4444; }
.scw-field-help { font-size: 12px; color: var(--scw-text-dim); margin: -8px 0 12px; }

@media (max-width: 480px) {
	.scw-wizard { padding: 24px 16px 48px; }
	.scw-step h2 { font-size: 21px; }
	.scw-court-grid { grid-template-columns: 1fr 1fr; }
}
