/* Skin: Premium minimal (inspiración dashboard limpio) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
	--ui-bg: #F5F5F5;
	--ui-card: #FFFFFF;
	--ui-text: #1A1A1A;
	--ui-muted: #808080;
	--ui-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
	--ui-radius: 28px;
	--ui-pill-radius: 999px;
	--ui-pastel-green: #DFF7E8;
	/* menta */
	--ui-pastel-orange: #FFE9D6;
	/* naranja suave */
	--ui-trend-up: #34C759;
	/* verde tendencia */
	--ui-trend-down: #FF7D7D;
	/* coral suave */

	/* Typography Variables */
	--font-primary: 'DM Sans', system-ui, -apple-system, sans-serif;

	/* Header Variables */
	--header-bg-dark: #151515;
	--header-text-light: #F8FAFC;
}

/* MODERNO Y MINIMALISTA - Enterprise Typography */
body,
html {
	background: var(--ui-bg);
	font-family: var(--font-primary);
	font-size: 1.05rem;
	/* Slightly larger for better readability */
	color: var(--ui-text);
	font-weight: 400;
	/* Regular body text */
	line-height: 1.6;
	letter-spacing: -0.01em;
	/* Tighten slightly for DM Sans */
}

/* Heading Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	font-weight: 700;
	/* Bold for headings */
	letter-spacing: -0.02em;
	/* Tighter for display text */
	color: #111827;
	/* Darker slate/black for strong contrast */
}

h1 {
	font-weight: 800;
}

/* Extra Bold for main titles */
h2 {
	font-weight: 700;
}

/* DARK HEADER STYLES (MATCHING GREENLAKE) */
.header-saas {
	background-color: var(--header-bg-dark);
	height: var(--header-height);
	width: 100%;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
}

.nav-left {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.desktop-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.desktop-nav a {
	color: #94A3B8;
	/* Slate-400 for inactive */
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	padding: 8px 12px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.desktop-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.desktop-nav a.active {
	color: #fff;
	background: transparent;
	font-weight: 600;
}

.nav-separator {
	width: 1px;
	height: 24px;
	background-color: rgba(255, 255, 255, 0.15);
	margin: 0 8px;
}

/* Buttons in Header */
.action-btn-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: transparent;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.action-btn-circle:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
}

/* User Profile Trigger */
.profile-trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 8px;
	transition: background 0.2s;
}

.profile-trigger:hover {
	background: rgba(255, 255, 255, 0.08);
}

.user-info-text {
	text-align: right;
	display: flex;
	flex-direction: column;
}

.user-name {
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.2;
}

.user-role {
	color: #94A3B8;
	font-size: 0.75rem;
}

.user-avatar-circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Dropdowns adjust for dark header */
.dropdown-menu-saas {
	position: absolute;
	top: 120%;
	right: 0;
	width: 280px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	padding: 8px;
	z-index: 1100;
	animation: slideUp 0.2s ease-out;
	border: 1px solid #F1F5F9;
}

.btn-login-saas {
	background: #fff;
	color: #0F172A;
	padding: 8px 20px;
	border-radius: 99px;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 0.2s;
}

.btn-login-saas:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-toggle-saas {
	display: none;
	color: #fff;
	background: transparent;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
}

@media (max-width: 1024px) {

	.desktop-nav,
	.nav-separator {
		display: none;
	}

	.user-info-text {
		display: none;
	}

	.nav-toggle-saas {
		display: block;
	}
}

/* Mobile Navigation (Saas) */
.mobile-nav-saas {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background: #fff;
	z-index: 1050;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 24px;
	overflow-y: auto;
	display: block;
}

.mobile-nav-saas.active {
	transform: translateX(0);
}

.mobile-nav-content {
	max-width: 480px;
	margin: 0 auto;
}

.mobile-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mobile-links a {
	color: #1e293b;
	font-weight: 500;
	text-decoration: none;
	font-size: 1.05rem;
	padding: 12px 16px;
	border-radius: 12px;
	background: #f8fafc;
	transition: all 0.2s;
}

.mobile-links a:hover {
	background: #f1f5f9;
	color: var(--primary-color);
}

.mobile-user-info {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #f8fafc;
	border-radius: 16px;
	margin-bottom: 24px;
	border: 1px solid #e2e8f0;
}

.mobile-user-info .user-name {
	color: #0f172a;
	/* Black text for mobile menu */
	font-size: 1rem;
}

.mobile-user-info .user-role {
	color: #64748b;
}

/* Nav Overlay */
.nav-overlay {
	position: fixed;
	top: var(--header-height);
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1040;
	display: none;
	opacity: 0;
	transition: opacity 0.3s;
}

.nav-overlay.show {
	display: block;
	opacity: 1;
}

/* Login Button Aesthetic (Restored & Adapted) */
.btn-login-saas {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: transparent;
	color: #fff !important;
	/* White for dark header */
	font-weight: 500;
	text-decoration: none;
	position: relative;
	border: none;
	border-radius: 0;
	transition: color 0.3s ease;
}

.btn-login-saas::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: #00ffaa;
	/* Neon Green/Cyan */
	box-shadow: 0 0 8px #00ffaa;
	transition: width 0.3s ease;
}

.btn-login-saas:hover {
	background: transparent;
	transform: none;
	box-shadow: none;
	color: #fff !important;
}

.btn-login-saas:hover::after {
	width: 100%;
}

/* Loading overlay global */
.loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	display: none;
	/* se muestra via JS */
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.loading-box {
	background: #fff;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.loading-text {
	font-weight: 600;
	color: var(--primary-color);
}

.spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--primary-50);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.header,
.footer {
	border-radius: 0 0 24px 24px;
	box-shadow: var(--ui-shadow);
}

.navbar {
	border-radius: 20px;
	background: var(--ui-card);
	margin-bottom: 0.5rem;
	padding: 0.7rem 1.2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	/* permitir envolver items en pantallas angostas */
}

.nav-menu li a {
	border-radius: 8px;
	padding: 0.5em 1.1em;
	margin: 0 0.2em;
	transition: background 0.2s, color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li .btn-primary:hover,
.nav-menu li .btn-secondary:hover {
	background: var(--primary-50);
	color: var(--primary-color);
}

.dashboard-content,
.auth-main {
	background: var(--ui-bg);
	border-radius: 0;
	box-shadow: none;
	padding: calc(var(--header-height) + 12px) 0 40px 0;
	min-height: 72vh;
}

/* Medios responsivos por defecto */
img,
video {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

/* Ajustes generales por breakpoint */
@media (max-width: 1024px) {
	.container {
		padding: 0 16px;
	}
}

@media (max-width: 768px) {

	/* Navegación compacta en móvil */
	.nav-menu {
		flex-wrap: wrap;
		gap: 0.4rem;
		padding-top: 0.4rem;
	}

	.nav-menu li a {
		font-size: 0.95rem;
		padding: 0.45em 0.8em;
	}
}

.card,
.auth-card,
.contact-form {
	border-radius: var(--ui-radius);
	box-shadow: var(--ui-shadow);
	border: none;
	background: var(--ui-card);
	padding: 1.2rem 1.4rem;
}

.tickets-table {
	border-radius: var(--ui-radius);
	border: none;
	box-shadow: var(--ui-shadow);
	overflow: hidden;
	background: var(--ui-card);
}

.tickets-table th,
.tickets-table td {
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.tickets-table th {
	border-top: none;
}

.form-group input,
.form-group select,
.form-group textarea {
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	background: #FAFAFA;
	box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border: 1.5px solid var(--accent-color);
	background: #fff;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-logout {
	border-radius: 14px;
	box-shadow: var(--ui-shadow);
	border: none;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
	background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-color);
}

.btn-secondary {
	background: var(--ui-card);
	color: #333;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-primary {
	background: linear-gradient(180deg, #14B8A6 0%, #0E7C6F 100%);
	color: #fff;
}

.btn-primary:hover {
	filter: brightness(1.03);
	transform: translateY(-1px);
}

.btn-secondary:hover {
	background: rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
	background: var(--primary-50);
	color: var(--primary-color);
}

.btn-danger {
	background: #fff;
	color: #dc3545;
	border: 1.5px solid #dc3545;
}

.btn-danger:hover {
	background: #dc3545;
	color: #fff;
}

.btn-logout {
	background: #fff;
	color: #dc3545;
	border: 1.5px solid #dc3545;
}

/* Nuevos Estilos Premium */
.btn-success-premium {
	background: linear-gradient(135deg, var(--success-premium) 0%, var(--success-premium-dark) 100%);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 14px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-success-premium:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
	filter: brightness(1.05);
}

.btn-neutral-modern {
	background: #f8fafc;
	color: var(--neutral-modern);
	border: 1px solid #e2e8f0;
	padding: 10px 20px;
	border-radius: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-neutral-modern:hover {
	background: #f1f5f9;
	color: #334155;
	border-color: #cbd5e1;
}


/* Botones de acciones (beneficios, editar, eliminar) */
.btn-icon {
	background-color: #ffffff;
	/* Fondo blanco */
	border: 1px solid #dadada;
	/* Borde suave */
	border-radius: 6px;
	/* Esquinas redondeadas */
	color: var(--primary-color);
	/* Color del icono */
	font-size: 1.1rem;
	padding: 0.35rem 0.45rem;
	margin: 0 0.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
	background-color: #ffffff !important;
	border: 1px solid #dadada !important;
}

.btn-icon:hover {
	background-color: var(--primary-50);
	/* Ligera tonalidad verde al pasar el cursor */
	color: var(--primary-color);
	/* Oscurecer el icono */
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.btn-icon:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

.alert {
	border-radius: 10px;
	border: 1.5px solid #ffc107;
	box-shadow: 0 2px 8px rgba(255, 193, 7, 0.07);
}

/* DASHBOARDS Y SECCIONES */
.dashboard-content {
	padding-bottom: 60px;
	background: var(--ui-bg);
	min-height: 80vh;
}

.dashboard-content .card {
	border: 1px solid #eef2f7;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.dashboard-content h2,
.dashboard-content h3 {
	color: var(--ui-text);
	margin: 0 0 12px 0;
	font-weight: 700;
}

.stat-card {
	background: var(--ui-card);
	border-radius: 24px;
	box-shadow: var(--ui-shadow);
	padding: 16px 18px;
	margin-bottom: 16px;
	display: inline-block;
	min-width: 180px;
	text-align: center;
}

.stat-title {
	color: var(--ui-muted);
	font-weight: 600;
	margin-bottom: 6px;
}

.stat-value {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--ui-text);
}

/* TABLAS */
.tickets-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(9, 59, 53, 0.06);
	margin-bottom: 1.2rem;
}

.tickets-table th,
.tickets-table td {
	padding: 1rem 0.7rem;
	text-align: left;
}

.tickets-table th {
	background: var(--primary-color);
	color: #fff;
	font-weight: 700;
	border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.tickets-table tr:nth-child(even) {
	background: #f5f5f5;
}

.tickets-table tr:hover {
	background: var(--primary-50);
}

/* Tablas responsivas: se ocultan en favor de cards en tablets/móviles */
@media (max-width: 1024px) {
	.table-desktop-only {
		display: none;
	}

	.cards-mobile-only {
		display: block;
	}

	/* Utilidades de visibilidad */
	.desktop-only {
		display: none !important;
	}

	.mobile-only {
		display: block !important;
	}

	/* Tablas: permitir desplazamiento horizontal en pantallas angostas */
	.tickets-table,
	.details-table,
	table.table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-spacing: 0;
	}

	/* Mantener celdas legibles en scroll horizontal */
	.tickets-table tr,
	.details-table tr,
	.table tr {
		width: 100%;
	}
}

@media (min-width: 1025px) {
	.table-desktop-only {
		display: block;
	}

	.cards-mobile-only {
		display: none;
	}

	/* Utilidades de visibilidad */
	.desktop-only {
		display: block !important;
	}

	.mobile-only {
		display: none !important;
	}

	.tickets-table {
		display: table;
		overflow-x: visible;
	}
}

/* Listado de tickets (desktop) — clases para reemplazar estilos inline */
.ticket-table-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
	padding: 0 4px;
}

.tickets-head-row {
	text-align: left;
	background: #FAFAFA;
}

.ticket-list-card {
	margin: 12px 0 18px 0;
	overflow: hidden;
}

.ticket-row {
	background: var(--ui-card);
}

.cell-id {
	font-weight: 700;
}

.pending-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #374151;
}

.btn-claim {
	background: #e0f2fe;
	color: #0369a1;
	border: none;
	border-radius: 8px;
	padding: 8px;
	cursor: pointer;
}

.btn-delete {
	background: #fee2e2;
	color: #991b1b;
	border: none;
	border-radius: 8px;
	padding: 8px;
	cursor: pointer;
}

.badge-attention {
	background: var(--ui-pastel-orange);
	color: #7A4A00;
}

/* Badges de estado con paleta de marca */
.badge-state {
	display: inline-block;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	font-size: .9em;
	font-weight: 600;
}

.badge-state-abierto {
	background: var(--primary-50);
	color: var(--primary-color);
}

.badge-state-escalado {
	background: rgba(59, 130, 246, 0.12);
	color: #1d4ed8;
}

.badge-state-finalizado {
	background: rgba(0, 0, 0, 0.06);
	color: #374151;
}

.badge-state-prioridad {
	background: var(--ui-pastel-orange);
	color: #7A4A00;
}

/* Iconos de acción más finos */
.btn-icon {
	color: #374151;
}

.btn-icon:hover {
	color: var(--primary-color);
}

/* === Mobile Tickets Redesign (Mockup style) === */
.mobile-tickets-header {
	background: #fff;
	padding: 1rem;
	padding-bottom: 0.5rem;
	border-radius: 24px;
	box-shadow: var(--ui-shadow);
	border: 1px solid #f1f5f9;
}

/* === Desktop Tickets Controls (coherente con móvil) === */
.ticket-controls {
	background: #fff;
	padding: 1rem;
	padding-bottom: 0.75rem;
	border-radius: 24px;
	box-shadow: var(--ui-shadow);
	border: 1px solid #f1f5f9;
	margin-bottom: 1rem;
}

.ticket-controls .search-input-group {
	position: relative;
	background: #f8fafc;
	border-radius: 18px;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ticket-controls .search-input-group:focus-within {
	border: 1.5px solid var(--primary-color);
	box-shadow: 0 0 0 4px rgba(9, 59, 53, 0.08);
}

.ticket-controls .search-input-group input {
	border: none;
	background: transparent;
	width: 100%;
	font-size: 1rem;
	color: #1a1a1a;
	outline: none;
}

.ticket-controls .search-input-group i {
	color: #94a3b8;
}

.ticket-controls .ticket-filters-horizontal {
	display: flex;
	gap: 12px;
	padding-top: .75rem;
}

.ticket-search-wrapper {
	margin-bottom: 1.5rem;
}

.ticket-search-wrapper .search-input-group {
	position: relative;
	background: #f8fafc;
	border-radius: 18px;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ticket-search-wrapper .search-input-group:focus-within {
	border: 1.5px solid var(--primary-color);
	box-shadow: 0 0 0 4px rgba(9, 59, 53, 0.08);
}

.ticket-search-wrapper input {
	border: none;
	background: transparent;
	width: 100%;
	font-size: 1rem;
	color: #1a1a1a;
	outline: none;
}

.ticket-search-wrapper i {
	color: #94a3b8;
}

.tracking-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.2rem;
}

.tracking-header h2 {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
}

.tracking-header .see-all {
	color: #4f46e5;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.ticket-filters-horizontal {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 1rem;
	margin-bottom: 0.5rem;
	scrollbar-width: none;
	/* Hide scrollbar Firefox */
}

.ticket-filters-horizontal::-webkit-scrollbar {
	display: none;
	/* Hide scrollbar Chrome/Safari */
}

.filter-chip {
	padding: 10px 22px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 1rem;
	white-space: nowrap;
	border: 1px solid rgba(0, 0, 0, 0.08);
	cursor: pointer;
	background: #fff;
	color: #64748b;
	transition: all 0.2s ease;
}

.filter-chip.active {
	background: var(--primary-color);
	color: #fff;
	box-shadow: 0 4px 12px rgba(9, 59, 53, 0.15);
}

.filter-chip:hover {
	border-color: var(--accent-color);
	color: var(--primary-color);
	box-shadow: 0 2px 8px rgba(176, 200, 11, 0.2);
}

.ticket-card-mobile {
	background: #ffffff;
	border-radius: 24px;
	padding: 1.5rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	border: 1px solid #f1f5f9;
}

.ticket-card-mobile .card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.2rem;
}

.ticket-card-mobile .user-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ticket-card-mobile .user-avatar {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	object-fit: cover;
	background: #e2e8f0;
}

.ticket-card-mobile .user-text h4 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e293b;
}

.ticket-card-mobile .user-text p {
	margin: 2px 0 0 0;
	font-size: 0.95rem;
	color: #94a3b8;
	font-weight: 600;
}

.ticket-card-mobile .ticket-date {
	font-size: 0.9rem;
	color: #f59e0b;
	font-weight: 600;
}

.ticket-card-mobile .ticket-content {
	margin-bottom: 1.5rem;
}

.ticket-card-mobile .ticket-content p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.45;
	color: #64748b;
	font-weight: 500;
}

