
/**
 * Estilos para el Widget de Reservas (Optimizado y Minificado).
 * Diseño Premium, Limpio y Responsivo sin Tailwind CDN.
 */

:root {
	--gcb-primary: #0891b2;
	--gcb-primary-hover: #0e7490;
	--gcb-accent: #0f766e;
	--gcb-bg-gradient-start: #0e7490;
	--gcb-bg-gradient-end: #0f766e;
	--gcb-bg-light: #f8fafc;
	--gcb-border: #e2e8f0;
	--gcb-text: #1e293b;
	--gcb-text-muted: #64748b;
	--gcb-success: #059669;
	--gcb-success-light: #ecfdf5;
}

#gcb-booking-widget {
	display: grid;
	grid-template-columns: 1fr;
	max-width: 1000px;
	margin: 20px auto;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--gcb-text);
}


/* Panel Lateral - Sidebar */
.gcb-sidebar {
	background: linear-gradient(135deg, var(--gcb-bg-gradient-start) 0%, var(--gcb-bg-gradient-end) 100%);
	color: #ffffff;
	padding: 30px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.gcb-avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.85);
	background-size: cover;
	background-position: center;
	background-color: rgba(255, 255, 255, 0.2);
}

.gcb-sidebar-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: #ffffff !important;
}

.gcb-sidebar-desc {
	font-size: 0.9rem;
	opacity: 0.85;
	margin: 0;
	max-width: 250px;
	line-height: 1.4;
}

/* Selector de Servicio */
.gcb-select-wrapper {
	width: 100%;
	max-width: 280px;
	margin-top: 8px;
}

.gcb-select {
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: #ffffff;
	color: var(--gcb-accent);
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	outline: none;
	transition: border-color 0.15s ease;
}

.gcb-select:focus {
	border-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* Calendario */
.gcb-calendar-wrapper {
	width: 100%;
	max-width: 320px;
	margin-top: 15px;
	background: #ffffff;
	border-radius: 12px;
	padding: 12px;
	box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.gcb-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.gcb-calendar-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--gcb-text);
}

.gcb-nav-btn {
	background: #f1f5f9;
	border: none;
	color: var(--gcb-text-muted);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	transition: background 0.15s ease, color 0.15s ease;
}

.gcb-nav-btn:hover {
	background: var(--gcb-border);
	color: var(--gcb-text);
}

/* Rejilla del Calendario */
.gcb-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.gcb-cal-head {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gcb-text-muted);
	padding: 4px 0;
	text-transform: uppercase;
}

.gcb-cal-day {
	font-size: 0.85rem;
	font-weight: 500;
	padding: 8px 0;
	border-radius: 6px;
	cursor: pointer;
	color: var(--gcb-text);
	transition: background 0.1s ease, color 0.1s ease;
	user-select: none;
}

.gcb-cal-day:hover:not(.gcb-disabled-day):not(.gcb-selected-day) {
	background: #f1f5f9;
}

.gcb-selected-day {
	background: var(--gcb-primary) !important;
	color: #ffffff !important;
	font-weight: 600;
}

.gcb-today {
	background: #ecfdf5;
	color: var(--gcb-success);
	font-weight: bold;
}

.gcb-disabled-day {
	color: #cbd5e1 !important;
	background: transparent !important;
	opacity: 0.4 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}

.gcb-empty-cell {
	visibility: hidden;
}

.gcb-tz-display {
	font-size: 0.75rem;
	opacity: 0.8;
	margin-top: 5px;
}

/* Panel Principal Derecho */
.gcb-main-panel {
	padding: 24px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
}

.gcb-selected-day-banner {
	background: var(--gcb-bg-light);
	border-radius: 8px;
	padding: 12px;
	font-weight: 600;
	text-align: center;
	border: 1px solid var(--gcb-border);
}

.gcb-section {
	margin-top: 20px;
}

.gcb-section-title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gcb-text-muted);
	margin: 0 0 10px 0;
	font-weight: 700;
}

.gcb-pill {
	display: inline-block;
	background: var(--gcb-bg-light);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	border: 1px solid var(--gcb-border);
}

