/* ==========================================================
   Academia Más Estética · estilos del sitio
   Marca: azul #1A4A72 · turquesa #25B4B1 · dorado #CCB48E
   ========================================================== */
:root {
	--mas-navy: #1A4A72;
	--mas-navy-dark: #0B2E4C;
	--mas-teal: #25B4B1;
	--mas-teal-dark: #1C9794;
	--mas-gold: #CCB48E;
	--mas-cream: #F7F4EF;
	--mas-mist: #EEF7F7;
	--mas-text: #4A5568;
	--mas-ink: #10273D;
	--mas-white: #FFFFFF;
	--mas-wa: #25D366;
	--mas-radius: 18px;
	--mas-shadow: 0 18px 45px -18px rgba(16, 39, 61, .28);
	--mas-shadow-lg: 0 30px 70px -25px rgba(16, 39, 61, .38);
	--mas-ease: cubic-bezier(.22, .9, .3, 1);
}

html { scroll-behavior: smooth; }
body {
	font-family: "Poppins", sans-serif;
	color: var(--mas-text);
	background: var(--mas-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.mas-menu-open { overflow: hidden; }
::selection { background: var(--mas-teal); color: #fff; }

/* ---------- Tipografía de apoyo para widgets Elementor ---------- */
.mas-eyebrow .elementor-heading-title,
span.mas-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mas-teal) !important;
}
.mas-eyebrow .elementor-heading-title::before,
span.mas-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--mas-gold);
}
.mas-eyebrow.is-light .elementor-heading-title { color: var(--mas-gold) !important; }
.elementor-heading-title em,
.mas-archive h1 em, .mas-archive h2 em {
	font-family: "Playfair Display", serif;
	font-style: italic;
	font-weight: 600;
	color: var(--mas-teal);
}
.mas-on-dark .elementor-heading-title em { color: var(--mas-gold); }
.mas-lead p { font-size: 18px; line-height: 1.75; }

/* ---------- Botones (widget Button de Elementor) ---------- */
.elementor-widget-button .elementor-button {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .02em;
	padding: 16px 30px;
	border-radius: 50px;
	background: linear-gradient(135deg, var(--mas-teal), var(--mas-teal-dark));
	color: #fff;
	box-shadow: 0 12px 30px -12px rgba(37, 180, 177, .8);
	transition: transform .35s var(--mas-ease), box-shadow .35s var(--mas-ease), background .35s;
	position: relative;
	overflow: hidden;
}
.elementor-widget-button .elementor-button::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .8s var(--mas-ease);
}
.elementor-widget-button .elementor-button:hover::after { transform: translateX(120%); }
.elementor-widget-button .elementor-button:hover {
	transform: translateY(-3px);
	color: #fff;
	box-shadow: 0 18px 38px -14px rgba(37, 180, 177, .9);
}
.mas-btn--navy .elementor-button { background: var(--mas-navy); box-shadow: 0 12px 30px -12px rgba(26, 74, 114, .8); }
.mas-btn--gold .elementor-button { background: linear-gradient(135deg, #D9C5A2, var(--mas-gold)); color: var(--mas-ink); box-shadow: 0 12px 30px -12px rgba(204, 180, 142, .9); }
.mas-btn--gold .elementor-button:hover { color: var(--mas-ink); }
.mas-btn--wa .elementor-button { background: var(--mas-wa); box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .8); }
.mas-btn--outline .elementor-button {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, .7);
	box-shadow: none;
}
.mas-btn--outline .elementor-button:hover { background: #fff; color: var(--mas-navy); }
.mas-btn--outline-dark .elementor-button { background: transparent; border: 2px solid var(--mas-navy); color: var(--mas-navy); box-shadow: none; }
.mas-btn--outline-dark .elementor-button:hover { background: var(--mas-navy); color: #fff; }
.elementor-button .elementor-button-icon { font-size: 1.1em; }

.mas-btn-wa {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 50px;
	background: var(--mas-wa);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	transition: transform .3s var(--mas-ease), box-shadow .3s;
	box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .8);
}
.mas-btn-wa:hover { transform: translateY(-3px); }

/* ---------- Header (Header Footer Elementor) ---------- */
#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow .4s, background .4s;
}
.admin-bar #masthead { top: 32px; }
.mas-topbar { transition: margin .4s var(--mas-ease), opacity .3s; }
.mas-topbar .elementor-icon-list-item a,
.mas-topbar .elementor-icon-list-text { font-size: 13px; }
.mas-headbar {
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: padding .4s var(--mas-ease), box-shadow .4s;
}
.mas-logo img { transition: max-width .4s var(--mas-ease); }
body.mas-scrolled .mas-headbar { box-shadow: 0 10px 35px -15px rgba(16, 39, 61, .35); }
@media (min-width: 1025px) {
	body.mas-scrolled .mas-topbar { margin-top: -46px; opacity: 0; }
	body.mas-scrolled .mas-headbar { padding-top: 6px !important; padding-bottom: 6px !important; }
	body.mas-scrolled .mas-logo img { max-width: 170px !important; }
}

