/* =========================================================================
   Lomito Inversor - sistema visual fintech
   Verde esmeralda + azul oscuro. Modo claro y oscuro con tokens.
   ========================================================================= */

:root {
	--lmt-emerald: #10b981;
	--lmt-emerald-600: #059669;
	--lmt-emerald-700: #047857;
	--lmt-navy: #0b1b2b;
	--lmt-navy-700: #102a43;
	--lmt-navy-600: #17395a;

	--lmt-bg: #f6f9f8;
	--lmt-bg-alt: #ffffff;
	--lmt-surface: #ffffff;
	--lmt-surface-2: #f1f5f4;
	--lmt-border: #e2e8e6;
	--lmt-text: #0b1b2b;
	--lmt-text-muted: #55636f;
	--lmt-text-faint: #7d8a95;
	--lmt-accent: var(--lmt-emerald-600);
	--lmt-accent-soft: rgba(16, 185, 129, 0.10);
	--lmt-shadow: 0 1px 2px rgba(11, 27, 43, 0.05), 0 12px 32px -12px rgba(11, 27, 43, 0.14);
	--lmt-shadow-lg: 0 24px 60px -24px rgba(11, 27, 43, 0.28);

	--lmt-radius: 16px;
	--lmt-radius-lg: 24px;
	--lmt-max: 1160px;
	--lmt-gutter: clamp(20px, 5vw, 40px);

	--lmt-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--lmt-font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-lomito-theme="dark"] {
	--lmt-bg: #081521;
	--lmt-bg-alt: #0b1b2b;
	--lmt-surface: #102436;
	--lmt-surface-2: #16304a;
	--lmt-border: #1e3b56;
	--lmt-text: #e8f1ee;
	--lmt-text-muted: #9fb3c0;
	--lmt-text-faint: #7c93a3;
	--lmt-accent: #34d399;
	--lmt-accent-soft: rgba(52, 211, 153, 0.12);
	--lmt-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
	--lmt-shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

html[data-lomito-theme] body,
html[data-lomito-theme] .wp-site-blocks {
	background-color: var(--lmt-bg);
	color: var(--lmt-text);
}

html[data-lomito-theme="dark"] body,
html[data-lomito-theme="dark"] .wp-site-blocks > header,
html[data-lomito-theme="dark"] .wp-site-blocks > footer,
html[data-lomito-theme="dark"] .wp-block-template-part {
	background-color: var(--lmt-bg);
	color: var(--lmt-text);
}

html[data-lomito-theme="dark"] .wp-site-blocks a:not(.lmt-btn):not(.lmt-cat):not(.lmt-platforms a) {
	color: var(--lmt-text);
}

html[data-lomito-theme="dark"] .wp-site-blocks h1,
html[data-lomito-theme="dark"] .wp-site-blocks h2,
html[data-lomito-theme="dark"] .wp-site-blocks h3,
html[data-lomito-theme="dark"] .wp-site-blocks h4,
html[data-lomito-theme="dark"] .wp-site-blocks p,
html[data-lomito-theme="dark"] .wp-site-blocks li {
	color: var(--lmt-text);
}

html[data-lomito-theme="dark"] img:not(.lmt-keep-bright) {
	filter: brightness(0.92) contrast(1.02);
}

.lmt-main,
.lmt-home {
	font-family: var(--lmt-font);
	color: var(--lmt-text);
	background: var(--lmt-bg);
	-webkit-font-smoothing: antialiased;
}

.lmt-main *,
.lmt-home,
.lmt-home *,
.lmt-disclaimer,
.lmt-disclaimer * {
	box-sizing: border-box;
}

.lmt-container {
	width: 100%;
	max-width: var(--lmt-max);
	margin-inline: auto;
	padding-inline: var(--lmt-gutter);
}

.lmt-section {
	padding-block: clamp(56px, 8vw, 104px);
}

.lmt-h2 {
	font-family: var(--lmt-font-display);
	font-size: clamp(1.75rem, 4vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--lmt-text);
}

.lmt-h2--light { color: #ffffff; }

.lmt-eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lmt-accent);
	margin: 0 0 10px;
}

.lmt-eyebrow--light { color: #6ee7b7; }

.lmt-sec-head {
	margin-bottom: clamp(28px, 4vw, 44px);
	max-width: 620px;
}

.lmt-sec-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	max-width: none;
	flex-wrap: wrap;
}

.lmt-sec-sub {
	margin: 12px 0 0;
	color: var(--lmt-text-muted);
	font-size: 1.02rem;
	line-height: 1.6;
}