/* Grilla de Slots */
.gcb-slots-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.gcb-slot-btn {
	background: #ffffff;
	border: 1px solid var(--gcb-border);
	padding: 10px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
	text-align: center;
	color: var(--gcb-text);
}

.gcb-slot-btn:hover:not(:disabled) {
	background: #ffffff;
	border-color: var(--gcb-primary);
	color: #000000 !important;
	transform: translateY(-1px);
}

.gcb-slot-btn:active:not(:disabled) {
	transform: translateY(0);
}

.gcb-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 24px;
	background: var(--gcb-bg-light);
	border-radius: 8px;
	color: var(--gcb-text-muted);
	font-size: 0.85rem;
}

/* Formulario */
.gcb-booking-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gcb-form-title {
	font-size: 1.25rem;
	margin: 0;
	font-weight: 700;
}

.gcb-form-summary {
	font-size: 0.95rem;
	color: var(--gcb-success);
	font-weight: 600;
	margin: 0;
}

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

.gcb-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--gcb-text);
}

.gcb-input {
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid var(--gcb-border);
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gcb-input:focus {
	border-color: var(--gcb-primary);
	box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.gcb-textarea {
	resize: vertical;
}

/* Botones */
.gcb-btn {
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	border: 1px solid transparent;
}

.gcb-btn-primary {
	background: var(--gcb-primary);
	color: #ffffff;
}

.gcb-btn-primary:hover:not(:disabled) {
	background: var(--gcb-primary-hover);
}

.gcb-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.gcb-btn-secondary {
	background: #ffffff;
	border-color: var(--gcb-border);
	color: var(--gcb-text);
}

.gcb-btn-secondary:hover {
	background: var(--gcb-bg-light);
}

.gcb-form-actions {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.gcb-controls-footer {
	margin-top: 20px;
	display: flex;
	gap: 10px;
}

/* Alertas de Éxito */
.gcb-success-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: var(--gcb-success-light);
	border: 1px solid rgba(5, 150, 105, 0.2);
	color: var(--gcb-success);
	padding: 24px;
	border-radius: 12px;
	text-align: center;
	margin-top: 15px;
	animation: gcb-fade-in 0.25s ease-out;
}

.gcb-success-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
}

.gcb-success-message:focus { outline: none; }
.gcb-success-title { margin: 4px 0 8px; font-size: 1.3rem; }
.gcb-success-summary-box {
	width: 100%;
	box-sizing: border-box;
	padding: 15px;
	border-radius: 8px;
	text-align: left;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--gcb-text);
	background: #fff;
	border: 1px solid var(--gcb-border);
}
.gcb-sum-row + .gcb-sum-row { margin-top: 4px; }
.gcb-success-actions { width: 100%; margin-top: 6px; }
.gcb-success-label { display: block; font-size: 0.85rem; color: var(--gcb-text-muted); margin-bottom: 8px; }
.gcb-success-cal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gcb-success-cal .gcb-btn { text-decoration: none; text-align: center; font-size: 0.9rem; padding-left: 8px; padding-right: 8px; }
.gcb-success-note { font-size: 0.85rem; color: var(--gcb-text-muted); margin: 8px 0 0; }
.gcb-success-manage { font-size: 0.9rem; margin: 0 0 8px; color: var(--gcb-text-muted); }
.gcb-success-manage a { color: var(--gcb-primary); text-underline-offset: 3px; }
.gcb-btn-block { width: 100%; }

