/* ==========================================================
   Academia Más Estética · header, mega menú y footer
   ========================================================== */

/* ---------- Barra superior ---------- */
.mas-topbar { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mas-topbar .elementor-icon-list-items { gap: 0; }
.mas-topbar .elementor-icon-list-item { position: relative; }
.mas-topbar .elementor-icon-list-item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -14px;
	top: 50%;
	width: 1px;
	height: 12px;
	margin-top: -6px;
	background: rgba(255, 255, 255, .2);
}
.mas-topbar .elementor-icon-list-text { font-size: 12.5px !important; letter-spacing: .02em; }
.mas-topbar .mas-top-social .elementor-social-icon { transition: background .3s, transform .3s; }
.mas-topbar .mas-top-social .elementor-social-icon:hover { background: var(--mas-teal) !important; }
@media (max-width: 1200px) { .mas-topbar .elementor-icon-list-item:last-child { display: none; } }

/* ---------- Barra principal ---------- */
.mas-headbar { position: relative; }
.mas-headbar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--mas-teal) 25%, var(--mas-gold) 75%, transparent);
	opacity: .55;
}
.mas-nav__list > li > a { font-size: 14.5px; letter-spacing: .01em; }

/* ---------- Mega menú de cursos ---------- */
@media (min-width: 1025px) {
	/* El panel se posiciona respecto de la barra completa (.mas-headbar), no del ítem ni de los
	   contenedores de Elementor, para quedar centrado en pantalla. */
	.mas-headbar > .e-con-inner,
	.mas-headbar .elementor-widget-shortcode,
	.mas-headbar .elementor-shortcode,
	.mas-nav, .mas-nav__panel, .mas-nav__list,
	.mas-nav__list > li.mas-has-mega { position: static; }
	.mas-nav__list .sub-menu.mas-mega { top: 100%; }
	.mas-nav__list .sub-menu.mas-mega {
		left: 50%;
		right: auto;
		width: min(1080px, calc(100vw - 48px));
		min-width: 0;
		margin-left: calc(min(1080px, calc(100vw - 48px)) / -2);
		padding: 0;
		display: grid;
		grid-template-columns: 1.35fr 1fr .95fr;
		overflow: hidden;
		border-radius: 22px;
		border-top: 0;
		box-shadow: 0 40px 80px -30px rgba(11, 46, 76, .45), 0 0 0 1px rgba(16, 39, 61, .06);
		transform: translateY(16px);
	}
	.mas-nav__list li:hover > .sub-menu.mas-mega,
	.mas-nav__list li:focus-within > .sub-menu.mas-mega { transform: translateY(0); }
	/* Puente invisible para que el panel no se cierre al bajar el cursor. */
	.mas-nav__list > li.mas-has-mega > a::before { pointer-events: none; }
	.mas-nav__list > li.mas-has-mega:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
}
.mas-mega__col { padding: 30px 28px; }
.mas-mega__title {
	display: block;
	margin-bottom: 16px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mas-gold);
}
.mas-mega ul { list-style: none; margin: 0; padding: 0; }
body .mas-nav .mas-mega a { padding: 0; font-size: 14px; }
body .mas-nav .mas-mega a::after { display: none; }

.mas-mega__cursos li + li { margin-top: 4px; }
body .mas-nav .mas-mega__cursos a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 14px;
	transition: background .25s, transform .25s;
}
body .mas-nav .mas-mega__cursos a:hover { background: var(--mas-mist); transform: translateX(4px); }
.mas-mega__icon {
	flex: 0 0 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(37, 180, 177, .14), rgba(26, 74, 114, .1));
	color: var(--mas-teal);
	font-size: 17px;
	transition: background .3s, color .3s;
}
body .mas-nav .mas-mega__cursos a:hover .mas-mega__icon { background: var(--mas-teal); color: #fff; }
.mas-mega__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mas-mega__text strong { font-size: 14px; font-weight: 600; color: var(--mas-ink); line-height: 1.3; }
.mas-mega__text small { font-size: 12px; color: var(--mas-text); }
.mas-mega__text small i { color: var(--mas-teal); margin-right: 3px; }
.mas-mega__new {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 20px;
	background: var(--mas-gold);
	color: var(--mas-ink);
	font-size: 9.5px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	vertical-align: 2px;
}

.mas-mega__cats { background: #FAFBFC; border-left: 1px solid #EEF2F5; border-right: 1px solid #EEF2F5; }
.mas-mega__cats li + li { margin-top: 2px; }
body .mas-nav .mas-mega__cats a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--mas-ink);
	font-weight: 500;
	transition: background .25s, color .25s, padding .25s;
}
body .mas-nav .mas-mega__cats a i { width: 18px; text-align: center; color: var(--mas-teal); }
body .mas-nav .mas-mega__cats a:hover { background: #fff; color: var(--mas-teal); padding-left: 16px; box-shadow: 0 6px 18px -12px rgba(16, 39, 61, .4); }
body .mas-nav a.mas-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 16px 12px 0;
	color: var(--mas-navy);
	font-size: 13.5px;
	font-weight: 600;
}
body .mas-nav a.mas-mega__all:hover { color: var(--mas-teal); }

