/*
 * LandingForge — hoja de estilos del front-end.
 * Sistema de diseño propio (no Tailwind por CDN): un solo bundle local,
 * sin llamadas externas, con soporte para cualquier tema vía variables CSS.
 * Variables por defecto (modo oscuro); AssetsLoader las sobrescribe inline
 * por landing según la paleta del tema asignado.
 */

.lfg-landing {
	--lfg-bg: #030712;
	--lfg-surface: #0f172a99;
	--lfg-border: #1e293b;
	--lfg-text: #f1f5f9;
	--lfg-text-muted: #94a3b8;
	--lfg-brand: #0c85e9;
	--lfg-brand-dark: #0267c7;
	--lfg-radius: 0.5rem;

	background-color: var(--lfg-bg);
	color: var(--lfg-text);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.lfg-landing[data-lfg-mode="light"] {
	--lfg-bg: #ffffff;
	--lfg-surface: #f8fafc;
	--lfg-border: #e2e8f0;
	--lfg-text: #0f172a;
	--lfg-text-muted: #475569;
}

.lfg-landing *, .lfg-landing *::before, .lfg-landing *::after {
	box-sizing: border-box;
}

.lfg-landing img { max-width: 100%; display: block; }

.lfg-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.lfg-container--narrow {
	max-width: 800px;
}

.lfg-section {
	padding: 5rem 0;
	position: relative;
	border-bottom: 1px solid var(--lfg-border);
}

.lfg-section-heading {
	max-width: 640px;
	margin: 0 auto 3rem;
	text-align: center;
}

.lfg-section-heading--left {
	margin-left: 0;
	text-align: left;
}

.lfg-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--lfg-brand);
	margin-bottom: 0.75rem;
}

.lfg-eyebrow--center { text-align: center; }

.lfg-h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

.lfg-lede {
	color: var(--lfg-text-muted);
	font-weight: 300;
	font-size: 1rem;
}

.lfg-text-brand { color: var(--lfg-brand); }

.lfg-card {
	background-color: var(--lfg-surface);
	border: 1px solid var(--lfg-border);
	border-radius: 1rem;
	padding: 2rem;
}

.lfg-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--lfg-brand);
	background: color-mix(in srgb, var(--lfg-brand) 12%, transparent);
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

.lfg-card__title { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.75rem; }
.lfg-card__text { color: var(--lfg-text-muted); font-weight: 300; font-size: 0.9rem; line-height: 1.7; }

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

@media (min-width: 768px) {
	.lfg-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.lfg-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.lfg-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.lfg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.75rem;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	border-radius: var(--lfg-radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}

.lfg-btn:hover { opacity: 0.92; }
.lfg-btn:active { transform: scale(0.98); }

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

.lfg-btn--secondary {
	background-color: var(--lfg-surface);
	color: var(--lfg-text);
	border-color: var(--lfg-border);
}

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

.lfg-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Header / navegación */
.lfg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--lfg-bg) 85%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--lfg-border);
}
.lfg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.lfg-header__brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lfg-header__logo-img { height: 2.25rem; width: auto; }
.lfg-header__logo-text { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--lfg-text); }
.lfg-header__nav { display: none; align-items: center; gap: 1.5rem; }
.lfg-header__nav a { font-size: 0.85rem; font-weight: 500; color: var(--lfg-text-muted); text-decoration: none; white-space: nowrap; transition: color .15s ease; }
.lfg-header__nav a:hover { color: var(--lfg-text); }
.lfg-header__cta { padding: 0.6rem 1.25rem; font-size: 0.85rem; flex-shrink: 0; }
@media (min-width: 900px) { .lfg-header__nav { display: flex; } }

/* Hero */
.lfg-hero { padding: 6rem 0 8rem; overflow: hidden; }
.lfg-hero__bg {
	position: absolute;
	inset: -20% -10% auto -10%;
	height: 60%;
	background: radial-gradient(circle, color-mix(in srgb, var(--lfg-brand) 18%, transparent) 0%, transparent 60%);
	pointer-events: none;
}
.lfg-hero__inner { position: relative; max-width: 860px; text-align: center; }
.lfg-hero__title { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 2rem; }
.lfg-hero__subtitle { font-size: 1.125rem; color: var(--lfg-text-muted); font-weight: 300; max-width: 640px; margin: 0 auto 3rem; }
.lfg-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

/* Trust bar */
.lfg-trust-bar__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	align-items: center;
	justify-items: center;
	opacity: 0.8;
}
@media (min-width: 768px) { .lfg-trust-bar__grid { grid-template-columns: repeat(6, 1fr); } }
.lfg-trust-bar__item { font-weight: 800; font-size: 1.125rem; color: var(--lfg-text-muted); text-align: center; }
.lfg-trust-bar__item img { max-height: 2.75rem; width: auto; margin: 0 auto; object-fit: contain; }

