/**
 * Espacio Vital — App Shell styles.
 * Sidebar (fixed 260px) + topbar + responsive main area.
 */

/*
 * IMPORTANT: ancla el tamaño base de la fuente en 16px para que los rem
 * resuelvan a tamaños legibles independiente del tema activo. TheGem y
 * otros themes a veces fijan html { font-size: 13px } y eso achica todo
 * el shell. Forzamos !important sólo en `font-size` del html para neutralizar.
 */
html:has(body.ev-app-body) { font-size: 15px !important; }
body.ev-app-body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #f4f6f4;
	color: #0f1a13;
	line-height: 1.55;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.ev-app-body * { box-sizing: border-box; }
body.ev-app-body a { color: inherit; text-decoration: none; }
body.ev-app-body img, body.ev-app-body svg { display: block; max-width: 100%; }
body.ev-app-body h1, body.ev-app-body h2, body.ev-app-body h3, body.ev-app-body h4 {
	margin: 0; font-weight: 800; letter-spacing: -0.02em; color: #0f1a13;
}
body.ev-app-body p { margin: 0; font-size: 1rem; }
body.ev-app-body ul, body.ev-app-body ol { margin: 0; padding: 0; list-style: none; }
body.ev-app-body button { font: inherit; cursor: pointer; }

/* Tamaños mínimos para que el contenido del shell no se vea liliputiense
 * cuando el theme padre define una escala más chica. Sirve como red de
 * seguridad además del reset de :root font-size de arriba. */
body.ev-app-body .ev-app-main,
body.ev-app-body .ev-app-main p,
body.ev-app-body .ev-app-main li,
body.ev-app-body .ev-app-main span,
body.ev-app-body .ev-app-main strong,
body.ev-app-body .ev-app-main em,
body.ev-app-body .ev-app-main label { font-size: 1rem; }
body.ev-app-body .ev-app-main input[type="text"],
body.ev-app-body .ev-app-main input[type="search"],
body.ev-app-body .ev-app-main input[type="email"],
body.ev-app-body .ev-app-main input[type="password"],
body.ev-app-body .ev-app-main input[type="date"],
body.ev-app-body .ev-app-main input[type="number"],
body.ev-app-body .ev-app-main select,
body.ev-app-body .ev-app-main textarea { font-size: 1rem; }

:root {
	--ev-app-sidebar-w: 260px;
	--ev-app-topbar-h: 64px;
	--ev-app-green: #9bc950;
	--ev-app-green-dark: #5d7f29;
	--ev-app-charcoal: #0f1a13;
	--ev-app-text-700: #2b3a30;
	--ev-app-text-500: #6b7a6c;
	--ev-app-text-400: #94a3b8;
	--ev-app-border: rgba(15, 26, 19, 0.08);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.ev-app {
	min-height: 100vh;
	display: grid;
	grid-template-columns: var(--ev-app-sidebar-w) 1fr;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ev-app-sidebar {
	background: #fff;
	border-right: 1px solid var(--ev-app-border);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}
.ev-app-sidebar-brand {
	padding: 18px 20px;
	border-bottom: 1px solid var(--ev-app-border);
	display: flex;
	align-items: center;
	gap: 10px;
}
.ev-app-sidebar-brand img { height: 44px; width: auto; }
.ev-app-sidebar-nav {
	flex: 1;
	padding: 18px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ev-app-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.ev-app-group-label {
	padding: 10px 14px 6px;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ev-app-text-400);
}
.ev-app-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	color: var(--ev-app-text-700);
	font-size: 0.95rem;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
}
.ev-app-item:hover {
	background: rgba(155, 201, 80, 0.08);
	color: var(--ev-app-charcoal);
}
.ev-app-item.is-active {
	background: var(--ev-app-charcoal);
	color: #fff;
}
.ev-app-item.is-active .ev-app-item-icon { color: var(--ev-app-green); }
.ev-app-item-icon {
	width: 20px; height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ev-app-text-500);
	flex-shrink: 0;
}
.ev-app-item-icon svg { width: 100%; height: 100%; }
.ev-app-item-label { flex: 1; }
.ev-app-item-badge {
	background: var(--ev-app-green);
	color: var(--ev-app-charcoal);
	font-size: 0.7rem;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 999px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.ev-app-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ev-app-topbar {
	height: var(--ev-app-topbar-h);
	background: #fff;
	border-bottom: 1px solid var(--ev-app-border);
	padding: 0 32px;
	display: flex;
	align-items: center;
	gap: 16px;
	position: sticky;
	top: 0;
	z-index: 10;
}
.ev-app-topbar-title {
	flex: 1;
	min-width: 0;
}
.ev-app-topbar-crumbs {
	font-size: 0.85rem;
	color: var(--ev-app-text-400);
	display: flex;
	gap: 8px;
	align-items: center;
}
.ev-app-topbar-crumbs span { color: var(--ev-app-text-700); font-weight: 600; }
.ev-app-topbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ev-app-topbar-home {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--ev-app-border);
	background: #fff;
	border-radius: 999px;
	color: var(--ev-app-text-700);
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.15s ease;
}
.ev-app-topbar-home:hover {
	background: var(--ev-app-green);
	color: var(--ev-app-charcoal);
	border-color: var(--ev-app-green);
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(155, 201, 80, 0.35);
}
.ev-app-topbar-home svg { width: 16px; height: 16px; }
.ev-app-topbar-user {
	display: flex;
	align-items: center;
	gap: 14px;
}
.ev-app-topbar-name {
	font-weight: 600;
	color: var(--ev-app-text-700);
	font-size: 0.92rem;
}
.ev-app-topbar-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ev-app-green), var(--ev-app-green-dark));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.9rem;
}
.ev-app-topbar-logout {
	padding: 8px 14px;
	border: 1px solid var(--ev-app-border);
	border-radius: 999px;
	color: var(--ev-app-text-700);
	font-size: 0.85rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s ease;
}
.ev-app-topbar-logout:hover { background: var(--ev-app-charcoal); color: #fff; border-color: var(--ev-app-charcoal); }
.ev-app-topbar-logout svg { width: 14px; height: 14px; }

/* Mobile toggle */
.ev-app-mobile-toggle {
	display: none;
	background: none; border: none; padding: 8px;
}
.ev-app-mobile-toggle span {
	display: block;
	width: 22px; height: 2px;
	background: var(--ev-app-charcoal);
	margin: 5px 0;
}

/* ============================================================
   MAIN AREA
   ============================================================ */
.ev-app-main {
	flex: 1;
	padding: 32px;
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
}
.ev-app-section-head {
	margin-bottom: 24px;
}
.ev-app-section-head h1 {
	font-size: 1.6rem;
	margin-bottom: 4px;
}
.ev-app-section-head p {
	color: var(--ev-app-text-500);
	font-size: 0.95rem;
}

/* Dashboard cards (default landing of /app/) */
.ev-app-welcome {
	background: linear-gradient(135deg, var(--ev-app-charcoal) 0%, #1a2e1f 100%);
	color: #fff;
	padding: 40px;
	border-radius: 16px;
	margin-bottom: 32px;
	position: relative;
	overflow: hidden;
}
.ev-app-welcome::before {
	content: '';
	position: absolute;
	top: -100px; right: -100px;
	width: 360px; height: 360px;
	background: radial-gradient(circle, rgba(155, 201, 80, 0.3), transparent 70%);
	pointer-events: none;
}
.ev-app-welcome h1 {
	color: #fff;
	font-size: 2rem;
	margin-bottom: 8px;
	position: relative;
}
.ev-app-welcome p {
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.05rem;
	max-width: 540px;
	position: relative;
}
.ev-app-shortcut-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.ev-app-shortcut {
	background: #fff;
	border: 1px solid var(--ev-app-border);
	border-radius: 14px;
	padding: 24px;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ev-app-shortcut:hover {
	transform: translateY(-3px);
	border-color: var(--ev-app-green);
	box-shadow: 0 16px 32px rgba(15, 26, 19, 0.06);
}
.ev-app-shortcut-icon {
	width: 44px; height: 44px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--ev-app-green), var(--ev-app-green-dark));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ev-app-shortcut-icon svg { width: 22px; height: 22px; }
.ev-app-shortcut h3 { font-size: 1.05rem; font-weight: 800; color: var(--ev-app-charcoal); }
.ev-app-shortcut p { color: var(--ev-app-text-500); font-size: 0.9rem; }

/* 404 / not found inside shell */
.ev-app-notfound {
	background: #fff;
	border-radius: 16px;
	padding: 64px 32px;
	text-align: center;
	border: 1px dashed var(--ev-app-border);
}
.ev-app-notfound h2 { font-size: 1.5rem; margin-bottom: 8px; }
.ev-app-notfound p { color: var(--ev-app-text-500); margin-bottom: 20px; }
.ev-app-notfound a {
	display: inline-block;
	padding: 10px 22px;
	background: var(--ev-app-charcoal);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
}

/* ============================================================
   MOBILE — sidebar becomes drawer
   ============================================================ */
@media (max-width: 900px) {
	.ev-app { grid-template-columns: 1fr; }
	.ev-app-sidebar {
		position: fixed;
		top: 0; left: 0;
		width: 280px;
		z-index: 100;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		box-shadow: 0 24px 48px rgba(0,0,0,0.2);
	}
	.ev-app-sidebar.is-open { transform: translateX(0); }
	.ev-app-mobile-toggle { display: block; }
	.ev-app-topbar {
		padding: 0 14px;
		gap: 10px;
	}
	.ev-app-topbar-name { display: none; }
	.ev-app-topbar-home-label { display: none; }
	.ev-app-topbar-home { padding: 9px 12px; }
	.ev-app-topbar-logout span,
	.ev-app-topbar-logout {
		font-size: 0.82rem;
	}
	.ev-app-main { padding: 20px; }
	.ev-app-welcome { padding: 28px 24px; }
	.ev-app-welcome h1 { font-size: 1.6rem; }
	.ev-app-welcome p { font-size: 0.95rem; }
	.ev-app-shortcut-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.ev-app-topbar { padding: 0 10px; }
	.ev-app-topbar-crumbs { font-size: 0.78rem; }
	.ev-app-topbar-avatar { width: 32px; height: 32px; font-size: 0.85rem; }
	.ev-app-topbar-home,
	.ev-app-topbar-logout {
		padding: 8px 10px;
		font-size: 0.8rem;
	}
	.ev-app-topbar-logout span:not(.label) {
		display: none; /* leave only the icon */
	}
	.ev-app-main { padding: 16px; }
	.ev-app-welcome { padding: 24px 18px; }
	.ev-app-welcome h1 { font-size: 1.35rem; }
}

/* Overlay when drawer is open */
.ev-app-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 26, 19, 0.45);
	z-index: 99;
}
.ev-app-overlay.is-visible { display: block; }

