/* ==========================================================================
   ELITE FX — estilos del tema
   ========================================================================== */

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

/* ---------- Fondo general: degradé + velas animadas + grilla ---------- */
body { background: #13402A; }
.wp-site-blocks {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 100vh;
	background: linear-gradient(180deg, #1EAD52 0px, #1A8A43 220px, #156A37 520px, #13502C 1400px, #133F27 3000px, #16352A 100%);
}
.wp-site-blocks::before,
.wp-site-blocks::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
.wp-site-blocks::before {
	background-image: var(--fx-candles);
	background-size: 1440px 600px;
	background-repeat: repeat;
	animation: fxbg 70s linear infinite;
}
.wp-site-blocks::after {
	background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
	background-size: 48px 48px;
}
@keyframes fxbg { from { background-position: 0 0; } to { background-position: -1440px 0; } }
@keyframes fxchart { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks::before, .fx-hero::before { animation: none !important; }
}

/* Los bloques de primer nivel de la página no se separan entre sí. */
.wp-site-blocks > * + *,
.fx-main > .wp-block-post-content > * { margin-block-start: 0; }
.fx-main { margin-block-start: 0; }

/* ---------- Secciones ---------- */
.fx-section { padding-block: 104px; }
.fx-section--tight { padding-block: 72px; }
.fx-section--top { padding-top: 104px; padding-bottom: 40px; }
.fx-section--page-top { padding-top: 88px; padding-bottom: 56px; }
.fx-section--sm { padding-block: 24px; }
.fx-section--broker { padding-top: 104px; padding-bottom: 56px; }
.fx-section--contact { padding-top: 56px; padding-bottom: 104px; }
@media (max-width: 781px) {
	.fx-section { padding-block: 72px; }
	.fx-section--top, .fx-section--broker { padding-top: 72px; }
	.fx-section--contact { padding-bottom: 72px; }
	.fx-section--page-top { padding-top: 64px; }
}
.fx-measure { max-width: 640px; }
.fx-measure-wide { max-width: 860px; }

/* ---------- Cabecera ---------- */
.fx-header {
	position: relative;
	z-index: 10;
	border-bottom: 1px solid rgba(255,255,255,0.18);
	background: linear-gradient(90deg, rgba(4,18,10,0.5) 0%, rgba(4,18,10,0.2) 55%, rgba(4,18,10,0) 100%);
}
.fx-header__inner { padding-block: 18px; }
.fx-header .wp-block-site-logo img { height: 46px; width: auto; }
.fx-header .wp-block-navigation { gap: 28px; }
.fx-header .wp-block-navigation-item__content { color: #E6F5EA; }
.fx-header .wp-block-navigation-item__content:hover,
.fx-header .current-menu-item > .wp-block-navigation-item__content { color: #FFFFFF; }
.fx-header .wp-block-navigation__responsive-container.is-menu-open { background: #0F3D22 !important; color: #FFFFFF !important; padding: 32px 24px; }
.fx-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 20px; color: #FFFFFF; }
.fx-header .wp-block-navigation__responsive-container-open svg,
.fx-header .wp-block-navigation__responsive-container-close svg { fill: #FFFFFF; }
.fx-header .wp-block-button__link { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
@media (max-width: 599px) {
	.fx-header .wp-block-site-logo img { height: 38px; }
	.fx-header .wp-block-button__link { padding: 10px 16px; font-size: 14px; }
}

/* ---------- Hero con gráfico animado ---------- */
.fx-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, rgba(4,18,10,0.5) 0%, rgba(4,18,10,0.2) 55%, rgba(4,18,10,0) 100%);
}
.fx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image: var(--fx-chart);
	background-size: 200% 100%;
	background-repeat: repeat-x;
	animation: fxchart 45s linear infinite;
}
.fx-hero > * { position: relative; z-index: 1; }
.fx-hero__event { padding-top: 28px; }
.fx-hero__main { padding-top: 96px; padding-bottom: 88px; }
.fx-hero__main .wp-block-heading { letter-spacing: -0.02em; line-height: 1.05; }
.fx-hero__lead { font-size: 19px; color: #E8F5EC; max-width: 560px; }
.fx-stats { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.25); }
@media (max-width: 781px) { .fx-hero__main { padding-top: 64px; padding-bottom: 64px; } }

/* ---------- Grupos (estilos de bloque) ---------- */
.is-style-fx-card,
.is-style-fx-card-blue,
.is-style-fx-card-accent,
.is-style-fx-mini,
.is-style-fx-week,
.is-style-fx-week-light,
.is-style-fx-week-blue { border-radius: 18px; padding: 28px; }

.is-style-fx-card { background: rgba(5,26,15,0.6); border: 1px solid rgba(255,255,255,0.12); }
.is-style-fx-card.fx-lg { padding: 48px; border-radius: 24px; }
.is-style-fx-card-blue { background: #0D1626; border: 2px solid #3B82F6; box-shadow: 0 0 0 6px rgba(59,130,246,0.14); }
.is-style-fx-card-blue.fx-lg { padding: 40px; border-radius: 24px; box-shadow: 0 0 0 8px rgba(59,130,246,0.12); }
.is-style-fx-card-accent { background: rgba(5,26,15,0.6); border: 1px solid #2DD4A0; padding: 44px; border-radius: 24px; }
.is-style-fx-card.fx-xl { padding: 40px; border-radius: 24px; }
@media (max-width: 599px) {
	.is-style-fx-card.fx-lg, .is-style-fx-card-accent, .is-style-fx-card-blue.fx-lg, .is-style-fx-card.fx-xl { padding: 28px; }
}
.is-style-fx-mini { background: rgba(3,18,10,0.55); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 16px; }
.is-style-fx-week, .is-style-fx-week-light, .is-style-fx-week-blue {
	background: rgba(3,18,10,0.55); border: 1px solid rgba(255,255,255,0.12); border-top: 3px solid #2DD4A0; border-radius: 16px; padding: 24px;
}
.is-style-fx-week-light { border-top-color: #6EA8FF; }
.is-style-fx-week-blue { border-top-color: #3B82F6; }
.is-style-fx-week-light .is-style-fx-eyebrow, .is-style-fx-week-blue .is-style-fx-eyebrow { color: #6EA8FF; }

.is-style-fx-notice { border: 1px solid #2DD4A0; border-radius: 16px; background: #0B1A16; padding: 18px 24px; }
.is-style-fx-notice.fx-lg { border-radius: 20px; padding: 24px 28px; }
.is-style-fx-notice-blue { border: 1px solid #3B82F6; border-radius: 14px; background: #0A1220; padding: 14px 16px; }

.is-style-fx-event {
	background: rgba(8,20,44,0.78);
	border: 2px solid #3B82F6;
	box-shadow: 0 0 0 6px rgba(59,130,246,0.16), 0 18px 48px rgba(0,0,0,0.35);
	border-radius: 22px;
	padding: 28px 32px;
}
.is-style-fx-event .fx-muted, .is-style-fx-event .is-style-fx-muted { color: #DCE7FA; }
.is-style-fx-event .is-style-fx-eyebrow-muted { color: #A9C3EE; }
@media (max-width: 599px) { .is-style-fx-event { padding: 24px 20px; } }

.is-style-fx-band { background: rgba(0,0,0,0.16); border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }

.is-style-fx-cta { border-radius: 24px; background: #2DD4A0; color: #04130D; padding: 64px 48px; }
.is-style-fx-cta.fx-sm { padding: 56px 48px; }
.is-style-fx-cta .wp-block-heading { color: #04130D; font-weight: 800; line-height: 1.1; }
.is-style-fx-cta p { color: #0B3324; font-size: 18px; }
@media (max-width: 599px) { .is-style-fx-cta, .is-style-fx-cta.fx-sm { padding: 40px 24px; } }

.is-style-fx-placeholder {
	border: 1px dashed rgba(255,255,255,0.28);
	border-radius: 12px;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #B9D3C1;
	font-size: 14px;
	text-align: center;
	padding: 16px;
}

.is-style-fx-topline, .is-style-fx-topline-blue { border-top: 2px solid #2DD4A0; padding-top: 14px; }
.is-style-fx-topline-blue { border-top-color: #3B82F6; }
.is-style-fx-topline-blue .is-style-fx-num { color: #6EA8FF; }
.fx-topline-sm { padding-top: 6px; font-size: 13px; color: #D6E9DC; }

/* Lista numerada con líneas (metodología / mentoría) */
.is-style-fx-steps > * { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 24px; margin-block-start: 0 !important; }
.is-style-fx-steps > *:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.is-style-fx-steps.fx-compact > * { padding-block: 12px; }
.fx-step { flex-wrap: nowrap !important; align-items: flex-start !important; }
.fx-step > .is-style-fx-num { padding-top: 4px; flex-shrink: 0; }
.fx-compact .fx-step > .is-style-fx-num { padding-top: 0; }

/* ---------- Párrafos (estilos de bloque) ---------- */
.is-style-fx-eyebrow, .is-style-fx-eyebrow-blue, .is-style-fx-eyebrow-muted {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2DD4A0;
}
.is-style-fx-eyebrow-blue { color: #6EA8FF; }
.is-style-fx-eyebrow-muted { color: #B9D3C1; }

.is-style-fx-tag {
	align-self: flex-start;
	display: inline-block;
	width: fit-content;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.12em;
	color: #FFFFFF;
	border: 1px solid rgba(255,255,255,0.35);
	background: rgba(0,0,0,0.22);
	padding: 8px 14px;
	border-radius: 999px;
}
.is-style-fx-badge, .is-style-fx-badge-blue {
	align-self: flex-start;
	width: fit-content;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #04130D;
	background: #2DD4A0;
	padding: 4px 10px;
	border-radius: 999px;
	line-height: 1.6;
}
.is-style-fx-badge-blue { color: #FFFFFF; background: #3B82F6; }
.is-style-fx-event .is-style-fx-badge-blue { padding: 5px 12px; letter-spacing: 0.06em; }

.is-style-fx-chip, .is-style-fx-chip-blue {
	width: fit-content;
	border: 1px solid rgba(255,255,255,0.28);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
}
.is-style-fx-chip-blue { border-color: #3B82F6; color: #FFFFFF; font-weight: 600; }

.is-style-fx-stat { font-family: var(--wp--preset--font-family--sora); font-size: 30px; font-weight: 700; line-height: 1.3; }
.is-style-fx-num { font-family: var(--wp--preset--font-family--mono); color: #2DD4A0; font-size: 15px; }
.is-style-fx-muted, .fx-muted { color: #D6E9DC; }
.is-style-fx-small { font-size: 14px; color: #B9D3C1; }
.fx-stats .is-style-fx-small { color: #D3EBDA; }
.is-style-fx-quote { font-family: var(--wp--preset--font-family--sora); font-size: 22px; line-height: 1.4; }
.is-style-fx-price { font-family: var(--wp--preset--font-family--sora); font-size: 28px; font-weight: 700; line-height: 1.3; }
.fx-lead { font-size: 18px; }
.fx-lead-lg { font-size: 19px; }
.fx-bold { font-weight: 600; }
.fx-name { font-family: var(--wp--preset--font-family--sora); font-weight: 700; font-size: 20px; }
.fx-accent { color: #2DD4A0; }

/* ---------- Botones (estilos de bloque) ---------- */
.wp-block-button .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; transition: filter .15s, background-color .15s; }
.wp-block-button__width-100 .wp-block-button__link { width: 100%; }
.is-style-fx-white .wp-block-button__link { background: #FFFFFF; color: #0F3D22; }
.is-style-fx-outline .wp-block-button__link { background: transparent; color: #E8EDF4; border: 1px solid rgba(255,255,255,0.6); }
.is-style-fx-outline .wp-block-button__link:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.is-style-fx-ghost .wp-block-button__link { background: transparent; color: #E8EDF4; border: 1px solid rgba(255,255,255,0.28); border-radius: 10px; }
.is-style-fx-ghost .wp-block-button__link:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.is-style-fx-green .wp-block-button__link { background: #2DD4A0; color: #04130D; border-radius: 10px; }
.is-style-fx-blue .wp-block-button__link { background: #3B82F6; color: #FFFFFF; border-radius: 10px; }
.is-style-fx-green .wp-block-button__link:hover, .is-style-fx-blue .wp-block-button__link:hover { filter: brightness(1.08); }
.is-style-fx-blue .wp-block-button__link:hover { color: #FFFFFF; }
.is-style-fx-dark .wp-block-button__link,
.is-style-fx-whatsapp .wp-block-button__link { background: #04130D; color: #FFFFFF; font-size: 17px; padding: 18px 30px; }
.is-style-fx-dark .wp-block-button__link:hover, .is-style-fx-whatsapp .wp-block-button__link:hover { background: #0B2418; color: #FFFFFF; }
.is-style-fx-whatsapp .wp-block-button__link::before {
	content: "";
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: currentColor;
	-webkit-mask: var(--fx-wa-icon) center / contain no-repeat;
	mask: var(--fx-wa-icon) center / contain no-repeat;
}
.is-style-fx-link .wp-block-button__link { background: transparent; color: #2DD4A0; padding: 0; }
.is-style-fx-link .wp-block-button__link:hover { background: transparent; color: #7BEBC6; }
.is-style-fx-event .wp-block-button__link, .is-style-fx-card-blue .wp-block-button__link { border-radius: 12px; }

/* ---------- Imágenes ---------- */
.is-style-fx-icon img { width: 32px; height: 32px; display: block; }
.is-style-fx-icon-sm img { width: 24px; height: 24px; display: block; }
.is-style-fx-icon, .is-style-fx-icon-sm { margin: 0; flex-shrink: 0; }
.is-style-fx-rounded img { border-radius: 22px; }
.fx-founder { position: relative; margin: 0; }
.fx-founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; display: block; }
.fx-founder-card { position: relative; }
.fx-founder-card .fx-founder-caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 28px; border-radius: 0 0 22px 22px;
	background: linear-gradient(180deg, rgba(4,18,10,0) 0%, rgba(4,18,10,0.85) 70%);
}
.fx-broker-logo img { width: 256px; max-width: 100%; height: auto; display: block; }
.fx-broker-logo { margin: 4px 0; }

/* ---------- Cuenta regresiva ---------- */
.fx-countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-countdown__cell { background: rgba(3,18,10,0.55); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 12px 4px; text-align: center; }
.fx-countdown__num { font-family: var(--wp--preset--font-family--mono); font-size: 28px; line-height: 1.3; }
.fx-countdown__label { font-size: 12px; color: #B9D3C1; }
.fx-countdown--sm .fx-countdown__grid { gap: 8px; }
.fx-countdown--sm .fx-countdown__cell { border-radius: 10px; padding: 10px 4px; }
.fx-countdown--sm .fx-countdown__num { font-size: 22px; }
.fx-countdown--sm .fx-countdown__label { font-size: 11px; }
.fx-countdown--lg .fx-countdown__cell { border-radius: 14px; padding: 14px 4px; }
.fx-countdown--lg .fx-countdown__num { font-size: 34px; line-height: 1.1; }
.fx-countdown--blue .fx-countdown__cell { background: rgba(3,10,24,0.7); border-color: rgba(110,168,255,0.35); }
.fx-countdown--blue .fx-countdown__label { color: #A9C3EE; }
.fx-countdown__done { display: none; font-family: var(--wp--preset--font-family--sora); font-size: 22px; font-weight: 700; }
.fx-countdown.is-done .fx-countdown__grid { display: none; }
.fx-countdown.is-done .fx-countdown__done { display: block; }
@media (max-width: 380px) { .fx-countdown--lg .fx-countdown__num { font-size: 26px; } }

/* ---------- Pie de página ---------- */
.fx-footer { border-top: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.32); }
.fx-footer__inner { padding-top: 56px; padding-bottom: 32px; }
.fx-footer a { color: #D6E9DC; }
.fx-footer a:hover { color: #FFFFFF; }
.fx-footer__brand { font-family: var(--wp--preset--font-family--sora); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; }
.fx-footer__bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: #B9D3C1; }
.fx-footer .wp-block-navigation { font-size: 15px; }

/* ---------- Páginas genéricas / blog ---------- */
.fx-page-content { padding-block: 72px 104px; }
.fx-page-content a { color: #2DD4A0; text-decoration: underline; }

/* ---------- Ajustes del editor ---------- */
.editor-styles-wrapper .fx-countdown { pointer-events: none; }

/* ---------- Utilidades extra ---------- */
.fx-hero__copy { max-width: 720px; }
.fx-push { margin-top: auto !important; }
.fx-grow { flex-grow: 1; }
.fx-tl { border-top: 2px solid #2DD4A0; padding-top: 6px; font-size: 13px; color: #D6E9DC; }
.fx-tl--light { border-top-color: #6EA8FF; }
.fx-tl--blue { border-top-color: #3B82F6; }
.fx-right { text-align: right; }
@media (max-width: 781px) { .fx-right { text-align: left; } }
.editor-styles-wrapper { background: linear-gradient(180deg, #1EAD52 0px, #1A8A43 220px, #156A37 520px, #13502C 1400px, #133F27 3000px, #16352A 100%) !important; }
.wp-block-image.is-style-fx-icon img { width: 32px; height: 32px; max-width: none; }
.wp-block-image.is-style-fx-icon-sm img { width: 24px; height: 24px; max-width: none; }
/* WP 7 aplica container-type:inline-size a las grillas; en Chromium infla la altura de las filas. */
body .is-layout-grid, .editor-styles-wrapper .is-layout-grid { container-type: normal; }
/* Grillas con columnas explícitas + puntos de quiebre.
   La repetición automática (auto-fill/auto-fit) hace que Chromium calcule filas
   mucho más altas que su contenido, por eso se usan columnas fijas. */
body .fx-cols-130 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .fx-cols-160, body .fx-cols-220, body .fx-cols-240,
body .fx-cols-260, body .fx-cols-280 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .fx-cols-340 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) {
	body .fx-cols-260, body .fx-cols-280 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body .fx-cols-340 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 781px) {
	body .fx-cols-220, body .fx-cols-240 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	body .fx-cols-260, body .fx-cols-280, body .fx-cols-160 { grid-template-columns: minmax(0, 1fr); }
	body .fx-cols-130 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* El fondo de velas y la grilla se fijan a la pantalla: una capa animada del alto de toda
   la página consume mucha memoria y en Chromium impedía pintar imágenes grandes. */
.wp-site-blocks::before, .wp-site-blocks::after { position: fixed; }

/* ---------- Ajustes mobile (revisión con Playwright) ---------- */
@media (max-width: 599px) {
	/* Menú hamburguesa al extremo derecho, después de "Soy alumno". */
	.fx-header .wp-block-navigation { order: 3; flex: 0 0 auto; }
	.fx-header .wp-block-buttons { margin-left: auto; }
	/* Insignias más compactas para que no se partan en dos líneas. */
	.is-style-fx-badge, .is-style-fx-badge-blue, .is-style-fx-event .is-style-fx-badge-blue { font-size: 11px; letter-spacing: 0.02em; padding: 4px 10px; }
	/* Botones del hero y de WhatsApp a lo ancho. */
	.fx-hero__copy .wp-block-buttons, .is-style-fx-cta .wp-block-buttons { width: 100%; }
	.fx-hero__copy .wp-block-button, .is-style-fx-cta .wp-block-button { flex: 1 1 100%; }
	.fx-hero__copy .wp-block-button__link, .is-style-fx-cta .wp-block-button__link { width: 100%; }
	.is-style-fx-dark .wp-block-button__link, .is-style-fx-whatsapp .wp-block-button__link { font-size: 16px; padding: 16px 20px; }
	/* Espaciado vertical más compacto. */
	.fx-section { padding-block: 56px; }
	.fx-section--top { padding-top: 56px; padding-bottom: 24px; }
	.fx-section--tight { padding-block: 48px; }
	.fx-section--broker { padding-top: 56px; padding-bottom: 40px; }
	.fx-section--contact { padding-top: 40px; padding-bottom: 56px; }
	.fx-hero__main { padding-top: 48px; padding-bottom: 56px; }
	.fx-founder img { aspect-ratio: 1 / 1; }
}

/* Si se ocultan tarjetas desde el panel, las restantes ocupan todo el ancho (sin huecos). */
@media (min-width: 641px) {
	body :is(.fx-cols-160, .fx-cols-220, .fx-cols-240, .fx-cols-260, .fx-cols-280):has(> :nth-child(2):last-child),
	body .fx-cols-130:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body :is(.fx-cols-160, .fx-cols-220, .fx-cols-240, .fx-cols-260, .fx-cols-280, .fx-cols-340, .fx-cols-130):has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
	body .fx-cols-130:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.is-style-fx-placeholder { flex-shrink: 0; }