.ticket-card-mobile .card-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-bottom .status-group {
	display: flex;
	gap: 12px;
	align-items: center;
}

.badge-modern {
	padding: 8px 14px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.badge-priority-mid {
	background: #f0fdf4;
	color: #22c55e;
}

.badge-priority-high {
	background: #fef2f2;
	color: #ef4444;
}

.badge-status {
	background: #f1f5f9;
	color: #1e293b;
}

.badge-icon {
	font-size: 1rem;
}

.more-options {
	color: #1e293b;
	font-size: 1.25rem;
	padding: 4px;
}

.btn-ver-ticket {
	background: #f1f5f9;
	color: #1e293b;
	padding: 8px 16px;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-ver-ticket:hover {
	background: var(--primary-color);
	color: #fff;
	box-shadow: 0 4px 12px rgba(9, 59, 53, 0.15);
}

.btn-view-quick {
	background: var(--primary-50);
	color: var(--primary-color);
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	transition: background 0.2s;
}

.btn-view-quick:hover {
	background: var(--primary-color);
	color: #fff;
}

.badge {
	display: inline-block;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	font-size: 0.9em;
	font-weight: 600;
}

.badge-success {
	background: var(--ui-pastel-green);
	color: #057A2C;
}

.badge-warning {
	background: var(--ui-pastel-orange);
	color: #7A4A00;
}

.badge-danger {
	background: rgba(255, 125, 125, 0.18);
	color: var(--ui-trend-down);
}

.badge-muted {
	background: rgba(0, 0, 0, 0.05);
	color: #6b7280;
}

/* Sidebar minimal */
.app-sidebar {
	background: var(--ui-card);
	border-radius: 20px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
	padding: 24px 16px;
}

.sidebar-menu a {
	color: #3A3A3A;
	border: none;
	padding: 0.9rem 0.95rem;
	border-radius: 14px;
	font-weight: 500;
}

.sidebar-menu a.active {
	background: var(--ui-card);
	color: #111;
	box-shadow: var(--ui-shadow);
}

.sidebar-menu a:hover {
	background: rgba(0, 0, 0, 0.03);
}

.badge-count {
	display: inline-flex;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--ui-pastel-orange);
	color: #7A4A00;
	font-weight: 700;
}

/* Tipografía jerárquica */
h1,
h2,
h3,
h4 {
	color: var(--ui-text);
	font-weight: 600;
}

label,
.stat-title,
.text-muted,
small {
	color: var(--ui-muted) !important;
	font-weight: 500;
}

/* Tendencias */
.trend-up {
	color: var(--ui-trend-up) !important;
}

.trend-down {
	color: var(--ui-trend-down) !important;
}

/* Métricas y KPIs */
.metric-card {
	background: var(--ui-card);
	border: none;
	border-radius: var(--ui-radius);
	box-shadow: var(--ui-shadow);
	padding: 1rem 1.2rem;
}

.metric-card .metric-inner {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.metric-card .stat-value {
	font-size: 2rem;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.metric-card .stat-title {
	font-size: 0.95rem;
}

/* KPIs grid moderno */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 12px 0 20px;
}

.kpi-card {
	background: linear-gradient(180deg, #ffffff 0%, #FAFAFA 100%);
	border-radius: 24px;
	box-shadow: var(--ui-shadow);
	padding: 16px 18px;
	min-height: 92px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.kpi-title {
	color: var(--ui-muted);
	font-weight: 600;
	font-size: .95rem;
}

.kpi-value {
	font-weight: 800;
	font-size: 2.2rem;
	letter-spacing: -0.02em;
	color: var(--ui-text);
}

@media (max-width: 1024px) {
	.kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.kpi-grid {
		grid-template-columns: 1fr;
	}
}

/* Acciones rápidas segmentadas */
.quick-actions {
	background: transparent;
	box-shadow: none;
	border: 0;
	padding: 0;
}

.quick-actions h3 {
	margin: 0 0 .6rem 0;
}

.segmented-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	background: transparent;
	padding: 10px 0;
	border-radius: 0;
}

.qa-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: .6rem .9rem;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: var(--ui-card);
	color: #111;
	text-decoration: none;
	font-weight: 600;
}

.qa-btn.primary {
	background: #0F766E;
	color: #fff;
	border-color: transparent;
}

.qa-btn.primary i {
	color: #fff;
}

.qa-btn i {
	opacity: .9;
}

.qa-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--ui-shadow);
}

/* Analytics cards */
.analytics-card {
	padding: 1rem 1.25rem;
}

.analytics-card h4 {
	margin: 0 0 .8rem 0;
	font-weight: 700;
	color: #111;
}

/* Badges modernas contextualizadas */
.badge-modern {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--ui-pill-radius);
	font-weight: 600;
	font-size: 0.85rem;
	background: rgba(0, 0, 0, 0.05);
	color: #374151;
}

.badge-modern .badge-icon {
	opacity: 0.9;
}

.badge-modern.badge-status {
	background: rgba(59, 130, 246, 0.12);
	color: #1d4ed8;
}

.badge-modern[class*="badge-priority-"] {
	background: rgba(245, 158, 11, 0.14);
	color: #7A4A00;
}

/* Niveles (Premium) */
.badge-level {
	display: inline-block;
	padding: 0.65rem 1.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.badge-level::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.badge-level:hover::before {
	left: 100%;
}

.badge-level:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.badge-level.level-plata {
	background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
	border-color: #fff;
	color: #1f2937;
	box-shadow: 0 8px 20px rgba(192, 192, 192, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.badge-level.level-gold {
	background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
	border-color: #FFF8DC;
	color: #7A4A00;
	box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5), inset 0 1px 2px rgba(255, 255, 220, 0.8);
}

.badge-level.level-diamante {
	background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
	border-color: #bae6fd;
	color: #fff;
	box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5), inset 0 1px 2px rgba(186, 230, 253, 0.4);
}

/* Modales genéricos */
/* Duplicate modal styles removed */
.modal-card,
.modal-content,
.modal-content-modern {
	background: var(--ui-card);
	border-radius: var(--ui-radius);
	box-shadow: var(--ui-shadow);
	padding: 1.2rem 1.4rem;
	max-width: min(92vw, 720px);
	width: 100%;
}

.modal-title {
	margin: 0 0 .5rem 0;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--ui-text);
}

.modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 1rem;
}

.modal-close {
	background: transparent;
	border: none;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

/* Tablas genéricas */
table.table,
.tickets-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.table thead th,
.tickets-table thead th {
	background: #FAFAFA;
	color: #374151;
	font-weight: 600;
}

.table tbody tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.015);
}

.table thead th,
.table td,
.tickets-table th,
.tickets-table td {
	padding: 12px 14px;
}

/* Paginación moderna */
.pagination {
	display: flex;
	gap: 8px;
	align-items: center;
}

.pagination a,
.pagination span {
	display: inline-flex;
	min-width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border-radius: var(--ui-pill-radius);
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: var(--ui-card);
	color: #374151;
	text-decoration: none;
}

.pagination .active {
	background: #111;
	color: #fff;
	border-color: #111;
}

/* Responsivo básico */
@media (max-width: 768px) {

	.card,
	.auth-card,
	.contact-form,
	.metric-card {
		padding: 1rem;
		border-radius: 22px;
	}

	.app-sidebar {
		border-radius: 14px;
	}
}

/* Badge de nivel de cliente — estilo placa metálica */
.badge-level {
	--plate-bg: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 18%, #f9fafb 28%, #d1d5db 52%, #f3f4f6 74%, #e5e7eb 100%);
	--plate-border: #cbd5e1;
	--plate-shadow: rgba(2, 6, 23, 0.15);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 118px;
	padding: 0.4em 0.9em;
	border-radius: 10px;
	border: 1px solid var(--plate-border);
	text-transform: uppercase;
	font-weight: 900;
	font-size: 0.92em;
	letter-spacing: 0.6px;
	line-height: 1.1;

	/* Placa con tornillos: 4 radial-gradients por encima + fondo metálico */
	background-image:
		radial-gradient(circle at 12px 12px, #e5e7eb 0 4px, #9ca3af 4px 5px, transparent 6px),
		radial-gradient(circle at calc(100% - 12px) 12px, #e5e7eb 0 4px, #9ca3af 4px 5px, transparent 6px),
		radial-gradient(circle at 12px calc(100% - 12px), #e5e7eb 0 4px, #9ca3af 4px 5px, transparent 6px),
		radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #e5e7eb 0 4px, #9ca3af 4px 5px, transparent 6px),
		var(--plate-bg);
	background-repeat: no-repeat;
	background-size: 100% 100%;

	/* Bisel y relieve */
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.6),
		inset 0 -1px 0 rgba(0, 0, 0, 0.08),
		0 6px 16px var(--plate-shadow);
}

/* Variantes por nivel: plata, oro, diamante */
.level-plata {
	--plate-bg: linear-gradient(145deg,
			#f9fafb 0%, #e5e7eb 16%, #ffffff 28%, #d1d5db 52%, #eef2f7 74%, #e5e7eb 100%);
	--plate-border: #c7cfd8;
	color: #1f2937;
}

.level-gold {
	--plate-bg: linear-gradient(145deg,
			#fff7e6 0%, #ffe8a3 16%, #fffbec 28%, #f1c069 48%, #ffd37a 68%, #ffecb3 86%, #ffd37a 100%);
	--plate-border: #f1c27d;
	color: #7a4500;
}

.level-diamante {
	--plate-bg: linear-gradient(145deg,
			#f0f9ff 0%, #dbeafe 16%, #f8fbff 28%, #93c5fd 50%, #dbeafe 72%, #bfdbfe 100%);
	--plate-border: #9bbcf7;
	color: #0b3a6e;
}

/* FORMULARIOS */
.auth-form,
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.form-group label {
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
	padding: 0.7em 1em;
	border: 1px solid var(--primary-50);
	border-radius: 8px;
	font-size: 1em;
	background: var(--primary-50);
	color: #1a1a1a;
	transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border: 1.5px solid var(--primary-color);
	outline: none;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-logout {
	display: inline-block;
	padding: 0.7em 1.5em;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1em;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.btn-primary.is-loading,
.btn-secondary.is-loading,
.btn-danger.is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.85;
}

.btn-spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	margin-right: 0.5em;
	vertical-align: -2px;
	animation: spin 0.9s linear infinite;
}

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

.btn-primary:hover {
	background: var(--primary-color);
}

.btn-secondary {
	background: var(--accent-color);
	color: #fff;
}

.btn-secondary:hover {
	background: var(--primary-color);
}

.btn-danger {
	background: #dc3545;
	color: #fff;
}

.btn-danger:hover {
	background: #a71d2a;
}

.btn-logout {
	background: #fff;
	color: #dc3545;
	border: 1.5px solid #dc3545;
}

.btn-logout:hover {
	background: #dc3545;
	color: #fff;
}

/* ===== Contact form moderno ===== */
.contact-modern {
	border: 1px solid #eef2f7;
}

.contact-modern .contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.contact-modern .form-group {
	display: flex;
	flex-direction: column;
}

.contact-modern .form-group label {
	font-weight: 700;
	color: #111827;
	margin-bottom: 6px;
}

.contact-modern input[type="text"],
.contact-modern input[type="email"],
.contact-modern select,
.contact-modern textarea {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	font-size: 1rem;
}

.contact-modern input:focus,
.contact-modern select:focus,
.contact-modern textarea:focus {
	outline: none;
	border-color: #C0D40F;
	box-shadow: 0 0 0 3px rgba(176, 200, 11, 0.15);
}

.contact-modern textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-modern .form-group-span-2 {
	grid-column: span 2;
}

.contact-modern .contact-consent {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: #4b5563;
	margin-top: 8px;
}

.contact-modern .contact-consent a {
	color: var(--primary-color);
	text-decoration: underline;
}

@media (max-width: 700px) {
	.contact-modern .contact-grid {
		grid-template-columns: 1fr;
	}

	.contact-modern .form-group-span-2 {
		grid-column: span 1;
	}
}

/* ===== Selects modernos (estilo unificado) ===== */
/* Quitar estilizado nativo y agregar flecha SVG, con foco claro y padding cómodo */
/* Aplicar a selects únicos (no multiple) en formularios generales, status y canned */
select:not([multiple]),
.form-group select:not([multiple]),
.status-select:not([multiple]),
.canned-select:not([multiple]) {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 0.6em 2.4em 0.6em 1em;
	border-radius: 10px;
	border: 1.5px solid var(--primary-50);
	background-clip: padding-box;
	/* Mantener el fondo que ya tengan (var(--primary-50) o blanco) y añadir flecha */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	font-family: 'Poppins', Arial, sans-serif;
}

/* Hover y focus con anillo accesible */
select:not([multiple]):hover,
.form-group select:not([multiple]):hover,
.status-select:not([multiple]):hover,
.canned-select:not([multiple]):hover {
	border-color: var(--accent-color);
}

select:not([multiple]):focus,
.form-group select:not([multiple]):focus,
.status-select:not([multiple]):focus,
.canned-select:not([multiple]):focus {
	border-color: var(--accent-color);
	outline: none;
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(176, 200, 11, 0.20);
}

/* Deshabilitado */
select:disabled,
.form-group select:disabled,
.status-select:disabled,
.canned-select:disabled {
	opacity: 0.75;
	cursor: not-allowed;
}

/* Tamaños opcionales */
.select-sm {
	padding: 0.45em 2.1em 0.45em 0.9em !important;
	font-size: 0.95rem;
}

.select-lg {
	padding: 0.8em 2.6em 0.8em 1.1em !important;
	font-size: 1.05rem;
}

/* Compatibilidad: en algunos navegadores el checkbox/arrow nativo persiste; ocultarlo */
select::-ms-expand {
	display: none;
}

@supports (-moz-appearance: none) {
	select {
		-moz-appearance: none;
		appearance: none;
	}
}

/* ===== Login moderno (split) ===== */
.auth-split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 1.4rem;
	align-items: stretch;
	min-height: calc(100vh - var(--header-height) - 40px);
}

@media (max-width: 980px) {
	.auth-split {
		grid-template-columns: 1fr;
	}
}

.auth-left {
	display: flex;
	align-items: center;
}

.auth-right {
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-illustration {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: calc(100vh - var(--header-height) - 40px);
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, #eff6ff, #ffffff);
	border-radius: 16px;
	box-shadow: inset 0 0 0 1px #eef2f7;
	overflow: hidden;
}

.auth-illustration img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.auth-card-modern {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
	padding: 1.4rem 1.6rem;
}

.auth-title {
	margin: 0 0 0.2rem 0;
	color: var(--primary-color);
	font-size: 1.8rem;
	font-weight: 900;
}

.auth-subtitle {
	color: #6b7280;
	margin-bottom: 0.8rem;
}

/* Tabs se han eliminado en la vista actual; estilos conservados por compatibilidad si se reactivan */
.auth-form-modern {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.auth-form-modern .input-label {
	font-weight: 800;
	color: #111827;
	margin-top: 0.2rem;
}

.input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 10px 12px;
	position: relative;
}

.input-wrap input {
	border: none;
	outline: none;
	width: 100%;
	font-size: 1rem;
	padding-right: 35px;
	/* Espacio para el ojito u otros iconos a la derecha */
}

.input-wrap i {
	color: #6b7280;
}

.input-wrap .state {
	color: #10b981;
}

.auth-submit {
	width: 100%;
	margin-top: 10px;
	padding: 0.9rem 1.2rem;
	font-size: 1rem;
	border-radius: 12px;
}

/* Se removieron las redes sociales del login */

/* TARJETAS */
.btn-icon {
	background-color: var(--white);
	/* Fondo blanco */
	border: 1px solid #dadada;
	/* Borde suave */
	border-radius: 6px;
	/* Esquinas redondeadas */
	color: var(--primary-color);
	/* Color del icono */
	font-size: 1.1rem;
	padding: 0.35rem 0.45rem;
	margin: 0 0.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
	background-color: var(--white) !important;
	border: 1px solid #dadada !important;
}

.btn-icon:hover {
	background-color: var(--primary-50);
	/* Ligera tonalidad verde al pasar el cursor */
	color: var(--primary-color);
	/* Oscurecer el icono */
	box-shadow: 0 0 0 3px rgba(9, 59, 53, 0.12);
}


.btn-icon:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(9, 59, 53, 0.3);
}

/* RESET Y VARIABLES */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #093B35;
	/* dark green */
	--secondary-color: #093B35;
	--accent-color: #B0C80B;
	/* lime green */
	/* Paleta específica de Beneficios (según referencia) */
	--benefits-bg: #0C2529;
	--benefits-lime: #D1EF00;
	/* light tints */
	--primary-50: #eaf4ef;
	/* very light green */
	--accent-50: #f6f9d9;
	/* very light lime */
	--header-height: 80px;
	/* altura aproximada del header sticky */
	--admin-sidebar-width: 220px;
	--admin-sidebar-left: 16px;
	--admin-sidebar-gap: 24px;
	--admin-sidebar-collapsed-width: 56px;
	--text-dark: #1a1a1a;
	--text-light: #666;
	--bg-light: #f5f5f5;
	--white: #ffffff;
	--success: #28a745;
	--success-premium: #22c55e;
	--success-premium-dark: #16a34a;
	--warning: #ffc107;
	--danger: #dc3545;
	--neutral-modern: #64748b;
	--border-radius: 8px;
	--transition: all 0.3s ease;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: var(--text-dark);
	line-height: 1.6;
	background-color: var(--ui-bg);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* HEADER Y NAVEGACIÓN */
.header {
	background-color: var(--white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Asegurar que el footer quede siempre por encima del sidebar si llegaran a cruzarse visualmente */
.footer {
	position: static;
	z-index: auto;
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	flex-wrap: wrap;
	/* permitir envolver el menú en pantallas angostas */
}

.logo img {
	/* Limitar altura máxima del logo para que no sea demasiado grande */
	max-height: 50px;
	height: auto;
	font-size: 1.8rem;
	letter-spacing: 2px;
	background: transparent;
}

/* Contenedor del menú principal */
.nav-menu {
	display: flex;
	align-items: center;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 680px) {
	.nav-menu {
		gap: 0.5rem
	}
}

/* Estilos particulares para el logo en el header */
.logo-header {
	max-height: 50px;
	/* altura máxima deseada */
	height: auto;
	width: auto;
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
	display: inline-block;
}

@media (max-width: 480px) {

	.logo img,
	.logo-header {
		max-height: 48px;
	}
}

/* Botón destacado para iniciar sesión (visitantes) */
.nav-menu .login-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.55em 1.1em;
	border-radius: 999px;
	border: 2px solid var(--accent-color);
	background: #fff;
	color: var(--primary-color);
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0.2px;
	box-shadow: 0 6px 14px rgba(176, 200, 11, 0.15);
	transition: transform 100ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-menu .login-btn .user-icon {
	font-size: 1.25rem;
	margin-right: 2px;
}

.nav-menu .login-btn:hover {
	background: var(--accent-color);
	color: #111827;
	transform: scale(0.98);
	box-shadow: 0 8px 18px rgba(176, 200, 11, 0.25);
}

.nav-menu .login-btn:active {
	transform: scale(0.96);
}

/* Chip de saludo para usuarios autenticados */
.greeting-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.45em 0.9em;
	border-radius: 999px;
	background: var(--primary-50);
	color: var(--primary-color);
	font-weight: 700;
}

/* Botón de cerrar sesión con icono de encendido */
.logout-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 2px solid #dc3545;
	background: #fff;
	color: #dc3545;
	cursor: pointer;
	box-shadow: 0 6px 12px rgba(220, 53, 69, 0.12);
	transition: transform 100ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.logout-icon-btn:hover {
	background: #dc3545;
	color: #fff;
	transform: scale(0.98);
	box-shadow: 0 8px 18px rgba(220, 53, 69, 0.25);
}

.logout-icon-btn:active {
	transform: scale(0.96);
}

/* Modal genérico */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	backdrop-filter: blur(2px);
}

.modal-overlay.show {
	display: flex !important;
	/* Permitir interacción solo con la tarjeta del modal */
	pointer-events: none;
}

.modal-card {
	background: #fff;
	border-radius: 14px;
	width: min(92vw, 420px);
	padding: 1.1rem 1.2rem;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
	border: 1px solid #eef2f7;
	position: relative;
	z-index: 10001;
	/* Asegurar que sí reciba eventos de click aunque el overlay no los acepte */
	pointer-events: auto;
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 8px;
	background: var(--accent-color);
	color: #111827;
	font-weight: 800;
	cursor: pointer;
}

.modal-title {
	margin: 0 0 0.4rem 0;
	color: var(--primary-color);
	font-weight: 800;
	font-size: 1.2rem;
}

.modal-text {
	color: #4b5563;
	margin-bottom: 0.9rem;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
}


/* ===== Ajustes de layout para Admin (espacios y márgenes) ===== */
.admin-content-wrapper {
	/* márgenes gestionados por .dashboard-content para evitar duplicación */
	margin-left: 0;
	margin-right: 0;
	padding: 20px 18px;
	box-sizing: border-box;
	min-height: calc(100vh - 120px);
}

/* Dentro del área admin, la .container debe usar el ancho disponible y centrar el contenido principal */
.admin-content-wrapper .container {
	max-width: 1100px;
	/* mantener contenido compacto */
	margin: 0 auto;
	padding: 0;
	/* padding manejado por admin-content-wrapper */
}

/* Asegurar que las tarjetas principales no se expandan a toda la pantalla */
.admin-content-wrapper .card {
	max-width: 980px;
	margin: 0 auto 1.2rem auto;
	padding: 1.1rem;
}

/* Profile card layout */
.profile-card {
	padding: 1.2rem;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 1rem;
	align-items: start;
}

.profile-avatar {
	text-align: center
}

.profile-avatar img,
.profile-avatar .initial {
	width: 140px;
	height: 140px;
	border-radius: 999px;
	object-fit: cover;
	display: inline-block;
}

.profile-avatar .initial {
	background: #f0f4f2;
	color: #175a3a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem
}

.profile-info h3 {
	color: var(--primary-color);
	margin-bottom: 0.6rem
}

.profile-info .muted {
	color: #777;
	font-weight: 600
}



/* Mejorar la legibilidad de tablas en admin */
.tickets-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.tickets-table th,
.tickets-table td {
	padding: 10px 14px;
	line-height: 1.25;
}

/* SIDEBAR (green theme) */
.app-sidebar {
	position: fixed;
	left: var(--admin-sidebar-left);
	top: calc(var(--header-height) + 64px);
	width: var(--admin-sidebar-width);
	box-sizing: border-box;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 8px;
	z-index: 1400;
	transition: width 220ms ease, padding 220ms ease;
}

.app-sidebar .logo-header {
	max-height: 36px;
	display: block;
	margin: 0 auto 12px;
}

/* Header de sidebar: Company + Toggle */
.sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	margin-bottom: 10px;
}

.company-block {
	display: flex;
	align-items: center;
	gap: 10px;
}

.company-logo {
	height: 28px;
	width: auto;
	display: block;
}

.company-name {
	display: none;
}

.sidebar-collapse-btn {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	cursor: pointer;
}

.sidebar-collapse-btn:hover {
	background: #f3f4f6;
}

/* Sidebar User Profile Section */
.sidebar-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	margin-bottom: 1.5rem;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #f1f5f9;
	position: relative;
}

.sidebar-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	background: #fff;
}

.sidebar-user-info {
	flex: 1;
	min-width: 0;
}

.sidebar-user-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--primary-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-user-role {
	font-size: 0.75rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	font-weight: 600;
}

.app-sidebar.collapsed .sidebar-user {
	padding: 6px;
	justify-content: center;
	background: transparent;
	border: none;
}

.app-sidebar.collapsed .sidebar-avatar {
	width: 36px;
	height: 36px;
	margin: 0;
}

.sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-menu .sidebar-item {
	margin: 4px 0;
}

.sidebar-menu .nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #0f172a;
	text-decoration: none;
	padding: 13px 16px;
	border-radius: 12px;
	font-weight: 600;
	line-height: 1.2;
	position: relative;
}