/* Avisos dentro del formulario (en lugar de ventanas emergentes) */
.gcb-form-msg {
	margin: 4px 0 12px;
	padding: 10px 12px;
	border-left: 3px solid #dc2626;
	background: rgba(220, 38, 38, 0.08);
	color: var(--gcb-text);
	font-size: 0.92rem;
	line-height: 1.45;
	animation: gcb-fade-in 0.2s ease-out;
}
.gcb-form-msg[hidden] { display: none; }
.gcb-input.gcb-input-error { border-color: #dc2626; }
.gcb-optional { font-weight: 400; opacity: 0.75; }

/* Campo trampa para bots (fuera de la vista, sin display:none para que los bots lo vean) */
.gcb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gcb-success-text {
	font-size: 0.95rem;
	line-height: 1.5;
	font-weight: 500;
}

/* Helpers */
.gcb-hidden {
	display: none !important;
}

.gcb-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes gcb-fade-in {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Animaciones auxiliares para los slots al cargar */
.gcb-pulse {
	animation: gcb-pulse-anim 1.5s infinite ease-in-out;
}

@keyframes gcb-pulse-anim {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 1; }
}

/* ---------------------------------------------------------------------------
 * Lista de servicios (paso 1) y servicio elegido en el sidebar
 * ------------------------------------------------------------------------ */
.gcb-services-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gcb-service-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--gcb-border);
	border-radius: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gcb-service-item:hover {
	border-color: var(--gcb-primary);
	box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.1);
}

.gcb-service-info {
	flex: 1 1 auto;
	min-width: 0;
}

.gcb-service-name {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: var(--gcb-text);
}

.gcb-service-duration {
	display: block;
	margin-top: 2px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--gcb-text-muted);
}

.gcb-service-desc {
	margin: 8px 0 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--gcb-text-muted);
	white-space: pre-line;
}

.gcb-service-btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.gcb-service-item {
		padding: 14px 12px;
		gap: 10px;
	}

	.gcb-service-btn {
		padding: 8px 12px;
	}
}

/* Servicio elegido (sidebar) */
.gcb-selected-service {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	max-width: 280px;
	margin-top: 8px;
	padding: 10px 14px;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	text-align: left;
}

.gcb-selected-service-text {
	min-width: 0;
}

.gcb-selected-service-label {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.8;
}

.gcb-selected-service-name {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff;
}

.gcb-change-service {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	padding: 4px 0;
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.gcb-change-service:hover,
.gcb-change-service:focus {
	background: transparent;
	color: #ffffff;
	opacity: 0.85;
}

/* Extras opcionales al confirmar la reserva */
.gcb-extras-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gcb-extra-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--gcb-border);
	border-radius: 8px;
	font-size: 0.95rem;
	cursor: pointer;
}

.gcb-extra-option:hover {
	border-color: var(--gcb-primary);
}

.gcb-extra-option input {
	margin: 0;
	accent-color: var(--gcb-primary);
}

.gcb-extra-name {
	flex: 1 1 auto;
	font-weight: 500;
}

.gcb-extra-price {
	flex: 0 0 auto;
	font-size: 0.85rem;
	color: var(--gcb-text-muted);
}

/* ---------------------------------------------------------------------------
 * Ajustes para móvil: evitar que el widget se desborde y quede cortado a los lados
 * ------------------------------------------------------------------------ */
#gcb-booking-widget,
#gcb-booking-widget *,
#gcb-booking-widget *::before,
#gcb-booking-widget *::after {
	box-sizing: border-box;
}

#gcb-booking-widget {
	width: 100%;
	max-width: min(1000px, 100%);
	/* minmax(0, 1fr): sin esto, un contenido ancho estira la columna más allá de la pantalla */
	grid-template-columns: minmax(0, 1fr);
}


#gcb-booking-widget .gcb-sidebar,
#gcb-booking-widget .gcb-main-panel {
	min-width: 0;
	max-width: 100%;
}

#gcb-booking-widget .gcb-service-name,
#gcb-booking-widget .gcb-service-desc,
#gcb-booking-widget .gcb-selected-service-name {
	overflow-wrap: anywhere;
}

@media (max-width: 767px) {
	#gcb-booking-widget {
		margin: 8px 0;
		border-radius: 10px;
	}

	#gcb-booking-widget .gcb-sidebar {
		padding: 20px 10px;
	}

	#gcb-booking-widget .gcb-main-panel {
		padding: 16px 10px;
	}

	#gcb-booking-widget .gcb-calendar-wrapper {
		padding: 10px 8px;
	}

	#gcb-booking-widget .gcb-service-item {
		padding: 12px 10px;
	}

	#gcb-booking-widget .gcb-calendar-wrapper,
	#gcb-booking-widget .gcb-selected-service {
		max-width: 100%;
	}

	#gcb-booking-widget .gcb-form-actions {
		flex-wrap: wrap;
	}

	#gcb-booking-widget .gcb-form-actions .gcb-btn {
		flex: 1 1 140px;
	}
}

