/*
 * Midas Theme — Landing de venta (/buy)
 * Réplica exacta de la landing original (Divi) con CSS propio.
 * Breakpoints iguales a Divi: ≤767px, ≤980px, ≥981px y ≥1350px.
 */

/* ---------- Fuentes ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/poppins/poppins-normal-300.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins/poppins-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins/poppins-normal-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins/poppins-normal-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins/poppins-normal-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/poppins/poppins-italic-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/poppins/poppins-italic-500.woff2) format('woff2'); }

/* ---------- Base ---------- */
.midas-landing *,
.midas-landing *::before,
.midas-landing *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body.midas-landing {
	margin: 0;
	background: #fff;
	color: #666;
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.midas-landing a { color: #e09900; text-decoration: none; }
.midas-landing p { margin: 0; padding-bottom: 1em; }
.midas-landing p:last-child { padding-bottom: 0; }
.midas-landing strong { font-weight: 700; }
.midas-landing img { max-width: 100%; height: auto; }
.midas-landing h1, .midas-landing h2, .midas-landing h3,
.midas-landing h4, .midas-landing h5, .midas-landing h6 {
	margin: 0;
	padding-bottom: 10px;
	color: #333;
	font-weight: 500;
	line-height: 1em;
}

.midas-landing .screen-reader-text,
.mx-skip {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.mx-skip:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100000;
	padding: 10px 16px; background: #fff; color: #333; border-radius: 4px;
}

.midas-landing .midas-icon { display: block; width: 1em; height: 1em; }

/* ---------- Estructura: secciones, filas, columnas y módulos ---------- */
.mx-sec { position: relative; padding: 4% 0; background: #fff; }
.mx-row {
	position: relative;
	width: 80%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 2% 0;
	container-type: inline-size;
}
.mx-row::after { content: ""; display: table; clear: both; }
.mx-col { position: relative; display: flow-root; min-height: 1px; }
.mx-mod { position: relative; margin-bottom: 2.75cqw; }
.mx-mod:last-child { margin-bottom: 0; }

@media (min-width: 981px) {
	.mx-row { display: flex; align-items: flex-start; }
	.mx-row--equal { align-items: stretch; }
	.mx-col { flex: 0 0 auto; }
	.mx-col--full { width: 100%; }
	.mx-col--g1-1-2 { width: 50%; }
	.mx-col--g2-1-2 { width: 48.5%; margin-right: 3%; }
	.mx-col--g3-1-2 { width: 47.25%; margin-right: 5.5%; }
	.mx-col--g3-1-3 { width: 29.6667%; margin-right: 5.5%; }
	.mx-col--g3-1-6 { width: 12.0833%; margin-right: 5.5%; }
	.mx-col--g3-3-5 { width: 57.8%; margin-right: 5.5%; }
	.mx-col--g3-2-5 { width: 36.7%; margin-right: 5.5%; }
	.mx-col--g4-1-2 { width: 46%; }
	.mx-col:last-child { margin-right: 0; }
}

@media (min-width: 1350px) {
	.mx-sec { padding: 54px 0; }
	.mx-row { padding: 27px 0; }
}

@media (max-width: 980px) {
	.mx-sec { padding: 50px 0; }
	.mx-row { padding: 30px 0; }
	.mx-col { width: 100%; margin-bottom: 30px; }
	.mx-col:last-child,
	.mx-col--g1-1-2 { margin-bottom: 0; }
	.mx-mod { margin-bottom: 30px; }
	.mx-mod:last-child { margin-bottom: 0; }
}

/* Texto */
.mx-text h2 { font-weight: 600; color: #555; }
.mx-lead {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	font-size: 18px;
	line-height: 1.6em;
	text-align: center;
}
.mx-h2-34 h2 { font-size: 34px; line-height: 1.1em; text-align: center; }

/* Imagen */
.mx-image { line-height: 0; }
.mx-image img { position: relative; width: auto; max-width: 100%; }

/* Separador */
.mx-divider { height: 23px; margin-top: 20px; }
.mx-mod.mx-divider { margin-bottom: 0; }
.mx-divider::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	border-top: 1px solid #bbb;
}

/* Blurbs (icono + texto) */
.mx-blurb__content { position: relative; width: 100%; max-width: 550px; margin: 0 auto; }
.mx-blurb__icon { line-height: 0; }
.mx-blurb__icon img { position: relative; }
.mx-blurb__title { font-size: 18px; }

.mx-blurb--top .mx-blurb__content { text-align: center; }
.mx-blurb--top .mx-blurb__icon { width: fit-content; margin: 0 auto 30px; }
.mx-blurb--top .mx-blurb__icon .midas-icon { width: 96px; height: 96px; color: #d9ab45; }
.mx-blurb--top .mx-blurb__title,
.mx-blurb--top .mx-blurb__desc { text-align: center; }
.mx-blurb--top .mx-blurb__title { font-weight: 600; color: #555; }

.mx-blurb--left .mx-blurb__content { display: table; text-align: left; }
.mx-blurb--left .mx-blurb__icon {
	display: table-cell;
	width: 32px;
	padding-top: 5px;
	vertical-align: top;
}
.mx-blurb--left .mx-blurb__body { display: table-cell; vertical-align: top; }

/* Botones */
.mx-btn {
	position: relative;
	display: inline-block;
	transition: background-color 300ms ease, opacity 300ms ease;
}
.mx-btn--demo {
	padding: 12px 30px;
	border-radius: 25px;
	background: #fff;
	color: #e09900 !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7em;
}
.mx-btn--dark {
	padding: 6px 40px;
	border-radius: 23px;
	background: #333;
	color: #fff !important;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.7em;
}
.mx-btn--buy {
	padding: .3em 50px;
	border-radius: 5px;
	background: #d9ab45;
	color: #fff !important;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.7em;
	text-transform: uppercase;
}
.mx-btn--buy:hover,
.mx-btn--buy:focus-visible { background: #bc9a3c; }
.mx-btn--demo:hover, .mx-btn--dark:hover { opacity: .9; }

/* Animación de iconos (igual que Divi "fade top") */
@keyframes mx-fade-top {
	0% { opacity: 0; transform: translateY(-60%); }
	100% { opacity: 1; transform: translateY(0); }
}
.js .mx-anim { opacity: 0; }
.js .mx-anim.is-in { opacity: 1; animation: mx-fade-top 1s cubic-bezier(.77, 0, .175, 1) 1; }
@media (prefers-reduced-motion: reduce) {
	.js .mx-anim { opacity: 1; }
	.js .mx-anim.is-in { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Cabecera ---------- */
.mx-header-wrap { position: relative; z-index: 20; }
.mx-header {
	position: relative;
	top: 0;
	z-index: 20;
	width: 100%;
	padding: 0 0 30px;
	background: #d2b566 url(../img/landing/bkg-header.png) 50% 50% no-repeat;
	transition: all 1s;
}
.mx-header__row {
	display: flex;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2% 20px 0;
	transition: all 1s;
}
.mx-header__col { position: relative; min-height: 1px; line-height: 0; }
.mx-header__col--logo { flex: 0 0 20%; }
.mx-header__col--nav { flex: 0 0 60%; }
.mx-header__col--cta { flex: 0 0 20%; text-align: right; }
.mx-header__logo { display: inline-block; line-height: 0; }
.mx-header__logo img { width: 157px; }

.mx-header.is-stuck {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	height: 67px;
	box-shadow: 0 0 33px 0 #999;
}
.mx-header.is-stuck .mx-header__row { padding-top: 10px; }

@media (min-width: 1350px) {
	.mx-header__row { padding-top: 27px; }
}

/* Menú */
.mx-nav { display: flex; justify-content: center; padding-top: 7px; }
.mx-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 -11px;
	padding: 0;
	list-style: none;
}
.mx-nav__list li {
	display: flex;
	margin-top: 8px;
	padding: 0 11px;
	line-height: 1em;
}
.mx-nav__list a {
	padding-bottom: 8px;
	color: #fff;
	transition: opacity .4s ease-in-out;
}
.mx-nav__list a:hover { opacity: .7; }
.mx-nav__toggle { display: none; }

@media (max-width: 980px) {
	.mx-header__row { width: 90%; padding-top: 30px; }
	.mx-header__col--logo,
	.mx-header__col--nav,
	.mx-header__col--cta { flex: 1 1 0; min-width: auto; }
	.mx-header__logo img { width: auto; }

	.mx-nav { position: relative; width: 44px; margin: 0 auto; }
	.mx-nav__toggle {
		display: block;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		color: #fff;
		font-size: 44px;
		line-height: 0;
		cursor: pointer;
	}
	.mx-nav__toggle .midas-icon { width: 44px; height: 44px; transform: translateY(2.8px); }
	.mx-nav__list {
		position: absolute;
		top: 100%;
		left: 50%;
		z-index: 9999;
		display: none;
		width: 320px;
		margin: 0;
		padding: 5%;
		border-top: 3px solid #af8f56;
		background: #c4a660;
		box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
		transform: translateX(-50%);
		text-align: left;
	}
	.mx-nav.is-open .mx-nav__list { display: block; }
	.mx-nav__list li { display: block; margin: 0; padding: 0; line-height: 26px; }
	.mx-nav__list a {
		display: block;
		padding: 10px 5%;
		border-bottom: 1px solid rgba(0, 0, 0, .03);
	}
}
@media (max-width: 600px) {
	.mx-nav__list { left: -60px; width: 250px; transform: none; }
}

/* ---------- Hero ---------- */
.mx-hero {
	position: relative;
	background: #fff url(../img/landing/bkg-header.png) 50% 50% / cover no-repeat;
}
.mx-row--hero { width: 95%; max-width: 1200px; }
.mx-hero__title {
	padding-right: 65px;
	color: #fff;
	font-size: 54px;
	line-height: 1em;
	letter-spacing: -1px;
}
.mx-mod.mx-hero__title,
.mx-mod.mx-hero__cta { margin-bottom: 50px; }

.mx-tested .mx-blurb__content { max-width: 500px; margin: 0 auto; }
.mx-tested .mx-blurb__icon .midas-icon { width: 32px; height: 32px; color: #333; }
.mx-tested .mx-blurb__body { padding: 5px; }
.mx-tested .mx-blurb__title {
	padding-top: 8px;
	color: #333;
	letter-spacing: -1px;
}

@media (max-width: 980px) {
	.mx-hero__title { font-size: 41px; }
	.mx-mod.mx-tested { margin-bottom: 50px; }
}
@media (max-width: 767px) {
	.mx-row--tested { width: 95%; }
	.mx-tested .mx-blurb__title { font-size: 15px; }
}

/* ---------- Novedades ---------- */
.mx-news__title { max-width: 700px; margin-left: auto; margin-right: auto; }
.mx-news__title h2,
.mx-help__title h2 { font-size: 40px; line-height: 1.2em; text-align: center; }
.mx-row--features { max-width: 900px; }
.mx-mod.mx-feature { margin-bottom: 10px; }

@media (max-width: 980px) {
	.mx-feature { font-size: 16px; }
	.mx-mod.mx-feature { margin-bottom: 15px; }
	.mx-feature .mx-blurb__content { max-width: 50%; }
}
@media (max-width: 767px) {
	.mx-news__title h2 { font-size: 30px; }
	.mx-feature .mx-blurb__content { max-width: 80%; }
}

/* ---------- La mejor plantilla ---------- */
.mx-sec--best { background: #f2f2f2; }
.mx-row--best { max-width: 1200px; }
.mx-best__title h2 { font-size: 28px; line-height: 1.2em; }
.mx-bullet { font-size: 16px; }
.mx-mod.mx-bullet { margin-bottom: 10px; }
.mx-best__note { color: #555; font-weight: 700; }

@media (max-width: 767px) {
	.mx-best__title h2 { font-size: 22px; }
}

/* ---------- Pasos ---------- */
.mx-row--steps { max-width: 1020px; }
.mx-step { line-height: 1.4em; }
.mx-step .mx-blurb__title { font-size: 20px; }
.mx-step--2 .mx-blurb__title { font-size: 19px; }

/* ---------- Cómo te ayudará ---------- */
.mx-sec--help { padding: 40px 0; background: #f1f1f1; }
.mx-row--help,
.mx-row--more { padding: 40px 0; }
.mx-help__title { max-width: 700px; }
.mx-mod.mx-help__title { margin-bottom: 20px; }
.mx-check { font-size: 16px; }
.mx-mod.mx-check--1 { padding-bottom: 14px; margin-bottom: 10px; }
.mx-mod.mx-check--2 { padding-bottom: 18px; margin-bottom: 10px; }
.mx-mod.mx-check--3 { margin-bottom: 10px; }
.mx-mod.mx-help__image { margin-top: 70px; }

@media (max-width: 767px) {
	.mx-help__title h2 { font-size: 30px; }
	.mx-mod.mx-help__title { margin-bottom: 30px; }
}

/* ---------- ¿Quieres saber más? ---------- */
.mx-sec--more { padding: 0; }
.mx-more__image { padding-top: 10px; }
.mx-more__title { min-height: 56px; }
.mx-more__title h2 { font-size: 34px; line-height: 1.1em; }
.mx-mod.mx-more__title { margin-bottom: 20px; }
.mx-mod.mx-more--1,
.mx-mod.mx-more--2 { margin-bottom: 28px; }
.mx-mod.mx-more--3 { margin-bottom: 25px; }
.mx-more__note { color: #555; font-size: 16px; font-weight: 700; }

@media (max-width: 767px) {
	.mx-more__title h2 { font-size: 28px; text-align: center; }
}

/* ---------- Testimonios ---------- */
.mx-sec--testimonials { background: #f1f1f1; }
.mx-row--testimonials { max-width: 1200px; }
.mx-testimonial { padding: 15px; background: #ddd; }
.mx-testimonial__photo { max-width: 150px; margin-left: auto; margin-right: auto; text-align: center; }
.mx-mod.mx-testimonial__photo,
.mx-mod.mx-testimonial__name { margin-bottom: 5px; }
.mx-mod.mx-testimonial__site { margin-bottom: 10px; }
.mx-testimonial .mx-text { text-align: center; }
.mx-testimonial__name { font-size: 18px; font-weight: 600; }

@media (max-width: 980px) {
	.mx-row--testimonials { width: 50%; }
}
@media (max-width: 767px) {
	.mx-row--testimonials { width: 70%; }
}

/* ---------- Comprar ---------- */
.mx-row--pricing { max-width: 800px; justify-content: center; }
.mx-price { padding: 25px 26px; border: 1px solid #ccc; }
.mx-price .mx-text { text-align: center; }
.mx-price__name { font-size: 34px; font-weight: 600; line-height: 1.2em; }
.mx-mod.mx-price__name { margin-bottom: 18px; }
.mx-price__amount { color: #d9ab45; font-size: 60px; font-weight: 300; }
.mx-mod.mx-price__amount { margin-bottom: 8.696%; }
.mx-price__feature {
	padding: 8px 0;
	border-bottom: 1px solid #ccc;
	font-size: 16px;
	font-weight: 300;
}
.mx-mod.mx-price__feature { margin-bottom: 0; }
.mx-price__methods { padding: 10px 0; text-align: center; }
.mx-mod.mx-price__methods { margin-bottom: 10px; }
.mx-price__cta { text-align: center; }

@media (max-width: 980px) {
	.mx-mod.mx-price__amount { margin-bottom: 30px; }
}

/* Contenido extra opcional (editor clásico) */
.mx-extra { font-size: 16px; }
.mx-extra h2, .mx-extra h3 { color: #555; font-weight: 600; line-height: 1.2em; }
.mx-extra ul, .mx-extra ol { margin: 0 0 1em 1.5em; padding: 0; }

/* ---------- Pie ---------- */
.mx-footer { background: #333; }
.mx-footer__copy { color: #aaa; }
.mx-footer__heading { color: #fff; }
.mx-mod.mx-footer__heading { margin-bottom: 5px; }
.mx-footer__links a { color: #aaa; }
.mx-footer__links a:hover { color: #fff; }

.mx-social {
	display: flex;
	flex-wrap: wrap;
	margin-top: 0;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	list-style: none;
	line-height: 26px;
}
.mx-social li { margin-bottom: 8px; }
.mx-social a {
	display: block;
	width: 32px;
	height: 32px;
	margin-right: 8px;
	padding: 8px;
	border-radius: 20px;
	background: #000;
	color: #444 !important;
	transition: opacity .3s;
}
.mx-social li:last-child a { margin-right: 0; }
.mx-social a:hover { opacity: .8; }
.mx-social .midas-icon { width: 16px; height: 16px; }

/* Volver arriba */
.mx-top {
	position: fixed;
	right: 0;
	bottom: 125px;
	z-index: 99;
	padding: 5px;
	border-radius: 5px 0 0 5px;
	background: rgba(0, 0, 0, .4);
	color: #fff !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s, visibility .4s;
}
.mx-top .midas-icon { width: 30px; height: 30px; }
.mx-top.is-visible { opacity: 1; visibility: visible; }