.sidebar-menu .nav-link i {
	width: 20px;
	text-align: center;
	color: #64748b;
}

.sidebar-menu .nav-link:hover {
	background: #f8fafc;
}

.sidebar-menu .sidebar-item.active .nav-link {
	background: #f3f4f6;
}

.sidebar-menu .sidebar-item.active .nav-link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 3px;
	background: #c7e0ff;
	border-radius: 3px;
}

.sidebar-menu.apps .nav-link {
	color: #334155;
}

.apps-section-title {
	display: none;
}

/* Submenús basados en ruta */
.route-submenu {
	list-style: none;
	padding: 6px 0 6px 28px;
	margin: 0 0 6px 0;
}

.route-submenu .submenu-link {
	display: block;
	color: #475569;
	text-decoration: none;
	padding: 6px 8px;
	border-radius: 8px;
	font-weight: 600;
	font-size: .92rem;
}

.route-submenu .submenu-link:hover {
	background: #f8fafc;
}

/* Footer del sidebar */
.sidebar-footer {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #eef2f7;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sidebar-footer .footer-link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #64748b;
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 10px;
	font-weight: 600;
}

.sidebar-footer .footer-link:hover {
	background: #f8fafc;
	color: #0f172a;
}

.sidebar-footer .footer-link i {
	width: 20px;
	text-align: center;
}

.app-sidebar.collapsed .sidebar-footer .footer-link span {
	display: none !important;
}

@media (max-width:1024px) {
	.app-sidebar {
		display: none !important;
	}
}

