/* ============================================
   1080x1920 FULLSCREEN KIOSK - VERTICAL
   ============================================ */

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

/* Prevent text selection and zoom */
body {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;

	color: #fff;
	line-height: 1.5;
	font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html,
body {
	position: relative;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

/* ============================================
   KIOSK SCREEN (FULLSCREEN 1080x1920)
   ============================================ */
.kiosk-screen {
	height: 100vh;
	height: 100dvh;
	width: 100vw;
	width: 100dvw;
	/* background: linear-gradient(180deg, #0A2463 0%, #1456A8 100%); */
	background-image: url('/public/images/fondo5.jpg');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-selector {
	position: fixed;
	top: 340px;
	left: 90%;
	transform: translateX(-50%);
	z-index: 100;
	display: flex;
	gap: 20px;
	padding: 15px 30px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 50px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo-jalisco {
	max-width: 140px;
	/* max-width: 400px; */
	width: 100%;
	height: auto;
	filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
	position: fixed;
	top: 340px;
	left: 50%;
	transform: translateX(-50%);
}

.flag-button {
	width: 70px;
	height: 70px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	position: relative;
	overflow: hidden;
	padding: 0;
}

.flag-icon {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 50%;
	pointer-events: none;
	position: relative;
	z-index: 2;
}

.flag-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.flag-button:hover {
	border-color: rgba(255, 255, 255, 0.6);
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.flag-button:hover::before {
	opacity: 1;
}

.flag-button:active {
	transform: translateY(-2px) scale(1.02);
}

.flag-button.active {
	border-color: rgb(225, 133, 59);
	background: linear-gradient(135deg, rgba(225, 133, 59, 0.3) 0%, rgba(225, 133, 59, 0.2) 100%);
	box-shadow:
		0 0 0 3px rgba(225, 133, 59, 0.2),
		0 8px 25px rgba(225, 133, 59, 0.4),
		0 4px 15px rgba(0, 0, 0, 0.3);
	animation: pulse-flag 2s ease-in-out infinite;
}

@keyframes pulse-flag {
	0%, 100% {
		box-shadow:
			0 0 0 3px rgba(225, 133, 59, 0.2),
			0 8px 25px rgba(225, 133, 59, 0.4),
			0 4px 15px rgba(0, 0, 0, 0.3);
	}
	50% {
		box-shadow:
			0 0 0 5px rgba(225, 133, 59, 0.3),
			0 10px 30px rgba(225, 133, 59, 0.5),
			0 6px 20px rgba(0, 0, 0, 0.4);
	}
}

/* ============================================
   COUNTDOWN CLOCK
   ============================================ */
/* Countdown Timer Styles */
.countdown-container {
	position: fixed;
	top: 100px;
	left: 0;
	width: 100%;
	z-index: 12;
	color: white;
	text-align: center;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 12px 0 18px 0;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.countdown-header {
	font-size: 27px;
	font-weight: 800;
	color: #FFFFFF;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: 1.7px;
	margin-top: 6px;
	margin-bottom: 12px;
	text-transform: uppercase;
	font-family: 'Exo', sans-serif;
}

.countdown-timer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 45px;
	flex-wrap: wrap;
}

.countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.countdown-number {
	font-size: 85px;
	font-weight: 900;
	color: #FFFFFF;
	line-height: 1;
	font-family: 'Orbitron', sans-serif;
	letter-spacing: -3.4px;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.countdown-label {
	font-size: 20px;
	font-weight: 700;
	color: #FFFFFF;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	font-family: 'Exo', sans-serif;
}

/* Responsive countdown */
@media (max-width: 1400px) {
	.countdown-container {
		top: 90px;
		padding: 12px 0 18px 0;
	}

	.countdown-number {
		font-size: 85px;
	}

	.countdown-timer {
		gap: 45px;
	}

	.countdown-header {
		font-size: 27px;
	}

	.language-selector {
		top: 320px;
		padding: 12px 25px;
		gap: 18px;
	}

	.flag-button {
		width: 65px;
		height: 65px;
		font-size: 32px;
	}

	.flag-icon {
		width: 45px;
		height: 45px;
	}

	.main-content {
		margin-top: 440px;
	}
}


@media (max-width: 1200px) {
	.countdown-container {
		top: 130px;
		padding: 10px 0 15px 0;
	}

	.countdown-number {
		font-size: 68px;
	}

	.countdown-label {
		font-size: 17px;
	}

	.countdown-timer {
		gap: 38px;
	}

	.countdown-header {
		font-size: 20px;
	}

	.language-selector {
		top: 310px;
		padding: 10px 20px;
		gap: 15px;
	}

	.flag-button {
		width: 60px;
		height: 60px;
		font-size: 30px;
		border-width: 2px;
	}

	.flag-icon {
		width: 42px;
		height: 42px;
	}

	.main-content {
		margin-top: 400px;
	}
}

@media (max-width: 900px) {
	.countdown-container {
		padding: 8px 0 12px 0;
		top: 60px;
	}

	.countdown-number {
		font-size: 51px;
	}

	.countdown-label {
		font-size: 14px;
	}

	.countdown-timer {
		gap: 30px;
	}

	.countdown-header {
		font-size: 17px;
		margin-bottom: 10px;
	}

	.language-selector {
		top: 230px;
		padding: 8px 18px;
		gap: 12px;
	}

	.flag-button {
		width: 50px;
		height: 50px;
		font-size: 26px;
		border-width: 2px;
	}

	.flag-icon {
		width: 36px;
		height: 36px;
	}

	.main-content {
		margin-top: 320px;
	}
}

@media (max-width: 600px) {
	.countdown-container {
		padding: 6px 0 10px 0;
		top: 40px;
	}

	.countdown-number {
		font-size: 34px;
		letter-spacing: -1.7px;
	}

	.countdown-label {
		font-size: 10px;
	}

	.countdown-timer {
		gap: 25px;
	}

	.countdown-header {
		font-size: 14px;
	}

	.language-selector {
		top: 180px;
		padding: 8px 15px;
		gap: 10px;
	}

	.flag-button {
		width: 45px;
		height: 45px;
		font-size: 22px;
		border-width: 2px;
	}

	.flag-icon {
		width: 32px;
		height: 32px;
	}

	.main-content {
		margin-top: 260px;
	}
}

/* ============================================
   MAIN CONTENT (Vertical Stacked Layout)
   ============================================ */
.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 30px 50px 30px 50px;
	margin-top: 470px;
	justify-content: space-between;
}

/* LEFT SECTION (Greeting + Charro + Mic) */
.left-section {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 30px;
}

.greeting {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* margin-top: -40px; */
}

.greeting-logo {
	max-width: 350px;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

.greeting-question {
	font-family: 'Roboto', sans-serif;
	font-weight: 800;
	font-size: 71px;
	/* color: white; */
	color: #475358;
	margin: 0;
	margin-top: -30px;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.greeting-text {
	font-family: 'Roboto', sans-serif;
	font-weight: 800;
	font-size: 55px;
	/* color: white; */
	color: #475358;
	margin: 0;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* CHARRO AGENT */
.agent-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.agent-wrapper {
	width: 320px;
	height: 320px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 3D Circle Background */
.agent-wrapper::before {
	content: '';
	position: absolute;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: linear-gradient(135deg,
		rgba(58, 143, 230, 0.3) 0%,
		rgba(42, 127, 214, 0.4) 50%,
		rgba(30, 95, 168, 0.3) 100%);
	box-shadow:
		inset 0 -20px 40px rgba(0, 0, 0, 0.3),
		inset 0 20px 40px rgba(255, 255, 255, 0.1),
		0 15px 50px rgba(58, 143, 230, 0.4),
		0 5px 20px rgba(0, 0, 0, 0.3);
	z-index: 1;
	animation: float 3s ease-in-out infinite;
}

/* Rim effect for more 3D depth */
.agent-wrapper::after {
	content: '';
	position: absolute;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.2);
	box-shadow:
		0 0 20px rgba(58, 143, 230, 0.3),
		inset 0 0 20px rgba(255, 255, 255, 0.1);
	z-index: 0;
	animation: float 3s ease-in-out infinite;
}

.agent-image {
	width: 300px;
	height: 300px;
	object-fit: contain;
	filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
	position: relative;
	z-index: 2;
	animation: float 3s ease-in-out infinite;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(58, 143, 230, 0.1) 0%, transparent 70%);
}

.agent-video {
	width: 300px;
	height: 300px;
	object-fit: none !important;
	filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
	position: relative;
	z-index: 2;
	animation: float 3s ease-in-out infinite;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(58, 143, 230, 0.1) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.agent-video[style*="display: block"] {
	opacity: 1;
}

#simliAudio {
	display: none;
}

/* Agent Loading State */
/* Agent Overlay (Idle and Loading states) */
.agent-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 50%;
	backdrop-filter: blur(8px);
	z-index: 3;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

.agent-overlay:hover {
	background: rgba(0, 0, 0, 0.5);
}

.agent-overlay.hidden {
	opacity: 0;
	pointer-events: none;
}

.overlay-content {
	text-align: center;
	color: white;
	padding: 20px;
}

/* Idle State */
.overlay-idle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}


/* Loading State */
.overlay-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.loading-spinner-container {
	position: relative;
	width: 48px;
	height: 48px;
	margin: 0 auto 12px;
}

.loading-spinner-outer {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.2);
	border-top-color: white;
	animation: spin 1s linear infinite;
}

.loading-spinner-inner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.loading-spinner-inner::after {
	content: '';
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

.overlay-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	margin-top: 15px;
}

.overlay-subtitle {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.5;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.1);
	}
}

@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-15px);
	}
}