/* ---------------------------------------------------------------------------
 * Diseño en una sola columna en todos los tamaños: cabecera con logo arriba
 * y, debajo, servicios / horas / formulario (igual que en móvil).
 * ------------------------------------------------------------------------ */
#gcb-booking-widget {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
	#gcb-booking-widget {
		max-width: 800px;
	}

	#gcb-booking-widget .gcb-sidebar {
		padding: 32px 24px;
	}

	#gcb-booking-widget .gcb-calendar-wrapper {
		max-width: 380px;
	}

	#gcb-booking-widget .gcb-main-panel {
		padding: 28px;
	}

	#gcb-booking-widget .gcb-slots-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------------------
 * Tras elegir el día: cabecera compacta para que las horas queden a la vista
 * ------------------------------------------------------------------------ */
#gcb-booking-widget {
	scroll-margin-top: 20px;
}

#gcb-booking-widget.gcb-compact .gcb-logo-container,
#gcb-booking-widget.gcb-compact .gcb-sidebar-desc,
#gcb-booking-widget.gcb-compact .gcb-tz-display {
	display: none;
}

#gcb-booking-widget.gcb-compact .gcb-sidebar {
	padding: 14px 12px;
	gap: 8px;
}

#gcb-booking-widget.gcb-compact .gcb-sidebar-title {
	font-size: 1.1rem;
}

#gcb-booking-widget.gcb-compact .gcb-selected-service {
	margin-top: 0;
	padding: 6px 12px;
}

#gcb-booking-widget.gcb-compact .gcb-main-panel {
	padding-top: 16px;
}

#gcb-booking-widget.gcb-compact .gcb-selected-day-banner {
	display: none;
}

/* ===========================================================================
 * Estética Jesús Barber Studio (rediseño 2026)
 * Solo cambia colores, tipografía, bordes y sombras. La distribución y el
 * funcionamiento del calendario se mantienen tal cual.
 * ========================================================================= */

#gcb-booking-widget {
	--jbs-bg: #0e0f11;
	--jbs-surface: #17191c;
	--jbs-surface-2: #202328;
	--jbs-line: #2c3036;
	--jbs-ink: #f4f6f8;
	--jbs-steel: #c7cbd1;
	--jbs-muted: #9aa0a8;
	--jbs-cyan: #3ccbe0;
	--jbs-cyan-hi: #6fdcec;
	--jbs-cyan-ink: #04161a;
	--jbs-ok: #7be0a0;
	--jbs-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--jbs-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jbs-ease: cubic-bezier(0.23, 1, 0.32, 1);

	--gcb-primary: var(--jbs-cyan) !important;
	--gcb-primary-hover: var(--jbs-cyan-hi) !important;
	--gcb-accent: var(--jbs-cyan) !important;
	--gcb-text: var(--jbs-ink) !important;
	--gcb-text-muted: var(--jbs-muted);
	--gcb-border: var(--jbs-line);
	--gcb-bg-light: var(--jbs-surface);
	--gcb-success: var(--jbs-ok);
	--gcb-success-light: var(--jbs-surface);

	background: var(--jbs-bg) !important;
	color: var(--jbs-ink);
	font-family: var(--jbs-text);
	border-radius: 0;
	box-shadow: none;
	outline: 1px solid var(--jbs-line);
}

#gcb-booking-widget ::selection { background: var(--jbs-cyan); color: var(--jbs-cyan-ink); }
#gcb-booking-widget :focus-visible { outline: 2px solid var(--jbs-cyan); outline-offset: 3px; }