/* Collapsed sidebar styles */
.app-sidebar.collapsed {
	width: 56px;
	padding: 8px 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.app-sidebar.collapsed .nav-text,
.app-sidebar.collapsed .apps-section-title,
.app-sidebar.collapsed .route-submenu,
.app-sidebar.collapsed .company-name {
	display: none !important;
}

.app-sidebar.collapsed .company-logo {
	display: none !important;
}

.app-sidebar.collapsed .sidebar-header {
	padding: 4px 6px;
}

.app-sidebar.collapsed .sidebar-collapse-btn i {
	transform: rotate(180deg);
}

.app-sidebar.collapsed .logo-header {
	max-height: 28px;
	margin-bottom: 0.5rem;
}

/* Toggle adjunto al sidebar (se mueve con él) */
/* El botón flotante previo se elimina en favor del header toggle */

/* Ocultar elementos en colapsado */
body.sidebar-collapsed .sidebar-user-info,
body.sidebar-collapsed .small-logout {
	display: none !important;
}


.app-sidebar .sidebar-controls .btn-icon {
	background: var(--bg-light);
	border: 1px solid #e6e6e6
}

.sidebar-menu a.nav-link.active {
	background: #f1f5f9;
	color: #0f172a
}

.sidebar-menu a.nav-link.active i {
	color: #64748b;
}

/* Hover animations for menu items */
.sidebar-menu a {
	transition: background 180ms ease, color 180ms ease, transform 160ms ease
}

.sidebar-menu a:hover {
	transform: translateX(4px);
	box-shadow: 0 6px 18px rgba(9, 59, 53, 0.06)
}

/* Sidebar en móvil: ocultar y mover enlaces al menú principal */
@media (max-width: 1024px) {
	.app-sidebar {
		display: none !important;
	}
}

/* Adjust content when sidebar is present or collapsed */
/* Si hay sidebar (usuario autenticado) aplicamos márgenes específicos */
/* neutralizar offsets en admin-content-wrapper; se aplican en .dashboard-content */
/* Eliminado !important para permitir que los offsets de .dashboard-content apliquen correctamente */
/* body.has-sidebar.sidebar-collapsed .admin-content-wrapper { margin-left: 0; margin-right: 0; } */
/* body.has-sidebar:not(.sidebar-collapsed) .admin-content-wrapper { margin-left: 0; margin-right: 0; } */

/* Aplicar el mismo margen a TODOS los dashboards, no solo a vistas con admin-content-wrapper */
body.has-sidebar.sidebar-collapsed .dashboard-content {
	margin-left: calc(var(--admin-sidebar-left) + var(--admin-sidebar-collapsed-width) + var(--admin-sidebar-gap));
	margin-right: 24px;
}

body.has-sidebar:not(.sidebar-collapsed) .dashboard-content {
	margin-left: calc(var(--admin-sidebar-left) + var(--admin-sidebar-width) + var(--admin-sidebar-gap) + 20px);
	margin-right: 24px;
}

body.has-sidebar .dashboard-content .container {
	padding-left: 8px;
	padding-right: 8px;
}

/* Asegurar que combinaciones como main.dashboard-content.admin-content-wrapper (perfil, etc.)
	 también reciban el mismo offset y no queden debajo del sidebar */
body.has-sidebar.sidebar-collapsed main.dashboard-content.admin-content-wrapper {
	margin-left: calc(var(--admin-sidebar-left) + var(--admin-sidebar-collapsed-width) + var(--admin-sidebar-gap));
	margin-right: 24px;
}

body.has-sidebar:not(.sidebar-collapsed) main.dashboard-content.admin-content-wrapper {
	margin-left: calc(var(--admin-sidebar-left) + var(--admin-sidebar-width) + var(--admin-sidebar-gap) + 20px);
	margin-right: 24px;
}

/* En pantallas pequeñas, eliminar offsets de sidebar para evitar desbordes */
@media (max-width: 900px) {

	body.has-sidebar .dashboard-content,
	body.has-sidebar.sidebar-collapsed .dashboard-content,
	body.has-sidebar:not(.sidebar-collapsed) .dashboard-content,
	body.has-sidebar .container,
	body.has-sidebar.sidebar-collapsed .container,
	body.has-sidebar:not(.sidebar-collapsed) .container,
	body.has-sidebar.sidebar-collapsed main.dashboard-content.admin-content-wrapper,
	body.has-sidebar:not(.sidebar-collapsed) main.dashboard-content.admin-content-wrapper {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	body.has-sidebar .footer,
	body.has-sidebar.sidebar-collapsed .footer,
	body.has-sidebar:not(.sidebar-collapsed) .footer {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* ===== Editar perfil (UI específica) ===== */
.profile-edit-card {
	padding: 1.2rem;
}

.profile-edit-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 1.2rem;
	align-items: start;
}

.profile-edit-card .form-group {
	margin-bottom: 0.9rem;
}

.profile-edit-card .form-group label {
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.35rem;
	display: block;
}

.profile-edit-card .form-group input,
.profile-edit-card .form-group select,
.profile-edit-card .form-group textarea {
	width: 100%;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	box-shadow: none;
}

.profile-edit-card .form-group input:focus,
.profile-edit-card .form-group select:focus,
.profile-edit-card .profile-edit-card .form-group textarea:focus {
	border-color: var(--accent-color);
	outline: none;
	background: #fff;
}

.profile-edit-card .form-group textarea {
	min-height: 110px;
	resize: vertical;
}

.profile-edit-card .avatar-preview {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.profile-edit-card .avatar-preview img {
	width: 120px;
	height: 120px;
	border-radius: 999px;
	object-fit: cover;
	border: 1px solid #e5e7eb;
}

.profile-edit-card .help {
	font-size: 0.9rem;
	color: #6b7280;
}

.profile-edit-card .form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 1rem;
}

@media (max-width: 900px) {
	.profile-edit-grid {
		grid-template-columns: 1fr;
	}
}

/* Botones de acción universales - Solo Icono */
.btn-primary.btn-icon-only,
.btn-secondary.btn-icon-only {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
	padding: 0 !important;
	border-radius: 12px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
	aspect-ratio: 1/1;
}

/* Estilo específico del botón icon-only en verde brand */
.btn-primary.btn-icon-only {
	background: var(--primary-color) !important;
	color: #fff !important;
	border: none !important;
}

.btn-primary.btn-icon-only:hover {
	filter: brightness(1.05);
	box-shadow: 0 4px 12px rgba(9, 59, 53, 0.15);
}

.btn-primary.btn-icon-only i,
.btn-secondary.btn-icon-only i {
	margin: 0 !important;
	line-height: 1;
}

/* Asegurar alineación vertical perfecta en escritorio */
.admin-content-wrapper .flex.items-center.justify-between.mb-4 {
	align-items: center !important;
	display: flex !important;
}

/* Formularios y botones más cómodos en móvil */
@media (max-width: 600px) {

	.btn-primary:not(.btn-icon-only),
	.btn-secondary:not(.btn-icon-only),
	.btn-danger:not(.btn-icon-only),
	.btn-logout {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.form-group input,
	.form-group select,
	.form-group textarea {
		font-size: 0.98rem;
	}

	/* Ajustes de títulos en móvil */
	h2.text-2xl {
		font-size: 1.5rem !important;
		line-height: 1.2;
		margin-bottom: 0.5rem;
	}

	/* Cabeceras de panel: apilar título y botones en móvil */
	.admin-content-wrapper .flex.items-center.justify-between.mb-4 {
		flex-direction: column;
		align-items: stretch !important;
		gap: 0.75rem;
	}

	.flex.items-center.justify-between.mb-4 .flex {
		flex-wrap: wrap;
		gap: 0.5rem;
		justify-content: center;
	}

	/* Reducir padding en tablas para ganar espacio */
	.details-table tbody td,
	table td,
	table th {
		padding: 8px 10px !important;
		font-size: 0.85rem;
	}
}

/* Evitar superposición del sidebar con el footer: desplazar footer horizontalmente cuando hay sidebar */
body.has-sidebar.sidebar-collapsed .footer {
	margin-left: calc(var(--admin-sidebar-left) + var(--admin-sidebar-collapsed-width) + var(--admin-sidebar-gap));
	margin-right: 24px;
}

body.has-sidebar:not(.sidebar-collapsed) .footer {
	margin-left: calc(var(--admin-sidebar-left) + var(--admin-sidebar-width) + var(--admin-sidebar-gap) + 12px);
	margin-right: 24px;
}

/* Right column on profile: activity and recent tickets */
.profile-right {
	background: transparent;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.profile-right .mini-card {
	background: #fff;
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}




/* Banner global de notificaciones (success / error) */
.global-banner {
	display: none;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	top: 12px;
	z-index: 99999;
	padding: 0.7rem 1rem;
	border-radius: 6px;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.global-banner.success {
	background: #2d9f6b;
}

.global-banner.error {
	background: #e04b4b;
}

.global-banner .banner-message {
	flex: 1;
}

.global-banner .close-banner {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 700;
	cursor: pointer;
	font-size: 1rem;
}

/* Toast con barra de progreso para operaciones AJAX */
.toast {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 99999;
	background: #111827;
	color: #fff;
	padding: 12px 14px;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	min-width: 260px;
}

.toast.success {
	background: #166534;
}

.toast.error {
	background: #b91c1c;
}

.toast .toast-title {
	font-weight: 800;
	margin-bottom: 4px;
}

.toast .toast-progress {
	height: 4px;
	width: 100%;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 8px;
}

.toast .toast-progress .bar {
	height: 100%;
	width: 0%;
	background: #fff;
	transition: width 0.25s ease;
}

/* Errores de validación en formularios */
.field-error {
	color: #dc3545;
	font-size: 0.9rem;
	margin-top: 4px;
}

/* Separaciones verticales más cómodas */
.dashboard-content h2,
.dashboard-content h3 {
	margin-bottom: 0.8rem;
}

.dashboard-content .btn-primary {
	margin-bottom: 1rem;
}

/* Dashboard admin: estadísticas y métricas */
.dashboard-stats {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.6rem;
}

.dashboard-stats .stat-card {
	flex: 1 1 180px;
	min-width: 160px;
}

.metrics-section {
	background: transparent;
	padding: 0.6rem 0 0 0;
	margin-top: 0.6rem;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	align-items: stretch;
	margin-top: 0.8rem;
}

@media (max-width: 600px) {
	.metrics-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.metric-card .stat-value {
		font-size: 1.8rem;
	}

	.metric-card {
		padding: 12px;
	}
}

.metric-card {
	border-radius: 12px;
	padding: 0.6rem;
	box-shadow: 0 4px 18px rgba(2, 6, 23, 0.04);
	display: flex;
	align-items: center;
}

.metric-inner {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	width: 100%;
	flex-direction: column;
}

.metric-card .stat-value {
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--primary-color);
	line-height: 1;
}

.metric-card .stat-title {
	color: var(--text-dark);
	font-weight: 700;
	font-size: 0.95rem;
	margin-top: 0.25rem;
}

.metric-success {
	background: #eaf8e9;
}

.metric-warning {
	background: #fffbe6;
}

.metric-info {
	background: var(--primary-50);
}

.metric-danger {
	background: #fcebea;
}

@media (max-width: 900px) {
	.metrics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.metrics-grid {
		grid-template-columns: 1fr !important;
		gap: 0.75rem;
	}

	.metric-card .stat-value {
		font-size: 1.8rem !important;
	}

	.metric-card {
		padding: 12px;
	}
}

/* Hero principal: dos columnas, texto a la izquierda y imagen a la derecha */
.hero {
	background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%),
		url('https://images.unsplash.com/photo-1560264357-8d9766a24464?q=80&w=2070&auto=format&fit=crop');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	color: #fff;
	padding: 80px 0 60px 0;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.15), transparent 60%);
	pointer-events: none;
}

.hero-container {
	display: grid;
	grid-template-columns: 1fr 520px;
	gap: 2rem;
	align-items: center;
}

.hero-left {
	padding: 40px 0;
}

.hero-title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.1;
}

.hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: 1.8rem;
	color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
	/* Apariencia tipo "chip" blanca con texto fuerte */
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	position: relative;
	color: #111827;
	background: #ffffff;
	border-radius: 999px;
	padding: 1.1rem 2rem 1.1rem 2rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Círculo lima con flecha a la derecha */
.hero-cta::after {
	content: "";
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--accent-color);
	color: #111827;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h12'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
}

.hero-cta:hover {
	background: #fff;
	color: #111827;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.hero-cta:hover::after {
	transform: translateX(4px);
	box-shadow: 0 8px 20px rgba(176, 200, 11, 0.4);
}

.hero-cta:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(176, 200, 11, 0.4);
}

.hero-right {
	text-align: center;
}

.hero-image {
	max-width: 100%;
	width: auto;
	max-height: 50vh;
	border-radius: 24px;
	position: relative;
	top: 20px;
	object-fit: contain;
}

@media (max-width: 1100px) {
	.hero-container {
		grid-template-columns: 1fr 360px;
	}

	.hero-image {
		width: 320px;
	}
}

@media (max-width: 780px) {
	.hero-container {
		grid-template-columns: 1fr;
		text-align: left;
		align-items: flex-start;
	}

	.hero-left {
		padding: 12px 0;
	}

	.hero-image {
		margin: 0 auto 1.2rem auto;
		width: 70%;
	}
}


/* Encapsular métricas en tarjeta con acciones */
.metrics-card-wrapper {
	padding: 1rem;
}

.metrics-card-wrapper h3 {
	margin-top: 0;
}

.metrics-actions {
	margin-top: 1rem;
	display: flex;
	gap: 0.8rem;
	justify-content: flex-end;
}

.metric-success .stat-value {
	color: #2d9f6b;
}

.metric-warning .stat-value {
	color: #b38f00;
}

.metric-info .stat-value {
	color: var(--primary-color);
}

.metric-danger .stat-value {
	color: #c82333;
}

.metrics-actions .btn-primary,
.metrics-actions .btn-secondary {
	padding: 0.8rem 1.2rem;
}

/* ====== Layouts para páginas de tickets ====== */
.page-two-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 1rem;
	align-items: start;
}

@media (max-width: 1000px) {
	.page-two-col {
		grid-template-columns: 1fr;
	}
}

.ticket-roomy .card {
	padding: 1.25rem;
}

/* Tres columnas: lista izquierda, chat centro, detalles derecha */
.page-three-col {
	display: grid;
	grid-template-columns: 300px 1.8fr 340px;
	gap: 1rem;
	align-items: start;
}

@media (max-width: 1200px) {
	.page-three-col {
		grid-template-columns: 260px 1.7fr 300px;
	}
}

@media (max-width: 960px) {
	.page-three-col {
		grid-template-columns: 1fr;
	}
}

/* Tabla moderna de detalles */
.details-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(2, 6, 23, 0.06)
}

.details-table thead th {
	background: var(--primary-color);
	color: #fff;
	text-align: left;
	padding: 12px 14px;
	font-weight: 800;
}

.details-table tbody td {
	padding: 12px 14px;
	border-top: 1px solid #eef2f7;
	vertical-align: top;
}

.details-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.details-table .label {
	width: 220px;
	color: #111827;
	font-weight: 700;
}