/* Agent State Animations */
.agent-wrapper.agent-listening::before {
	animation: float 3s ease-in-out infinite, pulse-listening 2s ease-in-out infinite;
	box-shadow:
		inset 0 -20px 40px rgba(0, 0, 0, 0.3),
		inset 0 20px 40px rgba(255, 255, 255, 0.1),
		0 15px 60px rgba(58, 230, 143, 0.6),
		0 5px 30px rgba(58, 230, 143, 0.4);
}

.agent-wrapper.agent-speaking::before {
	animation: float 3s ease-in-out infinite, pulse-speaking 1s ease-in-out infinite;
	box-shadow:
		inset 0 -20px 40px rgba(0, 0, 0, 0.3),
		inset 0 20px 40px rgba(255, 255, 255, 0.1),
		0 15px 60px rgba(230, 58, 143, 0.6),
		0 5px 30px rgba(230, 58, 143, 0.4);
}

.agent-wrapper.agent-thinking::before {
	animation: float 3s ease-in-out infinite, pulse-thinking 1.5s ease-in-out infinite;
	box-shadow:
		inset 0 -20px 40px rgba(0, 0, 0, 0.3),
		inset 0 20px 40px rgba(255, 255, 255, 0.1),
		0 15px 60px rgba(230, 143, 58, 0.6),
		0 5px 30px rgba(230, 143, 58, 0.4);
}