/* Cabecera */
#gcb-booking-widget .gcb-sidebar {
	background: var(--jbs-bg);
	color: var(--jbs-ink);
	border-bottom: 1px solid var(--jbs-line);
}
#gcb-booking-widget .gcb-avatar { border-color: var(--jbs-steel); background-color: var(--jbs-bg); }
#gcb-booking-widget .gcb-sidebar-title {
	font-family: var(--jbs-display);
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--jbs-ink) !important;
}
#gcb-booking-widget .gcb-sidebar-desc,
#gcb-booking-widget .gcb-tz-display { color: var(--jbs-muted); opacity: 1; }

/* Servicio / barbero / día elegidos */
#gcb-booking-widget .gcb-selected-service {
	background: var(--jbs-surface);
	border: 1px solid var(--jbs-line);
	border-radius: 0;
}
#gcb-booking-widget .gcb-selected-service-label { color: var(--jbs-muted); opacity: 1; font-weight: 600; }
#gcb-booking-widget .gcb-selected-service-name { color: var(--jbs-ink); font-weight: 500; }
#gcb-booking-widget .gcb-change-service,
#gcb-booking-widget .gcb-change-service:hover,
#gcb-booking-widget .gcb-change-service:focus {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--jbs-cyan) !important;
	font-family: var(--jbs-text);
	font-weight: 600;
	text-underline-offset: 0.3em;
	transition: color 0.2s ease, text-underline-offset 0.25s var(--jbs-ease);
}
#gcb-booking-widget .gcb-change-service:hover { color: var(--jbs-cyan-hi) !important; text-underline-offset: 0.45em; opacity: 1; }

/* Calendario */
#gcb-booking-widget .gcb-calendar-wrapper {
	background: var(--jbs-surface);
	border: 1px solid var(--jbs-line);
	border-radius: 0;
	box-shadow: none;
}
#gcb-booking-widget .gcb-calendar-title { color: var(--jbs-ink); font-family: var(--jbs-display); font-weight: 500; font-size: 1.05rem; text-transform: capitalize; }
#gcb-booking-widget .gcb-nav-btn {
	background: var(--jbs-surface-2) !important;
	color: var(--jbs-ink) !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	transition: background-color 0.2s ease, transform 0.16s var(--jbs-ease);
}
#gcb-booking-widget .gcb-nav-btn:hover { background: var(--jbs-cyan) !important; color: var(--jbs-cyan-ink) !important; }
#gcb-booking-widget .gcb-nav-btn:active { transform: scale(0.95); }
#gcb-booking-widget .gcb-cal-head { color: var(--jbs-muted); letter-spacing: 0.04em; }
#gcb-booking-widget .gcb-cal-day {
	color: var(--jbs-ink);
	border-radius: 0;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.16s var(--jbs-ease);
}
#gcb-booking-widget .gcb-cal-day:hover:not(.gcb-disabled-day):not(.gcb-selected-day) { background: var(--jbs-surface-2); }
#gcb-booking-widget .gcb-cal-day:active:not(.gcb-disabled-day) { transform: scale(0.94); }
#gcb-booking-widget .gcb-today { background: transparent; color: var(--jbs-cyan); box-shadow: inset 0 -2px 0 var(--jbs-cyan); }
#gcb-booking-widget .gcb-selected-day { background: var(--jbs-cyan) !important; color: var(--jbs-cyan-ink) !important; box-shadow: none; }
#gcb-booking-widget .gcb-disabled-day { color: var(--jbs-muted) !important; opacity: 0.3 !important; }

/* Panel principal */
#gcb-booking-widget .gcb-main-panel { background: var(--jbs-bg); color: var(--jbs-ink); }
#gcb-booking-widget .gcb-section-title {
	font-family: var(--jbs-display);
	font-size: 1.35rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: -0.01em;
	color: var(--jbs-ink);
}
#gcb-booking-widget .gcb-selected-day-banner,
#gcb-booking-widget .gcb-pill,
#gcb-booking-widget .gcb-empty-state {
	background: var(--jbs-surface);
	border: 1px solid var(--jbs-line);
	border-radius: 0;
	color: var(--jbs-steel);
}