.mas-mega__help {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	background: linear-gradient(160deg, var(--mas-navy) 0%, var(--mas-navy-dark) 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.mas-mega__help::before {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	right: -80px;
	top: -90px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37, 180, 177, .5), transparent 70%);
}
.mas-mega__help-icon {
	position: relative;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(204, 180, 142, .2);
	color: var(--mas-gold);
	font-size: 19px;
}
.mas-mega__help strong { position: relative; font-size: 18px; line-height: 1.3; }
.mas-mega__help p { position: relative; margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
body .mas-nav a.mas-mega__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	border-radius: 40px;
	background: var(--mas-gold);
	color: var(--mas-ink);
	font-size: 13.5px;
	font-weight: 700;
	transition: transform .3s var(--mas-ease), background .3s;
}
body .mas-nav a.mas-mega__btn:hover { transform: translateY(-2px); color: var(--mas-ink); }
body .mas-nav a.mas-mega__btn.is-wa { background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
body .mas-nav a.mas-mega__btn.is-wa:hover { background: var(--mas-wa); border-color: var(--mas-wa); color: #fff; }

/* Mega menú en el panel móvil */
@media (max-width: 1024px) {
	.mas-nav__list .sub-menu.mas-mega { padding: 0 0 12px; border-radius: 16px; overflow: hidden; }
	.mas-nav__list li.is-open > .sub-menu.mas-mega { display: block; }
	.mas-mega__col { padding: 14px 6px; }
	.mas-mega__cats { background: transparent; border: 0; border-top: 1px solid #EDF1F4; }
	body .mas-nav .mas-mega__cursos a { padding: 9px 6px; }
	.mas-mega__icon { flex-basis: 36px; height: 36px; font-size: 15px; }
	.mas-mega__help { margin: 6px 0 0; padding: 22px 18px; border-radius: 16px; }
	.mas-mega__help p { display: none; }
}

/* ---------- Footer ---------- */
.mas-foot-cta { position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.mas-foot-cta::after {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	right: -90px;
	top: -150px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: 0 0 0 40px rgba(255, 255, 255, .04);
	pointer-events: none;
}
.mas-foot { color: rgba(255, 255, 255, .72); font-size: 14.5px; }
.mas-foot__grid {
	display: grid;
	grid-template-columns: 1.35fr .8fr 1.3fr 1.15fr;
	gap: 48px;
	padding-bottom: 46px;
}
.mas-foot__logo {
	display: inline-flex;
	padding: 14px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .6);
	transition: transform .35s var(--mas-ease);
}
.mas-foot__logo:hover { transform: translateY(-3px); }
.mas-foot__logo img { width: 190px; height: auto; display: block; }
.mas-foot__brand p { margin: 20px 0 22px; line-height: 1.75; font-size: 14px; }
.mas-foot h4 {
	position: relative;
	margin: 6px 0 22px;
	padding-bottom: 12px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .02em;
}
.mas-foot h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; border-radius: 2px; background: var(--mas-gold); }
.mas-foot ul { list-style: none; margin: 0; padding: 0; }
.mas-foot__links li + li { margin-top: 4px; }
body .mas-foot a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .25s, padding .25s; }
body .mas-foot a:hover { color: var(--mas-gold); }
.mas-foot__links a { display: inline-block; padding: 5px 0; }
.mas-foot__links a:hover { padding-left: 6px; }

.mas-foot .mas-links--cursos li { margin: 0; }
.mas-foot .mas-links--cursos li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
body .mas-foot .mas-links--cursos a { display: block; padding: 10px 0 10px 18px; font-size: 14px; font-weight: 500; color: #fff; line-height: 1.35; }
.mas-foot .mas-links--cursos a::before { top: 17px; margin-top: 0; }
.mas-foot .mas-links--cursos small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .55); }
body .mas-foot .mas-links--cursos a:hover small { color: var(--mas-gold); }

.mas-foot__contact li + li { margin-top: 14px; }
body .mas-foot .mas-foot__contact a { display: flex; gap: 14px; align-items: flex-start; }
.mas-foot__contact i {
	flex: 0 0 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: rgba(255, 255, 255, .07);
	color: var(--mas-teal);
	font-size: 15px;
	transition: background .3s, color .3s;
}
body .mas-foot .mas-foot__contact a:hover i { background: var(--mas-teal); color: #fff; }
.mas-foot__contact span { font-size: 14px; line-height: 1.45; word-break: break-word; }
.mas-foot__contact small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }

.mas-foot__trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin-bottom: 30px;
	border-radius: 18px;
	overflow: hidden;
	background: rgba(255, 255, 255, .08);
}
.mas-foot__trust > div { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: rgba(11, 46, 76, .55); }
.mas-foot__trust i { flex: 0 0 auto; font-size: 20px; color: var(--mas-gold); }
.mas-foot__trust span { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.mas-foot__trust strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }

.mas-foot__legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
}
.mas-foot__legal p { margin: 0; }
body .mas-foot a.mas-foot__up { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.mas-foot__up i { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .3s, transform .3s; }
body .mas-foot a.mas-foot__up:hover i { background: var(--mas-gold); color: var(--mas-ink); transform: translateY(-3px); }

@media (min-width: 768px) { body .mas-foot a.mas-foot__up { display: none; } }
@media (max-width: 1024px) {
	.mas-foot__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
	.mas-foot__trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.mas-foot__grid { grid-template-columns: 1fr 1fr; gap: 34px 18px; padding-bottom: 34px; }
	.mas-foot__brand, .mas-foot__cursos, .mas-foot__grid > .mas-foot__col:last-child { grid-column: 1 / -1; }
	.mas-foot__grid > nav.mas-foot__col { grid-column: 1 / -1; }
	.mas-foot__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.mas-foot__logo img { width: 170px; }
	.mas-foot__trust { grid-template-columns: 1fr 1fr; border-radius: 14px; }
	.mas-foot__trust > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
	.mas-foot__trust span { font-size: 12px; }
	.mas-foot__legal { flex-direction: column; text-align: center; gap: 12px; padding-bottom: 70px; }
}
