/* Portada Mundo Academy · estilo marketplace (usa variables y componentes de cgea-especialidades.css) */

/* Hero */
.mh-hero { position: relative; overflow: hidden; color: #fff; padding: 150px 0 90px; background: radial-gradient(120% 90% at 85% 0%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.mh-hero .cgea-glow--a { opacity: .22; }
.mh-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.cgea .mh-hero__title { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: #fff; margin-bottom: 22px; }
.cgea .mh-hero__title em { font-style: normal; color: var(--gold); }
.cgea .mh-hero__lead { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 32px; }

.mh-search { display: flex; align-items: center; gap: 10px; max-width: 580px; padding: 8px 8px 8px 20px; border-radius: 999px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.mh-search > .cgea-ico { width: 22px; height: 22px; color: var(--muted); }
.cgea .mh-search input[type="search"] { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; box-shadow: none; padding: 0; margin: 0; font-family: var(--font); font-size: 17px; color: var(--ink); }
.cgea .mh-search input::placeholder { color: #8a93a6; }
.cgea .mh-search .cgea-btn { min-height: 52px; padding: 0 28px; }
.mh-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; }
.mh-hero__tags span { color: rgba(255,255,255,.55); margin-right: 4px; }
.cgea .mh-hero__tags a { color: rgba(255,255,255,.88); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); transition: background .2s, border-color .2s; }
.cgea .mh-hero__tags a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }

.mh-hero__media { position: relative; }
.mh-hero__media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 62% center; border-radius: 32px; box-shadow: 0 50px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.mh-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 18px; background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); animation: mh-bob 6s ease-in-out infinite; }
.mh-float > .cgea-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--navy-900); color: var(--gold); }
.mh-float strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.mh-float span { font-size: 13px; color: var(--muted); }
.mh-float--a { left: -28px; bottom: 44px; }
.mh-float--b { right: -18px; top: 34px; animation-delay: -3s; }
@keyframes mh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Cifras */
.mh-stats { background: var(--navy-950); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.mh-stats dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.mh-stats dl > div { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.08); }
.mh-stats dl > div:first-child { border-left: 0; padding-left: 0; }
.mh-stats dt { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.mh-stats dd { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.58); }

/* Secciones */
.mh-sec { padding: 100px 0; }
.mh-sec--soft { background: var(--soft); }
.mh-sec--tight { padding: 30px 0 90px; }
.mh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.mh-head--center { justify-content: center; text-align: center; }
.mh-head--center .cgea-kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--acento); }
.cgea .mh-head .cgea-sub { margin-top: 10px; }
.cgea .mh-h3 { font-size: clamp(26px, 2.6vw, 34px); }
.mh-center { text-align: center; margin-top: 40px; }

/* Posgrados */
.mh-posgrados { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.mh-pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cgea .mh-pos { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--navy-900); color: #fff; box-shadow: 0 24px 50px -24px rgba(8, 20, 40, .55); transition: transform .3s, box-shadow .3s; }
.cgea .mh-pos:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -26px rgba(8, 20, 40, .7); color: #fff; }
.mh-pos__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.mh-pos__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mh-pos:hover .mh-pos__img img { transform: scale(1.04); }
.mh-pos__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex: 1; }
.mh-pos__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mh-pos__chips em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, transparent); }
.mh-pos strong { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.mh-pos__lead { font-size: 15px; color: rgba(255,255,255,.62); }
.mh-pos__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.mh-pos__price small { display: block; font-size: 12px; color: rgba(255,255,255,.5); }
.mh-pos__price b { font-size: 24px; font-weight: 800; color: #fff; }
.mh-pos__price i { font-style: normal; font-size: 12px; color: rgba(255,255,255,.55); }
.mh-pos__price del { margin-left: 6px; font-size: 14px; color: rgba(255,255,255,.4); }
.mh-pos__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--acento); white-space: nowrap; }
.mh-pos__go .cgea-ico { transition: transform .2s; }
.mh-pos:hover .mh-pos__go .cgea-ico { transform: translateX(4px); }