/* ---------- Navegación ---------- */
.mas-nav { display: flex; align-items: center; justify-content: flex-end; }
.mas-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.mas-nav__list > li { position: relative; }
.mas-nav__list a {
	display: block;
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--mas-ink);
	text-decoration: none;
	transition: color .25s;
}
.mas-nav__list > li > a { position: relative; }
.mas-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	background: var(--mas-teal);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--mas-ease);
}
.mas-nav__list > li:hover > a::after,
.mas-nav__list > li.current-menu-item > a::after,
.mas-nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.mas-nav__list a:hover,
.mas-nav__list .current-menu-item > a { color: var(--mas-teal); }
.mas-nav__list > .menu-item-has-children > a { padding-right: 26px; }
.mas-nav__list > .menu-item-has-children > a::before {
	content: "\f107";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	color: var(--mas-teal);
}
.mas-nav__list .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 290px;
	margin: 0;
	padding: 14px;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--mas-shadow-lg);
	border-top: 3px solid var(--mas-teal);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: all .35s var(--mas-ease);
	z-index: 50;
}
.mas-nav__list li:hover > .sub-menu,
.mas-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mas-nav__list .sub-menu a { padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.mas-nav__list .sub-menu a:hover { background: var(--mas-mist); padding-left: 20px; }
.mas-nav__list .sub-menu .mas-menu-heading > a {
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mas-gold);
	pointer-events: none;
}
.mas-nav__cta {
	margin-left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 50px;
	background: linear-gradient(135deg, var(--mas-teal), var(--mas-navy));
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .3s var(--mas-ease), box-shadow .3s;
	box-shadow: 0 10px 25px -10px rgba(37, 180, 177, .9);
}
.mas-nav__cta:hover { transform: translateY(-2px); }
.mas-nav__panel { display: flex; align-items: center; }
.mas-nav__toggle, .mas-nav__sub { display: none; }

@media (max-width: 1024px) {
	.mas-nav__toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 46px;
		height: 46px;
		padding: 0 11px;
		border: 0;
		border-radius: 12px;
		background: var(--mas-navy);
		cursor: pointer;
		position: relative;
		z-index: 1002;
	}
	.mas-nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--mas-ease), opacity .2s; }
	.mas-nav.is-open .mas-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.mas-nav.is-open .mas-nav__toggle span:nth-child(2) { opacity: 0; }
	.mas-nav.is-open .mas-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.mas-nav__panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(88vw, 380px);
		padding: 90px 24px 30px;
		flex-direction: column;
		align-items: stretch;
		background: #fff;
		box-shadow: -20px 0 60px rgba(16, 39, 61, .25);
		transform: translateX(105%);
		transition: transform .45s var(--mas-ease);
		overflow-y: auto;
		z-index: 1001;
	}
	.mas-nav::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(11, 46, 76, .55);
		opacity: 0;
		visibility: hidden;
		transition: opacity .4s;
		z-index: 1000;
	}
	.mas-nav.is-open::before { opacity: 1; visibility: visible; }
	.mas-nav.is-open .mas-nav__panel { transform: translateX(0); }
	.mas-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.mas-nav__list > li { border-bottom: 1px solid #EDF1F4; display: flex; flex-wrap: wrap; align-items: center; }
	.mas-nav__list > li > a { flex: 1; padding: 15px 4px; font-size: 16px; }
	.mas-nav__list > li > a::after, .mas-nav__list > .menu-item-has-children > a::before { display: none; }
	.mas-nav__sub { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--mas-mist); color: var(--mas-navy); cursor: pointer; }
	.mas-nav__list li.is-open > .mas-nav__sub i { transform: rotate(180deg); }
	.mas-nav__list .sub-menu {
		position: static;
		width: 100%;
		min-width: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 10px 10px;
		display: none;
	}
	.mas-nav__list li.is-open > .sub-menu { display: block; }
	.mas-nav__cta { margin: 24px 0 0; justify-content: center; padding: 16px; }
}

/* ---------- Secciones Elementor ---------- */
.mas-hero { overflow: hidden; }
.mas-hero .elementor-heading-title { text-shadow: 0 6px 30px rgba(0, 0, 0, .18); }
.mas-hero::after {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	right: -160px;
	bottom: -200px;
	border-radius: 50%;
	border: 1px solid rgba(204, 180, 142, .45);
	box-shadow: 0 0 0 40px rgba(204, 180, 142, .06), 0 0 0 90px rgba(37, 180, 177, .05);
	animation: mas-float 9s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}