.lmt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 999px;
	font-family: var(--lmt-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lmt-btn svg { width: 18px; height: 18px; flex: none; }

.lmt-btn--primary {
	background: linear-gradient(135deg, var(--lmt-emerald) 0%, var(--lmt-emerald-700) 100%);
	color: #ffffff;
	box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.7);
}

.lmt-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px -12px rgba(5, 150, 105, 0.8);
	color: #ffffff;
}

.lmt-btn--ghost {
	background: transparent;
	color: var(--lmt-text);
	border-color: var(--lmt-border);
}

.lmt-btn--ghost:hover {
	border-color: var(--lmt-accent);
	color: var(--lmt-accent);
	transform: translateY(-2px);
}

.lmt-btn:focus-visible,
.lmt-cat:focus-visible,
.lmt-theme-toggle:focus-visible,
.lmt-form__input:focus-visible {
	outline: 3px solid var(--lmt-accent);
	outline-offset: 3px;
}

.lmt-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(64px, 11vw, 136px);
	background:
		radial-gradient(1000px 520px at 78% -10%, var(--lmt-accent-soft), transparent 62%),
		var(--lmt-bg);
}

.lmt-hero__glow {
	position: absolute;
	inset: auto -10% -60% 45%;
	height: 520px;
	background: radial-gradient(closest-side, rgba(16, 185, 129, 0.22), transparent);
	filter: blur(30px);
	pointer-events: none;
}

.lmt-hero__inner { position: relative; }

.lmt-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--lmt-accent-soft);
	border: 1px solid color-mix(in srgb, var(--lmt-accent) 30%, transparent);
	color: var(--lmt-accent);
	font-size: 0.82rem;
	font-weight: 600;
	margin: 0 0 26px;
}

.lmt-badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lmt-accent);
	box-shadow: 0 0 0 4px var(--lmt-accent-soft);
}

.lmt-hero__title {
	font-family: var(--lmt-font-display);
	font-size: clamp(2.5rem, 7.2vw, 4.6rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	margin: 0 0 22px;
	max-width: 13ch;
	color: var(--lmt-text);
}

.lmt-grad {
	background: linear-gradient(105deg, var(--lmt-emerald) 0%, #06b6d4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lmt-hero__sub {
	max-width: 56ch;
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 1.65;
	color: var(--lmt-text-muted);
	margin: 0 0 34px;
}

.lmt-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 16px;
}

.lmt-hero__risk {
	font-size: 0.85rem;
	color: var(--lmt-text-faint);
	margin: 0 0 44px;
}

.lmt-hero__stats {
	list-style: none;
	margin: 0;
	padding: 26px 0 0;
	border-top: 1px solid var(--lmt-border);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 24px;
}

.lmt-hero__stats li { display: flex; flex-direction: column; gap: 6px; }

.lmt-hero__stats strong {
	font-family: var(--lmt-font-display);
	font-size: 2rem;
	line-height: 1;
	color: var(--lmt-accent);
}

.lmt-hero__stats span {
	font-size: 0.9rem;
	color: var(--lmt-text-muted);
	line-height: 1.45;
}

.lmt-markets { background: var(--lmt-bg-alt); }

.lmt-widget {
	background: var(--lmt-surface);
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	box-shadow: var(--lmt-shadow);
	overflow: hidden;
	position: relative;
}

.lmt-widget--tape { min-height: 78px; margin-bottom: 20px; }

.lmt-widget--mini { min-height: 232px; }

.lmt-widget__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 78px;
	height: 100%;
	color: var(--lmt-text-faint);
	font-size: 0.88rem;
}

.lmt-widget--mini .lmt-widget__fallback { min-height: 232px; }

.lmt-widget-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.lmt-widget--slot { margin-top: 20px; }

.lmt-markets__note {
	margin: 22px 0 0;
	font-size: 0.85rem;
	color: var(--lmt-text-faint);
}

.lmt-cats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
	gap: 20px;
}

.lmt-cat {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 30px 26px;
	border-radius: var(--lmt-radius-lg);
	background: var(--lmt-surface);
	border: 1px solid var(--lmt-border);
	box-shadow: var(--lmt-shadow);
	text-decoration: none;
	color: var(--lmt-text);
	position: relative;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.lmt-cat::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lmt-emerald), #06b6d4);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.28s ease;
}

.lmt-cat:hover {
	transform: translateY(-4px);
	box-shadow: var(--lmt-shadow-lg);
	border-color: color-mix(in srgb, var(--lmt-accent) 40%, var(--lmt-border));
}

.lmt-cat:hover::after { transform: scaleX(1); }