@keyframes pulse-listening {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.05);
		opacity: 0.9;
	}
}

@keyframes pulse-speaking {
	0%, 100% {
		transform: scale(1);
	}
	25% {
		transform: scale(1.08);
	}
	50% {
		transform: scale(1.03);
	}
	75% {
		transform: scale(1.08);
	}
}

@keyframes pulse-thinking {
	0%, 100% {
		transform: scale(1) rotate(0deg);
	}
	33% {
		transform: scale(1.04) rotate(2deg);
	}
	66% {
		transform: scale(1.04) rotate(-2deg);
	}
}

/* MICROPHONE BUTTON (Stop Button - Red) */
.microphone-button {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow:
		0 12px 36px rgba(220, 53, 69, 0.6),
		0 6px 16px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	position: relative;
}

.microphone-button.stop-button {
	background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
	animation: pulse-stop 2s ease-in-out infinite;
}

.microphone-button svg {
	width: 70px;
	height: 70px;
}

.mic-glow {
	position: absolute;
	width: 120%;
	height: 120%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.microphone-button:hover .mic-glow {
	opacity: 1;
}

.microphone-button:hover {
	transform: translateY(-5px);
	box-shadow:
		0 16px 48px rgba(220, 53, 69, 0.7),
		0 8px 20px rgba(0, 0, 0, 0.4);
}

.microphone-button:active {
	transform: translateY(-2px);
}

@keyframes pulse-stop {
	0%, 100% {
		transform: scale(1);
		box-shadow:
			0 12px 36px rgba(220, 53, 69, 0.6),
			0 6px 16px rgba(0, 0, 0, 0.3);
	}
	50% {
		transform: scale(1.05);
		box-shadow:
			0 16px 48px rgba(220, 53, 69, 0.8),
			0 8px 20px rgba(0, 0, 0, 0.4);
	}
}

/* ============================================
   RIGHT SECTION (Window-style Cards)
   ============================================ */
.right-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 0 0 20px 0;
}