.mas-hero > .e-con-inner { position: relative; z-index: 2; }
@keyframes mas-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-24px); } }

.mas-glass {
	background: rgba(255, 255, 255, .1) !important;
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-radius: var(--mas-radius);
}

.mas-stats .elementor-counter-number-wrapper { font-family: "Poppins", sans-serif; font-weight: 700; }

/* Marco decorativo para imágenes */
.mas-frame { position: relative; }
.mas-frame img { border-radius: 24px; box-shadow: var(--mas-shadow-lg); position: relative; z-index: 1; }
.mas-frame::before {
	content: "";
	position: absolute;
	inset: 26px -22px -22px 26px;
	border: 2px solid var(--mas-gold);
	border-radius: 24px;
	z-index: 0;
	transition: inset .6s var(--mas-ease);
}
.mas-frame:hover::before { inset: 14px -12px -12px 14px; }
.mas-zoom { overflow: hidden; border-radius: 22px; }
.mas-zoom img { transition: transform 1.2s var(--mas-ease); }
.mas-zoom:hover img { transform: scale(1.07); }

/* Insignia flotante sobre imagen */
.mas-badge-float {
	position: absolute !important;
	z-index: 3;
	animation: mas-float 6s ease-in-out infinite;
}
.mas-badge-float .elementor-icon-box-wrapper {
	background: #fff;
	padding: 16px 20px;
	border-radius: 16px;
	box-shadow: var(--mas-shadow-lg);
}

.mas-badge-float.is-br { right: -6px; bottom: 50px; width: auto !important; }
.mas-badge-float .elementor-icon-box-title { margin: 0 !important; }
.mas-badge-float .elementor-icon-box-description { font-size: 13px; color: var(--mas-text); }
@media (max-width: 767px) { .mas-badge-float.is-br { right: 10px; bottom: 30px; } }
@media (min-width: 1025px) { .mas-sticky { position: sticky !important; top: 130px; } }

/* Tarjetas de beneficios (icon box) */
.mas-feature {
	background: #fff;
	border-radius: var(--mas-radius);
	padding: 34px 28px;
	box-shadow: var(--mas-shadow);
	border: 1px solid #EEF2F5;
	transition: transform .45s var(--mas-ease), box-shadow .45s, border-color .45s;
	position: relative;
	overflow: hidden;
	height: 100%;
}
.mas-feature::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 100%;
	background: linear-gradient(90deg, var(--mas-teal), var(--mas-gold));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--mas-ease);
}
.mas-feature:hover { transform: translateY(-10px); box-shadow: var(--mas-shadow-lg); border-color: transparent; }
.mas-feature:hover::after { transform: scaleX(1); }
.mas-feature .elementor-icon { transition: transform .5s var(--mas-ease), background .4s; }
.mas-feature:hover .elementor-icon { transform: rotate(-8deg) scale(1.08); }
.mas-feature .elementor-icon-box-title { margin-bottom: 10px; }
.mas-feature .elementor-icon-box-description { line-height: 1.7; }

/* Listas con check */
.mas-checks .elementor-icon-list-item { padding: 10px 0 !important; align-items: flex-start !important; }
.mas-checks .elementor-icon-list-icon { margin-top: 4px; }
.mas-checks .elementor-icon-list-text { line-height: 1.6; }
.mas-pill-list .elementor-icon-list-item {
	background: #fff;
	border-radius: 14px;
	padding: 16px 20px !important;
	margin-bottom: 12px !important;
	box-shadow: 0 8px 25px -15px rgba(16, 39, 61, .35);
	transition: transform .35s var(--mas-ease);
}
.mas-pill-list .elementor-icon-list-item:hover { transform: translateX(8px); }

/* Cita */
.mas-quote p { font-family: "Playfair Display", serif; font-style: italic; font-size: 24px; line-height: 1.5; }

/* Acordeón del temario */
.mas-accordion .elementor-accordion-item {
	border: 0 !important;
	margin-bottom: 14px;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px -18px rgba(16, 39, 61, .45);
}
.mas-accordion .elementor-tab-title {
	padding: 20px 24px !important;
	font-weight: 600;
	border: 0 !important;
	transition: background .3s;
}
.mas-accordion .elementor-tab-title.elementor-active { background: var(--mas-navy); }
.mas-accordion .elementor-tab-title.elementor-active a,
.mas-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon { color: #fff !important; }
.mas-accordion .elementor-tab-content { border: 0 !important; padding: 22px 26px !important; line-height: 1.75; }
.mas-accordion .elementor-tab-content ul { margin: 0; padding-left: 20px; }
.mas-accordion .elementor-tab-content li { margin-bottom: 6px; }
.mas-accordion .elementor-tab-content li::marker { color: var(--mas-teal); }

/* Galería */
.mas-gallery .gallery-item { padding: 6px !important; }
.mas-gallery .gallery-icon { overflow: hidden; border-radius: 16px; }
.mas-gallery img { aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--mas-ease), filter .6s; border: 0 !important; }
.mas-gallery .gallery-icon:hover img { transform: scale(1.1); filter: saturate(1.15); }