.lmt-cat__icon {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: var(--lmt-accent-soft);
	color: var(--lmt-accent);
}

.lmt-cat__icon svg { width: 23px; height: 23px; }

.lmt-cat__title {
	font-family: var(--lmt-font-display);
	font-size: 1.24rem;
	margin: 0;
	letter-spacing: -0.01em;
	color: var(--lmt-text);
}

.lmt-cat__desc {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.55;
	color: var(--lmt-text-muted);
	flex: 1;
}

.lmt-cat__go {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--lmt-accent);
}

.lmt-cat__go svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.lmt-cat:hover .lmt-cat__go svg { transform: translateX(4px); }

.lmt-blog { background: var(--lmt-bg-alt); }

.lmt-link-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	font-size: 0.93rem;
	color: var(--lmt-accent);
	text-decoration: none;
}

.lmt-link-more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.lmt-link-more:hover svg { transform: translateX(4px); }

.lmt-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 24px;
}

.lmt-post {
	display: flex;
	flex-direction: column;
	background: var(--lmt-surface);
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius-lg);
	overflow: hidden;
	box-shadow: var(--lmt-shadow);
	transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.lmt-post:hover { transform: translateY(-4px); box-shadow: var(--lmt-shadow-lg); }

.lmt-post__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--lmt-surface-2);
	overflow: hidden;
}

.lmt-post__media img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.lmt-post:hover .lmt-post__media img { transform: scale(1.04); }

.lmt-post__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--lmt-navy-700), var(--lmt-emerald-700));
	opacity: 0.85;
}

.lmt-post__body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 11px;
	flex: 1;
}

.lmt-tag {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lmt-accent);
	background: var(--lmt-accent-soft);
	padding: 5px 11px;
	border-radius: 999px;
}

.lmt-post__title {
	font-family: var(--lmt-font-display);
	font-size: 1.14rem;
	line-height: 1.32;
	margin: 0;
	letter-spacing: -0.01em;
}

.lmt-post__title a {
	color: var(--lmt-text);
	text-decoration: none;
}

.lmt-post__title a:hover { color: var(--lmt-accent); }

.lmt-post__excerpt {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--lmt-text-muted);
	flex: 1;
}

.lmt-post__meta {
	font-size: 0.8rem;
	color: var(--lmt-text-faint);
}

.lmt-empty {
	padding: 40px;
	text-align: center;
	border: 1px dashed var(--lmt-border);
	border-radius: var(--lmt-radius);
	color: var(--lmt-text-muted);
}

.lmt-test__card {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: clamp(28px, 4vw, 52px);
	padding: clamp(30px, 4.5vw, 56px);
	border-radius: clamp(22px, 3vw, 32px);
	background:
		radial-gradient(760px 420px at 88% 8%, rgba(16, 185, 129, 0.26), transparent 62%),
		linear-gradient(140deg, var(--lmt-navy) 0%, var(--lmt-navy-700) 100%);
	box-shadow: var(--lmt-shadow-lg);
	color: #e8f1ee;
}

.lmt-test__sub {
	margin: 16px 0 22px;
	font-size: 1.02rem;
	line-height: 1.62;
	color: #b9cbd6;
	max-width: 52ch;
}

.lmt-test__bullets {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: grid;
	gap: 11px;
}

.lmt-test__bullets li {
	position: relative;
	padding-left: 30px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #cfdde5;
}

.lmt-test__bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: rgba(16, 185, 129, 0.2);
	border: 1.5px solid #34d399;
}

.lmt-test__bullets li::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 8px;
	width: 7px;
	height: 4px;
	border-left: 2px solid #34d399;
	border-bottom: 2px solid #34d399;
	transform: rotate(-45deg);
}

.lmt-form__label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #9fb3c0;
	margin-bottom: 9px;
}

.lmt-form__row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.lmt-form__input {
	flex: 1 1 250px;
	min-width: 0;
	padding: 15px 18px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-family: var(--lmt-font);
	font-size: 1rem;
}

