/**
 *    Nombre:       tutorial.css
 *    Descripcion:  Estilos del tutorial standalone (header switch desktop/mobile + phone-frame). El theme driver.js vive en tutorial-v6.css (source of truth unico, cargado via estiloTutorial()).
 *    Version:      0.0.6
 *    Creado:       04-05-2026
 *    Modificado:   08-05-2026
 *    Autor:        Sebastian Toyos
 */

/* === Header del tutorial: dock flotante con glassmorphism v6 === */

.tutorial-header {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	background: var(--glass-bg, rgba(0, 0, 0, 0.85));
	border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
	border-radius: var(--radius, 14px);
	box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, 0.4));
	backdrop-filter: blur(var(--glass-blur, 12px));
	-webkit-backdrop-filter: blur(var(--glass-blur, 12px));
	color: var(--text-primary, #fff);
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 13px;
}

.tutorial-titulo {
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--text-secondary, rgba(255, 255, 255, 0.9));
}

/* Sin Bootstrap en outer-mobile, las clases me-1/me-2 no aplican. Forzamos margen derecho a los icons. */
.tutorial-header i { margin-right: 6px; }
.tutorial-titulo i { margin-right: 8px; }

.tutorial-switch {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: var(--radius-sm, 10px);
}

.tutorial-btn {
	padding: 6px 14px;
	background: transparent;
	border-radius: 8px;
	color: var(--text-secondary, rgba(255, 255, 255, 0.75));
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: var(--transition, all 0.15s ease);
}

.tutorial-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-primary, #fff);
	text-decoration: none;
}

.tutorial-btn.active,
.tutorial-btn-iniciar {
	background: var(--success-solid, #2ecc71);
	color: var(--text-primary, #fff);
	font-weight: 600;
}

.tutorial-btn.active:hover,
.tutorial-btn-iniciar:hover {
	background: var(--success-hover, #27ae60);
	color: var(--text-primary, #fff);
}

.tutorial-btn-iniciar {
	padding: 8px 16px;
	border: none;
	border-radius: var(--radius-sm, 10px);
	cursor: pointer;
	white-space: nowrap;
	transition: var(--transition, all 0.15s ease);
}

/* === Mobile preview: marco de celular con iframe del cliente real === */

.tutorial-mobile-preview {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 24px 16px;
	background: radial-gradient(circle at 30% 20%, #1f2a24 0%, #0a0a0a 70%);
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.phone-frame {
	position: relative;
	width: 412px;
	height: 892px;
	max-width: 100%;
	max-height: calc(100vh - 60px);
	background: #0a0a0a;
	border: 14px solid #1a1a1a;
	border-radius: 48px;
	box-shadow:
		0 0 0 2px #2a2a2a,
		0 30px 80px rgba(0, 0, 0, 0.7),
		inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.phone-notch {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 10;
	width: 140px;
	height: 28px;
	background: #1a1a1a;
	border-radius: 0 0 18px 18px;
	transform: translateX(-50%);
}

.phone-screen {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

/* Celular real (sin frame): el header pasa a ser solo "Iniciar tour" centrado horizontal y posicionado encima del precio del lote. Switch desktop/mobile y titulo se ocultan (ya estamos en celu, no tiene sentido cambiar). */
@media (max-width: 768px) {
	.tutorial-mobile-preview {
		padding: 0;
		gap: 0;
		background: #000;
	}
	.phone-frame {
		width: 100%;
		height: 100vh;
		max-height: 100vh;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}
	.phone-notch { display: none; }
	.tutorial-header {
		top: 10px;
		bottom: auto;
		left: 50%;
		transform: translateX(-50%);
		padding: 4px 12px;
		gap: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
	.tutorial-header .tutorial-titulo,
	.tutorial-header .tutorial-switch { display: none; }
	.tutorial-btn-iniciar {
		padding: 4px 14px;
		font-size: 12px;
	}
}