/* Lista de servicios */
#gcb-booking-widget .gcb-service-item {
	background: var(--jbs-surface);
	border: 1px solid transparent;
	border-radius: 0;
	box-shadow: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
#gcb-booking-widget .gcb-service-item:hover { background: var(--jbs-surface-2); border-color: var(--jbs-line); box-shadow: none; }
#gcb-booking-widget .gcb-service-name { color: var(--jbs-ink); font-weight: 500; font-size: 1.05rem; }
#gcb-booking-widget .gcb-service-duration { color: var(--jbs-muted); font-variant-numeric: tabular-nums; }
#gcb-booking-widget .gcb-service-desc { color: var(--jbs-steel); }

/* Botones */
#gcb-booking-widget .gcb-btn {
	border-radius: 0;
	font-family: var(--jbs-text);
	font-weight: 600;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--jbs-ease);
}
#gcb-booking-widget .gcb-btn:active:not(:disabled) { transform: scale(0.97); }
#gcb-booking-widget .gcb-btn-primary {
	background: var(--jbs-cyan) !important;
	color: var(--jbs-cyan-ink) !important;
	border: 0 !important;
}
#gcb-booking-widget .gcb-btn-primary:hover:not(:disabled) { background: var(--jbs-cyan-hi) !important; }
#gcb-booking-widget .gcb-btn-secondary {
	background: transparent !important;
	color: var(--jbs-ink) !important;
	border: 1.5px solid var(--jbs-steel) !important;
}
#gcb-booking-widget .gcb-btn-secondary:hover { background: var(--jbs-ink) !important; color: var(--jbs-bg) !important; }

/* Horas */
#gcb-booking-widget .gcb-slot-btn {
	background: var(--jbs-surface) !important;
	color: var(--jbs-ink) !important;
	border: 1px solid var(--jbs-line) !important;
	border-radius: 0;
	box-shadow: none !important;
	font-family: var(--jbs-text);
	font-variant-numeric: tabular-nums;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.16s var(--jbs-ease);
}
#gcb-booking-widget .gcb-slot-btn:hover:not(:disabled) {
	background: var(--jbs-cyan) !important;
	border-color: var(--jbs-cyan) !important;
	color: var(--jbs-cyan-ink) !important;
	transform: none;
}
#gcb-booking-widget .gcb-slot-btn:active:not(:disabled) { transform: scale(0.97); }

/* Formulario */
#gcb-booking-widget .gcb-form-title { font-family: var(--jbs-display); font-weight: 400; font-size: 1.6rem; color: var(--jbs-ink); }
#gcb-booking-widget .gcb-form-summary { color: var(--jbs-cyan); font-weight: 600; }
#gcb-booking-widget .gcb-label { color: var(--jbs-steel); font-weight: 500; }
#gcb-booking-widget .gcb-input {
	background: var(--jbs-surface) !important;
	color: var(--jbs-ink) !important;
	border: 0 !important;
	border-bottom: 1.5px solid #4a4f57 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--jbs-text) !important;
	caret-color: var(--jbs-cyan);
}
#gcb-booking-widget .gcb-input::placeholder { color: var(--jbs-muted); opacity: 1; font-family: var(--jbs-text); }
#gcb-booking-widget .gcb-input:focus { border-bottom-color: var(--jbs-cyan) !important; box-shadow: none !important; }
#gcb-booking-widget .gcb-extra-option {
	background: var(--jbs-surface);
	border: 1px solid transparent;
	border-radius: 0;
	color: var(--jbs-ink);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
#gcb-booking-widget .gcb-extra-option:hover { background: var(--jbs-surface-2); border-color: var(--jbs-line); }
#gcb-booking-widget .gcb-extra-option:has(input:checked) { border-color: var(--jbs-cyan); }
#gcb-booking-widget .gcb-extra-option input { accent-color: var(--jbs-cyan); }
#gcb-booking-widget .gcb-extra-price { color: var(--jbs-steel); font-variant-numeric: tabular-nums; }