/* Mapa */
.mas-map iframe { border-radius: 22px; filter: saturate(.85); }

/* ---------- Cinta animada ---------- */
.mas-marquee { overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mas-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: mas-marquee 38s linear infinite; }
.mas-marquee__track span { font-size: 26px; font-weight: 600; color: #fff; white-space: nowrap; letter-spacing: .01em; }
.mas-marquee__track span:nth-of-type(even) { font-family: "Playfair Display", serif; font-style: italic; color: var(--mas-gold); }
.mas-marquee__track i { color: var(--mas-teal); font-size: 16px; }
.mas-marquee:hover .mas-marquee__track { animation-play-state: paused; }
@keyframes mas-marquee { to { transform: translateX(-50%); } }

/* ---------- Aparición ---------- */
.mas-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--mas-ease), transform .8s var(--mas-ease); }
.mas-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Grilla y tarjetas de cursos ---------- */
.mas-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.mas-filter button {
	border: 1px solid #DCE4EA;
	background: #fff;
	color: var(--mas-ink);
	padding: 11px 22px;
	border-radius: 50px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all .3s var(--mas-ease);
}
.mas-filter button:hover { border-color: var(--mas-teal); color: var(--mas-teal); background: #fff; }
.mas-filter button.is-active { background: var(--mas-navy); border-color: var(--mas-navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(26, 74, 114, .9); }
.mas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.mas-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--mas-shadow);
	border: 1px solid #EEF2F5;
	transition: transform .5s var(--mas-ease), box-shadow .5s, opacity .6s;
}
.mas-card:hover { transform: translateY(-10px); box-shadow: var(--mas-shadow-lg); }
.mas-card[hidden] { display: none; }
.mas-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.mas-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mas-ease); }
.mas-card:hover .mas-card__media img { transform: scale(1.08); }
.mas-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 46, 76, .55)); }
.mas-card__cat {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	padding: 6px 14px;
	border-radius: 30px;
	background: rgba(255, 255, 255, .95);
	color: var(--mas-navy);
	font-size: 12px;
	font-weight: 600;
}
.mas-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 30px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .03em;
	color: #fff;
	background: var(--mas-teal);
}
.mas-card__badge.is-open::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #fff; animation: mas-blink 1.4s infinite; }
.mas-card__badge.is-soon { background: var(--mas-gold); color: var(--mas-ink); }
.mas-card__badge.is-full { background: #8A94A6; }
@keyframes mas-blink { 50% { opacity: .2; } }
.mas-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 24px; }
.mas-card__title { margin: 0 0 8px; font-size: 21px; line-height: 1.3; font-weight: 600; }
.mas-card__title a { color: var(--mas-ink); text-decoration: none; transition: color .3s; }
.mas-card__title a:hover { color: var(--mas-teal); }
.mas-card__sub { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--mas-text); }
.mas-card__meta { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--mas-ink); }
.mas-card__meta i { width: 22px; color: var(--mas-teal); }
.mas-card__foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed #DCE4EA; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mas-card__price { font-size: 20px; font-weight: 700; color: var(--mas-navy); line-height: 1.1; }
.mas-card__price small { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--mas-gold); }
.mas-card__actions { display: flex; align-items: center; gap: 8px; }
.mas-card__wa { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(37, 211, 102, .12); color: #1DA851; font-size: 20px; transition: all .3s; }
.mas-card__wa:hover { background: var(--mas-wa); color: #fff; transform: rotate(-10deg); }
.mas-card__more { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 40px; background: var(--mas-navy); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .3s, gap .3s; }
.mas-card__more:hover { background: var(--mas-teal); gap: 12px; }
.mas-empty { text-align: center; padding: 60px 24px; border-radius: 22px; background: var(--mas-mist); }
.mas-empty i { font-size: 38px; color: var(--mas-teal); }
.mas-empty h3 { color: var(--mas-navy); margin: 14px 0 8px; }

/* ---------- Tarjetas de categorías ---------- */
.mas-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.mas-cat {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 360px;
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background: var(--mas-navy);
	box-shadow: var(--mas-shadow);
	isolation: isolate;
}
.mas-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mas-ease); z-index: -2; }
.mas-cat__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 46, 76, .05) 20%, rgba(11, 46, 76, .92) 85%); z-index: -1; transition: background .5s; }
.mas-cat:hover img { transform: scale(1.1); }
.mas-cat:hover .mas-cat__overlay { background: linear-gradient(180deg, rgba(37, 180, 177, .35) 0%, rgba(11, 46, 76, .95) 80%); }
.mas-cat__content { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.mas-cat__icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: 22px; color: var(--mas-gold); margin-bottom: 6px; transition: background .4s, color .4s; }
.mas-cat:hover .mas-cat__icon { background: var(--mas-teal); color: #fff; }
.mas-cat strong { font-size: 20px; font-weight: 600; line-height: 1.25; }
.mas-cat__desc { font-size: 13.5px; line-height: 1.55; opacity: .85; max-height: 0; overflow: hidden; transition: max-height .6s var(--mas-ease); }
.mas-cat:hover .mas-cat__desc { max-height: 120px; }
.mas-cat__count { font-size: 13px; font-weight: 600; color: var(--mas-gold); display: inline-flex; gap: 8px; align-items: center; }
.mas-cat__count i { transition: transform .3s; }
.mas-cat:hover .mas-cat__count i { transform: translateX(6px); }
@media (hover: none) { .mas-cat__desc { max-height: none; } }

/* ---------- Formulario WhatsApp ---------- */
.mas-form {
	background: #fff;
	border-radius: 24px;
	padding: 36px;
	box-shadow: var(--mas-shadow-lg);
	border-top: 4px solid var(--mas-teal);
	text-align: left;
}
.mas-form__title { margin: 0 0 22px; color: var(--mas-navy); font-size: 24px; }
.mas-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.mas-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.mas-field--full { grid-column: 1 / -1; }
.mas-field span { font-size: 13px; font-weight: 600; color: var(--mas-ink); }
.mas-form input[type="text"], .mas-form input[type="tel"], .mas-form input[type="email"], .mas-form select, .mas-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid #DCE4EA;
	border-radius: 12px;
	background: #F9FBFC;
	font-family: inherit;
	font-size: 15px;
	color: var(--mas-ink);
	transition: border-color .25s, box-shadow .25s, background .25s;
}
.mas-form input:focus, .mas-form select:focus, .mas-form textarea:focus {
	outline: none;
	border-color: var(--mas-teal);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(37, 180, 177, .15);
}
.mas-field.has-error input, .mas-field.has-error select, .mas-field.has-error textarea { border-color: #E5534B; box-shadow: 0 0 0 4px rgba(229, 83, 75, .12); }
.mas-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 13.5px; color: var(--mas-text); }
.mas-check.has-error { color: #E5534B; }
.mas-check input { margin-top: 3px; accent-color: var(--mas-teal); }
.mas-form__submit {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 24px;
	border: 0;
	border-radius: 50px;
	background: var(--mas-wa);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .85);
	transition: transform .3s var(--mas-ease), box-shadow .3s, background .3s;
}
.mas-form__submit i { font-size: 22px; }
.mas-form__submit:hover { transform: translateY(-3px); background: #1EBE5A; color: #fff; }
.mas-form__note { margin: 14px 0 0; font-size: 13px; text-align: center; color: #7A8699; }
.mas-form__note.is-error { color: #E5534B; }
.mas-form__note.is-ok { color: #1DA851; font-weight: 600; }
@media (max-width: 640px) {
	.mas-form { padding: 26px 20px; }
	.mas-form__grid { grid-template-columns: 1fr; }
}

/* ---------- Ficha del curso ---------- */
.mas-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.mas-info__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25);
	backdrop-filter: blur(10px);
	color: #fff;
}
.mas-info__item i { flex: 0 0 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--mas-gold); color: var(--mas-ink); font-size: 18px; }
.mas-info__item small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.mas-info__item span { font-weight: 600; font-size: 14.5px; line-height: 1.35; }

.mas-price {
	position: relative;
	padding: 40px 34px;
	border-radius: 26px;
	background: linear-gradient(150deg, var(--mas-navy) 0%, var(--mas-navy-dark) 100%);
	color: #fff;
	text-align: center;
	overflow: hidden;
	box-shadow: var(--mas-shadow-lg);
}
.mas-price::before { content: ""; position: absolute; width: 260px; height: 260px; top: -120px; right: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 180, 177, .55), transparent 70%); }
.mas-price__label { position: relative; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--mas-gold); }
.mas-price__value { position: relative; display: block; margin: 8px 0 10px; font-size: 46px; font-weight: 700; line-height: 1.1; }
.mas-price__note { position: relative; margin: 0 auto 24px; max-width: 360px; font-size: 14px; opacity: .85; }
.mas-price__actions { position: relative; display: grid; gap: 12px; }
.mas-price__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 20px; border-radius: 50px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .3s var(--mas-ease), box-shadow .3s; }
.mas-price__btn:hover { transform: translateY(-3px); }
.mas-price__btn.is-primary { background: var(--mas-teal); color: #fff; box-shadow: 0 12px 28px -12px rgba(37, 180, 177, .9); }
.mas-price__btn.is-gold { background: var(--mas-gold); color: var(--mas-ink); }
.mas-price__btn.is-wa { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.mas-price__btn.is-wa:hover { background: var(--mas-wa); border-color: var(--mas-wa); color: #fff; }
.mas-price__safe { position: relative; margin: 20px 0 0; font-size: 12.5px; opacity: .75; }

/* ---------- Footer ---------- */
.mas-footer a { transition: color .3s; }
.mas-links { list-style: none; margin: 0; padding: 0; }
.mas-links li { margin-bottom: 11px; }
.mas-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14.5px; position: relative; padding-left: 16px; transition: color .3s, padding .3s; }
.mas-links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--mas-teal); }
.mas-links a:hover { color: var(--mas-gold); padding-left: 22px; }
.mas-footer .elementor-icon-list-item a:hover .elementor-icon-list-text { color: var(--mas-gold) !important; }
.mas-redes { display: flex; flex-wrap: wrap; gap: 10px; }
.mas-redes a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 16px;
	text-decoration: none;
	transition: transform .35s var(--mas-ease), background .35s;
}
.mas-redes a:hover { transform: translateY(-4px); background: var(--mas-teal); color: #fff; }
.mas-redes a.is-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.mas-redes a.is-facebook:hover { background: #1877F2; }
.mas-redes a.is-youtube:hover { background: #FF0000; }
.mas-redes a.is-linkedin:hover { background: #0A66C2; }
.mas-redes a.is-whatsapp:hover { background: var(--mas-wa); }
.mas-redes.is-dark a { background: var(--mas-mist); color: var(--mas-navy); }
.mas-redes.is-dark a:hover { color: #fff; }

/* ---------- Flotantes ---------- */
.mas-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; }
.mas-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mas-teal), var(--mas-gold)); }

.mas-float-social {
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 990;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mas-float-social a {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 46px;
	height: 46px;
	padding-left: 15px;
	overflow: hidden;
	background: var(--mas-navy);
	color: #fff;
	font-size: 16px;
	text-decoration: none;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 8px 20px -8px rgba(16, 39, 61, .5);
	transition: width .4s var(--mas-ease), background .3s;
	white-space: nowrap;
}
.mas-float-social a i { width: 16px; text-align: center; }
.mas-float-social a span { font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .3s; }
.mas-float-social a:hover { width: 150px; color: #fff; }
.mas-float-social a:hover span { opacity: 1; }
.mas-float-social a.is-instagram:hover { background: #d6249f; }
.mas-float-social a.is-facebook:hover { background: #1877F2; }
.mas-float-social a.is-youtube:hover { background: #FF0000; }
.mas-float-social a.is-linkedin:hover { background: #0A66C2; }
@media (max-width: 767px) { .mas-float-social { display: none; } }

.mas-wa { position: fixed; right: 24px; bottom: 24px; z-index: 995; }
.mas-wa__btn {
	position: relative;
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: 50%;
	background: var(--mas-wa);
	color: #fff;
	font-size: 34px;
	cursor: pointer;
	box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .7);
	transition: transform .35s var(--mas-ease);
	display: flex;
	align-items: center;
	justify-content: center;
}
.mas-wa__btn::before, .mas-wa__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--mas-wa);
	animation: mas-pulse 2.4s ease-out infinite;
}
.mas-wa__btn::after { animation-delay: 1.2s; }
@keyframes mas-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.mas-wa__btn:hover { transform: scale(1.08); }
.mas-wa.is-open .mas-wa__btn::before, .mas-wa.is-open .mas-wa__btn::after, .mas-wa.is-open .mas-wa__dot { display: none; }
.mas-wa__dot { position: absolute; top: 0; right: 0; width: 20px; height: 20px; border-radius: 50%; background: #E5534B; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; border: 2px solid #fff; }
.mas-wa__tip {
	position: absolute;
	right: 78px;
	top: 50%;
	transform: translate(10px, -50%);
	padding: 10px 16px;
	border-radius: 30px;
	background: #fff;
	color: var(--mas-ink);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: var(--mas-shadow);
	opacity: 0;
	visibility: hidden;
	transition: all .4s var(--mas-ease);
}
.mas-wa:hover .mas-wa__tip, .mas-wa.show-tip .mas-wa__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.mas-wa.is-open .mas-wa__tip { display: none; }
.mas-wa__chat {
	position: absolute;
	right: 0;
	bottom: 82px;
	width: min(350px, calc(100vw - 32px));
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 30px 70px -20px rgba(16, 39, 61, .45);
	animation: mas-pop .4s var(--mas-ease);
}
@keyframes mas-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.mas-wa__head { display: flex; align-items: center; gap: 12px; padding: 18px; background: #075E54; color: #fff; }
.mas-wa__head strong { display: block; font-size: 15px; }
.mas-wa__head small { font-size: 12px; opacity: .8; }
.mas-wa__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--mas-wa); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mas-wa__close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.mas-wa__close:hover, .mas-wa__close:focus { background: none; color: #fff; }
.mas-wa__body { padding: 18px; max-height: 60vh; overflow-y: auto; background: #ECE5DD; display: grid; gap: 8px; }
.mas-wa__bubble { margin: 0 0 6px; padding: 12px 14px; border-radius: 0 14px 14px 14px; background: #fff; font-size: 14px; line-height: 1.5; color: var(--mas-ink); box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.mas-wa__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--mas-navy); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .25s, transform .25s; }
.mas-wa__opt:hover { background: #DCF8C6; transform: translateX(4px); color: var(--mas-navy); }
.mas-wa__opt i { font-size: 11px; color: var(--mas-teal); }
.mas-wa__opt.is-main { justify-content: center; background: var(--mas-wa); color: #fff; }
.mas-wa__opt.is-main i { font-size: 18px; color: #fff; }

.mas-top {
	position: fixed;
	right: 32px;
	bottom: 104px;
	z-index: 994;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--mas-navy);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--mas-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all .4s var(--mas-ease);
	display: flex;
	align-items: center;
	justify-content: center;
}
.mas-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.mas-top:hover, .mas-top:focus { background: var(--mas-teal); color: #fff; }
@media (max-width: 767px) {
	.mas-wa { right: 16px; bottom: 16px; }
	.mas-wa__btn { width: 58px; height: 58px; font-size: 30px; }
	.mas-top { right: 22px; bottom: 88px; width: 42px; height: 42px; }
}

/* ---------- Archivo de categorías ---------- */
.mas-archive__hero {
	position: relative;
	padding: 120px 20px 110px;
	background: var(--mas-navy) center / cover no-repeat;
	color: #fff;
	text-align: center;
	isolation: isolate;
}
.mas-archive__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11, 46, 76, .94), rgba(37, 180, 177, .78)); z-index: -1; }
.mas-archive__inner { max-width: 820px; margin: 0 auto; }
.mas-archive__hero h1 { margin: 14px 0; color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.mas-archive__hero p { font-size: 18px; opacity: .9; }
.mas-archive .mas-eyebrow { color: var(--mas-gold) !important; justify-content: center; }
.mas-crumbs { font-size: 13px; opacity: .85; margin-bottom: 18px; }
.mas-crumbs a { color: #fff; text-decoration: none; }
.mas-crumbs a:hover { color: var(--mas-gold); }
.mas-archive__list, .mas-archive__cats { max-width: 1200px; margin: 0 auto; padding: 90px 20px; }
.mas-archive__cats { padding-top: 0; text-align: center; }
.mas-archive__cats h2, .mas-archive__form h2 { color: var(--mas-navy); font-size: clamp(28px, 4vw, 40px); margin: 10px 0 36px; }
.mas-archive__cats .mas-eyebrow { color: var(--mas-teal) !important; }
.mas-archive__form { background: var(--mas-cream); padding: 90px 20px; }
.mas-archive__form-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.mas-archive__form .mas-eyebrow { color: var(--mas-teal) !important; justify-content: flex-start; }
.mas-archive__form h2 { margin-bottom: 16px; }
@media (max-width: 900px) { .mas-archive__form-inner { grid-template-columns: 1fr; } }

/* Hello Elementor: limpieza */
.site-main.post-type-curso .page-header, .page .page-header { display: none; }

/* ---------- Prioridad sobre estilos base del tema (Hello Elementor / kit) ---------- */
body .mas-nav__toggle, body .mas-nav__sub { display: none; }
body .mas-nav .mas-nav__list a { color: var(--mas-ink); }
body .mas-nav .mas-nav__list a:hover,
body .mas-nav .mas-nav__list .current-menu-item > a,
body .mas-nav .mas-nav__list .current-menu-ancestor > a { color: var(--mas-teal); }
body .mas-nav .mas-nav__list .sub-menu .mas-menu-heading > a { color: var(--mas-gold); }
body .mas-card__title a { color: var(--mas-ink); }
body .mas-card__title a:hover { color: var(--mas-teal); }
body .mas-cat, body .mas-cat:hover { color: #fff; }
body .mas-redes a, body .mas-float-social a { color: #fff; }
body .mas-redes.is-dark a { color: var(--mas-navy); }
body .mas-redes.is-dark a:hover { color: #fff; }
body .mas-wa__opt { color: var(--mas-navy); }
body .mas-wa__opt.is-main { color: #fff; }
body .mas-filter button { border: 1px solid #DCE4EA; color: var(--mas-ink); background: #fff; }
body .mas-filter button:hover { border-color: var(--mas-teal); color: var(--mas-teal); background: #fff; }
body .mas-filter button.is-active { background: var(--mas-navy); border-color: var(--mas-navy); color: #fff; }
body .mas-wa__btn, body .mas-wa__btn:hover, body .mas-wa__btn:focus { background: var(--mas-wa); color: #fff; border: 0; }
body .mas-top { border: 0; color: #fff; }
body .mas-form__submit { border: 0; color: #fff; }
body .mas-wa__close { border: 0; padding: 0 4px; }
@media (max-width: 1024px) {
	body .mas-nav__toggle { display: inline-flex; border: 0; padding: 0 11px; background: var(--mas-navy); }
	body .mas-nav__sub { display: inline-flex; border: 0; padding: 0; background: var(--mas-mist); color: var(--mas-navy); }
	body .mas-nav__toggle:hover, body .mas-nav__toggle:focus { background: var(--mas-teal); }
}
.mas-crumbs a { color: rgba(255, 255, 255, .85); }
.mas-crumbs a:hover { color: var(--mas-gold); }
body .mas-wa__btn, body .mas-top { border-radius: 50%; padding: 0; }
body .mas-nav__toggle { border-radius: 12px; }

/* Botones propios frente al reset de Hello Elementor ([type=button], button) */
body button.mas-wa__btn { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: var(--mas-wa); color: #fff; font-size: 34px; line-height: 1; }
body button.mas-top { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--mas-navy); color: #fff; }
body button.mas-top:hover { background: var(--mas-teal); }
body button.mas-form__submit { width: 100%; padding: 17px 24px; border: 0; border-radius: 50px; background: var(--mas-wa); color: #fff; font-size: 16px; font-weight: 600; white-space: normal; }
body button.mas-form__submit:hover, body button.mas-form__submit:focus { background: #1EBE5A; color: #fff; }
body .mas-filter button { padding: 11px 22px; border-radius: 50px; font-size: 14px; font-weight: 500; }
body button.mas-wa__close, body button.mas-wa__close:hover { background: none; border: 0; color: #fff; font-size: 28px; }
@media (max-width: 767px) { body button.mas-wa__btn { width: 58px; height: 58px; font-size: 30px; } body button.mas-top { width: 42px; height: 42px; } }

/* Iconos SVG de Elementor heredan el color del botón */
.elementor-widget-button .elementor-button .elementor-button-icon svg { fill: currentColor; width: 1em; height: 1em; }
.elementor-widget-button .elementor-button .elementor-button-content-wrapper { gap: 8px; align-items: center; }
body .mas-redes.is-dark a { background: #fff; color: var(--mas-navy); box-shadow: 0 6px 18px -8px rgba(16, 39, 61, .35); }
body .mas-redes a i { color: inherit; }

/* Categorías: imagen a sangre y texto blanco */
body a.mas-cat, body a.mas-cat:hover { color: #fff; }
body .mas-cat img { height: 100%; max-width: none; }
.elementor-counter .elementor-counter-title { line-height: 1.5; }

/* Footer */
body .mas-footer .mas-links a { color: rgba(255, 255, 255, .78); display: inline-block; }
body .mas-footer .mas-links a:hover { color: var(--mas-gold); }
.mas-footer .elementor-widget-image { align-self: flex-start; }
body .mas-crumbs a { color: rgba(255, 255, 255, .85); }
body .mas-crumbs a:hover { color: var(--mas-gold); }
@media (max-width: 1024px) {
	body button.mas-nav__toggle { width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; }
	body button.mas-nav__toggle span { width: 100%; }
	body button.mas-nav__sub { width: 40px; height: 40px; border-radius: 10px; }
}
@media (max-width: 767px) { .mas-wa__tip { display: none; } }
@media (max-width: 1024px) {
	/* backdrop-filter crea un bloque contenedor que recortaría el panel fixed del menú */
	.mas-headbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
.mas-btn-wa i { font-size: 20px; }