.details-table .value {
	color: #374151;
	word-break: break-word;
	overflow-wrap: anywhere;
}

@media (max-width: 600px) {
	.details-table .label {
		width: auto;
	}
}

/* En el panel angosto de detalles (derecha), apilar etiqueta y valor para evitar cortes verticales */
.page-two-col>aside .details-table tbody tr {
	display: block;
}

.page-two-col>aside .details-table tbody td {
	display: block;
	width: auto;
}

.page-two-col>aside .details-table .label {
	width: auto;
	padding-bottom: 4px;
}

.page-two-col>aside .details-table .value {
	word-break: normal;
	overflow-wrap: anywhere;
}

/* Formularios de contacto/seguimiento con grid adaptable */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media (max-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Modales: asegurar márgenes en móviles estrechos */
.modal-content-modern {
	margin: 8px;
}

/* Panel de chat a la derecha */
.chat-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(2, 6, 23, 0.06);
	padding: 1rem;
	position: sticky;
	top: calc(var(--header-height) + 16px);
	max-height: calc(100vh - var(--header-height) - 48px);
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media (max-width: 960px) {

	/* En móvil, el chat deja de ser sticky para ocupar el flujo natural */
	.chat-panel {
		position: static;
		top: auto;
		bottom: 32px;
		top: calc(var(--header-height) + 64px);
	}

	/* Las columnas laterales no deben forzar alturas fijas */
	.page-three-col>aside.card {
		max-height: none !important;
	}
}

/* Ajustes de padding de tarjetas en pantallas pequeñas */
@media (max-width: 600px) {

	.card {
		/* aire superior e inferior extra sin afectar el offset lateral */
		margin: 30px 0 32px 0;
	}

	.auth-card {
		padding: 0.8rem;
	}
}

.chat-panel h3,
.chat-panel h4 {
	margin-top: 0;
}

.chat-message {
	margin-bottom: 0.8rem;
}

.chat-message .meta {
	font-size: 0.85rem;
	color: #6b7280;
}

/* Chat tipo burbujas (inspirado en mobile) */
.chat-bubbles {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
}

.chat-bubbles .messages {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	overflow: auto;
	padding-right: 4px;
}

.msg {
	max-width: 84%;
	padding: 10px 12px;
	border-radius: 14px;
	line-height: 1.3;
	font-size: 0.98rem;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.msg .meta {
	margin-top: 4px;
	font-size: 0.78rem;
	opacity: 0.8;
}

.msg.other {
	background: #f3f4f6;
	color: #111827;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.msg.me {
	background: #1d4ed8;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.msg.system {
	background: transparent;
	color: #6b7280;
	align-self: center;
	box-shadow: none;
	padding: 4px 8px;
	font-style: italic;
}

.composer {
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 6px 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.composer input[type="text"],
.composer textarea {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1rem;
	padding: 8px;
	resize: none;
}

.composer .send-btn {
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 14px;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.composer .send-btn:hover {
	background: #0b2f29;
}

.composer .send-btn svg {
	width: 18px;
	height: 18px;
}



/* Responsivo: cuando la pantalla es angosta, el sidebar pasa arriba */
@media (max-width: 1024px) {
	.admin-sidebar {
		position: static;
		width: 100%;
		min-height: auto;
		border-right: none;
		border-bottom: 1px solid #e5e5e5;
	}

	.admin-content-wrapper {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Sidebar superpuesto estilo moderno (panel flotante izquierda) */
.app-sidebar {
	position: fixed;
	left: var(--admin-sidebar-left);
	top: calc(var(--header-height) + 16px);
	/* debajo del header sticky + margen */
	bottom: 16px;
	/* ocupar hasta el final con un pequeño margen */
	/* sin centrado vertical para evitar solaparse con el header */
	transform: none;
	width: var(--admin-sidebar-width);
	box-sizing: border-box;
	max-width: 78vw;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(2, 6, 23, 0.12);
	padding: 24px 18px;
	/* padding superior e inferior claros */
	z-index: 200;
	/* bajo el header (z-index 1000) */
	transition: width 220ms var(--transition), padding 220ms var(--transition), box-shadow 220ms var(--transition);
	overflow: hidden;
	/* ocultar scrollbars fuera del contenedor redondeado */
}

.app-sidebar .brand {
	text-align: center;
	margin-bottom: 12px;
}

.app-sidebar .sidebar-user {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 8px;
	background: #f8fafb;
	border-radius: 10px;
	margin-bottom: 12px;
}

.sidebar-avatar {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
}

.sidebar-user-name {
	font-weight: 700;
	color: var(--primary-color);
}

.sidebar-user-role {
	font-size: 0.85rem;
	color: var(--text-light);
}

.small-logout {
	margin-left: auto;
	background: #fff;
	border: 1px solid var(--primary-50);
	padding: 6px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--primary-color);
}

.app-sidebar .sidebar-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.app-sidebar .sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 6px 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.app-sidebar nav {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 6px 4px;
}

/* Ocultar scrollbars visibles en el nav del sidebar, pero permitir scroll con rueda/touch */
.app-sidebar nav::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.app-sidebar nav {
	scrollbar-width: none;
}

.app-sidebar .nav-link {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.7rem 0.8rem;
	border-radius: 10px;
	color: var(--text-dark);
	text-decoration: none;
}

.app-sidebar .nav-link i {
	width: 22px;
	text-align: center;
}

.app-sidebar .nav-link:hover {
	background: var(--primary-50);
	color: var(--primary-color);
}

.app-sidebar .nav-link.active {
	background: linear-gradient(90deg, var(--primary-50), #f0fbf1);
	color: var(--primary-color);
	box-shadow: inset 0 0 0 1px rgba(9, 59, 53, 0.06);
}

/* Estado colapsado: mover fuera y reducir opacidad */
/* En estado colapsado reducimos el ancho, no lo ocultamos fuera de pantalla */
body.sidebar-collapsed .app-sidebar {
	transform: none;
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 900px) {
	.app-sidebar {
		left: 12px;
		width: 220px;
		top: calc(var(--header-height));
		bottom: 12px;
	}

	/* cuando el sidebar está oculto en móvil, que el contenido use todo el ancho */
	body.has-sidebar .admin-content-wrapper {
		margin-left: 0 !important;
		margin-right: 0;
	}
}

/* ===== FAQs moderno ===== */
.faq-list.modern {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-list.modern .faq-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.faq-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	border: none;
	text-align: left;
	cursor: pointer;
}

.faq-icon {
	width: 30px;
	height: 30px;
	display: inline-grid;
	place-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	background: #fff;
}

.faq-toggle .faq-question {
	flex: 1;
	font-size: 1.05rem;
	color: #111827;
	font-weight: 800;
}

/* Chevron moderno (contenedor con borde y SVG como background) */
.faq-toggle .chevron {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: inline-block;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
	transition: transform 0.22s ease, background-color 0.22s ease;
}

/* SVG chevron-down gris por defecto */
.faq-toggle .chevron {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.faq-answer {
	padding: 0 14px 14px 50px;
	color: #6b7280;
	line-height: 1.65;
	display: none;
}

.faq-item .faq-answer.show {
	display: block;
}

.faq-toggle[aria-expanded="true"] .chevron {
	transform: rotate(180deg);
}

/* FAQs con <details>/<summary> (alternativa robusta) */
.faq-accordion details.faq-item {
	padding: 0;
}

.faq-accordion .faq-summary {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	border: none;
	text-align: left;
	cursor: pointer;
	list-style: none;
}

.faq-accordion .faq-summary::-webkit-details-marker {
	display: none;
}

.faq-accordion .faq-summary .faq-question {
	flex: 1;
	font-size: 1.05rem;
	color: #111827;
	font-weight: 800;
}

.faq-accordion .faq-summary .chevron {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: inline-block;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
	transition: transform 0.22s ease, background-color 0.22s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.faq-accordion details[open] .chevron {
	transform: rotate(180deg);
}

.faq-accordion details[open] .faq-answer {
	display: block;
}

/* Variante oscura para FAQs (según mockup) */
.faqs.faqs-dark {
	background: var(--benefits-bg);
}

.faqs-title {
	text-align: center;
	color: #fff;
	letter-spacing: 3px;
	font-weight: 800;
	font-size: 1.6rem;
	margin-bottom: 1.6rem;
}

.faqs.faqs-dark .faq-list.modern .faq-item {
	background: transparent;
	border: 2px solid var(--benefits-lime);
	box-shadow: none;
}

.faqs.faqs-dark .faq-toggle {
	background: transparent;
	color: #fff;
}

.faqs.faqs-dark .faq-toggle .faq-question {
	color: #fff;
}

.faqs.faqs-dark .faq-toggle .chevron {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D1EF00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.faqs.faqs-dark .faq-icon {
	background: transparent;
	border-color: var(--benefits-lime);
	color: var(--benefits-lime);
}

.faqs.faqs-dark .faq-answer {
	color: #d1d5db;
}

/* Dark variant para details/summary */
.faqs.faqs-dark .faq-summary {
	background: transparent;
	color: #fff;
}

.faqs.faqs-dark .faq-summary .faq-question {
	color: #fff;
}

.faqs.faqs-dark .faq-summary .chevron {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D1EF00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Sección de video promocional con relación 16:9 */
.promo-video {
	background: transparent;
	padding: 40px 0;
}

.promo-video .container {
	max-width: 980px;
}

.promo-video .promo-title {
	text-align: center;
	color: var(--primary-color);
	font-weight: 900;
	font-size: 1.8rem;
	margin: 0 0 14px 0;
	letter-spacing: 1px;
}

.promo-video .video-frame {
	position: relative;
	padding-top: 56.25%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	border: 1px solid #eef2f7;
}

.promo-video .video-frame iframe,
.promo-video .video-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ===== Chat attachments & composer ===== */
.chat-bubbles .attachments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0;
}

.chat-bubbles .file-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f3f4f6;
	color: #111827;
	text-decoration: none;
	border-radius: 999px;
	padding: 6px 10px;
	border: 1px solid #e5e7eb;
	font-size: 0.9rem;
}

.chat-bubbles .file-pill:hover {
	background: #eef2f7;
}

.composer .composer-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.composer .attach-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
}

.composer .attach-btn:hover {
	background: #f9fafb;
}

.composer .composer-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0;
}

.composer .canned-select {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px 8px;
	font-family: 'Poppins', Arial, sans-serif;
}

/* ===================== Beneficios (según mockup) ===================== */
.benefits {
	background: var(--benefits-bg);
	padding: 60px 0;
}

.benefits-title {
	text-align: center;
	color: #fff;
	letter-spacing: 3px;
	font-weight: 800;
	font-size: 1.6rem;
	margin-bottom: 2rem;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(240px, 1fr));
	gap: 1.6rem;
}

.benefit-item {
	background: transparent;
	color: #fff;
	border: 2px solid var(--benefits-lime);
	border-radius: 10px;
	padding: 1.6rem;
	text-align: left;
	box-shadow: none;
	position: relative;
	min-height: 160px;
}

.benefit-item img {
	display: block;
	height: 58px;
	width: auto;
	margin-bottom: 0.9rem;
}

.benefit-icon {
	display: inline-block;
	font-size: 48px;
	line-height: 1;
	color: var(--benefits-lime);
	margin-bottom: 0.9rem;
}

.benefit-item div {
	/* título/descripción breve */
	font-weight: 700;
	line-height: 1.25;
}

@media (max-width: 980px) {
	.benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.benefits-grid {
		grid-template-columns: 1fr;
	}
}


/* =========================================
   RESPONSIVE FIXES & MISSING CLASSES
   ========================================= */

/* HERO SECTION */
.hero-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 3rem 2rem;
}

.hero-left {
	flex: 1;
	min-width: 300px;
}

.hero-right {
	flex: 1;
	min-width: 300px;
	display: flex;
	justify-content: center;
}

.hero-title {
	font-size: 3rem;
	line-height: 1.1;
	margin-bottom: 1rem;
	color: #fff;
}

.hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	color: #e2e8f0;
}

@media (max-width: 768px) {
	.hero-container {
		flex-direction: column-reverse;
		text-align: left;
		align-items: flex-start;
		padding: 2rem 0;
	}

	.hero-title {
		font-size: 2.2rem;
	}

	.hero-right {
		width: 100%;
	}
}

/* Benefits (Services) Section - Dark Corporate Theme */
.benefits {
	background-color: #0d1214;
	padding: 6rem 0;
	color: #fff;
	border-bottom: 1px solid #1a2e33;
}

.benefits-title {
	text-align: center;
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 3rem;
	color: #fff;
	letter-spacing: -1px;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.benefit-item {
	background: #0B1C24;
	/* Corporate Deep Blue/Gray */
	padding: 2.5rem 2rem;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	height: 100%;
}

.benefit-item:hover {
	transform: translateY(-8px);
	border-color: #2ad5a3;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
	font-size: 2.5rem;
	color: #2ad5a3;
	/* Neon Green Accent */
	margin-bottom: 1.5rem;
	background: rgba(42, 213, 163, 0.1);
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

.benefit-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.benefit-desc {
	font-size: 0.95rem;
	color: #94a3b8;
	line-height: 1.6;
	margin-bottom: 2rem;
	flex-grow: 1;
	/* Pushes button to bottom */
}

.btn-link {
	color: #2ad5a3;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	transition: gap 0.2s;
}

.btn-link:hover {
	gap: 12px;
	text-decoration: underline;
}

/* Hide legacy imgs in benefits if any remain */
.benefit-item img {
	display: none;
}

/* DASHBOARD STATS */
.dashboard-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin-bottom: 2rem;
}

.stat-card {
	flex: 1 1 200px;
	min-width: 200px;
	background: #fff;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	text-align: center;
}

/* TWO COL PAGE (Ticket Detail) */
.page-two-col {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 980px) {
	.page-two-col {
		grid-template-columns: 1fr;
	}
}

/* VIDEO RESPONSIVE */
.video-frame {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	margin: 2rem 0;
}

.video-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* DETAILS TABLE */
.details-table {
	width: 100%;
	border-collapse: collapse;
}

.details-table td {
	padding: 0.8rem;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: top;
}

.details-table .label {
	font-weight: 600;
	color: #6b7280;
	width: 140px;
}

.details-table .value {
	color: #111827;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 600px) {
	.details-table td {
		display: block;
		width: 100%;
		padding: 0.4rem 0;
	}

	.details-table .label {
		font-size: 0.85rem;
		color: #9ca3af;
		margin-bottom: 0;
	}

	.details-table .value {
		font-size: 1.05rem;
		padding-top: 0;
	}

	.btn-secondary,
	.btn-primary {
		width: 100%;
		justify-content: center;
		margin-bottom: 0.5rem;
	}

	.dashboard-stats {
		flex-direction: column;
	}

	.stat-card {
		width: 100%;
	}
}


/* =========================================
   FLUID \ CUSTOM VIEWPORT UNITS (FIX)
   ========================================= */

/* Make the Hero take up significant screen height but respect mobile */
.hero {
	min-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

/* Ensure container also grows */
.hero-container {
	height: 100%;
	width: 100%;
	/* Override prev padding to be fluid closer to edges but safe */
	padding: 3rem max(2rem, 5vw);
}

/* Fluid Typography: Scales smoothly between 2.5rem and 4.5rem based on viewport width */
.hero-title {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	line-height: 1.1;
}

/* Fluid Image: Scale relative to viewport HEIGHT to prevent scrolling on landscape/laptops */
.hero-image {
	max-height: 60vh;
	width: auto;
	object-fit: contain;
	/* Ensure it doesn't overflow horizontally either */
	max-width: 100%;
	position: static;
	/* Reset relative positioning from previous CSS if needed */
}

/* Fluid grid for benefits: utilize viewport width for smoother breakage */
.benefits-grid {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
	.benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.benefits-grid {
		grid-template-columns: 1fr;
	}
}

/* Ensure full height layouts for dashboard */
.dashboard-content {
	min-height: 85vh;
}

.auth-split {
	min-height: 100vh;
}

.auth-illustration {
	min-height: 100vh;
}

/* Prevent extremly small cards on resize */
.stat-card {
	min-width: clamp(160px, 20vw, 240px);
}

/* ===== Toast Notification System ===== */
.toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 10001;
	min-width: 300px;
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	padding: 1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	animation: slideInRight 0.3s ease-out;
}

.toast.success {
	border-left: 4px solid #28a745;
}

.toast.error {
	border-left: 4px solid #dc3545;
}

.toast-title {
	font-weight: 700;
	font-size: 1rem;
	color: #1a1a1a;
}

.toast-progress {
	width: 100%;
	height: 4px;
	background: #e9ecef;
	border-radius: 2px;
	overflow: hidden;
}

.toast-progress .bar {
	height: 100%;
	background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
	transition: width 0.3s ease;
}

@keyframes slideInRight {
	from {
		transform: translateX(400px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@media (max-width: 480px) {
	.toast {
		bottom: 12px;
		right: 12px;
		left: 12px;
		min-width: auto;
	}
}

/* Modales Modernos y Overlays */
/* Duplicate modal styles removed */

.modal-content-modern {
	background: #fff;
	padding: 2.5rem;
	border-radius: 20px;
	width: 95%;
	max-width: 500px;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: modalSlide 0.3s ease-out;
	max-height: 90vh;
	overflow-y: auto;
}

@keyframes modalSlide {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none !important;
	border: none !important;
	font-size: 1.8rem;
	color: #9ca3af;
	cursor: pointer;
	line-height: 1;
}

.modal-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #111827;
	margin-bottom: 0.5rem;
	text-align: center;
}

.modal-subtitle {
	color: #6b7280;
	text-align: center;
	margin-bottom: 2rem;
}

@media (max-width: 600px) {
	.modal-content-modern {
		padding: 1.5rem;
		border-radius: 16px;
	}
}

/* Admin Hub Grid */
.admin-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.hub-card {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 20px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hub-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	border-color: var(--primary-color);
}

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

.hub-icon {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	background: #f8fafc;
	color: #64748b;
	transition: all 0.3s ease;
}

.hub-card:hover .hub-icon {
	transform: rotate(5deg);
}

.hub-card span {
	font-size: 0.95rem;
	font-weight: 700;
	color: #334155;
}

/* Hub Icon Variants */
.hub-icon--blue {
	background: #eff6ff;
	color: #3b82f6;
}

.hub-icon--emerald {
	background: #ecfdf5;
	color: #10b981;
}

.hub-icon--amber {
	background: #fffbeb;
	color: #f59e0b;
}

.hub-icon--indigo {
	background: #eef2ff;
	color: #6366f1;
}

.hub-icon--slate {
	background: #f8fafc;
	color: #475569;
}

.hub-icon--rose {
	background: #fff1f2;
	color: #f43f5e;
}

.hub-icon--sky {
	background: #f0f9ff;
	color: #0ea5e9;
}

@media (max-width: 480px) {
	.admin-hub-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.hub-card {
		padding: 1.25rem;
	}

	.hub-icon {
		width: 50px;
		height: 50px;
		font-size: 1.25rem;
	}
}

/* =========================================
   PROFESSIONAL REDESIGN (HPE STYLE)
   ========================================= */

/* Dark Corporate Hero (Phase 3) */
.hero {
	background-color: #0a1f2e;
	position: relative;
	overflow: hidden;
	color: #fff;
	border-bottom: 1px solid #1a2e33;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	min-height: 85vh;
}

/* Background video inside hero */
.hero-bg-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	opacity: 1;
	filter: brightness(0.65) saturate(0.95);
}

/* Dark overlay for text legibility (HPE style) */
.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(10, 31, 46, 0.90) 0%, rgba(15, 23, 42, 0.85) 30%, rgba(5, 26, 30, 0.60) 50%, transparent 70%);
	z-index: 1;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.hero-bg-video {
		display: none;
	}
}

.hero-content-center {

	@media (max-width: 768px) {
		.hero {
			background-attachment: scroll;
			min-height: 60vh;
		}
	}

	max-width: 900px;
	margin: 0;
	z-index: 2;
	position: relative;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero-badges {
	display: flex;
	gap: 1.5rem;
	justify-content: flex-start;
	margin-bottom: 1.2rem;
	flex-wrap: wrap;
}

/* Re-using badge-level styles but ensuring visibility on dark bg */
.hero-badges .badge-level {
	display: inline-block;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.9rem;
	padding: 0.5em 1.2em;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Tipografías y alineación del hero: enfatizar grosores y izquierda */
.hero-title {
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	text-align: left;
	margin-bottom: 0.8rem;
	line-height: 1.1;
}

.hero-subtitle {
	font-weight: 600;
	text-align: left;
	margin-bottom: 1.5rem;
	line-height: 1.4;
}

.hero-cta {
	align-self: flex-start;
}

.level-plata {
	background: linear-gradient(135deg, #e2e8f0, #94a3b8);
	color: #0f172a;
}

.level-gold {
	background: linear-gradient(135deg, #fcd34d, #d97706);
	color: #451a03;
}

.level-diamante {
	background: linear-gradient(135deg, #a5f3fc, #0891b2);
	color: #083344;
}

.badge-vip {
	background: linear-gradient(135deg, #ffd700, #ffb700);
	color: #000;
	font-size: 0.85rem;
	padding: 0.5em 1.5em;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 2px;
	border-radius: 50px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
	backdrop-filter: blur(4px);
}

/* Pseudo-elemento para el patrón de ruido/grid opcional o textura */
.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: radial-gradient(#145850 1px, transparent 1px);
	background-size: 30px 30px;
	opacity: 0.1;
	pointer-events: none;
}

.hero-title {
	color: #ffffff;
	font-weight: 900;
	letter-spacing: -2px;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
	font-size: clamp(3rem, 6vw, 5.5rem);
	/* Larger title */
	margin-bottom: 1.5rem;
	line-height: 1.1;
}

.hero-subtitle {
	color: #e2e8f0;
	/* Light gray */
	font-size: 1.5rem;
	font-weight: 400;
	max-width: 700px;
	margin: 0 auto 3rem auto;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
	background: #ffffff;
	color: #051a1e;
	/* Dark text */
	padding: 0.75rem 0.75rem 0.75rem 2rem;
	/* Less padding right for icon circle */
	font-size: 1.1rem;
	font-weight: 800;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s, box-shadow 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	border: 4px solid rgba(255, 255, 255, 0.1);
	/* Subtle border ring effect if needed, or remove */
}

.hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 40px rgba(180, 220, 20, 0.3);
}

.hero-cta i {
	background: #d4e157;
	/* Lime Green */
	color: #051a1e;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 1rem;
	transition: transform 0.2s;
}

.hero-cta:hover i {
	transform: translateX(4px);
}

/* Legacy Image rules removed or hidden */
.hero-image {
	display: none;
}

/* News Section - Carousel Style */
.news-section {
	background: #0b0f11;
	/* Dark background almost black */
	padding: 8rem 0;
	/* Much more padding as requested */
	color: #fff;
	border-bottom: 1px solid #1a2e33;
	position: relative;
}

.news-header {
	margin-bottom: 3rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.news-title {
	font-size: 3.5rem;
	/* Larger */
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1;
}

/* Carousel Container */
.news-carousel-container {
	position: relative;
	overflow: hidden;
	padding: 10px 0;
	/* Espacio para sombras */
}

.news-grid {
	display: flex;
	/* Flex instead of Grid for Carousel */
	gap: 30px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding-bottom: 2rem;
	/* Espacio para scrollbar si aparece (la ocultaremos) */
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
}

.news-grid::-webkit-scrollbar {
	display: none;
	/* Hide scrollbar Chrome/Safari/Opera */
}

.news-card {
	min-width: 320px;
	/* ancho fijo para carousel */
	max-width: 320px;
	background: #0B1C24;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

/* Carousel Controls */
.carousel-controls {
	display: flex;
	gap: 12px;
}

.carousel-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #334155;
	background: transparent;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 1.2rem;
}

.carousel-btn:hover {
	border-color: #2ad5a3;
	color: #2ad5a3;
	background: rgba(42, 213, 163, 0.1);
}

.news-img-wrapper {
	position: relative;
	aspect-ratio: 3/5;
	/* Portrait alto */
	overflow: hidden;
	border-radius: 10px;
	background: #111827;
}

.news-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-img {
	transform: scale(1.06);
}

.news-content {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	height: 100%;
}

.news-category {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: rgba(17, 24, 39, 0.7);
	color: #E2FBE8;
	/* tono claro verdoso */
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 1px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
}

.news-card-title {
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.3;
	color: #fff;
	margin: 0;
}

.news-desc {
	color: #9fb3c8;
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-link-action {
	color: #2ad5a3;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 0.95rem;
	transition: gap 0.2s;
}

.news-card:hover .news-link-action {
	gap: 10px;
	text-decoration: underline;
}

/* =========================================
   SaaS Header Redesign (Enterprise Style)
   ========================================= */

.header-saas {
	position: sticky;
	top: 0;
	z-index: 1100;
	background: #FFFFFF;
	height: 64px;
	border-bottom: 1px solid #e2e8f0;
	width: 100%;
	display: flex;
	align-items: center;
}

.header-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Left Zone: Logo + Nav */
.nav-left {
	display: flex;
	align-items: center;
	gap: 32px;
}

.logo-img {
	height: 28px;
	width: auto;
	display: block;
}

.desktop-nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.desktop-nav a {
	text-decoration: none;
	color: #475569;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color 0.2s ease;
	padding: 4px 0;
	position: relative;
}

.desktop-nav a:hover {
	color: #0f172a;
}

.desktop-nav a.active {
	color: #0f172a;
	font-weight: 600;
}

/* Right Zone: Actions + Profile */
.nav-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.action-btn-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #FFFFFF;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.action-btn-circle:hover {
	background: #f8fafc;
	color: #0f172a;
	border-color: #cbd5e1;
}

.action-btn-circle i {
	font-size: 1rem;
}

.badge-dot {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 8px;
	height: 8px;
	background: #ef4444;
	border-radius: 50%;
	border: 1px solid #fff;
}

/* User Profile Widget */
.user-profile-widget {
	position: relative;
	padding-left: 16px;
	border-left: 1px solid #e2e8f0;
	margin-left: 8px;
}

.profile-trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	text-align: right;
}

.user-info-text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}

.user-name {
	color: #0f172a;
	font-size: 0.9rem;
	font-weight: 600;
}

.user-role {
	color: #94a3b8;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.user-avatar-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e2e8f0;
}

/* Dropdowns */
.dropdown-menu-saas {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 240px;
	background: #FFFFFF;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	padding: 8px;
	z-index: 1200;
	animation: slideDown 0.15s ease-out;
}

.profile-dropdown-pos {
	right: 0;
	top: 50px;
}

.dropdown-header {
	padding: 8px 12px;
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #94a3b8;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	text-decoration: none;
	color: #334155;
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: 8px;
	transition: background 0.1s;
}

.dropdown-item:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.dropdown-item.text-danger {
	color: #ef4444;
}

.dropdown-item.text-danger:hover {
	background: #fef2f2;
}

.dropdown-divider {
	height: 1px;
	background: #e2e8f0;
	margin: 6px 0;
}

/* Notification Items */
.noti-item {
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
}

.noti-item:last-child {
	border-bottom: none;
}

.noti-text {
	font-size: 0.85rem;
	color: #334155;
	margin: 0 0 4px 0;
}

.noti-time {
	font-size: 0.7rem;
	color: #94a3b8;
}

.empty-state {
	padding: 16px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.85rem;
}

/* Mobile Utilities */
.nav-toggle-saas {
	display: none;
	background: none;
	border: none;
	font-size: 1.25rem;
	color: #334155;
	cursor: pointer;
	padding: 8px;
}

.mobile-nav-saas {
	position: fixed;
	top: 64px;
	left: 0;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	transform: translateY(-150%);
	transition: transform 0.3s ease;
	z-index: 1090;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-nav-saas.active {
	transform: translateY(0);
}

.mobile-nav-content {
	padding: 24px;
}

.mobile-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e2e8f0;
}

.mobile-links a {
	display: block;
	padding: 12px 0;
	color: #334155;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.desktop-nav {
		display: none;
	}

	.user-profile-widget {
		display: none;
	}

	.nav-toggle-saas {
		display: block;
	}

	.nav-right {
		gap: 8px;
	}
}

/* =========================================
   User Profile Redesign (Clean Card)
   ========================================= */

.profile-page-wrapper {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

.profile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.profile-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
}

.profile-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.profile-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: start;
}

/* Main Profile Card */
.profile-main-card {
	background: #fff;
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	border: 1px solid #f1f5f9;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 40px;
}

.profile-avatar-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.big-avatar {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	background: #e2e8f0;
	margin-bottom: 16px;
}

.profile-name-lg {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 4px;
}

.role-badge-text {
	color: #059669;
	/* Emerald */
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Details Section */
.profile-details-section h3 {
	color: #334155;
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 24px 0;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 12px;
}

.info-grid-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.info-group label {
	display: block;
	font-size: 0.85rem;
	color: #64748b;
	/* Muted */
	font-weight: 500;
	margin-bottom: 6px;
}

.info-group div {
	font-size: 1rem;
	color: #1e293b;
	font-weight: 500;
}

/* Sidebar Widgets */
.sidebar-widget {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
	border: 1px solid #f1f5f9;
	margin-bottom: 16px;
}

.widget-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 4px 0;
}

.widget-subtitle {
	font-size: 0.85rem;
	color: #94a3b8;
	margin-bottom: 16px;
}

.recent-tickets-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.recent-ticket-item {
	padding: 12px 0;
	border-bottom: 1px dashed #e2e8f0;
}

.recent-ticket-item:last-child {
	border-bottom: none;
}

.rt-title {
	display: block;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.rt-title:hover {
	color: var(--primary-color);
}

.rt-date {
	font-size: 0.75rem;
	color: #94a3b8;
	margin-top: 2px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
	.profile-grid {
		grid-template-columns: 1fr;
	}

	.profile-main-card {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.profile-avatar-section {
		border-bottom: 1px solid #f1f5f9;
		padding-bottom: 24px;
		margin-bottom: 24px;
	}

	.info-grid-2col {
		text-align: left;
	}
}

@media (max-width: 640px) {
	.info-grid-2col {
		grid-template-columns: 1fr;
	}
}

/* =========================================
   Edit Profile Redesign
   ========================================= */

.profile-edit-header {
	margin-bottom: 24px;
}

.profile-edit-card {
	background: #fff;
	border-radius: 24px;
	padding: 32px 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	border: 1px solid #f1f5f9;
}

.profile-edit-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 32px;
}

.edit-col-left,
.edit-col-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #475569;
	font-size: 0.95rem;
}

.form-control {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.95rem;
	color: #0f172a;
	transition: all 0.2s ease;
	background: #f8fafc;
}

.form-control:focus {
	background: #fff;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
	outline: none;
}

.form-control::placeholder {
	color: #cbd5e1;
}

/* Custom File Upload */
.custom-file-upload {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 6px;
	width: 100%;
}

.file-input-hidden {
	display: none;
}

.btn-file-select {
	background: #f1f5f9;
	color: #334155;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #e2e8f0;
	transition: background 0.2s;
}

.btn-file-select:hover {
	background: #e2e8f0;
}

.file-chosen-text {
	font-size: 0.9rem;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.avatar-preview-container {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

#avatarPreviewImg {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e2e8f0;
}

.help-text {
	font-size: 0.8rem;
	color: #94a3b8;
	margin-top: 4px;
}

.form-actions-footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 24px;
	border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
	.profile-edit-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.profile-edit-card {
		padding: 24px;
	}
}

/* Logo Resize */
.logo-img {
	height: 60px;
	max-width: 200px;
	width: auto;
	object-fit: contain;
}

/* =========================================
   SINGLE SERVICE PREMIUM LAYOUT
   ========================================= */

/* Hero Section */
.ss-hero {
	position: relative;
	padding: 160px 0 120px;
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
	margin-bottom: 0;
	/* Remove default margins */
}

/* Gradient Overlay */
.ss-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(5, 26, 30, 0.95) 0%, rgba(9, 44, 51, 0.85) 100%);
	z-index: 1;
}

.ss-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 850px;
	margin: 0 auto;
}

.ss-hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	letter-spacing: -0.02em;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	color: #fff;
}

.ss-hero-subtitle {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	opacity: 0.9;
	line-height: 1.6;
	margin-bottom: 2.5rem;
	font-weight: 400;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	color: rgba(255, 255, 255, 0.9);
}

/* Main Content Container */
.ss-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 24px;
}