/* Reserva confirmada (la plantilla trae colores claros en línea) */
#gcb-booking-widget .gcb-success-message {
	background: var(--jbs-surface);
	border: 1px solid var(--jbs-line);
	border-radius: 0;
	color: var(--jbs-ink);
}
#gcb-booking-widget .gcb-success-title { color: var(--jbs-ink) !important; font-family: var(--jbs-display); font-weight: 400 !important; }
#gcb-booking-widget .gcb-success-summary-box {
	background: var(--jbs-bg) !important;
	border: 1px solid var(--jbs-line) !important;
	border-radius: 0 !important;
	color: var(--jbs-ink) !important;
}
#gcb-booking-widget .gcb-success-message p { color: var(--jbs-steel) !important; }
#gcb-booking-widget .gcb-success-icon { color: var(--jbs-cyan); border-color: var(--jbs-cyan); }
#gcb-booking-widget .gcb-success-label { color: var(--jbs-muted); letter-spacing: 0.04em; }
#gcb-booking-widget .gcb-success-cal .gcb-btn { border-radius: 0; }
#gcb-booking-widget .gcb-success-manage a { color: var(--jbs-cyan); }
#gcb-booking-widget .gcb-success-manage a:hover { color: var(--jbs-cyan-hi); }
#gcb-booking-widget .gcb-form-msg {
	background: rgba(255, 107, 107, 0.08);
	border-left-color: #ff6b6b;
	color: var(--jbs-ink);
}
#gcb-booking-widget .gcb-input.gcb-input-error { border-bottom-color: #ff6b6b !important; }

@media (prefers-reduced-motion: reduce) {
	#gcb-booking-widget * { transition-duration: 0.01ms !important; }
}

/* Sin el texto técnico de zona horaria (el plugin sigue usando Europe/Madrid internamente) */
#gcb-booking-widget .gcb-tz-display { display: none !important; }

/* ---------------------------------------------------------------------------
 * Paso del calendario: frase de ayuda, sin recuadros vacíos y más grande en ordenador
 * ------------------------------------------------------------------------ */
#gcb-booking-widget .gcb-calendar-hint {
	margin: 14px 0 2px;
	font-size: 0.9rem;
	text-align: center;
	color: var(--jbs-muted, #64748b);
}

#gcb-booking-widget .gcb-calendar-hint.gcb-calendar-hint-error {
	color: #f87171;
}

/* Si en el panel de la derecha no hay nada que enseñar (eligiendo día), no se dibuja vacío */
#gcb-booking-widget .gcb-main-panel:not(:has(> :not(.gcb-hidden))) {
	display: none;
}

@media (min-width: 768px) {
	#gcb-booking-widget .gcb-calendar-wrapper {
		max-width: 560px;
		padding: 22px 26px 18px;
	}

	#gcb-booking-widget .gcb-selected-service {
		max-width: 560px;
	}

	#gcb-booking-widget .gcb-calendar-header {
		margin-bottom: 16px;
	}

	#gcb-booking-widget .gcb-calendar-title {
		font-size: 1.45rem;
	}

	#gcb-booking-widget .gcb-nav-btn {
		width: 40px;
		height: 40px;
		font-size: 1.05rem;
	}

	#gcb-booking-widget .gcb-calendar-grid {
		gap: 6px;
	}

	#gcb-booking-widget .gcb-cal-head {
		font-size: 0.8rem;
		padding: 6px 0;
	}

	#gcb-booking-widget .gcb-cal-day {
		font-size: 1.05rem;
		padding: 13px 0;
	}

	#gcb-booking-widget .gcb-calendar-hint {
		font-size: 0.95rem;
	}
}
/* Horas más grandes y fáciles de tocar */
#gcb-booking-widget .gcb-slots-grid {
	gap: 10px;
}

#gcb-booking-widget .gcb-slot-btn {
	min-height: 52px;
	padding: 14px 10px;
	font-size: 1.05rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

@media (min-width: 768px) {
	#gcb-booking-widget .gcb-slots-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}

	#gcb-booking-widget .gcb-slot-btn {
		min-height: 60px;
		font-size: 1.2rem;
	}
}