/* Comparison */
.lfg-comparison__col-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.lfg-comparison__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.lfg-comparison__list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--lfg-text-muted); font-weight: 300; }
.lfg-comparison__mark { font-weight: 700; }
.lfg-comparison__mark--no { color: #f43f5e; }
.lfg-comparison__mark--yes { color: #34d399; }
.lfg-comparison__result { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 1.5rem; border-top: 1px solid var(--lfg-border); }
.lfg-comparison__col--after { border-color: color-mix(in srgb, var(--lfg-brand) 30%, var(--lfg-border)); }
.lfg-comparison__result--after { color: var(--lfg-brand); }

/* Methodology */
.lfg-methodology__levels { display: flex; flex-direction: column; gap: 1rem; }
.lfg-methodology__level--featured { border-color: color-mix(in srgb, var(--lfg-brand) 40%, var(--lfg-border)); }
.lfg-methodology__items { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 768px) { .lfg-methodology__items { grid-template-columns: repeat(2, 1fr); } }
.lfg-methodology__item { background: var(--lfg-bg); border: 1px solid var(--lfg-border); border-radius: 0.75rem; padding: 1rem; font-size: 0.85rem; color: var(--lfg-text-muted); }
.lfg-methodology__item-label { color: var(--lfg-brand); font-weight: 700; }

/* Testimonials */
.lfg-testimonial__rating { color: #fbbf24; margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.lfg-testimonial__quote { font-size: 0.9rem; color: var(--lfg-text); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; }
.lfg-testimonial__author { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--lfg-border); }
.lfg-testimonial__avatar { width: 2.5rem; height: 2.5rem; border-radius: 999px; object-fit: cover; }
.lfg-testimonial__avatar--initials { display: flex; align-items: center; justify-content: center; background: var(--lfg-border); font-weight: 700; font-size: 0.75rem; }
.lfg-testimonial__name { font-weight: 700; font-size: 0.9rem; margin: 0; }
.lfg-testimonial__role { font-size: 0.75rem; color: var(--lfg-brand); margin: 0; }

/* Stats */
.lfg-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .lfg-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.lfg-stats__number { display: block; font-size: 2rem; font-weight: 800; color: var(--lfg-brand); }
.lfg-stats__label { font-size: 0.75rem; color: var(--lfg-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Team */
.lfg-team__name { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.25rem; }
.lfg-team__role { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lfg-text-muted); margin: 0 0 1.5rem; }
.lfg-team__credentials { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.5rem 0; }
.lfg-team__credential { display: flex; align-items: center; gap: 0.75rem; background: var(--lfg-bg); border: 1px solid var(--lfg-border); border-radius: 0.5rem; padding: 0.75rem; font-size: 0.75rem; }
.lfg-team__credential-code { color: var(--lfg-brand); font-weight: 800; font-size: 0.65rem; }
.lfg-team__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--lfg-border); }
.lfg-team__stat-value { display: block; color: var(--lfg-brand); font-size: 1.25rem; font-weight: 800; }
.lfg-team__stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lfg-text-muted); }

/* Guarantee */
.lfg-guarantee__box { text-align: center; border-style: dashed; }
.lfg-guarantee__icon { width: 3.5rem; height: 3.5rem; border-radius: 999px; background: color-mix(in srgb, var(--lfg-brand) 15%, transparent); color: var(--lfg-brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.25rem; }
.lfg-guarantee__title { text-transform: uppercase; letter-spacing: 0.1em; font-size: 1rem; margin-bottom: 1rem; }
.lfg-guarantee__text { color: var(--lfg-text-muted); font-weight: 300; font-size: 0.9rem; max-width: 560px; margin: 0 auto; }

/* Quiz */
.lfg-quiz__progress { background: var(--lfg-border); height: 0.35rem; border-radius: 999px; margin-bottom: 2rem; overflow: hidden; }
.lfg-quiz__progress-bar { background: var(--lfg-brand); height: 100%; width: 0%; transition: width .3s ease; }
.lfg-quiz__question { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; }
.lfg-quiz__options { display: flex; flex-direction: column; gap: 0.75rem; }
.lfg-quiz__option { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; background: var(--lfg-bg); border: 1px solid var(--lfg-border); border-radius: 0.75rem; cursor: pointer; font-size: 0.9rem; }
.lfg-quiz__option:hover { border-color: color-mix(in srgb, var(--lfg-brand) 50%, var(--lfg-border)); }
.lfg-quiz__lead-fields { display: flex; flex-direction: column; gap: 1rem; }
.lfg-quiz__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--lfg-border); }
.lfg-quiz__error { color: #f43f5e; font-size: 0.8rem; margin-top: 1rem; }
.lfg-quiz__results { text-align: center; margin-top: 2rem; }
.lfg-quiz__results-icon { width: 3.5rem; height: 3.5rem; border-radius: 999px; background: color-mix(in srgb, #34d399 15%, transparent); color: #34d399; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.5rem; }
.lfg-quiz__results-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.lfg-quiz__results-desc { color: var(--lfg-text-muted); font-weight: 300; max-width: 560px; margin: 0 auto 1.5rem; }
.lfg-quiz__next-step { text-align: left; margin-bottom: 1.5rem; }
.lfg-quiz__next-step h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lfg-brand); margin: 0 0 0.5rem; }
.lfg-quiz__next-step p { font-size: 0.8rem; color: var(--lfg-text-muted); margin: 0; }

/* Contact form */
.lfg-contact-form__form { display: flex; flex-direction: column; gap: 1.25rem; }
.lfg-field { display: flex; flex-direction: column; gap: 0.5rem; }
.lfg-field__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lfg-text-muted); font-weight: 700; }
.lfg-field input, .lfg-field textarea {
	background: var(--lfg-bg);
	border: 1px solid var(--lfg-border);
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	color: var(--lfg-text);
	font-family: inherit;
}
.lfg-field input:focus, .lfg-field textarea:focus { outline: none; border-color: var(--lfg-brand); }
.lfg-contact-form__success { color: #34d399; font-size: 0.85rem; }

/* Footer */
.lfg-footer { padding: 3rem 0; }
.lfg-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .lfg-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.lfg-footer__brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.lfg-footer__logo { width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--lfg-brand); display: inline-block; }
.lfg-footer__social { display: flex; gap: 1.25rem; }
.lfg-footer__social a { color: var(--lfg-text-muted); font-size: 0.8rem; text-decoration: none; }
.lfg-footer__social a:hover { color: var(--lfg-text); }
.lfg-footer__legal { font-size: 0.75rem; color: var(--lfg-text-muted); margin: 0; }