/* WINDOW CONTAINER - Simulates a tablet/screen device with glass effect */
.window-container {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 45px;
	padding: 60px 60px 35px 60px;
	box-shadow:
		0 25px 70px rgba(0, 0, 0, 0.35),
		inset 0 1px 2px rgba(255, 255, 255, 0.4),
		inset 0 -1px 2px rgba(0, 0, 0, 0.05);
	width: 1000px;
	max-width: 95%;
	position: relative;
	border: 4px solid rgba(200, 200, 200, 0.25);
	margin: 0 auto;
	min-height: 700px;
}

/* DATE AND TIME DISPLAY */
.datetime-display {
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	z-index: 20;
	padding: 0 60px;
}

.current-time {
	font-family: 'Roboto', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: rgba(44, 62, 80, 0.85);
	text-shadow:
		0 1px 3px rgba(255, 255, 255, 0.8),
		0 2px 6px rgba(0, 0, 0, 0.2);
	letter-spacing: 1.5px;
	line-height: 1;
}

.current-date {
	font-family: 'Roboto', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: rgba(44, 62, 80, 0.85);
	text-shadow:
		0 1px 3px rgba(255, 255, 255, 0.8),
		0 2px 6px rgba(0, 0, 0, 0.2);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	line-height: 1;
}

/* ACTION CARDS GRID - 3 cards per row, 2 rows */
.action-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	gap: 30px;
	margin-bottom: 0;
	margin-top: 5px;
}

.action-card {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(250, 250, 250, 0.8) 100%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 2px solid rgba(220, 220, 220, 0.6);
	border-radius: 20px;
	padding: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.2),
		inset 0 1px 1px rgba(255, 255, 255, 0.9);
	min-height: 220px;
	position: relative;
	overflow: hidden;
}

/* Card hover effect */
.action-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(58, 143, 230, 0.1) 0%, rgba(42, 127, 214, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.action-card:hover::before {
	opacity: 1;
}

.action-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow:
		0 12px 30px rgba(0, 0, 0, 0.2),
		inset 0 1px 1px rgba(255, 255, 255, 1),
		0 0 0 3px rgba(58, 143, 230, 0.25);
	border-color: rgba(58, 143, 230, 0.4);
}

.action-card:active {
	transform: translateY(-4px) scale(1.01);
}

.card-icon {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	z-index: 1;
}

.card-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.9);
}

.action-card:hover .card-icon img {
	transform: scale(1.05);
	filter: brightness(1);
}

.card-label {
	width: 100%;
	text-align: center;
	position: relative;
	z-index: 2;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
	padding: 30px 12px 15px 12px;
	border-radius: 0 0 18px 18px;
}

