/* Emulador Móvil - Nivel 1: Frame de iPhone con mejoras visuales */

.emulator-container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Controles del emulador */
.emulator-controls {
	width: 100%;
	max-width: 1200px;
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.emulator-device-selector {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: white;
	padding: 0.75rem 1.5rem;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emulator-label {
	font-weight: 600;
	color: #1f2937;
	font-size: 0.875rem;
}

.emulator-select {
	padding: 0.5rem 1rem;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #1f2937;
	background: white;
	cursor: pointer;
	transition: all 0.2s ease;
}

.emulator-select:focus {
	outline: none;
	border-color: #ea580c;
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Wrapper del dispositivo */
.emulator-wrapper {
	position: relative;
	transition: transform 0.3s ease;
}

/* Frame del dispositivo */
.emulator-device {
	position: relative;
	background: #1f2937;
	border-radius: 40px;
	padding: 8px;
	box-shadow: 
		0 0 0 2px #111827,
		0 20px 60px rgba(0, 0, 0, 0.3),
		0 0 0 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

/* iPhone 14 Pro */
.emulator-iphone14 {
	width: 390px;
	height: 844px;
}

/* iPhone SE */
.emulator-iphoneSE {
	width: 375px;
	height: 667px;
}

/* Android */
.emulator-android {
	width: 412px;
	height: 915px;
	border-radius: 24px;
}

/* Notch del iPhone - Más realista */
.emulator-notch {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 126px;
	height: 30px;
	background: #1f2937;
	border-radius: 0 0 20px 20px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.emulator-speaker {
	width: 55px;
	height: 5px;
	background: #111827;
	border-radius: 3px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.emulator-camera {
	width: 11px;
	height: 11px;
	background: radial-gradient(circle at 30% 30%, #374151, #111827);
	border-radius: 50%;
	border: 1px solid #000;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Android no tiene notch */
.emulator-android .emulator-notch {
	display: none;
}

/* Pantalla del dispositivo */
.emulator-screen {
	width: 100%;
	height: 100%;
	background: white;
	border-radius: 32px;
	overflow: hidden;
	position: relative;
}

.emulator-android .emulator-screen {
	border-radius: 16px;
}

/* Status bar eliminado - ya no se usa */

/* Contenido de la app */
.emulator-content {
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	pointer-events: auto;
}

/* Hero Section con fondo borroso */
.emulator-hero {
	position: relative;
	height: 40%;
	min-height: 250px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.emulator-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 50%;
	background: rgba(0, 0, 0, 0.1);
}

/* Iconos de acción en la parte superior */
.emulator-action-buttons {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 1rem 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10;
}

.emulator-action-buttons-right {
	display: flex;
	gap: 0.75rem;
}

.emulator-action-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1f2937;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
}

.emulator-action-btn:hover {
	background: white;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contenido principal (fondo blanco) */
.emulator-main-content {
	flex: 1;
	background: white;
	border-radius: 24px 24px 0 0;
	margin-top: -20px;
	position: relative;
	z-index: 5;
	padding: 1.5rem 0.75rem;
	padding-bottom: 3rem;
	overflow-x: hidden;
	width: 100%;
	box-sizing: border-box;
}

/* Información del negocio */
.emulator-business-info {
	margin-bottom: 1.5rem;
}

.emulator-info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
	transition: background 0.2s ease;
}

.emulator-info-row:last-child {
	border-bottom: none;
}

.emulator-info-row:hover {
	background: #f9fafb;
	border-radius: 8px;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	margin-left: -0.5rem;
	margin-right: -0.5rem;
}

.emulator-business-name {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0;
}

.emulator-chevron {
	color: #9ca3af;
	font-size: 0.875rem;
}

/* Rating */
.emulator-rating {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.emulator-star {
	color: #3b82f6;
	font-size: 1rem;
}

.emulator-rating-value {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
}

.emulator-rating-text {
	font-size: 0.875rem;
	color: #6b7280;
}

/* Ubicación */
.emulator-location {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	flex: 1;
}

.emulator-location-icon {
	color: #3b82f6;
	font-size: 1rem;
	margin-top: 0.125rem;
}

.emulator-location-details {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.emulator-location-distance {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #1f2937;
}

.emulator-delivery-text {
	font-size: 0.8125rem;
	color: #6b7280;
}

/* Sección de productos */
.emulator-products-section {
	margin-top: 1.5rem;
	width: 100%;
	box-sizing: border-box;
}

.emulator-products-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 8px;
	padding: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
}

/* Empty state para productos */
.emulator-empty-products {
	text-align: center;
	padding: 2.25rem 1.35rem;
	margin: 0.5rem 0.85rem 1.25rem;
	background: #f7f7f8;
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.emulator-empty-icon {
	font-size: 2.25rem;
	margin-bottom: 0.75rem;
	opacity: 0.55;
}

.emulator-empty-title {
	font-size: 1.05rem;
	font-weight: 750;
	color: #1d1d1f;
	margin: 0 0 0.4rem 0;
	letter-spacing: -0.02em;
}

.emulator-empty-description {
	font-size: 0.82rem;
	color: #6e6e73;
	line-height: 1.45;
	margin: 0 auto;
	max-width: 220px;
}

.emulator-empty-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	color: #4b5563;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.emulator-empty-cta i {
	font-size: 0.875rem;
}

/* Mantener scroll para compatibilidad */
.emulator-products-scroll {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 0.5rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.emulator-products-scroll::-webkit-scrollbar {
	display: none;
}

.emulator-product-card {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	cursor: pointer;
	transition: transform 0.2s ease;
	box-sizing: border-box;
	overflow: hidden;
}

.emulator-product-card:active {
	transform: scale(0.95);
}

.emulator-product-image {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 8px;
	background: #f3f4f6;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

.emulator-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.emulator-product-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 2rem;
}

.emulator-product-info {
	margin-top: 6px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.emulator-product-name {
	font-size: 0.875rem;
	font-weight: 500;
	color: #1f2937;
	text-align: center;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	max-width: 100%;
	box-sizing: border-box;
}

.emulator-product-price {
	font-size: 0.75rem;
	font-weight: 600;
	color: #ea580c;
	text-align: center;
	margin-top: 4px;
}

/* Grid de módulos */
.emulator-modules-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	width: 100%;
	max-width: 320px;
	margin-top: auto;
	padding-bottom: 2rem;
}

.emulator-module-card {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
	cursor: pointer;
	width: 100%;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: auto;
	touch-action: manipulation;
}

.emulator-module-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.emulator-module-card:active {
	transform: scale(0.97);
}

.emulator-module-detail {
	display: none;
	flex-direction: column;
	position: absolute;
	inset: 0;
	z-index: 20;
	background: #fff;
	overflow: hidden;
}

.emulator-module-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.emulator-module-name {
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
}

/* Empty state */
.emulator-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2rem;
	color: rgba(255, 255, 255, 0.7);
}

.emulator-empty-state i {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.emulator-empty-state p {
	margin: 0;
	font-size: 0.875rem;
}

/* Home Indicator (iPhone) - Más visible */
.emulator-home-indicator {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 134px;
	height: 5px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 3px;
	z-index: 100;
}

.emulator-android .emulator-home-indicator {
	display: none;
}

/* Botones laterales del iPhone - Más realistas */
.emulator-buttons {
	position: absolute;
	left: -3px;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.emulator-button {
	width: 3px;
	background: #2d3748;
	border-radius: 2px 0 0 2px;
	box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.5);
}

.emulator-button-volume-up {
	height: 30px;
}

.emulator-button-volume-down {
	height: 30px;
}

.emulator-button-power {
	height: 50px;
	position: absolute;
	right: -3px;
	left: auto;
	top: 100px;
	border-radius: 0 2px 2px 0;
	box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.5);
}

.emulator-android .emulator-buttons {
	display: none;
}

/* Scrollbar personalizado */
.emulator-content::-webkit-scrollbar {
	width: 4px;
}

.emulator-content::-webkit-scrollbar-track {
	background: transparent;
}

.emulator-content::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
}

.emulator-content::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

/* ========== VISTA DE DETALLE DEL PRODUCTO ========== */
.emulator-product-detail {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: white;
	z-index: 50;
	overflow-y: auto;
}

/* Header del detalle */
.emulator-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	background: white;
	border-bottom: 1px solid #f3f4f6;
	position: sticky;
	top: 0;
	z-index: 10;
}

.emulator-back-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f3f4f6;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emulator-back-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0.9;
}

.emulator-back-btn:active {
	transform: scale(0.95);
}

.emulator-back-btn-floating {
	transition: all 0.2s ease;
}

.emulator-back-btn-floating:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.emulator-back-btn-floating:active {
	transform: scale(0.95);
}


.emulator-detail-title {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
}

/* Imagen del detalle */
.emulator-detail-image {
	width: 100%;
	height: 300px;
	background: #f3f4f6;
	overflow: hidden;
	position: relative;
}

.emulator-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Contenido del detalle */
.emulator-detail-content {
	padding: 1.5rem 1.25rem;
	padding-bottom: 6rem; /* Espacio para el footer fijo */
}

.emulator-detail-product-name {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 0.25rem 0;
	line-height: 1.3;
}

.emulator-detail-product-description {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0 0 1.5rem 0;
	line-height: 1.5;
}

/* Selector de cantidad */
.emulator-quantity-selector {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.emulator-quantity-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid;
	background: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 0.875rem;
	transition: all 0.2s ease;
	/* El color se establece dinámicamente desde JavaScript */
}

.emulator-quantity-btn:hover {
	opacity: 0.8;
	transform: scale(1.1);
}

.emulator-quantity-btn:active {
	transform: scale(0.95);
}

.emulator-quantity-value {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1f2937;
	min-width: 2rem;
	text-align: center;
}

/* Selector de tamaño */
.emulator-size-selector {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
}

.emulator-size-selector::-webkit-scrollbar {
	height: 4px;
}

.emulator-size-selector::-webkit-scrollbar-track {
	background: #f3f4f6;
	border-radius: 2px;
}

.emulator-size-selector::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 2px;
}

.emulator-size-btn {
	flex: 1;
	min-width: 100px;
	padding: 0.75rem 1rem;
	border: 1px solid #3b82f6;
	border-radius: 12px;
	background: white;
	color: #3b82f6;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.emulator-size-btn.emulator-size-selected {
	background: #3b82f6;
	color: white;
	border-color: #3b82f6;
}

.emulator-size-btn:hover:not(.emulator-size-selected) {
	background: #eff6ff;
	border-color: #2563eb;
}

.emulator-size-name {
	font-size: 0.875rem;
	font-weight: 600;
}

.emulator-size-price {
	font-size: 0.8125rem;
	font-weight: 500;
	opacity: 0.9;
}

.emulator-detail-section {
	margin-bottom: 1.5rem;
}

.emulator-detail-section-title {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 0.75rem 0;
}

.emulator-detail-description {
	font-size: 0.9375rem;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
}

/* Footer del detalle */
.emulator-detail-footer {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	background: white;
	padding: 1rem 1.25rem;
	border-top: 1px solid #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	margin-left: -1.25rem;
	margin-right: -1.25rem;
	margin-bottom: -1.5rem;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.emulator-total-price {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.emulator-total-label {
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 500;
}

.emulator-total-value {
	font-size: 1.25rem;
	font-weight: 700;
}

/* Botón de agregar al carrito */
.emulator-add-to-cart-btn {
	flex: 1;
	padding: 0.875rem 1.5rem;
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 1rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
}

.emulator-add-to-cart-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.emulator-add-to-cart-btn:active {
	transform: translateY(0);
}

/* ========== ANIMACIONES DE TRANSICIÓN ========== */
@keyframes slideOutLeft {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(-30px);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideOutRight {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(30px);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* ========================================
   ESTILOS PARA LOS 4 LAYOUTS DE PLANTILLAS
   ======================================== */

/* LAYOUT 2: Lista Vertical */
.emulator-layout-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 16px 16px;
}

.emulator-list-item {
	display: flex;
	gap: 12px;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: all 0.3s ease;
}

.emulator-list-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.emulator-list-image {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	background: #f3f4f6;
}

.emulator-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-list-content {
	flex: 1;
	padding: 12px 12px 12px 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.emulator-list-name {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.emulator-list-description {
	font-size: 0.813rem;
	color: #6b7280;
	line-height: 1.5;
	margin: 0 0 0.75rem 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.emulator-list-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.emulator-list-price {
	font-size: 1.125rem;
	font-weight: 700;
	color: #ea580c;
}

.emulator-list-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #ea580c;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.875rem;
}

.emulator-list-btn:hover {
	transform: scale(1.1);
}

/* LAYOUT 3: Featured + Grid */
.emulator-layout-featured {
	padding: 0 16px 16px;
}

.emulator-featured-card {
	position: relative;
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	margin-bottom: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.emulator-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}

.emulator-featured-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #ea580c;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.emulator-featured-image {
	width: 100%;
	height: 220px;
	background: #f3f4f6;
}

.emulator-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-featured-content {
	padding: 16px;
}

.emulator-featured-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.emulator-featured-description {
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 1rem 0;
}

.emulator-featured-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #ea580c;
}

.emulator-section-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 1rem 0;
	padding: 0;
}

/* LAYOUT 4: Categorías Primero */
.emulator-layout-categories {
	padding: 0 0 16px;
}

.emulator-categories-scroll {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 16px 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	margin-bottom: 1rem;
}

.emulator-categories-scroll::-webkit-scrollbar {
	display: none;
}

.emulator-category-chip {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1f2937;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.emulator-category-chip:hover {
	border-color: #ea580c;
	background: rgba(234, 88, 12, 0.05);
}

.emulator-category-chip i {
	font-size: 0.875rem;
}

/* Cuando el chip está activo (con background de negocio) */
.emulator-category-chip[style*="background"] {
	color: white;
	border-color: transparent;
}

.emulator-layout-categories .emulator-section-title {
	padding: 0 16px;
	margin-bottom: 1rem;
}

.emulator-layout-categories .emulator-products-grid {
	padding-top: 0;
}

/* Responsive — no scale aquí: el preview mobile llena el PNG del iPhone */
@media screen and (max-width: 768px) {
	.emulator-container {
		padding: 1rem;
	}

	.emulator-controls {
		flex-direction: column;
		align-items: center;
	}
}

/* Studio preview: el iPhone CSS (.emulator-device) es el mockup — no forzar full-bleed ni ocultar notch */
.aprev-frame {
	display: none !important;
}

.emulator-modules-section {
	width: 100%;
	padding: 0 0.25rem;
	box-sizing: border-box;
}

.emulator-modules-section .emulator-section-title {
	margin: 0 0 0.65rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #1f2937;
}

.emulator-module-icon-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	margin-bottom: 0.4rem;
	display: block;
}

/* ========================================================================
   ESTILOS PARA LOS 4 TEMPLATES Y SUS LAYOUTS
   ======================================================================== */

/* ========================================
   TEMPLATE MODERN - Diseño Moderno
   ======================================== */

/* Header Modern */
.emulator-modern-header {
	padding: 1rem 1.5rem 2rem;
	color: white;
	position: relative;
	overflow: hidden;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 3.5rem;
}

.emulator-modern-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

/* Logo Modern */
.emulator-modern-logo {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.3);
	position: relative;
}

.emulator-modern-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.emulator-modern-logo-placeholder {
	font-size: 1.5rem;
	font-weight: 800;
	color: white;
}

.emulator-modern-header-top {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	position: relative;
	z-index: 1;
	width: 100%;
}

.emulator-modern-brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1;
}

.emulator-modern-brand-info {
	flex: 1;
}

.emulator-modern-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 0.25rem 0;
	color: white;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	line-height: 1.2;
}

.emulator-modern-menu-btn {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 10px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.25rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.emulator-modern-menu-btn:hover {
	background: rgba(255, 255, 255, 0.3);
}

.emulator-modern-subtitle {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	line-height: 1.3;
}

/* Content Modern */
.emulator-modern-content {
	background: #f9fafb;
	min-height: calc(100vh - 200px);
	padding: 1rem 1rem 2rem;
}

/* Grid Modern */
.emulator-modern-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1rem;
}

.emulator-modern-product-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.emulator-modern-product-card:active {
	transform: scale(0.98);
}

.emulator-modern-product-image {
	aspect-ratio: 1;
	overflow: hidden;
	position: relative;
}

.emulator-modern-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-modern-product-info {
	padding: 0.75rem;
}

.emulator-modern-product-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.25rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emulator-modern-product-price {
	font-size: 1rem;
	font-weight: 700;
}

/* List Modern */
.emulator-modern-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emulator-modern-list-item {
	background: white;
	border-radius: 16px;
	display: flex;
	gap: 1rem;
	padding: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.emulator-modern-list-item:active {
	transform: scale(0.98);
}

.emulator-modern-list-image {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
}

.emulator-modern-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-modern-list-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.emulator-modern-list-name {
	font-size: 1rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 0.5rem 0;
}

.emulator-modern-list-description {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0 0 0.5rem 0;
	line-height: 1.4;
}

.emulator-modern-list-price {
	font-size: 1.125rem;
	font-weight: 700;
}

/* Featured Modern */
.emulator-modern-featured {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emulator-modern-featured-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.emulator-modern-featured-image {
	aspect-ratio: 16/10;
	overflow: hidden;
}

.emulator-modern-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-modern-featured-content {
	padding: 1.5rem;
}

.emulator-modern-featured-name {
	font-size: 1.5rem;
	font-weight: 800;
	color: #1f2937;
	margin: 0 0 0.75rem 0;
}

.emulator-modern-featured-price {
	font-size: 1.5rem;
	font-weight: 800;
}

/* ========================================
   TEMPLATE PREMIUM - Diseño Premium
   ======================================== */

/* Header Premium */
.emulator-premium-header {
	position: relative;
	padding: 1rem 1.5rem 2rem;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 3.5rem;
	overflow: hidden;
}

.emulator-premium-header-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.emulator-premium-header-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: white;
}

.emulator-premium-logo {
	width: 80px;
	height: 80px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.emulator-premium-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.emulator-premium-logo-placeholder {
	font-size: 1.75rem;
	font-weight: 800;
	color: white;
}

.emulator-premium-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 0.5rem 0;
	color: white;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.emulator-premium-subtitle {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.95);
	margin: 0;
}

/* Content Premium */
.emulator-premium-content {
	background: #ffffff;
	min-height: calc(100vh - 250px);
	padding: 2rem 1.5rem;
}

/* Grid Premium */
.emulator-premium-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1.5rem;
}

.emulator-premium-product-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.emulator-premium-product-card:active {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.emulator-premium-product-image {
	aspect-ratio: 1;
	overflow: hidden;
	position: relative;
}

.emulator-premium-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-premium-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 0.75rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.emulator-premium-product-info {
	padding: 1rem;
}

.emulator-premium-product-name {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 0.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emulator-premium-product-price {
	font-size: 1.125rem;
	font-weight: 800;
}

/* List Premium */
.emulator-premium-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.emulator-premium-list-item {
	background: white;
	border-radius: 20px;
	display: flex;
	gap: 1.25rem;
	padding: 1.25rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.emulator-premium-list-item:active {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.emulator-premium-list-image {
	width: 110px;
	height: 110px;
	flex-shrink: 0;
	border-radius: 16px;
	overflow: hidden;
}

.emulator-premium-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-premium-list-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
}

.emulator-premium-list-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0;
}

.emulator-premium-list-description {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.emulator-premium-list-price {
	font-size: 1.25rem;
	font-weight: 800;
}

/* Featured Premium */
.emulator-premium-featured {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.emulator-premium-featured-card {
	background: white;
	border-radius: 24px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.emulator-premium-featured-image {
	aspect-ratio: 16/11;
	overflow: hidden;
	position: relative;
}

.emulator-premium-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-premium-featured-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	color: white;
	font-size: 0.8125rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.emulator-premium-featured-content {
	padding: 2rem;
}

.emulator-premium-featured-name {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1f2937;
	margin: 0 0 0.75rem 0;
}

.emulator-premium-featured-description {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0 0 1rem 0;
	line-height: 1.6;
}

.emulator-premium-featured-price {
	font-size: 1.75rem;
	font-weight: 800;
}

/* ========================================
   TEMPLATE MINIMALIST - Diseño Minimalista
   ======================================== */

/* Header Minimalist */
.emulator-minimalist-header {
	padding: 1.35rem 1.1rem 0.95rem;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.emulator-minimalist-title {
	font-size: 1.2rem;
	font-weight: 750;
	color: #1d1d1f;
	margin: 0;
	text-align: left;
	letter-spacing: -0.03em;
}

/* Content Minimalist */
.emulator-minimalist-content {
	background: #fff;
	min-height: calc(100% - 64px);
	padding: 0.95rem 0.85rem 1.5rem;
}

/* Grid Minimalist */
.emulator-minimalist-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 0.7rem;
}

.emulator-minimalist-product-card {
	background: #fff;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.emulator-minimalist-product-card:active {
	opacity: 0.85;
}

.emulator-minimalist-product-image {
	aspect-ratio: 1;
	overflow: hidden;
	background: #f0f0f2;
	border-radius: 3px;
}

.emulator-minimalist-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.emulator-minimalist-product-info {
	padding: 0.55rem 0.1rem 0.15rem;
	border-top: 0;
}

.emulator-minimalist-product-name {
	font-size: 0.78rem;
	font-weight: 650;
	color: #1d1d1f;
	margin-bottom: 0.15rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	letter-spacing: -0.01em;
}

.emulator-minimalist-product-price {
	font-size: 0.8rem;
	font-weight: 700;
	color: #1d1d1f;
}

/* List Minimalist */
.emulator-minimalist-list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: #e5e7eb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.emulator-minimalist-list-item {
	background: white;
	display: flex;
	gap: 1rem;
	padding: 1rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.emulator-minimalist-list-item:active {
	background: #f9fafb;
}

.emulator-minimalist-list-image {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.emulator-minimalist-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-minimalist-list-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
}

.emulator-minimalist-list-name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0;
}

.emulator-minimalist-list-price {
	font-size: 1rem;
	font-weight: 700;
	color: #1f2937;
}

/* Featured Minimalist */
.emulator-minimalist-featured {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.emulator-minimalist-featured-card {
	background: white;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
}

.emulator-minimalist-featured-image {
	aspect-ratio: 16/10;
	overflow: hidden;
	border-bottom: 1px solid #e5e7eb;
}

.emulator-minimalist-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emulator-minimalist-featured-content {
	padding: 1.5rem;
	text-align: center;
}

.emulator-minimalist-featured-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 0.75rem 0;
}

.emulator-minimalist-featured-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1f2937;
}

/* ========================================
   VISTA DE INFORMACIÓN DEL NEGOCIO
   ======================================== */

.emulator-business-detail {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #f9fafb;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1000;
}

.emulator-business-header {
	padding: 1rem 1.5rem;
	color: white;
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 60px;
}

.emulator-business-header-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
	color: white;
	flex: 1;
}

.emulator-business-content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	background: white;
	padding: 0;
}

.emulator-business-section {
	padding: 1.5rem 1.25rem;
	border-bottom: 8px solid #f3f4f6;
}

.emulator-business-section:last-child {
	border-bottom: none;
}

.emulator-business-section-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 1rem 0;
}

.emulator-business-section-text {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #1f2937;
	margin: 0;
}

/* Contacto */
.emulator-contact-info {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emulator-contact-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.9375rem;
	color: #1f2937;
}

.emulator-contact-row i {
	font-size: 1.25rem;
	width: 24px;
	text-align: center;
}

.emulator-contact-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.emulator-contact-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.04);
	text-decoration: none;
}

.emulator-contact-icon i {
	font-size: 1.15rem;
}

/* Horarios */
.emulator-business-hours {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.emulator-hour-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9375rem;
}

.emulator-hour-day {
	font-weight: 500;
	color: #1f2937;
}

.emulator-hour-time {
	color: #1f2937;
	font-weight: 400;
}

.emulator-hour-time.emulator-closed {
	color: #ef4444;
	font-weight: 600;
}

/* Redes sociales */
.emulator-social-buttons {
	display: flex;
	gap: 1rem;
}

.emulator-social-btn {
	width: 80px;
	height: 80px;
	border-radius: 16px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	transition: all 0.2s ease;
}

.emulator-social-btn:active {
	transform: scale(0.95);
}

/* Dirección */
.emulator-business-address {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #1f2937;
	margin: 0 0 1rem 0;
}

.emulator-business-map {
	width: 100%;
	height: 200px;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f4f6;
}

.emulator-map-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #6b7280;
}


/* ===== Personal app: mismo teléfono del Prototype ===== */
.emulator-is-personal {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
}
.emulator-personal-shell {
	position: relative;
	width: 100%;
	max-width: 390px;
	aspect-ratio: 390 / 852;
	margin: 0 auto;
	background: transparent;
	overflow: visible;
}
.emulator-personal-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: transparent;
}