.lmt-form__input::placeholder { color: #7f96a5; }

.lmt-form__input:focus {
	border-color: #34d399;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

.lmt-form__submit { flex: none; }

.lmt-form__note {
	margin: 12px 0 0;
	font-size: 0.8rem;
	color: #8ba2b1;
}

.lmt-form__status {
	margin: 10px 0 0;
	font-size: 0.86rem;
	font-weight: 600;
	color: #6ee7b7;
	min-height: 1.2em;
}

.lmt-test__side {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--lmt-radius-lg);
	padding: 26px 24px;
	align-self: start;
}

.lmt-test__side-title {
	margin: 0 0 16px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #6ee7b7;
}

.lmt-platforms {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.lmt-platforms a {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 13px 16px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid transparent;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lmt-platforms a:hover {
	background: rgba(16, 185, 129, 0.14);
	border-color: rgba(52, 211, 153, 0.45);
	transform: translateX(3px);
}

.lmt-platforms span {
	font-family: var(--lmt-font-display);
	font-weight: 700;
	font-size: 1rem;
	color: #ffffff;
}

.lmt-platforms small { font-size: 0.8rem; color: #9fb3c0; }

.lmt-test__side-note {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #7f96a5;
}

.lmt-theme-toggle {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--lmt-surface, #fff);
	color: var(--lmt-text, #0b1b2b);
	border: 1px solid var(--lmt-border, #e2e8e6);
	box-shadow: 0 10px 28px -10px rgba(11, 27, 43, 0.4);
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.2s ease;
}

.lmt-theme-toggle:hover {
	transform: translateY(-3px);
	border-color: var(--lmt-accent);
	color: var(--lmt-accent);
}

.lmt-theme-toggle svg { width: 21px; height: 21px; }

.lmt-theme-toggle__icon { display: none; line-height: 0; }

html[data-lomito-theme="light"] .lmt-theme-toggle__icon--moon { display: block; }
html[data-lomito-theme="dark"] .lmt-theme-toggle__icon--sun { display: block; }

.lmt-disclaimer {
	background: var(--lmt-navy, #0b1b2b);
	color: #a8bdc9;
	padding-block: clamp(36px, 5vw, 60px);
	font-family: var(--lmt-font);
	border-top: 3px solid var(--lmt-emerald-700, #047857);
}

.lmt-disclaimer .lmt-container { max-width: var(--lmt-max); }

.lmt-disclaimer__title {
	font-family: var(--lmt-font-display);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	margin: 0 0 16px;
}

.lmt-disclaimer p {
	margin: 0 0 13px;
	font-size: 0.83rem;
	line-height: 1.62;
	color: #a8bdc9;
	max-width: 92ch;
}

.lmt-disclaimer strong { color: #e8f1ee; }

.lmt-disclaimer a {
	color: #6ee7b7;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lmt-disclaimer__meta {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.78rem;
	color: #7f96a5;
}

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

@media (max-width: 560px) {
	.lmt-hero__cta .lmt-btn { width: 100%; }
	.lmt-form__submit { width: 100%; }
	.lmt-sec-head--row { align-items: flex-start; }
	.lmt-theme-toggle { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.lmt-main *,
	.lmt-home *,
	.lmt-theme-toggle { transition: none !important; }
}


/* --- Romper el contenedor centrado del tema padre en la portada --- */
.lmt-home {
	max-width: none !important;
	width: 100%;
}

.lmt-fullbleed {
	max-width: none !important;
	width: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


/* --- Modo claro: el tema de Hostinger trae header y footer oscuros --- */
html[data-lomito-theme="light"] .wp-site-blocks > header,
html[data-lomito-theme="light"] .wp-site-blocks > header .hostinger-ai-menu,
html[data-lomito-theme="light"] .wp-site-blocks > footer,
html[data-lomito-theme="light"] .wp-site-blocks > footer > .wp-block-group {
	background-color: var(--lmt-bg-alt) !important;
	color: var(--lmt-text) !important;
}

html[data-lomito-theme="light"] .wp-site-blocks > header a,
html[data-lomito-theme="light"] .wp-site-blocks > header p,
html[data-lomito-theme="light"] .wp-site-blocks > header span,
html[data-lomito-theme="light"] .wp-site-blocks > footer a,
html[data-lomito-theme="light"] .wp-site-blocks > footer p,
html[data-lomito-theme="light"] .wp-site-blocks > footer li,
html[data-lomito-theme="light"] .wp-site-blocks > footer h1,
html[data-lomito-theme="light"] .wp-site-blocks > footer h2,
html[data-lomito-theme="light"] .wp-site-blocks > footer h3,
html[data-lomito-theme="light"] .wp-site-blocks > footer h4 {
	color: var(--lmt-text) !important;
}

html[data-lomito-theme="light"] .wp-site-blocks > header {
	border-bottom: 1px solid var(--lmt-border);
}

/* El plugin Darklup coloca su switch abajo a la derecha: no lo estorbamos. */
.lmt-theme-toggle {
	right: auto;
	left: 18px;
}

@media (max-width: 560px) {
	.lmt-theme-toggle { right: auto; left: 14px; }
}