.card-text-es {
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: #ffffff;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-text-en {
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* EMERGENCY BUTTON SPACE - Red semicircle at bottom */
.emergency-space {
	position: absolute;
	bottom: -3px;
	left: 50%;
	transform: translateX(-50%);
	width: 260px;
	height: 130px;
	background: linear-gradient(180deg, rgba(231, 76, 60, 0.95) 0%, rgba(192, 57, 43, 0.9) 100%);
	border-radius: 260px 260px 0 0;
	box-shadow:
		0 -8px 25px rgba(231, 76, 60, 0.35),
		inset 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 10;
	border: 2px solid rgba(220, 220, 220, 0.3);
	border-bottom: none;
}

/* ============================================
   FOOTER - REMOVED
   ============================================ */
.footer {
	display: none;
}

/* ============================================
   RESPONSIVE (For smaller screens)
   ============================================ */

@media (max-width: 1080px) {
	.kiosk-screen {
		width: 100vw;
		height: 100vh;
	}

	.greeting-logo {
		max-width: clamp(250px, 35vw, 350px);
	}

	.greeting-question {
		font-size: clamp(71px, 7vw, 80px);
	}

	.agent-wrapper {
		width: clamp(240px, 30vw, 320px);
		height: clamp(240px, 30vw, 320px);
	}

	.agent-wrapper::before {
		width: clamp(210px, 26vw, 280px);
		height: clamp(210px, 26vw, 280px);
	}

	.agent-wrapper::after {
		width: clamp(225px, 28vw, 300px);
		height: clamp(225px, 28vw, 300px);
	}

	.agent-image {
		width: clamp(220px, 28vw, 300px);
		height: clamp(220px, 28vw, 300px);
	}

	.microphone-button {
		width: clamp(76px, 12vw, 106px);
		height: clamp(76px, 12vw, 106px);
	}

	.microphone-button svg {
		width: clamp(36px, 6.5vw, 52px);
		height: clamp(36px, 6.5vw, 52px);
	}

	.window-container {
		width: clamp(800px, 90vw, 1000px);
		padding: clamp(35px, 4vw, 45px) clamp(45px, 5vw, 60px);
	}

	.action-cards-grid {
		gap: 5px;
	}

	.action-card {
		min-height: 200px;
	}

	.card-label {
		padding: 28px 12px 14px 12px;
	}

	.card-text-es {
		font-size: 16px;
	}

	.card-text-en {
		font-size: 11px;
	}

	.emergency-space {
		width: clamp(220px, 26vw, 280px);
		height: clamp(110px, 13vh, 140px);
	}

	.datetime-display {
		top: 15px;
		padding: 0 clamp(45px, 5vw, 60px);
	}

	.current-time {
		font-size: 24px;
	}

	.current-date {
		font-size: 24px;
	}
}

@media (max-height: 1600px) {
	.countdown-container {
		top: 80px;
	}

	.language-selector {
		top: 310px;
		padding: 12px 25px;
		gap: 18px;
	}

	.flag-button {
		width: 60px;
		height: 60px;
		font-size: 30px;
	}

	.flag-icon {
		width: 42px;
		height: 42px;
	}

	.main-content {
		padding: 25px 40px;
		gap: 25px;
		margin-top: 420px;
	}

	.left-section {
		gap: 25px;
	}

	.greeting-logo {
		max-width: 300px;
	}

	.greeting-question {
		font-size: 67px;
	}

	.agent-wrapper {
		width: 260px;
		height: 260px;
	}

	.agent-wrapper::before {
		width: 230px;
		height: 230px;
	}

	.agent-wrapper::after {
		width: 245px;
		height: 245px;
	}

	.agent-image {
		width: 240px;
		height: 240px;
	}

	.microphone-button {
		width: 120px;
		height: 120px;
	}

	.microphone-button svg {
		width: 60px;
		height: 60px;
	}

	.right-section {
		gap: 30px;
	}

	.window-container {
		width: 920px;
		padding: 40px 50px 30px 50px;
	}

	.action-cards-grid {
		gap: 20px;
	}

	.action-card {
		min-height: 180px;
	}

	.card-label {
		padding: 25px 10px 12px 10px;
	}

	.card-text-es {
		font-size: 15px;
	}

	.card-text-en {
		font-size: 10px;
	}

	.emergency-space {
		width: 250px;
		height: 125px;
	}

	.datetime-display {
		top: 18px;
		padding: 0 50px;
	}

	.current-time {
		font-size: 22px;
	}

	.current-date {
		font-size: 22px;
	}

}

/* Additional responsive for smaller screens */
@media (max-width: 900px) {
	.action-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.kiosk-screen {
		width: 100vw;
		height: 100vh;
	}

	.greeting-logo {
		max-width: clamp(250px, 35vw, 350px);
	}

	.greeting-question {
		font-size: clamp(71px, 7vw, 80px);
	}
}

@media (max-width: 600px) {
	.action-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.action-card {
		min-height: 180px;
	}
}

@media (max-width: 480px) {
	.web-modal-content {
		width: 100%;
		height: 100%;
	}

	.web-modal-iframe-container {
		border-radius: 0;
	}

	.web-modal-close {
		bottom: 10px;
		width: 48px;
		height: 48px;
	}

	.web-modal-close-top {
		top: 10px;
		right: 10px;
		width: 48px;
		height: 48px;
	}
}


/* Web Modal Styles */
.web-modal {
	position: fixed;
	top: 0px;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s;
	pointer-events: none;
}

.web-modal.active {
	pointer-events: auto;
	display: flex;
	opacity: 1;
	visibility: visible;
}

.web-modal.active .web-modal-backdrop {
	animation: fadeIn 0.4s ease;
}

.web-modal.active .web-modal-content {
	animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.web-modal.closing .web-modal-backdrop {
	animation: fadeOut 0.3s ease;
}

.web-modal.closing .web-modal-content {
	animation: scaleOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.web-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.98);
	z-index: 1;
	pointer-events: none;
}

.web-modal-content {
	position: relative;
	z-index: 2;
	width: 98%;
	height: 90%;
	max-width: 1600px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.web-modal-iframe-container {
	width: 96%;
	height: 85%;
	/* border-radius: 12px; */
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
	background-color: #fff;
}

.web-modal-iframe-container iframe {
	width: 100%;
	min-height: 100%;
	border: none;
	display: block;
}

.web-modal-close {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	background: #ff8300;
	border: 2px solid #b2b2b2;
	color: #fff;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 15px rgba(255, 131, 0, 0.4);
	z-index: 10;
}

.web-modal-close:hover {
	background: #ff9933;
	transform: translateX(-50%) scale(1.1);
	box-shadow: 0 6px 20px rgba(255, 131, 0, 0.6);
}

.web-modal-close:active {
	transform: translateX(-50%) scale(0.95);
	background: #e67400;
}

.web-modal-close-top {
	position: absolute;
	top: 60px;
	right: 5px;
	background: #ff8300;
	border: 2px solid #b2b2b2;
	color: #fff;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 15px rgba(255, 131, 0, 0.4);
	z-index: 11;
}

.web-modal-close-top:hover {
	background: #ff9933;
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(255, 131, 0, 0.6);
}

.web-modal-close-top:active {
	transform: scale(0.95);
	background: #e67400;
}

/* Buttons Container - for microphone and QR button */
.buttons-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

/* QR Agent Button */
.qr-agent-button {
	background: rgba(0, 0, 0, 0.7);
	border: 2px solid #ff8300;
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 131, 0, 0.4);
	position: relative;
}

.qr-agent-button:hover {
	background: rgba(255, 131, 0, 0.9);
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(255, 131, 0, 0.6);
}

.qr-agent-button:active {
	transform: scale(0.95);
}

/* Agent QR Modal */
.agent-qr-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.agent-qr-modal.active {
	display: flex;
}

.agent-qr-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.agent-qr-content {
	position: relative;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	border-radius: 20px;
	padding: 40px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	border: 2px solid #ff8300;
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.agent-qr-close {
	position: absolute;
	top: -15px;
	right: -15px;
	background: #ff8300;
	border: 2px solid #fff;
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 131, 0, 0.4);
	padding: 0;
}

.agent-qr-close:hover {
	background: #ff9933;
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(255, 131, 0, 0.6);
}

.agent-qr-close:active {
	transform: scale(0.95);
}

.agent-qr-body {
	text-align: center;
	color: white;
}

.agent-qr-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 30px;
	color: #ff8300;
	text-shadow: 0 2px 10px rgba(255, 131, 0, 0.3);
}