/* Tabs */
.mh-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 2px; }
.cgea .mh-tab { font-family: var(--font); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 11px 20px; min-height: 0; height: auto; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: all .2s; line-height: 1.2; }
.cgea .mh-tab:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.cgea .mh-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Carril */
.mh-rail { position: relative; }
.mh-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 24px; scrollbar-width: none; }
.mh-rail__track::-webkit-scrollbar { display: none; }
.mh-rail__track > .mh-card { scroll-snap-align: start; }
.mh-rail__track > .mh-card[hidden] { display: none; }
.cgea .mh-rail__btn { position: absolute; top: 34%; z-index: 2; width: 50px; height: 50px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 24px -8px rgba(8,20,40,.5); transition: transform .2s, opacity .2s; }
.cgea .mh-rail__btn:hover { transform: scale(1.06); background: var(--ink); color: #fff; }
.cgea .mh-rail__btn[disabled] { opacity: 0; pointer-events: none; }
.mh-rail__btn--prev { left: -24px; }
.mh-rail__btn--prev .cgea-ico { transform: rotate(180deg); }
.mh-rail__btn--next { right: -24px; }

/* Tarjeta de curso */
.cgea .mh-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); transition: transform .25s, box-shadow .25s; }
.cgea .mh-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(8, 20, 40, .35); color: var(--ink); }
.mh-card__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-900); overflow: hidden; }
.mh-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mh-card:hover .mh-card__img img { transform: scale(1.05); }
.mh-card__badge { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: #fde68a; color: #6b4b00; }
.mh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.mh-card__cat { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a87400; }
.mh-card__title { font-size: 16.5px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mh-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.mh-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.mh-card__meta .cgea-ico { width: 15px; height: 15px; }
.mh-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.mh-card__price strong { font-size: 19px; font-weight: 800; }
.mh-card__price strong small { font-size: 11px; color: var(--muted); font-weight: 700; }
.mh-card__price strong.is-free { color: #13945c; }
.mh-card__price del { font-size: 14px; color: #9aa3b5; }

.mh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Beneficios */
.mh-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mh-benefit { padding: 34px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.cgea .mh-benefit h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.mh-benefit p { color: var(--muted); font-size: 16px; }

/* Chips de tema */
.mh-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cgea .mh-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink); transition: all .2s; }
.cgea .mh-chips a:hover { border-color: var(--gold); background: #fffbf0; color: var(--ink); }
.mh-chips a span { font-size: 12px; color: var(--muted); background: var(--soft); padding: 2px 8px; border-radius: 999px; }

/* Responsive */
@media (max-width: 1100px) {
	.mh-rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
	.mh-grid { grid-template-columns: repeat(3, 1fr); }
	.mh-rail__btn--prev { left: -10px; }
	.mh-rail__btn--next { right: -10px; }
}
@media (max-width: 1024px) {
	.mh-hero__grid { grid-template-columns: 1fr; gap: 56px; }
	.mh-hero__media { max-width: 620px; }
	.mh-pos-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
	.mh-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.mh-hero { padding: 120px 0 60px; }
	.mh-search { padding-left: 16px; }
	.cgea .mh-search .cgea-btn { padding: 0 18px; }
	.mh-float--a { left: 10px; bottom: -22px; }
	.mh-float--b { right: 10px; top: -22px; }
	.mh-stats dl { grid-template-columns: repeat(2, 1fr); }
	.mh-stats dl > div { padding: 20px 0 20px 18px; }
	.mh-stats dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
	.mh-stats dl > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
	.mh-sec { padding: 70px 0; }
	.mh-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.cgea .mh-tab { white-space: nowrap; }
	.mh-rail__track { grid-auto-columns: 78%; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
	.cgea .mh-rail__btn { display: none; }
	.mh-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.mh-grid .mh-card__body { padding: 12px 12px 14px; }
	.mh-grid .mh-card__title { font-size: 14.5px; }
	.mh-grid .mh-card__meta { display: none; }
	.cgea .mh-final .cgea-btn { width: 100%; }
}