/* Section Headings */
.ss-section-header {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 60px;
}

.ss-section-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 1rem;
	letter-spacing: -0.01em;
}

.ss-section-desc {
	font-size: 1.15rem;
	color: #64748b;
	line-height: 1.7;
}

/* Two Column Layout (Text + Image) */
.ss-split-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	margin-bottom: 40px;
}

.ss-split-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ss-split-image img {
	width: 100%;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.ss-split-image img:hover {
	transform: translateY(-5px);
}

/* Feature List (Icon + Text) */
.ss-feature-list {
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
	display: grid;
	gap: 24px;
}

.ss-feature-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.ss-feature-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(42, 213, 163, 0.15), rgba(42, 213, 163, 0.05));
	color: #0F766E;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}

.ss-feature-text h4 {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 0.4rem;
}

.ss-feature-text p {
	font-size: 1rem;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* Cards Grid (Benefits/Process) */
.ss-grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.ss-card {
	background: #fff;
	padding: 40px 30px;
	border-radius: 20px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
	transition: all 0.3s ease;
}

.ss-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
	border-color: rgba(42, 213, 163, 0.3);
}

.ss-card-icon {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: #f8fafc;
	color: #0F766E;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 24px;
	transition: background 0.3s, color 0.3s;
}

.ss-card:hover .ss-card-icon {
	background: #0F766E;
	color: #fff;
}

.ss-card h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 12px;
}

.ss-card p {
	color: #64748b;
	line-height: 1.6;
}

/* CTA Section */
.ss-cta {
	background: #f8fafc;
	border-radius: 24px;
	padding: 60px;
	text-align: center;
	margin-top: 80px;
	position: relative;
	overflow: hidden;
}

.ss-cta h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	position: relative;
	z-index: 2;
	color: #0f172a;
}

.ss-cta p {
	font-size: 1.2rem;
	color: #64748b;
	margin-bottom: 2rem;
	position: relative;
	z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
	.ss-split-section {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.ss-split-image {
		order: -1;
		/* Image on top mobile */
	}
}

@media (max-width: 768px) {
	.ss-hero {
		padding: 120px 0 80px;
	}

	.ss-container {
		padding: 60px 20px;
	}

	.ss-section-title {
		font-size: 2rem;
	}

	.ss-cta {
		padding: 40px 20px;
	}
}