.agent-qr-code-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 30px 0;
	padding: 20px;
	background: white;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.agent-qr-code-container canvas,
.agent-qr-code-container img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.agent-qr-subtitle {
	font-size: 18px;
	color: #b2b2b2;
	margin-top: 20px;
	font-weight: 500;
}

/* ============================================
   720x1280 RESOLUTION (TOTEM VERTICAL)
   ============================================ */
@media (max-width: 720px) and (max-height: 1280px) {
	.kiosk-screen {
		width: 100vw;
		height: 100vh;
	}
	
	.kiosk-screen {
		background-size: cover;
	}

	/* Countdown */
	.countdown-container {
		top: 80px;
		padding: 6px 0 10px 0;
	}

	.countdown-header {
		font-size: 16px;
		margin-top: 4px;
		margin-bottom: 6px;
	}

	.countdown-number {
		font-size: 50px;
		letter-spacing: -2px;
	}

	.countdown-label {
		font-size: 12px;
	}

	.countdown-timer {
		gap: 25px;
	}

	/* Logo Jalisco */
	.logo-jalisco {
		max-width: 100px;
		top: 220px;
	}

	/* Language Selector */
	.language-selector {
		top: 215px;
		padding: 8px 14px;
		gap: 10px;
	}

	.flag-button {
		width: 40px;
		height: 40px;
		font-size: 20px;
		border-width: 2px;
	}

	.flag-icon {
		width: 28px;
		height: 28px;
	}

	/* Main Content */
	.main-content {
		margin-top: 280px;
		padding: 15px 25px 15px 25px;
		gap: 12px;
	}

	.greeting {
		margin-top: 30px;
	}

	/* Greeting */
	.greeting-logo {
		max-width: 180px;
	}

	.greeting-question {
		font-size: 48px;
		margin-top: -10px;
	}

	.greeting-text {
		font-size: 38px;
	}

	/* Agent */
	.left-section {
		gap: 10px;
	}

	.agent-wrapper {
        width: clamp(211px, 26.4vw, 282px);
        height: clamp(211px, 26.4vw, 282px);
    }

    .agent-wrapper::before {
        width: clamp(185px, 22.9vw, 246px);
        height: clamp(185px, 22.9vw, 246px);
    }
	
    .agent-wrapper::after {
        width: clamp(198px, 24.6vw, 264px);
        height: clamp(198px, 24.6vw, 264px);
    }

	.agent-image,
	.agent-video {
		width: 121px !important;
		height: 121px !important;
		max-width: 121px !important;
		max-height: 121px !important;
		object-fit: cover !important;
	}

	.overlay-title {
		font-size: 16px;
	}

	.overlay-subtitle {
		font-size: 8px;
	}

	/* Microphone Button */
	.microphone-button {
		width: 65px;
		height: 65px;
	}

	.microphone-button svg {
		width: 32px;
		height: 32px;
	}

	/* QR Agent Button */
	.qr-agent-button {
		width: 48px;
		height: 48px;
	}

	.buttons-container {
		gap: 18px;
	}

	/* Window Container */
	.window-container {
		width: clamp(800px, 90vw, 1000px);
		padding: clamp(35px, 4vw, 45px) clamp(45px, 5vw, 60px);
		min-height: 480px;
	}

	/* DateTime Display */
	.datetime-display {
		top: 15px;
		padding: 0 clamp(45px, 5vw, 60px);
	}

	.current-time,
	.current-date {
		font-size: 18px;
	}

	/* Action Cards Grid - 3x3 layout */
	.action-cards-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.action-card {
		min-height: 140px;
		border-radius: 10px;
	}

	.card-label {
		padding: 12px 5px 6px 5px;
		border-radius: 0 0 8px 8px;
	}

	.card-text-es {
		font-size: 8px;
		margin-bottom: 2px;
	}

	.card-text-en {
		font-size: 6px;
	}

	/* Emergency Space - space for button below */
	.emergency-space {
		display: none;
	}

	/* Agent QR Modal */
	.agent-qr-content {
		padding: 20px;
		max-width: 280px;
	}

	.agent-qr-title {
		font-size: 16px;
		margin-bottom: 15px;
	}

	.agent-qr-code-container {
		margin: 15px 0;
		padding: 12px;
	}

	.agent-qr-subtitle {
		font-size: 11px;
		margin-top: 12px;
	}

	.agent-qr-close {
		width: 30px;
		height: 30px;
		top: -8px;
		right: -8px;
	}
}