/* WP admin bar offset */
body.ev-app-body.admin-bar .ev-app-sidebar,
body.ev-app-body.admin-bar .ev-app-topbar { top: 32px; }
body.ev-app-body.admin-bar .ev-app-sidebar { height: calc(100vh - 32px); }
@media (max-width: 782px) {
	body.ev-app-body.admin-bar .ev-app-sidebar,
	body.ev-app-body.admin-bar .ev-app-topbar { top: 46px; }
	body.ev-app-body.admin-bar .ev-app-sidebar { height: calc(100vh - 46px); }
}

/* ──────────────────────────────────────────────────────────────
 * Topbar notification bell
 * ──────────────────────────────────────────────────────────── */
.ev-app-bell { position: relative; }
.ev-app-bell summary { list-style: none; cursor: pointer; }
.ev-app-bell summary::-webkit-details-marker { display: none; }
.ev-app-bell-trigger {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px;
	background: transparent;
	border: 1px solid rgba(15, 26, 19, 0.08);
	border-radius: 999px;
	color: #475569;
	position: relative;
	transition: background .15s ease, color .15s ease;
}
.ev-app-bell-trigger svg { width: 18px; height: 18px; }
.ev-app-bell:hover .ev-app-bell-trigger,
.ev-app-bell[open] .ev-app-bell-trigger {
	background: #f3f9e8;
	color: #4a651f;
}
.ev-app-bell-badge {
	position: absolute; top: -4px; right: -4px;
	background: #ef4444; color: #fff;
	font-size: 10px; font-weight: 800;
	padding: 2px 6px; border-radius: 999px;
	min-width: 18px; text-align: center; line-height: 1;
	border: 2px solid #fff;
}
.ev-app-bell-panel {
	position: absolute; right: 0; top: calc(100% + 8px);
	width: 360px; max-width: 92vw;
	background: #fff;
	border: 1px solid rgba(15, 26, 19, 0.12);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 26, 19, 0.12);
	z-index: 50;
}
.ev-app-bell-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 16px; border-bottom: 1px solid #f1f5f9;
}
.ev-app-bell-head strong { font-size: .9rem; color: #0f1a13; }
.ev-app-bell-mark {
	background: transparent; border: 0;
	color: #5d7f29; font-size: .78rem; cursor: pointer; font-weight: 600;
}
.ev-app-bell-mark:hover { color: #4a651f; }
.ev-app-bell-empty { padding: 24px 16px; text-align: center; color: #94a3b8; font-size: .88rem; }
.ev-app-bell-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.ev-app-bell-list li { border-bottom: 1px solid #f1f5f9; }
.ev-app-bell-list li:last-child { border-bottom: 0; }
.ev-app-bell-list a {
	display: block; padding: 12px 16px;
	text-decoration: none; color: #0f1a13;
	transition: background .15s ease;
}
.ev-app-bell-list a:hover { background: #f9fafb; }
.ev-app-bell-list li.is-unread a { background: #f3f9e8; }
.ev-app-bell-list li.is-unread a:hover { background: #e9f3d2; }
.ev-app-bell-list strong { display: block; font-size: .85rem; line-height: 1.3; }
.ev-app-bell-list .ev-app-bell-msg { display: block; font-size: .78rem; color: #64748b; margin-top: 3px; }
.ev-app-bell-list time { display: block; font-size: .7rem; color: #94a3b8; margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }
.ev-app-bell-footer {
	display: block; padding: 12px 16px; text-align: center;
	font-size: .84rem; color: #5d7f29; font-weight: 600;
	text-decoration: none; border-top: 1px solid #f1f5f9;
}
.ev-app-bell-footer:hover { background: #f9fafb; }

/* Section title used in dashboard */
.ev-app-section-title { font-size: 1.1rem; font-weight: 700; color: #0f1a13; margin: 28px 0 12px; }

/* ──────────────────────────────────────────────────────────────
 * Topbar search (búsqueda global)
 * ──────────────────────────────────────────────────────────── */
.ev-app-topbar-search {
	flex: 1 1 320px;
	max-width: 460px;
	position: relative;
	margin: 0 16px;
}
.ev-app-topbar-search svg {
	position: absolute;
	left: 14px; top: 50%;
	transform: translateY(-50%);
	width: 16px; height: 16px;
	color: #94a3b8;
	pointer-events: none;
}
.ev-app-topbar-search input {
	width: 100%;
	padding: 9px 12px 9px 38px;
	border: 1px solid rgba(15, 26, 19, 0.08);
	border-radius: 999px;
	background: #f9fafb;
	color: #0f1a13;
	font-size: .9rem;
	transition: background .15s ease, border-color .15s ease;
}
.ev-app-topbar-search input:focus {
	outline: none;
	background: #fff;
	border-color: #9bc950;
	box-shadow: 0 0 0 3px rgba(155, 201, 80, 0.15);
}
.ev-app-topbar-search input::placeholder { color: #94a3b8; }
@media (max-width: 720px) {
	.ev-app-topbar-search { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   v2 — Typography uplift + Home redesign + responsive polish
   ══════════════════════════════════════════════════════════════ */

/* Base typography subida (15.5px → mejor legibilidad) */
body.ev-app-body { font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.ev-app-body h1 { font-size: clamp(1.7rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
body.ev-app-body h2 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.25; letter-spacing: -0.01em; }
body.ev-app-body h3 { font-size: 1.02rem; }

/* Main padding más cómodo */
.ev-app-main { padding: 32px clamp(20px, 3vw, 36px); max-width: 1320px; margin: 0 auto; width: 100%; }

/* ──────────────────────────────────────────────────────────────
 * Topbar search (más grande + mejor look)
 * ──────────────────────────────────────────────────────────── */
.ev-app-topbar { padding: 14px 24px; gap: 16px; }
.ev-app-topbar-search {
	flex: 1 1 0; max-width: 520px;
	min-width: 0; position: relative;
	margin: 0;
}
.ev-app-topbar-search svg {
	position: absolute; left: 16px; top: 50%;
	transform: translateY(-50%);
	width: 18px; height: 18px; color: #94a3b8;
	pointer-events: none;
}
.ev-app-topbar-search input {
	width: 100%; height: 44px;
	padding: 0 16px 0 46px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	color: #0f1a13;
	font-size: 0.95rem;
	font-family: inherit;
	transition: all .15s ease;
}
.ev-app-topbar-search input:hover { background: #fff; border-color: #cbd5e1; }
.ev-app-topbar-search input:focus {
	outline: none; background: #fff; border-color: #9bc950;
	box-shadow: 0 0 0 4px rgba(155, 201, 80, 0.18);
}
.ev-app-topbar-search input::placeholder { color: #94a3b8; }

/* Bell/Home buttons más coherentes con el search */
.ev-app-bell-trigger,
.ev-app-topbar-home { height: 44px; }

/* ──────────────────────────────────────────────────────────────
 * HOME redesign
 * ──────────────────────────────────────────────────────────── */
.ev-home { display: flex; flex-direction: column; gap: 24px; }

/* HERO */
.ev-home-hero {
	background:
		linear-gradient(135deg, #5d7f29 0%, #6b8f33 45%, #9bc950 100%);
	border-radius: 20px;
	padding: 36px 40px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(93, 127, 41, 0.22);
	animation: ev-hero-in 0.5s ease-out;
}
.ev-home-hero::before {
	content: '';
	position: absolute;
	top: -120px; right: -100px;
	width: 380px; height: 380px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
	pointer-events: none;
	animation: ev-hero-glow 6s ease-in-out infinite;
}
.ev-home-hero::after {
	content: '';
	position: absolute;
	bottom: -80px; left: -60px;
	width: 280px; height: 280px;
	background: radial-gradient(circle, rgba(15, 26, 19, 0.18), transparent 65%);
	pointer-events: none;
}
@keyframes ev-hero-in {
	from { opacity: 0; transform: translateY(-12px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes ev-hero-glow {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(1.08); opacity: 0.85; }
}
.ev-home-hero-text { position: relative; max-width: 640px; min-width: 0; }
.ev-home-hero-greet {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 8px;
}
.ev-home-hero h1 {
	color: #fff !important;
	font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
	font-weight: 800;
	margin: 0 0 10px;
	letter-spacing: -0.02em;
	display: inline-flex; align-items: center; gap: 10px;
}
.ev-home-hero-wave { display: inline-block; animation: ev-wave 1.4s ease-in-out 2; transform-origin: 70% 70%; }
@keyframes ev-wave { 0%,60%,100% { transform: rotate(0deg); } 20% { transform: rotate(20deg); } 40% { transform: rotate(-10deg); } }
.ev-home-hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.02rem; margin: 0; }
.ev-home-hero p strong { color: #9bc950; font-weight: 800; }
.ev-home-hero-cta {
	display: inline-flex; align-items: center; gap: 8px;
	background: #9bc950;
	color: #0f1a13 !important;
	padding: 13px 22px;
	border-radius: 999px;
	font-weight: 700; font-size: 0.95rem;
	white-space: nowrap;
	box-shadow: 0 10px 24px rgba(155, 201, 80, 0.3);
	transition: transform .15s ease, box-shadow .15s ease;
	position: relative;
}
.ev-home-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(155, 201, 80, 0.45); }

/* KPI cards */
.ev-home-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}
.ev-home-stat {
	display: flex; align-items: center; gap: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 18px 20px;
	text-decoration: none !important; color: inherit !important;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ev-home-stat:hover {
	transform: translateY(-2px);
	border-color: #9bc950;
	box-shadow: 0 12px 28px rgba(15, 26, 19, 0.08);
}
.ev-home-stat-icon {
	flex: 0 0 auto;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: #f3f9e8;
	color: #4a651f;
	display: flex; align-items: center; justify-content: center;
}
.ev-home-stat-body { flex: 1; min-width: 0; }
.ev-home-stat-value { font-size: 1.7rem; font-weight: 800; color: #0f1a13; line-height: 1; letter-spacing: -0.02em; }
.ev-home-stat-label { font-size: 0.84rem; color: #64748b; margin-top: 4px; font-weight: 500; }
.ev-home-stat.is-alert { background: #fff7ed; border-color: #fed7aa; }
.ev-home-stat.is-alert .ev-home-stat-icon { background: #fff; color: #c2410c; }
.ev-home-stat.is-alert .ev-home-stat-value { color: #c2410c; }
.ev-home-stat.is-cta { background: #0f1a13; color: #fff !important; border-color: #0f1a13; }
.ev-home-stat.is-cta .ev-home-stat-icon { background: rgba(155, 201, 80, 0.2); color: #9bc950; }
.ev-home-stat.is-cta .ev-home-stat-value { color: #9bc950; font-size: 1.3rem; }
.ev-home-stat.is-cta .ev-home-stat-label { color: rgba(255, 255, 255, 0.7); }

/* Panels grid (2 columnas) */
.ev-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
.ev-home-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
}
.ev-home-panel-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px 12px;
}
.ev-home-panel-head h2 {
	margin: 0;
	font-size: 1rem !important;
	font-weight: 800;
	color: #0f1a13;
	display: flex; align-items: center; gap: 8px;
}
.ev-home-panel-dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: #9bc950; }
.ev-home-panel-dot--alert { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.ev-home-panel-head a {
	color: #5d7f29 !important;
	font-size: 0.84rem;
	font-weight: 600;
}
.ev-home-panel-head a:hover { color: #4a651f !important; }

.ev-home-list { list-style: none; margin: 0; padding: 0; }
.ev-home-list li + li { border-top: 1px solid #f1f5f9; }
.ev-home-list a {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 20px;
	color: inherit !important;
	transition: background .15s ease;
}
.ev-home-list a:hover { background: #f9fafb; }
.ev-home-list-main { flex: 1; min-width: 0; }
.ev-home-list-main strong { display: block; font-weight: 700; color: #0f1a13; font-size: 0.96rem; }
.ev-home-list-main span { display: block; color: #64748b; font-size: 0.82rem; margin-top: 3px; }
.ev-home-list-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ev-home-amount { font-weight: 700; color: #0f1a13; font-size: 0.92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ev-home-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: #f1f5f9; color: #475569;
}
.ev-home-pill--stale     { background: #fee2e2; color: #b91c1c; }
.ev-home-pill--active    { background: #dbeafe; color: #1e40af; }
.ev-home-pill--completed { background: #d1fae5; color: #047857; }
.ev-home-pill--cancelled { background: #fee2e2; color: #991b1b; }

.ev-home-empty {
	background: #fff;
	border: 2px dashed #e5e7eb;
	border-radius: 16px;
	padding: 56px 24px;
	text-align: center;
}
.ev-home-empty-illu { font-size: 3.6rem; line-height: 1; margin-bottom: 10px; }
.ev-home-empty h3 { color: #0f1a13; font-size: 1.15rem !important; margin: 6px 0 6px; }
.ev-home-empty p { color: #64748b; max-width: 460px; margin: 0 auto 18px; text-align: center; }
.ev-home-empty-cta {
	display: inline-block;
	padding: 13px 24px;
	background: #0f1a13;
	color: #fff !important;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform .15s ease, background .15s ease;
}
.ev-home-empty-cta:hover { background: #4a651f; transform: translateY(-1px); }

/* ──────────────────────────────────────────────────────────────
 * Responsive — Mobile fixes
 * ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.ev-home-hero { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
	.ev-home-hero-cta { width: 100%; justify-content: center; }
	.ev-home-stats { grid-template-columns: repeat(2, 1fr); }
	.ev-home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ev-app-main { padding: 16px 14px; }
	.ev-app-topbar { padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
	.ev-app-topbar-search { order: 99; flex-basis: 100%; max-width: none; display: block; }
	.ev-app-topbar-search input { height: 40px; }
	.ev-home-hero { padding: 24px 20px; border-radius: 16px; }
	.ev-home-hero-greet { font-size: 0.75rem; }
	.ev-home-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ev-home-stat { padding: 14px; }
	.ev-home-stat-icon { width: 38px; height: 38px; }
	.ev-home-stat-value { font-size: 1.4rem; }
	.ev-home-stat-label { font-size: 0.76rem; }
	.ev-home-panel-head { padding: 14px 16px 8px; }
	.ev-home-list a { padding: 12px 16px; gap: 10px; }
	.ev-home-list-main strong { font-size: 0.92rem; }
	.ev-home-list-meta { flex-direction: column; align-items: flex-end; gap: 4px; }
}

/* ──────────────────────────────────────────────────────────────
 * v2 — Polish final: topbar layout, breakpoints intermedios
 * ──────────────────────────────────────────────────────────── */
.ev-app-topbar {
	display: flex; align-items: center;
	flex-wrap: nowrap;
	gap: 14px;
}
.ev-app-topbar-title { flex-shrink: 0; }
.ev-app-topbar-actions { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.ev-app-topbar-user { flex-shrink: 0; }

/* Reset del welcome viejo (ya no se usa, evita conflictos si quedó cache) */
.ev-app-welcome { display: none; }

/* Tablet intermedio (901-1100): mantener sidebar pero compactar topbar */
@media (max-width: 1100px) {
	.ev-app-topbar { padding: 12px 18px; gap: 10px; }
	.ev-app-topbar-search { max-width: 320px; }
	.ev-app-topbar-name { display: none; }
	.ev-app-topbar-home-label { display: none; }
}

@media (max-width: 900px) {
	.ev-app-topbar-search { flex: 1 1 auto; max-width: 100%; }
	.ev-home-hero { padding: 26px 22px; }
}

@media (max-width: 600px) {
	.ev-app-topbar { flex-wrap: wrap; }
	.ev-app-topbar-title { display: none; }
	.ev-app-topbar-actions { margin-left: auto; }
	.ev-app-topbar-search { order: 99; flex-basis: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   v3 FIXES — Buscador, spacing de secciones, cards de atajos
   ══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
 * Buscador: lupa no debe pisar el placeholder
 * ──────────────────────────────────────────────────────────── */
.ev-app-topbar-search { position: relative; }
.ev-app-topbar-search input {
	box-sizing: border-box !important;
	padding-left: 48px !important;
	padding-right: 18px !important;
}
.ev-app-topbar-search svg {
	left: 16px !important;
	width: 18px !important;
	height: 18px !important;
	stroke-width: 2;
	color: #94a3b8;
	pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────
 * Sección Atajos: respiración antes del título + gap entre cards
 * ──────────────────────────────────────────────────────────── */
.ev-app-section-title {
	margin: 40px 0 16px !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #64748b;
}

.ev-app-shortcut-grid {
	gap: 18px !important;
	margin-bottom: 24px;
}

/* Cards de atajos: hover refinado, padding cómodo */
.ev-app-shortcut {
	padding: 22px 20px !important;
	border-radius: 14px !important;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease !important;
	display: flex !important; flex-direction: column; gap: 4px;
}
.ev-app-shortcut:hover {
	transform: translateY(-2px);
	border-color: #9bc950 !important;
	box-shadow: 0 12px 24px rgba(15, 26, 19, 0.06) !important;
}
.ev-app-shortcut-icon {
	width: 44px !important; height: 44px !important;
	border-radius: 12px;
	background: linear-gradient(135deg, #9bc950, #5d7f29) !important;
	color: #fff !important;
	display: flex !important; align-items: center; justify-content: center;
	margin-bottom: 10px;
}
.ev-app-shortcut-icon svg { width: 22px; height: 22px; stroke: #fff; }
.ev-app-shortcut h3 {
	font-size: 0.85rem !important;
	font-weight: 800 !important;
	color: #0f1a13 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 2px !important;
}
.ev-app-shortcut p {
	color: #64748b !important;
	font-size: 0.85rem !important;
	line-height: 1.5;
	margin: 0;
}

/* Aire al final del main para que la última fila no quede pegada al fondo */
.ev-app-main > :last-child { margin-bottom: 24px; }

/* ──────────────────────────────────────────────────────────────
 * Responsive: ajustes adicionales
 * ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.ev-app-section-title { margin-top: 32px !important; }
	.ev-app-shortcut-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important; gap: 14px !important; }
	.ev-app-shortcut { padding: 18px 16px !important; }
}
@media (max-width: 600px) {
	.ev-app-section-title { margin-top: 28px !important; margin-bottom: 10px !important; }
	.ev-app-shortcut-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
	.ev-app-shortcut { padding: 16px 14px !important; border-radius: 12px !important; }
	.ev-app-shortcut-icon { width: 38px !important; height: 38px !important; margin-bottom: 8px; }
	.ev-app-shortcut h3 { font-size: 0.78rem !important; }
	.ev-app-shortcut p { display: none; }
}

/* ──────────────────────────────────────────────────────────────
 * Ocultar el nav legacy de activity-tracker-checkin dentro del App Shell
 * (sólo aplica cuando el body tiene clase ev-app-body, es decir /app/*)
 * ──────────────────────────────────────────────────────────── */
body.ev-app-body .wat-topnav { display: none !important; }

/* ──────────────────────────────────────────────────────────────
 * Cuenta — perfil, cambiar contraseña, registro (Account class)
 * ──────────────────────────────────────────────────────────── */
.wat-ev-account { max-width: 800px; margin: 0 auto; padding-bottom: 32px; }
.wat-ev-account--narrow { max-width: 540px; }
.wat-ev-account-head { margin-bottom: 18px; }
.wat-ev-account-head h1 {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0f1a13;
	margin: 0 0 6px;
}
.wat-ev-account-head p { color: #64748b; margin: 0; font-size: 0.96rem; }

.wat-ev-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 1px 2px rgba(15, 26, 19, 0.04);
}

/* Avatar block (perfil) */
.wat-ev-avatar-block {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 22px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 22px;
}
.wat-ev-avatar {
	width: 72px; height: 72px;
	border-radius: 999px;
	background: linear-gradient(135deg, #9bc950, #5d7f29);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800;
	font-size: 1.8rem;
	letter-spacing: 0.02em;
	flex-shrink: 0;
	box-shadow: 0 6px 18px rgba(155, 201, 80, 0.3);
}
.wat-ev-avatar-meta { min-width: 0; }
.wat-ev-avatar-meta strong { display: block; font-size: 1.1rem; color: #0f1a13; font-weight: 700; }
.wat-ev-avatar-meta span { display: block; color: #475569; font-size: 0.92rem; margin-top: 2px; }
.wat-ev-avatar-meta small { display: block; color: #94a3b8; font-size: 0.82rem; margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Sección titulares */
.wat-ev-section-title {
	margin: 22px 0 12px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #5d7f29;
}
.wat-ev-section-title:first-child { margin-top: 0; }

/* Grid de campos */
.wat-ev-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}
.wat-ev-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.wat-ev-field-full { grid-column: 1 / -1; }
.wat-ev-field > span {
	font-size: 0.74rem;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.wat-ev-field input[type="text"],
.wat-ev-field input[type="email"],
.wat-ev-field input[type="tel"],
.wat-ev-field input[type="password"],
.wat-ev-field select {
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: 0.95rem;
	color: #0f1a13;
	background: #f9fafb;
	font-family: inherit;
	transition: all .15s ease;
}
.wat-ev-field input:hover,
.wat-ev-field select:hover { background: #fff; border-color: #cbd5e1; }
.wat-ev-field input:focus,
.wat-ev-field select:focus {
	outline: none;
	background: #fff;
	border-color: #9bc950;
	box-shadow: 0 0 0 4px rgba(155, 201, 80, 0.18);
}
.wat-ev-field input[disabled] {
	background: #f3f4f6;
	color: #94a3b8;
	cursor: not-allowed;
}
.wat-ev-field small {
	color: #94a3b8;
	font-size: 0.8rem;
	line-height: 1.45;
}

/* Checkbox row */
.wat-ev-checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}
.wat-ev-checkbox input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.wat-ev-checkbox span {
	font-size: 0.92rem !important;
	color: #1e293b !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.55 !important;
}

/* Phone country selector — más ancho para el código + flag */
.wat-ev-phone-country { font-size: 0.92rem; }

/* Actions */
.wat-ev-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9;
	flex-wrap: wrap;
}
.wat-ev-btn-primary {
	background: #0f1a13;
	color: #fff;
	border: 0;
	padding: 13px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	text-decoration: none;
	display: inline-block;
}
.wat-ev-btn-primary:hover {
	background: #4a651f;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(74, 101, 31, 0.3);
}
.wat-ev-btn-ghost {
	color: #5d7f29;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.92rem;
	padding: 13px 16px;
}
.wat-ev-btn-ghost:hover { color: #4a651f; }

/* Flash messages */
.wat-ev-flash {
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-size: 0.92rem;
	font-weight: 600;
	border: 1px solid;
}
.wat-ev-flash--success { background: #d1fae5; color: #047857; border-color: #6ee7b7; }
.wat-ev-flash--error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

@media (max-width: 600px) {
	.wat-ev-card { padding: 20px 18px; border-radius: 14px; }
	.wat-ev-grid { grid-template-columns: 1fr; gap: 14px; }
	.wat-ev-avatar-block { gap: 12px; }
	.wat-ev-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
	.wat-ev-actions { flex-direction: column; align-items: stretch; }
	.wat-ev-btn-primary, .wat-ev-btn-ghost { width: 100%; text-align: center; }
}

/* Firma preview block */
.wat-ev-signature-block { padding: 4px 0; }
.wat-ev-signature-preview {
	background: linear-gradient(135deg, #fafbfa 25%, #f1f5f9 25%, #f1f5f9 50%, #fafbfa 50%, #fafbfa 75%, #f1f5f9 75%);
	background-size: 14px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
	text-align: center;
	max-width: 360px;
}
.wat-ev-signature-preview img {
	max-width: 100%;
	max-height: 140px;
	height: auto;
	display: inline-block;
	background: #fff;
	padding: 8px;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(15, 26, 19, 0.06);
}
.wat-ev-signature-empty {
	display: flex; align-items: center; gap: 14px;
	background: #f9fafb;
	border: 2px dashed #e5e7eb;
	border-radius: 12px;
	padding: 16px 20px;
	max-width: 360px;
}
.wat-ev-signature-empty span { font-size: 2rem; line-height: 1; }
.wat-ev-signature-empty p { margin: 0; color: #64748b; font-size: 0.92rem; }
.wat-ev-signature-block input[type="file"] {
	padding: 8px 0;
	background: transparent;
	border: 0;
	height: auto;
	font-size: 0.9rem;
}

/* Signature: tabs + canvas */
.wat-ev-signature-current { margin-bottom: 14px; }
.wat-ev-signature-current small { display: block; color: #64748b; font-size: 0.78rem; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.wat-ev-sig-tabs {
	display: inline-flex;
	gap: 4px;
	background: #f1f5f9;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 12px;
}
.wat-ev-sig-tab {
	padding: 8px 16px;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #475569;
	font-weight: 600;
	font-size: 0.88rem;
	cursor: pointer;
	transition: all .15s ease;
}
.wat-ev-sig-tab:hover { color: #0f1a13; }
.wat-ev-sig-tab.is-active {
	background: #0f1a13;
	color: #fff;
	box-shadow: 0 4px 10px rgba(15, 26, 19, 0.18);
}

.wat-ev-sig-panel { margin-top: 6px; }
.wat-ev-sig-panel[hidden] { display: none !important; }

.wat-ev-sig-canvas-wrap {
	position: relative;
	background:
		linear-gradient(135deg, #fafbfa 25%, #f1f5f9 25%, #f1f5f9 50%, #fafbfa 50%, #fafbfa 75%, #f1f5f9 75%);
	background-size: 14px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 8px;
	display: inline-block;
	max-width: 100%;
}
.wat-ev-sig-canvas-wrap canvas {
	display: block;
	background: #fff;
	border-radius: 6px;
	cursor: crosshair;
	touch-action: none;
	width: 100%;
	max-width: 640px;
	height: auto;
	aspect-ratio: 640 / 200;
}
.wat-ev-sig-canvas-hint {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
	font-size: 0.92rem;
	font-style: italic;
	pointer-events: none;
}
.wat-ev-sig-canvas-wrap canvas.has-drawn + .wat-ev-sig-canvas-hint { display: none; }

.wat-ev-sig-panel button[data-sig-clear] { margin-top: 10px; }

/* ──────────────────────────────────────────────────────────────
 * Perfil v2: spacing entre secciones + avatar editable
 * ──────────────────────────────────────────────────────────── */

/* Spacing claro entre secciones del perfil */
.wat-ev-section-title {
	margin: 28px 0 14px !important;
	padding-top: 22px;
	border-top: 1px solid #f1f5f9;
}
.wat-ev-section-title:first-of-type {
	margin-top: 0 !important;
	padding-top: 0;
	border-top: 0;
}

/* Avatar editable */
.wat-ev-avatar-wrap { position: relative; flex-shrink: 0; }
.wat-ev-avatar--photo {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: transparent;
}
.wat-ev-avatar-edit {
	position: absolute;
	bottom: -4px;
	right: -4px;
	width: 30px; height: 30px;
	border-radius: 999px;
	background: #0f1a13;
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(15, 26, 19, 0.25);
	transition: transform .15s ease, background .15s ease;
	border: 2px solid #fff;
}
.wat-ev-avatar-edit:hover {
	background: #4a651f;
	transform: scale(1.08);
}
.wat-ev-avatar-edit input[type="file"] {
	position: absolute;
	width: 1px; height: 1px;
	opacity: 0;
	overflow: hidden;
}
.wat-ev-avatar-remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 0.82rem;
	color: #b91c1c;
	cursor: pointer;
}
.wat-ev-avatar-hint {
	display: block;
	margin-top: 6px;
	color: #94a3b8 !important;
	font-size: 0.82rem !important;
}

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

/* Topbar avatar con foto */
.ev-app-topbar-avatar--photo {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: transparent;
	font-size: 0;
}

/* ──────────────────────────────────────────────────────────────
 * wat-ev-page: wrapper para páginas standalone (login/register/recuperar)
 * que NO usan el App Shell. Da fondo, centrado y typography base.
 * ──────────────────────────────────────────────────────────── */
.wat-ev-page {
	min-height: 70vh;
	padding: 48px 16px;
	background: #f4f6f4;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 15.5px;
	line-height: 1.55;
	color: #0f1a13;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.wat-ev-page * { box-sizing: border-box; }
.wat-ev-page .wat-ev-card {
	margin: 0 auto;
}
.wat-ev-page.wat-ev-account--narrow .wat-ev-card {
	max-width: 480px;
}
.wat-ev-page .wat-ev-account-head {
	max-width: 480px;
	margin: 0 auto 18px;
	text-align: center;
}
.wat-ev-page .wat-ev-account-head h1 {
	font-size: clamp(1.5rem, 3vw, 1.9rem) !important;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0f1a13;
	margin: 0 0 8px;
	text-transform: none;
}
.wat-ev-page .wat-ev-account-head p {
	color: #64748b;
	margin: 0;
	font-size: 0.96rem;
}

/* Asegurar que los inputs y selects pegados al tema no rompan el layout */
.wat-ev-page .wat-ev-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px 18px !important;
}
.wat-ev-page .wat-ev-field {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	min-width: 0;
}
.wat-ev-page .wat-ev-field-full {
	grid-column: 1 / -1 !important;
}
.wat-ev-page .wat-ev-field > span {
	display: block !important;
	font-size: 0.74rem !important;
	font-weight: 700 !important;
	color: #475569 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	margin: 0 !important;
}
.wat-ev-page .wat-ev-field input,
.wat-ev-page .wat-ev-field select {
	display: block !important;
	width: 100% !important;
	height: 44px !important;
	padding: 0 14px !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 10px !important;
	background: #f9fafb !important;
	color: #0f1a13 !important;
	font-size: 0.95rem !important;
	font-family: inherit !important;
	margin: 0 !important;
}
.wat-ev-page .wat-ev-field input:focus,
.wat-ev-page .wat-ev-field select:focus {
	outline: none !important;
	background: #fff !important;
	border-color: #9bc950 !important;
	box-shadow: 0 0 0 4px rgba(155, 201, 80, 0.18) !important;
}
.wat-ev-page .wat-ev-checkbox {
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 10px !important;
	padding: 12px 14px !important;
	background: #f9fafb !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
}
.wat-ev-page .wat-ev-checkbox input[type="checkbox"] {
	width: auto !important;
	height: auto !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}
.wat-ev-page .wat-ev-checkbox span {
	font-size: 0.92rem !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: #1e293b !important;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.wat-ev-page { padding: 28px 14px; }
	.wat-ev-page .wat-ev-grid { grid-template-columns: 1fr !important; }
	.wat-ev-page .wat-ev-card { padding: 22px 18px; border-radius: 14px; }
}

/* ──────────────────────────────────────────────────────────────
 * Auth template (login / register / recuperar contraseña)
 * Layout standalone con header brand + main centrado + footer.
 * ──────────────────────────────────────────────────────────── */
body.wat-auth-body {
	margin: 0;
	padding: 0;
	background: #f4f6f4;
	font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 15.5px;
	line-height: 1.55;
	color: #0f1a13;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
body.wat-auth-body * { box-sizing: border-box; }
body.wat-auth-body a { color: inherit; text-decoration: none; }

.wat-auth-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wat-auth-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 32px;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 1px 2px rgba(15, 26, 19, 0.04);
}
.wat-auth-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.wat-auth-brand img { height: 40px; width: auto; display: block; }
.wat-auth-brand-text { font-weight: 800; color: #0f1a13; font-size: 1.05rem; letter-spacing: -0.02em; }

.wat-auth-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	color: #475569;
	font-weight: 600;
	font-size: 0.88rem;
	transition: all .15s ease;
}
.wat-auth-back:hover {
	background: #0f1a13;
	color: #fff;
	border-color: #0f1a13;
}

.wat-auth-main {
	flex: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 16px;
}

.wat-auth-footer {
	padding: 18px 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 0.82rem;
	border-top: 1px solid #e5e7eb;
	background: #fff;
}
.wat-auth-footer a { color: #5d7f29; font-weight: 600; }
.wat-auth-footer-sep { margin: 0 8px; opacity: 0.6; }

/* Reset del wrapper standalone — el auth-template provee su propio container,
   así que .wat-ev-page (cuando vive bajo .wat-auth-body) no necesita su padding/fondo */
body.wat-auth-body .wat-ev-page {
	min-height: auto;
	padding: 0;
	background: transparent;
}

/* En auth template, las cards y form quedan dentro del main centrado */
body.wat-auth-body .wat-ev-account { padding: 0; max-width: 520px; width: 100%; }
body.wat-auth-body .wat-ev-account--narrow { max-width: 480px; }

@media (max-width: 600px) {
	.wat-auth-header { padding: 14px 18px; }
	.wat-auth-back span,
	.wat-auth-back { font-size: 0.82rem; padding: 7px 12px; }
	.wat-auth-main { padding: 24px 12px; }
}

/* ──────────────────────────────────────────────────────────────
 * Dashboard polish: animaciones de entrada, micro-interacciones
 * ──────────────────────────────────────────────────────────── */
@keyframes ev-fade-up {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ev-home-stats { animation: ev-fade-up 0.5s ease-out 0.1s both; }
.ev-home-grid  { animation: ev-fade-up 0.5s ease-out 0.2s both; }
.ev-home-empty { animation: ev-fade-up 0.5s ease-out 0.2s both; }

/* KPI cards: lift cleaner + pulse en alerta */
.ev-home-stat { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ev-home-stat.is-alert {
	position: relative;
}
.ev-home-stat.is-alert::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), transparent 60%);
	z-index: -1;
	animation: ev-pulse 2.4s ease-in-out infinite;
	pointer-events: none;
}
@keyframes ev-pulse {
	0%, 100% { opacity: 0.6; }
	50%      { opacity: 1; }
}

/* Listas: hover sutil con desplazamiento */
.ev-home-list a { transition: background .15s ease, padding-left .2s ease; }
.ev-home-list a:hover { padding-left: 24px; }

/* CTA pulse cuando hay pendientes */
.ev-home-hero-cta { position: relative; }
.ev-home-hero-cta::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(155, 201, 80, 0.6);
	pointer-events: none;
	animation: ev-cta-pulse 2.2s ease-out infinite;
}
@keyframes ev-cta-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(155, 201, 80, 0.55); }
	70%  { box-shadow: 0 0 0 14px rgba(155, 201, 80, 0); }
	100% { box-shadow: 0 0 0 0 rgba(155, 201, 80, 0); }
}

/* Texto del hero: contraste adecuado para el gradient claro */
.ev-home-hero h1,
.ev-home-hero-greet,
.ev-home-hero p { text-shadow: 0 1px 2px rgba(15, 26, 19, 0.12); }
.ev-home-hero p strong { color: #fff !important; background: rgba(255, 255, 255, 0.18); padding: 0 8px; border-radius: 4px; }

/* ──────────────────────────────────────────────────────────────
 * Branding: botones primarios → verde oscuro (#5d7f29) en lugar de negro.
 * Aplica a todos los CTAs principales del producto.
 * ──────────────────────────────────────────────────────────── */
.wat-sp-btn-primary,
.wat-ev-btn-primary,
.wat-sp-button-primary,
.ev-home-empty-cta {
	background: #5d7f29 !important;
	color: #fff !important;
	border-color: #5d7f29 !important;
}
.wat-sp-btn-primary:hover,
.wat-ev-btn-primary:hover,
.wat-sp-button-primary:hover,
.ev-home-empty-cta:hover {
	background: #4a651f !important;
	border-color: #4a651f !important;
	color: #fff !important;
	box-shadow: 0 12px 26px rgba(93, 127, 41, 0.35) !important;
}

/* Botón ghost: borde verde al hover en lugar de negro */
.wat-sp-btn-ghost:hover {
	background: #5d7f29 !important;
	color: #fff !important;
	border-color: #5d7f29 !important;
}

/* ──────────────────────────────────────────────────────────────
 * Branding pass 2: TODO estado activo/seleccionado en verde brand
 * (sidebar, KPI cta, tabs activos, avatar-edit, etc.)
 * ──────────────────────────────────────────────────────────── */

/* Sidebar item activo */
.ev-app-item.is-active {
	background: #5d7f29 !important;
	color: #fff !important;
}
.ev-app-item.is-active .ev-app-item-icon {
	color: #c8e398 !important;
}

/* KPI "Todas" (CTA secundario del home) */
.ev-home-stat.is-cta {
	background: #5d7f29 !important;
	border-color: #5d7f29 !important;
	color: #fff !important;
}
.ev-home-stat.is-cta .ev-home-stat-icon {
	background: rgba(255, 255, 255, 0.18) !important;
	color: #fff !important;
}
.ev-home-stat.is-cta .ev-home-stat-value {
	color: #fff !important;
}
.ev-home-stat.is-cta .ev-home-stat-label {
	color: rgba(255, 255, 255, 0.85) !important;
}
.ev-home-stat.is-cta:hover {
	background: #4a651f !important;
	border-color: #4a651f !important;
}

/* Tabs activos (notificaciones, detalle de proceso) */
.wat-sp-notif-tabs a.is-active,
.wat-sp-notif-tabs a.is-active:hover,
.wat-sp-tab.is-current {
	background: #5d7f29 !important;
	color: #fff !important;
}
.wat-sp-tab.is-current .wat-sp-tab-step {
	background: rgba(255, 255, 255, 0.22) !important;
	color: #fff !important;
}

/* Avatar edit button (cámara flotante en perfil) */
.wat-ev-avatar-edit {
	background: #5d7f29 !important;
}
.wat-ev-avatar-edit:hover {
	background: #4a651f !important;
}

/* Empty state CTA */
.ev-home-empty-cta {
	background: #5d7f29 !important;
}
.ev-home-empty-cta:hover {
	background: #4a651f !important;
}

/* Signature tab activo (segmented control en perfil) */
.wat-ev-sig-tab.is-active {
	background: #5d7f29 !important;
	color: #fff !important;
	box-shadow: 0 4px 10px rgba(93, 127, 41, 0.25) !important;
}

/* Botones de paginación activos */
.wat-sp-pagination-links .is-current {
	background: #5d7f29 !important;
	border-color: #5d7f29 !important;
	color: #fff !important;
}

/* Sidebar group active state already inherits → verificación */
.ev-app-item.is-active:hover {
	background: #4a651f !important;
}

/* ──────────────────────────────────────────────────────────────
 * Hero CTA: blanco con texto charcoal — máximo contraste sobre el gradient verde
 * ──────────────────────────────────────────────────────────── */
.ev-home-hero-cta {
	background: #fff !important;
	color: #0f1a13 !important;
	box-shadow: 0 10px 28px rgba(15, 26, 19, 0.18) !important;
	font-weight: 700;
}
.ev-home-hero-cta svg { stroke: #5d7f29 !important; }
.ev-home-hero-cta:hover {
	background: #fafaf6 !important;
	color: #0f1a13 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 14px 36px rgba(15, 26, 19, 0.22) !important;
}

/* Pulse ring del CTA — blanco semitransparente para que se vea sobre el verde */
.ev-home-hero-cta::after {
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55) !important;
	animation: ev-cta-pulse-light 2.2s ease-out infinite !important;
}
@keyframes ev-cta-pulse-light {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
	70%  { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE SWEEP — Mobile/tablet polish completo
   ══════════════════════════════════════════════════════════════ */

/* Tap targets touch-friendly: mínimo 40px de alto en todos los inputs/botones */
@media (max-width: 900px) {
	body.ev-app-body input,
	body.ev-app-body select,
	body.ev-app-body button,
	body.ev-app-body textarea,
	body.wat-auth-body input,
	body.wat-auth-body select,
	body.wat-auth-body button {
		font-size: 16px; /* Evita zoom en iOS Safari */
	}
}

/* ── Tablet (601-900px) ── */
@media (max-width: 900px) {
	.ev-app-main { padding: 22px 18px; }
	.ev-home-hero { padding: 26px 22px; border-radius: 16px; }
	.ev-home-hero h1 { font-size: 1.7rem !important; }
	.ev-home-hero p  { font-size: 0.96rem; }
	.ev-home-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ev-home-grid  { grid-template-columns: 1fr; gap: 14px; }
	.ev-home-panel-head { padding: 14px 16px 10px; }
	.ev-home-panel-head h2 { font-size: 0.96rem !important; }
	.ev-home-list a { padding: 12px 16px; }

	/* Sidebar y topbar already responsive — verificar buscador */
	.ev-app-topbar-search input { height: 40px; font-size: 16px; padding-left: 42px !important; }
	.ev-app-topbar-search svg { left: 14px !important; width: 16px !important; height: 16px !important; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
	.ev-app-main { padding: 18px 14px; }

	/* Topbar compacto */
	.ev-app-topbar { padding: 10px 14px; gap: 8px; flex-wrap: wrap; min-height: 60px; }
	.ev-app-topbar-name { display: none; }
	.ev-app-topbar-home-label { display: none; }
	.ev-app-topbar-home { padding: 9px 12px; }
	.ev-app-topbar-logout span { display: none; }
	.ev-app-topbar-logout { padding: 9px 12px; }
	.ev-app-topbar-avatar { width: 34px; height: 34px; font-size: 0.85rem; }

	/* Buscador full-width en segunda fila.
	 * IMPORTANTE: height: auto en lugar de la variable (64px) para que la
	 * segunda fila con el buscador no se monte encima del contenido siguiente. */
	.ev-app-topbar { height: auto !important; padding-bottom: 8px; }
	.ev-app-topbar-search { order: 99; flex: 1 1 100%; max-width: 100%; margin: 4px 0 0; display: block; }
	.ev-app-topbar-search input { height: 38px; font-size: 0.9rem; }

	/* Hero mobile */
	.ev-home-hero { padding: 22px 18px; border-radius: 14px; flex-direction: column; align-items: flex-start; }
	.ev-home-hero h1 { font-size: 1.45rem !important; }
	.ev-home-hero-greet { font-size: 0.72rem; }
	.ev-home-hero p { font-size: 0.9rem; }
	.ev-home-hero-cta { width: 100%; justify-content: center; padding: 12px 18px !important; }

	/* KPIs 2 columnas */
	.ev-home-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ev-home-stat { padding: 14px 12px; gap: 10px; }
	.ev-home-stat-icon { width: 36px; height: 36px; }
	.ev-home-stat-value { font-size: 1.35rem; }
	.ev-home-stat-label { font-size: 0.74rem; }

	/* Listas */
	.ev-home-list a { padding: 12px 14px; gap: 10px; }
	.ev-home-list-main strong { font-size: 0.9rem; }
	.ev-home-list-meta { flex-direction: column; align-items: flex-end; gap: 4px; }
	.ev-home-amount { font-size: 0.85rem; }

	/* Bell panel mobile: full screen-ish */
	.ev-app-bell-panel { width: 92vw; right: -10px; }

	/* Account page mobile */
	.wat-ev-card { padding: 20px 16px; border-radius: 14px; }
	.wat-ev-avatar-block { flex-direction: column; align-items: flex-start; gap: 14px; }
	.wat-ev-avatar { width: 60px; height: 60px; font-size: 1.5rem; }
	.wat-ev-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
	.wat-ev-section-title { font-size: 0.7rem !important; margin: 22px 0 10px !important; }
	.wat-ev-actions { flex-direction: column-reverse; align-items: stretch; }
	.wat-ev-btn-primary, .wat-ev-btn-ghost { width: 100%; text-align: center; }

	/* Auth pages mobile */
	body.wat-auth-body .wat-auth-header { padding: 12px 14px; }
	body.wat-auth-body .wat-auth-brand img { height: 32px; }
	body.wat-auth-body .wat-auth-back span { display: none; }
	body.wat-auth-body .wat-auth-back { padding: 8px 12px; }
	body.wat-auth-body .wat-auth-main { padding: 24px 14px; }

	/* Signature canvas */
	.wat-ev-sig-canvas-wrap canvas { max-height: 160px; }
	.wat-ev-sig-tabs { width: 100%; justify-content: center; }
}

/* ── Mobile chico (≤400px) ── */
@media (max-width: 400px) {
	.ev-home-stats { grid-template-columns: 1fr; }
	.ev-home-hero h1 { font-size: 1.3rem !important; }
}