/* Pricing — carrusel horizontal (funciona con cualquier cantidad de planes:
   en pantallas anchas los que entran quedan quietos sin scroll, y cuando no
   entran todos, el resto se desliza con swipe nativo en mobile o con las
   flechas en desktop; ver lfg-pricing-carousel en lfg-forms.js). */
.lfg-pricing__carousel { position: relative; }
.lfg-pricing__track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.5rem 0.25rem 1.5rem;
	margin: 0 -0.25rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.lfg-pricing__track::-webkit-scrollbar { height: 6px; }
.lfg-pricing__track::-webkit-scrollbar-thumb { background: var(--lfg-border); border-radius: 999px; }
.lfg-pricing__plan {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: 78%;
	display: flex;
	flex-direction: column;
	text-align: center;
}
@media (min-width: 560px) { .lfg-pricing__plan { width: 280px; } }
.lfg-pricing__plan--featured { border-color: color-mix(in srgb, var(--lfg-brand) 50%, var(--lfg-border)); box-shadow: 0 0 0 1px var(--lfg-brand); }
.lfg-pricing__name { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.75rem; }
.lfg-pricing__price { font-size: 2rem; font-weight: 800; margin: 0 0 1.5rem; }
.lfg-pricing__period { font-size: 0.85rem; font-weight: 400; color: var(--lfg-text-muted); }
.lfg-pricing__features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; flex: 1; }
.lfg-pricing__features li { font-size: 0.85rem; color: var(--lfg-text-muted); font-weight: 300; padding-left: 1.25rem; position: relative; }
.lfg-pricing__features li::before { content: "✓"; position: absolute; left: 0; color: var(--lfg-brand); font-weight: 700; }
.lfg-pricing__cta { width: 100%; margin-top: auto; }
.lfg-pricing__note { text-align: center; font-size: 0.8rem; color: var(--lfg-text-muted); margin: 2rem 0 0; }

.lfg-pricing__nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--lfg-surface);
	border: 1px solid var(--lfg-border);
	color: var(--lfg-text);
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	font-size: 1.5rem;
	line-height: 1;
	display: none;
}
.lfg-pricing__nav[hidden] { display: none; }
.lfg-pricing__nav:not([hidden]) { display: flex; }
.lfg-pricing__nav--prev { left: -0.5rem; }
.lfg-pricing__nav--next { right: -0.5rem; }
@media (min-width: 900px) {
	.lfg-pricing__nav--prev { left: -1.25rem; }
	.lfg-pricing__nav--next { right: -1.25rem; }
}
.lfg-pricing__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.lfg-pricing__dots[hidden] { display: none; }
.lfg-pricing__dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--lfg-border); border: none; padding: 0; cursor: pointer; }
.lfg-pricing__dot--active { background: var(--lfg-brand); }

/* FAQ */
.lfg-faq__list { display: flex; flex-direction: column; gap: 0.75rem; }
.lfg-faq__item { background: var(--lfg-surface); border: 1px solid var(--lfg-border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; }
.lfg-faq__question { font-weight: 700; font-size: 0.95rem; cursor: pointer; list-style: none; }
.lfg-faq__question::-webkit-details-marker { display: none; }
.lfg-faq__question::after { content: "+"; float: right; color: var(--lfg-brand); font-weight: 700; }
.lfg-faq__item[open] .lfg-faq__question::after { content: "−"; }
.lfg-faq__answer { color: var(--lfg-text-muted); font-weight: 300; font-size: 0.9rem; line-height: 1.7; margin: 1rem 0 0; }

/* Floating WhatsApp */
.lfg-floating-whatsapp {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(0,0,0,.3);
	z-index: 9999;
	text-decoration: none;
}
.lfg-floating-whatsapp:hover { opacity: 0.92; }

/* Sección Video */
.lfg-video__frame {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.lfg-video__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: cover;
}