/* ============================================
   768x1366 RESOLUTION (VERTICAL TABLET/TOTEM)
   Must be at the end to override other queries
   ============================================ */
@media (min-width: 700px) and (max-width: 850px) and (min-height: 1200px) and (max-height: 1450px) {
	.kiosk-screen {
		background-size: cover;
	}

	/* Countdown - escala ~0.71 de 1080x1920 */
	.countdown-container {
		top: 80px;
		padding: 8px 0 13px 0;
	}

	.countdown-header {
		font-size: 19px;
		margin-top: 4px;
		margin-bottom: 8px;
		letter-spacing: 1.2px;
	}

	.countdown-number {
		font-size: 60px;
		letter-spacing: -2.4px;
	}

	.countdown-label {
		font-size: 14px;
	}

	.countdown-timer {
		gap: 32px;
	}

	.countdown-item {
		gap: 4px;
	}

	/* Logo Jalisco */
	.logo-jalisco {
		max-width: 100px;
		top: 242px;
	}

	/* Language Selector */
	.language-selector {
		top: 237px;
		left: 87%;
		padding: 11px 21px;
		gap: 14px;
		border-radius: 35px;
	}

	.flag-button {
		width: 50px;
		height: 50px;
		font-size: 26px;
		border-width: 2px;
	}

	.flag-icon {
		width: 36px;
		height: 36px;
	}

	/* Main Content */
	.main-content {
		margin-top: 334px;
		padding: 21px 36px 21px 36px;
		gap: 21px;
	}

	/* Left Section */
	.left-section {
		gap: 21px;
	}

	.greeting {
		margin-top: 0;
	}

	.greeting-logo {
		max-width: 249px;
	}

	.greeting-text {
		font-size: 39px;
	}

	.greeting-question {
		font-size: 50px;
		margin-top: -21px;
	}

	/* Agent */
	.agent-wrapper {
		width: 227px;
		height: 227px;
	}

	.agent-wrapper::before {
		width: 199px;
		height: 199px;
	}

	.agent-wrapper::after {
		width: 213px;
		height: 213px;
	}

	.agent-image,
	.agent-video {
		width: 213px;
		height: 213px;
	}

	.overlay-idle svg {
		width: 53px;
		height: 53px;
	}

	.overlay-title {
		font-size: 17px;
		margin-top: 11px;
	}

	.overlay-subtitle {
		font-size: 9px;
	}

	/* Buttons */
	.buttons-container {
		gap: 14px;
	}

	.microphone-button {
		width: 99px;
		height: 99px;
	}

	.microphone-button svg {
		width: 50px;
		height: 50px;
	}

	.qr-agent-button {
		width: 43px;
		height: 43px;
	}

	.qr-agent-button svg {
		width: 17px;
		height: 17px;
	}

	/* Right Section */
	.right-section {
		padding: 0 0 20px 0;
	}

	/* Window Container */
	.window-container {
		width: 95%;
		max-width: 710px;
		padding: 43px 20px 25px 20px;
		border-radius: 32px;
		min-height: 520px;
	}

	/* DateTime Display */
	.datetime-display {
		top: 14px;
		padding: 0 20px;
	}

	.current-time,
	.current-date {
		font-size: 17px;
		letter-spacing: 1.1px;
	}

	/* Action Cards Grid - MUST be 3 columns */
	.action-cards-grid {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: repeat(2, 1fr);
		gap: 21px;
		margin-top: 4px;
	}

	.action-card {
		min-height: 156px;
		border-radius: 14px;
	}

	.card-label {
		padding: 21px 9px 11px 9px;
		border-radius: 0 0 13px 13px;
	}

	.card-text-es {
		font-size: 12px;
		margin-bottom: 3px;
	}

	.card-text-en {
		font-size: 9px;
	}

	/* Emergency Space */
	.emergency-space {
		display: none;
	}

	/* Agent QR Modal */
	.agent-qr-content {
		padding: 28px;
		max-width: 355px;
	}

	.agent-qr-title {
		font-size: 20px;
		margin-bottom: 21px;
	}

	.agent-qr-code-container {
		margin: 21px 0;
		padding: 14px;
	}

	.agent-qr-subtitle {
		font-size: 13px;
		margin-top: 14px;
	}
}