/* ==========================================================================
   MARTA SALVAT — Hoja de estilos principal
   Sistema visual heredado de las landings: paleta, Raleway/Open Sans,
   botones pill, cards con sombra suave, heros con gradiente oscuro.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
	--verde: #54d6a7;
	--turquesa: #00b3bf;
	--azul: #034161;
	--morado: #461e59;
	--rojo: #ff395c;
	--salmon: #f2825c;
	--blanco: #ffffff;
	--negro: #0d0618;
	--gris-claro: #f7f7f2;
	--gris-texto: #444444;
	--gris-suave: #666666;
	--borde: #e6e3ee;

	--grad-hero: linear-gradient(150deg, #0d0618 0%, #461e59 40%, #034161 75%, #063d55 100%);
	--grad-cta: linear-gradient(90deg, var(--rojo), var(--salmon));
	--grad-verde: linear-gradient(135deg, var(--verde), var(--turquesa));

	--font-main: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--radius-sm: 14px;
	--radius: 20px;
	--radius-lg: 24px;
	--radius-pill: 50px;

	--shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.07);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.12);
	--shadow-cta: 0 12px 40px rgba(255, 57, 92, 0.45);

	--container: 1140px;
	--container-narrow: 800px;
	--header-h: 76px;

	--ease: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* --------------------------------------------------------------------------
   2. Reset ligero
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--gris-texto);
	background: var(--blanco);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-main);
	font-weight: 800;
	color: var(--morado);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--turquesa); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--morado); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

:focus-visible {
	outline: 3px solid var(--turquesa);
	outline-offset: 2px;
	border-radius: 4px;
}

.material-symbols-outlined {
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	line-height: 1;
	vertical-align: middle;
}

/* Accesibilidad: ocultar visualmente */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.ms-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--morado); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.ms-skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout y contenedores
   -------------------------------------------------------------------------- */
.ms-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ms-narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }
.ms-center { text-align: center; }
.ms-mt-40 { margin-top: 2.5rem; }
.ms-mb-40 { margin-bottom: 2.5rem; }

.ms-main { display: block; }

.ms-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; }
.ms-section--blanco { background: var(--blanco); }
.ms-section--gris { background: var(--gris-claro); }
.ms-section--morado { background: var(--morado); color: rgba(255, 255, 255, 0.85); }
.ms-section--hero { background: var(--grad-hero); color: #fff; overflow: hidden; }

.ms-grid { display: grid; gap: 28px; }
.ms-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ms-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ms-grid--auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.ms-layout { display: grid; gap: 48px; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ms-layout--with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.ms-layout--with-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 0; }

/* --------------------------------------------------------------------------
   4. Cabeceras de sección
   -------------------------------------------------------------------------- */
.ms-section-heading { margin-bottom: 3rem; max-width: 640px; }
.ms-section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.ms-section-heading--left { text-align: left; }

.ms-pretitle {
	display: inline-block; font-family: var(--font-main); font-weight: 700;
	font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
	color: var(--turquesa); margin-bottom: 0.7rem;
}
.ms-section-title { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin-bottom: 0.5rem; }
.ms-section-text { color: var(--gris-suave); font-size: 1.05rem; margin: 0; }
.ms-section-heading.is-light .ms-section-title,
.ms-section-heading.is-light .ms-pretitle { color: #fff; }
.ms-section-heading.is-light .ms-pretitle { color: var(--verde); }
.ms-section-heading.is-light .ms-section-text { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.ms-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-main); font-weight: 700; font-size: 1rem;
	padding: 14px 30px; border-radius: var(--radius-pill);
	border: 2px solid transparent; cursor: pointer; text-align: center;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
	line-height: 1.2;
}
.ms-btn .ms-icon { font-size: 1.15rem; }
.ms-btn--sm { padding: 10px 20px; font-size: 0.9rem; }

.ms-btn--cta { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-cta); }
.ms-btn--cta:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 50px rgba(255, 57, 92, 0.55); }

.ms-btn--outline { background: transparent; color: var(--morado); border-color: var(--morado); }
.ms-btn--outline:hover { background: var(--morado); color: #fff; }

.ms-btn--soft { background: rgba(0, 179, 191, 0.1); color: var(--azul); }
.ms-btn--soft:hover { background: var(--turquesa); color: #fff; transform: translateY(-2px); }

.ms-btn--ghost { background: transparent; color: var(--morado); border-color: var(--borde); }
.ms-btn--ghost:hover { border-color: var(--morado); }

.ms-btn--ghost-light { background: transparent; color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.3); }
.ms-btn--ghost-light:hover { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.ms-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
	.ms-btn:hover { transform: translateY(-2px); }
	.ms-course-card:hover, .ms-book-card:hover, .ms-event-card:hover, .ms-post-card:hover { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   6. Header — dues altures (topbar + barra principal)
   -------------------------------------------------------------------------- */

/* Embolcall sticky del conjunt */
.ms-header-wrap {
	position: sticky; top: 0; z-index: 200;
}

/* --- Topbar (franja superior secundaria) --- */
.ms-topbar {
	background: #0d0618;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ms-topbar__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	height: 38px;
}
.ms-topbar__menu {
	display: flex; align-items: center; gap: 4px;
	list-style: none; margin: 0; padding: 0;
}
.ms-topbar__menu li { position: relative; }
.ms-topbar__menu a {
	font-family: var(--font-main); font-weight: 600; font-size: 0.78rem;
	letter-spacing: 0.4px; color: rgba(255, 255, 255, 0.55);
	padding: 4px 10px; border-radius: var(--radius-pill);
	display: inline-block; white-space: nowrap;
	transition: color 0.2s, background 0.2s;
}
.ms-topbar__menu a:hover { color: var(--verde); background: rgba(84, 214, 167, 0.08); }
.ms-topbar__menu .current-menu-item > a { color: var(--verde); }
.ms-topbar__right { display: flex; align-items: center; gap: 10px; }

/* --- Barra principal --- */
.ms-header {
	background: var(--morado);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
	transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ms-header.is-scrolled { background: rgba(13, 6, 24, 0.95); backdrop-filter: blur(8px); }
.ms-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	min-height: 68px;
}
.ms-header__brand img,
.ms-header__brand .custom-logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
.ms-header__brand .custom-logo-link { display: inline-flex; flex-shrink: 0; }
.ms-logo-text { font-family: var(--font-main); font-weight: 800; font-size: 1.35rem; color: var(--verde); letter-spacing: 0.5px; }

.ms-primary-nav { display: flex; align-items: center; }
.ms-menu {
	display: flex; align-items: center; gap: 18px;
	list-style: none; margin: 0; padding: 0; flex-wrap: nowrap;
}
.ms-menu li { position: relative; }
.ms-menu a {
	font-family: var(--font-main); font-weight: 600; font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.88); padding: 6px 2px; display: inline-block;
	position: relative; white-space: nowrap;
}
.ms-menu a::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
	background: var(--verde); transition: width 0.25s var(--ease);
}
.ms-menu a:hover, .ms-menu .current-menu-item > a { color: #fff; }
.ms-menu a:hover::after, .ms-menu .current-menu-item > a::after { width: 100%; }

/* Submenús */
.ms-menu .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
	background: #fff; border-radius: var(--radius-sm); padding: 10px;
	list-style: none; margin: 0; box-shadow: var(--shadow-md);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 50;
}
.ms-menu .menu-item-has-children:hover > .sub-menu,
.ms-menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ms-menu .sub-menu a { color: var(--morado); padding: 9px 14px; border-radius: 8px; width: 100%; white-space: nowrap; }
.ms-menu .sub-menu a::after { display: none; }
.ms-menu .sub-menu a:hover { background: var(--gris-claro); color: var(--turquesa); }

.ms-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ms-header__actions--mobile { display: none; }

.ms-social { display: flex; align-items: center; gap: 8px; }
.ms-social--topbar a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.07);
	transition: background 0.2s, color 0.2s;
}
.ms-social--topbar a .ms-icon { font-size: 0.95rem; }
.ms-social--topbar a:hover { background: var(--verde); color: var(--azul); }
.ms-social--header a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%;
	color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1);
	transition: background 0.2s, color 0.2s;
}
.ms-social--header a:hover { background: var(--verde); color: var(--azul); }
.ms-social--footer a { background: rgba(255, 255, 255, 0.08); }
.ms-social--contact a { background: var(--gris-claro); color: var(--morado); }
.ms-social--contact a:hover { background: var(--verde); color: var(--azul); }

/* Toggle menú mòbil */
.ms-nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; }
.ms-nav-toggle__bars { display: block; width: 26px; height: 18px; position: relative; }
.ms-nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2.5px; background: #fff; border-radius: 3px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.ms-nav-toggle__bars span:nth-child(1) { top: 0; }
.ms-nav-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ms-nav-toggle__bars span:nth-child(3) { bottom: 0; }
.ms-nav-toggle[aria-expanded="true"] .ms-nav-toggle__bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.ms-nav-toggle[aria-expanded="true"] .ms-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.ms-nav-toggle[aria-expanded="true"] .ms-nav-toggle__bars span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.ms-nav-overlay { position: fixed; inset: 0; background: rgba(13, 6, 24, 0.5); z-index: 190; opacity: 0; transition: opacity 0.3s; }
.ms-nav-overlay:not([hidden]) { opacity: 1; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.ms-hero {
	background: var(--grad-hero); color: #fff; position: relative; overflow: hidden;
	padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
	text-align: center;
}
.ms-hero--left { text-align: left; }
.ms-hero--image::before {
	content: ""; position: absolute; inset: 0;
	background: var(--ms-hero-img) center/cover no-repeat; opacity: 0.18; mix-blend-mode: luminosity;
}
.ms-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.ms-hero__glow--1 { top: -120px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(84, 214, 167, 0.12) 0%, transparent 70%); }
.ms-hero__glow--2 { bottom: -100px; left: -90px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(0, 179, 191, 0.1) 0%, transparent 70%); }
.ms-hero__inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.ms-hero--left .ms-hero__inner { margin: 0; }

.ms-hero__badge {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--verde); color: var(--azul);
	font-family: var(--font-main); font-weight: 700; font-size: 0.8rem;
	letter-spacing: 1px; text-transform: uppercase; padding: 8px 20px;
	border-radius: var(--radius-pill); margin-bottom: 1.6rem;
}
.ms-hero__title { color: #fff; font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.2rem; }
.ms-hero__title span { color: var(--verde); }
.ms-hero__subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, 0.8); line-height: 1.75; max-width: 640px; margin: 0 auto 2.2rem; }
.ms-hero--left .ms-hero__subtitle { margin-left: 0; }
.ms-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ms-hero--left .ms-hero__ctas { justify-content: flex-start; }
.ms-hero__note { display: flex; align-items: center; justify-content: center; gap: 5px; color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; margin-top: 1.4rem; }

/* Page hero (interiores compactos) */
.ms-page-hero { background: var(--grad-hero); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; position: relative; }
.ms-page-hero--compact { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.ms-page-hero__title { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); }
.ms-page-hero__title span { color: var(--verde); }
.ms-page-hero__text { color: rgba(255, 255, 255, 0.78); max-width: 600px; margin: 0.6rem auto 0; }
.ms-page-hero__search { max-width: 480px; margin: 1.4rem auto 0; }

/* --------------------------------------------------------------------------
   8. Breadcrumbs
   -------------------------------------------------------------------------- */
.ms-breadcrumbs { background: var(--gris-claro); border-bottom: 1px solid var(--borde); font-size: 0.86rem; }
.ms-breadcrumbs .ms-container { padding-top: 12px; padding-bottom: 12px; }
.ms-breadcrumbs a { color: var(--gris-suave); }
.ms-breadcrumbs a:hover { color: var(--turquesa); }
.ms-breadcrumbs [aria-current="page"] { color: var(--morado); font-weight: 600; }
.ms-breadcrumbs .ms-sep { color: #bbb; margin: 0 4px; }

/* --------------------------------------------------------------------------
   9. Cards genéricas
   -------------------------------------------------------------------------- */
.ms-path-card, .ms-comm-card, .ms-course-card, .ms-feature-card, .ms-mini-card, .ms-price-card, .ms-info-block {
	background: #fff; border-radius: var(--radius); padding: 34px 30px;
	box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
	height: 100%; display: flex; flex-direction: column;
}
.ms-path-card:hover, .ms-comm-card:hover, .ms-course-card:hover, .ms-feature-card:hover, .ms-price-card:hover {
	transform: translateY(-6px); box-shadow: var(--shadow-lg);
}

/* Iconos de card */
.ms-path-card__icon, .ms-course-card__icon, .ms-feature-card__icon, .ms-mini-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px;
	background: var(--grad-verde); color: #fff;
}
.ms-path-card__icon .ms-icon, .ms-course-card__icon .ms-icon, .ms-feature-card__icon .ms-icon, .ms-mini-card__icon .ms-icon { font-size: 1.8rem; }

/* Caminos */
.ms-path-card { text-align: center; align-items: center; }
.ms-path-card--arbol .ms-path-card__icon { background: linear-gradient(135deg, var(--verde), var(--turquesa)); }
.ms-path-card--ucdm .ms-path-card__icon { background: linear-gradient(135deg, var(--morado), var(--azul)); }
.ms-path-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.ms-path-card p { color: var(--gris-suave); margin-bottom: 1.4rem; }
.ms-path-card .ms-btn { margin-top: auto; }

/* Comunidades */
.ms-comm-card { border: 2px solid var(--borde); }
.ms-comm-card--featured { border-color: transparent; background: linear-gradient(165deg, #fff, #f6f1fb); box-shadow: 0 12px 50px rgba(70, 30, 89, 0.12); }
.ms-comm-card__tag, .ms-tag {
	display: inline-block; align-self: flex-start; font-family: var(--font-main); font-weight: 700;
	font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase;
	background: rgba(0, 179, 191, 0.12); color: var(--turquesa);
	padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.ms-tag--muted { background: #ececec; color: #999; }
.ms-comm-card h2, .ms-comm-card h3 { font-size: 1.4rem; }
.ms-comm-card p { color: var(--gris-suave); }
.ms-comm-card__price { margin: 1rem 0 1.4rem; }
.ms-price { font-family: var(--font-main); font-weight: 900; font-size: 2.4rem; color: var(--morado); line-height: 1; }
.ms-price__period { color: var(--gris-suave); font-size: 0.9rem; margin-left: 6px; }
.ms-price--strike { text-decoration: line-through; color: #aaa; font-size: 1.3rem; font-weight: 700; margin-left: 8px; }
.ms-comm-card .ms-btn { margin-top: auto; }

/* Course cards */
.ms-course-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ms-course-card__top .ms-course-card__icon { margin-bottom: 0; width: 52px; height: 52px; }
.ms-course-card__title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.ms-course-card__text { color: var(--gris-suave); font-size: 0.97rem; margin-bottom: 1rem; }
.ms-course-card__meta { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--azul); font-weight: 600; margin-bottom: 1rem; }
.ms-course-card .ms-btn { margin-top: auto; align-self: flex-start; }
.ms-course-card--muted { opacity: 0.75; }

/* Mini cards */
.ms-mini-card { text-align: center; align-items: center; padding: 28px 22px; }
.ms-mini-card__icon { width: 54px; height: 54px; }
.ms-mini-card h3 { font-size: 1.05rem; margin: 0; }
.ms-mini-card p { color: var(--gris-suave); font-size: 0.95rem; margin: 0; }

/* Info block */
.ms-info-block { box-shadow: none; background: transparent; padding: 0; }
.ms-info-block h2 { font-size: 1.4rem; }
.ms-info-block p { color: var(--gris-suave); }

/* Feature cards (audio/nebai) */
.ms-feature-card { align-items: flex-start; }
.ms-feature-card--audio { background: linear-gradient(145deg, #e8f7ff, #d9f1f7); }
.ms-feature-card--nebai { background: linear-gradient(145deg, #f0fdf4, #e6faf3); }
.ms-feature-card__icon { background: var(--grad-verde); }
.ms-feature-card--audio .ms-feature-card__icon { background: linear-gradient(135deg, var(--turquesa), var(--azul)); }
.ms-feature-card h3 { font-size: 1.4rem; }
.ms-feature-card p { color: var(--gris-suave); }
.ms-feature-card__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 0.8rem; }

/* --------------------------------------------------------------------------
   10. Listas con check / notice / callout
   -------------------------------------------------------------------------- */
.ms-check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: 10px; }
.ms-check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.97rem; color: var(--gris-texto); }
.ms-check-list .ms-icon { color: var(--verde); font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.ms-check-list--block { gap: 14px; }
.ms-check-list--block li { background: #fff; padding: 16px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

.ms-notice {
	display: flex; align-items: flex-start; gap: 14px;
	background: rgba(0, 179, 191, 0.08); border-left: 4px solid var(--turquesa);
	border-radius: var(--radius-sm); padding: 18px 22px;
}
.ms-notice .ms-icon { color: var(--turquesa); font-size: 1.4rem; flex-shrink: 0; }
.ms-notice p { margin: 0; font-size: 0.96rem; }

.ms-callout { background: var(--gris-claro); border-radius: var(--radius); padding: 32px 36px; border-left: 5px solid var(--verde); }
.ms-callout--turquesa { border-left-color: var(--turquesa); }
.ms-callout p { font-size: 1.05rem; line-height: 1.85; color: #555; }
.ms-claim { font-family: var(--font-main); font-weight: 800; color: var(--morado); font-size: 1.3rem; text-align: center; }

/* --------------------------------------------------------------------------
   11. Pricing cards
   -------------------------------------------------------------------------- */
.ms-price-card { position: relative; border: 2px solid var(--borde); }
.ms-price-card--featured { border-color: transparent; background: linear-gradient(165deg, var(--morado) 0%, #2a0f3d 45%, var(--azul) 100%); color: rgba(255, 255, 255, 0.85); box-shadow: 0 16px 60px rgba(70, 30, 89, 0.35); }
.ms-price-card--featured .ms-price-card__title, .ms-price-card--featured .ms-price { color: #fff; }
.ms-price-card--featured .ms-price-card__type { color: var(--verde); }
.ms-price-card--featured .ms-price-card__text { color: rgba(255, 255, 255, 0.75); }
.ms-price-card--featured .ms-check-list li { color: rgba(255, 255, 255, 0.85); }
.ms-price-card--muted { opacity: 0.85; }
.ms-price-card--solo { max-width: 440px; margin: 0 auto; }

.ms-price-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-price-card__type { font-family: var(--font-main); font-weight: 700; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--turquesa); margin-bottom: 6px; }
.ms-price-card__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.ms-price-card__text { color: var(--gris-suave); font-size: 0.96rem; margin-bottom: 1rem; }
.ms-price-card__price { margin: 0.4rem 0 1.2rem; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ms-price-card .ms-btn { margin-top: auto; }
.ms-price-card__badge {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
	background: var(--grad-cta); color: #fff; font-family: var(--font-main); font-weight: 700;
	font-size: 0.78rem; padding: 6px 20px; border-radius: var(--radius-pill);
	box-shadow: 0 4px 16px rgba(255, 57, 92, 0.4); white-space: nowrap; letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   12. Bio
   -------------------------------------------------------------------------- */
.ms-bio__grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.ms-bio__photo { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 16px 50px rgba(70, 30, 89, 0.2); object-fit: cover; }
.ms-bio__content p { color: var(--gris-suave); }
.ms-bio__claim { font-family: var(--font-main); font-weight: 700; color: var(--morado); font-size: 1.1rem; }
.ms-bio__content .ms-btn { margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   13. Agenda
   -------------------------------------------------------------------------- */
.ms-agenda-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 2.5rem; }
.ms-chip {
	display: inline-flex; align-items: center; gap: 6px; background: var(--gris-claro);
	border: 2px solid transparent; color: var(--azul); font-family: var(--font-main); font-weight: 600;
	font-size: 0.86rem; padding: 8px 18px; border-radius: var(--radius-pill); cursor: pointer;
	transition: 0.2s var(--ease); text-decoration: none;
}
.ms-chip:hover { border-color: var(--turquesa); color: var(--turquesa); }
.ms-chip.is-active { background: var(--morado); color: #fff; }

.ms-agenda__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ms-event-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--verde); display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ms-event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ms-event-card.is-hidden { display: none; }
.ms-event-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ms-event-card__modality { font-family: var(--font-main); font-weight: 700; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); }
.ms-event-card__modality--online { background: rgba(0, 179, 191, 0.12); color: var(--turquesa); }
.ms-event-card__modality--presencial { background: rgba(70, 30, 89, 0.1); color: var(--morado); }
.ms-event-card__price { font-family: var(--font-main); font-weight: 800; color: var(--rojo); }
.ms-event-card__title { font-size: 1.2rem; margin-bottom: 0.8rem; }
.ms-event-card__meta { list-style: none; padding: 0; margin: 0 0 0.9rem; display: flex; flex-direction: column; gap: 6px; }
.ms-event-card__meta li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--gris-suave); }
.ms-event-card__meta .ms-icon { color: var(--turquesa); }
.ms-event-card__excerpt { color: var(--gris-suave); font-size: 0.94rem; margin-bottom: 1rem; }
.ms-event-card .ms-btn { margin-top: auto; align-self: flex-start; }

/* Aside de evento/contacto */
.ms-event-aside__card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 20px); }
.ms-event-aside__title { font-size: 1.2rem; margin-bottom: 1rem; }
.ms-event-aside__list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: 14px; }
.ms-event-aside__list li { display: flex; align-items: flex-start; gap: 12px; }
.ms-event-aside__list .ms-icon { color: var(--turquesa); font-size: 1.3rem; }
.ms-event-aside__list strong { display: block; font-family: var(--font-main); color: var(--morado); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.ms-event-aside__card .ms-btn { width: 100%; }

/* --------------------------------------------------------------------------
   14. Libros
   -------------------------------------------------------------------------- */
.ms-books__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px; }
.ms-book-card { background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); text-decoration: none; display: block; }
.ms-book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ms-book-card__cover { aspect-ratio: 5 / 7; overflow: hidden; background: var(--gris-claro); }
.ms-book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.ms-book-card__body { padding: 16px 18px; }
.ms-book-card__title { font-size: 0.98rem; color: var(--morado); margin: 0 0 4px; line-height: 1.3; }
.ms-book-card__year { font-size: 0.8rem; color: var(--gris-suave); font-weight: 600; }

/* --------------------------------------------------------------------------
   15. Newsletter
   -------------------------------------------------------------------------- */
.ms-newsletter { background: var(--grad-hero); color: #fff; text-align: center; }
.ms-newsletter__inner { max-width: 640px; margin: 0 auto; }
.ms-newsletter__icon { margin: 0 auto 1.2rem; background: var(--verde); }
.ms-newsletter__icon .ms-icon { color: var(--azul); }
.ms-newsletter__title { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.ms-newsletter__text { color: rgba(255, 255, 255, 0.78); margin-bottom: 1.8rem; }
.ms-newsletter__form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.ms-newsletter__form input { flex: 1; padding: 14px 20px; border-radius: var(--radius-pill); border: 2px solid transparent; font-family: var(--font-body); font-size: 1rem; }
.ms-newsletter__legal { color: rgba(255, 255, 255, 0.86); font-size: 0.85rem; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   16. FAQ / Acordeón
   -------------------------------------------------------------------------- */
.ms-faq__inner { max-width: 800px; margin: 0 auto; }
.ms-accordion { display: flex; flex-direction: column; gap: 14px; }
.ms-accordion__item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.ms-accordion__header { margin: 0; }
.ms-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: transparent; border: none; cursor: pointer; padding: 20px 24px; text-align: left; font-family: var(--font-main); font-weight: 700; font-size: 1.05rem; color: var(--morado); }
.ms-accordion__icon { color: var(--turquesa); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.ms-accordion__trigger[aria-expanded="true"] .ms-accordion__icon { transform: rotate(180deg); }
.ms-accordion__panel { padding: 0 24px; }
.ms-accordion__panel[hidden] { display: none; }
.ms-accordion__content { padding-bottom: 22px; color: var(--gris-suave); }

/* --------------------------------------------------------------------------
   17. CTA final
   -------------------------------------------------------------------------- */
.ms-cta-final { text-align: center; }
.ms-cta-final__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.ms-cta-final__title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; }
.ms-cta-final__title span { color: var(--verde); }
.ms-cta-final__text { color: rgba(255, 255, 255, 0.7); max-width: 540px; margin: 0 auto 2rem; }
.ms-cta-final__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------------------
   18. Comparativa (tabla)
   -------------------------------------------------------------------------- */
.ms-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ms-compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.ms-compare th, .ms-compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--borde); }
.ms-compare thead th { background: var(--morado); color: #fff; font-family: var(--font-main); }
.ms-compare thead th:first-child { background: #2a0f3d; }
.ms-compare td:first-child { font-weight: 700; color: var(--azul); font-family: var(--font-main); }
.ms-compare tbody tr:hover { background: var(--gris-claro); }

/* --------------------------------------------------------------------------
   19. Timeline (Grupo de Iniciación)
   -------------------------------------------------------------------------- */
.ms-timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 46px; }
.ms-timeline::before { content: ""; position: absolute; left: 16px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(180deg, var(--verde), var(--turquesa), var(--morado)); border-radius: 3px; }
.ms-timeline__item { position: relative; margin-bottom: 28px; }
.ms-timeline__item:last-child { margin-bottom: 0; }
.ms-timeline__marker { position: absolute; left: -46px; top: 6px; width: 36px; height: 36px; background: var(--morado); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-main); font-weight: 800; font-size: 0.52rem; text-align: center; line-height: 1.05; box-shadow: 0 0 0 4px rgba(70, 30, 89, 0.15); padding: 2px; }
.ms-timeline__item--highlight .ms-timeline__marker { background: var(--rojo); box-shadow: 0 0 0 5px rgba(255, 57, 92, 0.2); }
.ms-timeline__content { background: #fff; border-radius: var(--radius-sm); padding: 22px 26px; border-left: 4px solid var(--verde); box-shadow: var(--shadow-sm); }
.ms-timeline__item--highlight .ms-timeline__content { border-left-color: var(--rojo); background: linear-gradient(135deg, #fff5f5, #fff0f8); }
.ms-timeline__phase { font-family: var(--font-main); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--turquesa); }
.ms-timeline__item--highlight .ms-timeline__phase { color: var(--rojo); }
.ms-timeline__content h3 { font-size: 1.2rem; margin: 0.3rem 0 0.5rem; }
.ms-timeline__content p { color: var(--gris-suave); margin: 0; }

/* --------------------------------------------------------------------------
   20. Prosa / contenido editable (Gutenberg)
   -------------------------------------------------------------------------- */
.ms-content, .ms-prose { max-width: var(--container-narrow); margin: 0 auto; }
.ms-prose--wide { max-width: var(--container); }
.ms-prose > * { margin-bottom: 1.3rem; }
.ms-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2rem; }
.ms-prose h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-top: 1.6rem; }
.ms-prose img, .ms-prose .wp-block-image { border-radius: var(--radius-sm); }
.ms-prose blockquote, .ms-prose .wp-block-quote { border-left: 4px solid var(--verde); padding-left: 1.5rem; margin-left: 0; font-style: italic; color: var(--morado); }
.ms-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ms-prose .wp-block-button__link { background: var(--grad-cta); color: #fff; border-radius: var(--radius-pill); padding: 14px 30px; text-decoration: none; font-family: var(--font-main); font-weight: 700; }
.ms-prose figure { margin: 0; }
.ms-prose table { width: 100%; border-collapse: collapse; }
.ms-prose th, .ms-prose td { padding: 12px 16px; border: 1px solid var(--borde); }
.ms-page__thumb { padding-top: 2.5rem; }
.ms-page__thumb-img { border-radius: var(--radius); width: 100%; }

/* Alineaciones de bloque */
.alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   21. Blog
   -------------------------------------------------------------------------- */
.ms-cat-filters { background: var(--blanco); border-bottom: 1px solid var(--borde); }
.ms-cat-filters .ms-container { padding-top: 20px; padding-bottom: 20px; }
.ms-cat-filters__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; justify-content: center; }

.ms-posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.ms-post-card { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); display: flex; flex-direction: column; }
.ms-post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ms-post-card__link { position: absolute; inset: 0; z-index: 3; }
.ms-post-card__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gris-claro); }
.ms-post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.ms-post-card:hover .ms-post-card__img { transform: scale(1.05); }
.ms-post-card__cat { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(70, 30, 89, 0.92); color: #fff; font-family: var(--font-main); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); }
.ms-post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ms-post-card__title { font-size: 1.25rem; margin-bottom: 0.6rem; line-height: 1.3; }
.ms-post-card__excerpt { color: var(--gris-suave); font-size: 0.95rem; margin-bottom: 1.2rem; }
.ms-post-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 0.85rem; color: var(--gris-suave); }
.ms-post-card__more { display: inline-flex; align-items: center; gap: 4px; color: var(--turquesa); font-family: var(--font-main); font-weight: 700; position: relative; z-index: 4; }

/* Single */
.ms-single { max-width: var(--container-narrow); margin: 0 auto; padding-top: clamp(2rem, 4vw, 3rem); }
.ms-single__header { text-align: center; margin-bottom: 2rem; }
.ms-single__title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0.8rem 0; }
.ms-single__meta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--gris-suave); font-size: 0.9rem; }
.ms-single__reading { display: inline-flex; align-items: center; gap: 6px; }
.ms-single__thumb { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; }
.ms-single__thumb img { width: 100%; }
.ms-single__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--borde); }
.ms-post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ms-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.ms-tags a { background: var(--gris-claro); color: var(--morado); padding: 5px 14px; border-radius: var(--radius-pill); font-size: 0.85rem; }

.ms-post-nav { max-width: var(--container-narrow); margin: 2.5rem auto 0; display: flex; justify-content: space-between; gap: 20px; }
.ms-post-nav a { background: var(--gris-claro); border-radius: var(--radius-sm); padding: 16px 22px; flex: 1; }
.ms-postnav__label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--turquesa); font-weight: 700; }
.ms-postnav__title { color: var(--morado); font-family: var(--font-main); font-weight: 700; }

/* Sidebar / widgets */
.ms-sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--gris-claro); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--gris-claro); }

/* Paginación */
.ms-pagination { margin-top: 3rem; }
.ms-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ms-pagination .page-numbers { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 14px; justify-content: center; border-radius: var(--radius-pill); background: var(--gris-claro); color: var(--morado); font-family: var(--font-main); font-weight: 700; }
.ms-pagination .page-numbers.current { background: var(--morado); color: #fff; }
.ms-pagination a.page-numbers:hover { background: var(--turquesa); color: #fff; }

/* Búsqueda */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; padding: 13px 18px; border-radius: var(--radius-pill); border: 2px solid var(--borde); font-family: var(--font-body); }
.search-form .search-submit { background: var(--morado); color: #fff; border: none; border-radius: var(--radius-pill); padding: 0 22px; font-family: var(--font-main); font-weight: 700; cursor: pointer; }

/* No results / 404 */
.ms-no-results { text-align: center; max-width: 540px; margin: 4rem auto; }
.ms-no-results__icon, .ms-404 .ms-404__icon { color: var(--turquesa); }
.ms-no-results__icon .ms-icon { font-size: 3rem; }
.ms-no-results__search { margin-top: 1.5rem; }
.ms-404 { min-height: 60vh; display: flex; align-items: center; }
.ms-404__inner { text-align: center; max-width: 620px; margin: 0 auto; position: relative; z-index: 2; }
.ms-404__code { display: block; font-family: var(--font-main); font-weight: 900; font-size: clamp(5rem, 18vw, 10rem); color: var(--verde); line-height: 1; }
.ms-404__title { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.ms-404__text { color: rgba(255, 255, 255, 0.75); }
.ms-404__search { max-width: 460px; margin: 1.6rem auto; }
.ms-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   22. Legal
   -------------------------------------------------------------------------- */
.ms-legal__header { text-align: center; margin-bottom: 3rem; }
.ms-legal__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ms-legal__updated { color: var(--gris-suave); font-size: 0.9rem; }
.ms-legal__grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.ms-legal__toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--gris-claro); border-radius: var(--radius); padding: 24px; }
.ms-legal__toc-title { font-family: var(--font-main); font-weight: 800; color: var(--morado); margin: 0 0 0.8rem; }
.ms-legal__toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ms-legal__toc a { font-size: 0.92rem; color: var(--gris-suave); }
.ms-legal__toc a.is-active, .ms-legal__toc a:hover { color: var(--turquesa); font-weight: 600; }
.ms-legal__content { max-width: none; }
.ms-legal__content h2 { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Comentarios */
.ms-comments-wrap, .ms-comments { max-width: var(--container-narrow); margin: 0 auto; padding: 2.5rem 0; }
.ms-comments__title { font-size: 1.4rem; margin-bottom: 1.5rem; }
.ms-comment-list { list-style: none; padding: 0; }
.ms-comment-list .comment-body { background: var(--gris-claro); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--borde); border-radius: var(--radius-sm); font-family: var(--font-body); margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.ms-footer { background: var(--negro); color: rgba(255, 255, 255, 0.7); padding-top: clamp(3rem, 6vw, 4.5rem); position: relative; }
.ms-footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; padding-bottom: 2.5rem; }
.ms-footer__brand img, .ms-footer__brand .custom-logo { height: 46px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.ms-footer__tagline { color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; max-width: 360px; margin-bottom: 1.4rem; }
.ms-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ms-footer__title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.ms-footer__menu, .ms-footer__legal-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ms-footer__menu a, .ms-footer__col--cta p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }
.ms-footer__menu a:hover { color: var(--verde); }
.ms-footer__col--cta .ms-btn { margin-top: 12px; width: 100%; }
.ms-footer__widgets { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 2rem 0; }
.ms-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ms-footer__copy { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; margin: 0; }
.ms-footer__legal-menu { flex-direction: row; flex-wrap: wrap; gap: 18px; }
.ms-footer__legal-menu a { color: rgba(255, 255, 255, 0.5); font-size: 0.84rem; }
.ms-footer__legal-menu a:hover { color: var(--verde); }

.ms-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--grad-cta); color: #fff; cursor: pointer; box-shadow: var(--shadow-cta); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; }
.ms-to-top.is-visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   24. Animaciones (reveal / stagger)
   -------------------------------------------------------------------------- */
[data-animate], .reveal, .reveal-up { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-animate].is-visible, .reveal.is-visible, .reveal-up.is-visible, .reveal-scale.is-visible { opacity: 1; transform: none; }

.stagger-item { opacity: 0; transform: translateY(24px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.stagger-item.is-visible { opacity: 1; transform: none; }

/* Entrada del hero (sin depender de JS) */
.ms-hero__inner .stagger-item { animation: ms-fade-up 0.7s var(--ease) forwards; opacity: 0; }
.ms-hero__inner .stagger-item:nth-child(1) { animation-delay: 0.05s; }
.ms-hero__inner .stagger-item:nth-child(2) { animation-delay: 0.18s; }
.ms-hero__inner .stagger-item:nth-child(3) { animation-delay: 0.31s; }
.ms-hero__inner .stagger-item:nth-child(4) { animation-delay: 0.44s; }
.ms-hero__inner .stagger-item:nth-child(5) { animation-delay: 0.57s; }
@keyframes ms-fade-up { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ms-layout--with-sidebar, .ms-layout--with-aside { grid-template-columns: 1fr; }
	.ms-event-aside__card { position: static; }
	.ms-legal__grid { grid-template-columns: 1fr; }
	.ms-legal__toc { position: static; }
	.ms-bio__grid { grid-template-columns: 280px 1fr; gap: 36px; }
}

@media (max-width: 900px) {
	.ms-grid--3, .ms-agenda__grid { grid-template-columns: repeat(2, 1fr); }

	/* Amaga topbar en mòbil */
	.ms-topbar { display: none; }

	/* Menú mòbil */
	.ms-nav-toggle { display: block; }
	.ms-primary-nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); z-index: 195;
		background: var(--morado); flex-direction: column; align-items: stretch; gap: 0;
		padding: calc(var(--header-h) + 20px) 28px 32px; overflow-y: auto;
		transform: translateX(100%); transition: transform 0.35s var(--ease);
		box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
	}
	.ms-primary-nav.is-open { transform: translateX(0); }
	.ms-menu { flex-direction: column; align-items: stretch; gap: 4px; }
	.ms-menu a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: normal; }
	.ms-menu a::after { display: none; }
	.ms-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.05); padding: 4px 0 4px 16px; }
	.ms-menu .sub-menu a { color: rgba(255, 255, 255, 0.8); white-space: normal; }
	.ms-menu .sub-menu a:hover { background: transparent; color: var(--verde); }
	.ms-header__actions--desktop { display: none; }
	.ms-header__actions--mobile { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; }
	.ms-header__actions--mobile .ms-btn { width: 100%; }
	.ms-header__actions--mobile .ms-social { justify-content: center; margin-top: 8px; }
	body.ms-nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
	.ms-grid--2, .ms-grid--3, .ms-agenda__grid, .ms-posts-grid { grid-template-columns: 1fr; }
	.ms-bio__grid { grid-template-columns: 1fr; text-align: center; }
	.ms-bio__media { max-width: 280px; margin: 0 auto; }
	.ms-bio__content .ms-btn, .ms-info-block { text-align: left; }
	.ms-footer__top { grid-template-columns: 1fr; gap: 32px; }
	.ms-footer__cols { grid-template-columns: 1fr 1fr; }
	.ms-newsletter__form { flex-direction: column; }
	.ms-newsletter__form input { width: 100%; }
	.ms-hero__ctas, .ms-cta-final__btns { flex-direction: column; align-items: stretch; }
	.ms-hero__ctas .ms-btn, .ms-cta-final__btns .ms-btn { width: 100%; }
	.ms-post-nav { flex-direction: column; }
}

@media (max-width: 440px) {
	.ms-container { padding: 0 18px; }
	.ms-footer__cols { grid-template-columns: 1fr; }
	.ms-section-heading { margin-bottom: 2rem; }
}

/* --------------------------------------------------------------------------
   26. Convocatoria, programa, logo y mapa
   -------------------------------------------------------------------------- */
.ms-logo { display: inline-flex; align-items: center; line-height: 0; }
.ms-logo__img { height: 46px; width: auto; }
.ms-header .ms-logo__img,
.ms-footer .ms-logo__img { filter: brightness(0) invert(1); }
.ms-icon--x { display: block; }

.ms-event-banner { background: linear-gradient(90deg, var(--rojo), var(--salmon)); }
.ms-event-banner__link {
	display: flex; align-items: center; justify-content: center; gap: 16px;
	max-width: 1140px; margin: 0 auto; padding: 12px 22px;
	color: #fff; text-decoration: none;
}
.ms-event-banner__link:hover { color: #fff; }
.ms-event-banner__poster {
	width: 64px; height: auto; max-height: 88px; object-fit: contain; flex-shrink: 0; background: transparent;
}
.ms-event-banner__text { font-family: var(--font-main); font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.ms-event-banner__text strong { display: block; font-weight: 800; }
.ms-event-banner__cta {
	font-family: var(--font-main); font-weight: 800; font-size: 0.85rem;
	background: #fff; color: var(--morado); border-radius: 50px;
	padding: 10px 16px; white-space: nowrap; min-height: 44px;
	display: inline-flex; align-items: center;
}

.ms-program { display: grid; gap: 36px; align-items: start; }
.ms-program:has(.ms-program__figure) { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
.ms-program__figure { margin: 0; }
.ms-program__figure img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-md); }

.ms-sitemap { list-style: none; margin: 0; padding: 0; }
.ms-sitemap li { padding: 0.7rem 0; border-bottom: 1px solid var(--borde); }
.ms-sitemap .is-child { padding-left: 1.25rem; }
.ms-sitemap a { font-family: var(--font-main); font-weight: 700; color: var(--morado); }
.ms-sitemap a:hover { color: var(--turquesa); }

@media (max-width: 720px) {
	.ms-event-banner__link { flex-wrap: wrap; text-align: left; }
	.ms-event-banner__cta { margin-left: 70px; }
	.ms-program:has(.ms-program__figure) { grid-template-columns: 1fr; }
	.ms-program__figure { max-width: 280px; }
}

/* --------------------------------------------------------------------------
   27. Formularios
   -------------------------------------------------------------------------- */
.ms-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.ms-form__row { display: flex; flex-direction: column; gap: 6px; }
.ms-form label { font-family: var(--font-main); font-weight: 700; color: var(--morado); font-size: 0.92rem; }
.ms-form input[type="text"],
.ms-form input[type="email"],
.ms-form select,
.ms-form textarea {
	width: 100%; padding: 14px 16px; border: 1.5px solid var(--borde); border-radius: 14px;
	font-family: var(--font-body); font-size: 1rem; color: var(--gris-texto); background: #fff;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ms-form textarea { resize: vertical; min-height: 140px; }
.ms-form input:focus, .ms-form select:focus, .ms-form textarea:focus {
	outline: none; border-color: var(--turquesa); box-shadow: 0 0 0 3px rgba(0, 179, 191, 0.2);
}
.ms-form__check { display: flex; align-items: flex-start; gap: 10px; }
.ms-form__check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--morado); }
.ms-form__check label { font-family: var(--font-body); font-weight: 400; color: var(--gris-texto); line-height: 1.5; }
.ms-form__note { margin: 0; color: var(--gris-suave); font-size: 0.9rem; }
.ms-form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ms-form-alert { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; font-size: 0.95rem; }
.ms-form-alert--ok { background: rgba(84, 214, 167, 0.18); color: var(--azul); }
.ms-form-alert--err { background: rgba(255, 57, 92, 0.1); color: #8d1230; }
.ms-newsletter__legal label { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.ms-newsletter__legal input { margin-top: 0.2rem; accent-color: var(--verde); }
.ms-newsletter .ms-form-alert--ok { background: rgba(255,255,255,0.14); color: #fff; }
.ms-newsletter .ms-form-alert--err { background: #fff; color: #8d1230; }

/* --------------------------------------------------------------------------
   28. prefers-reduced-motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	[data-animate], .reveal, .reveal-up, .reveal-scale, .stagger-item { opacity: 1 !important; transform: none !important; }
	.ms-hero__inner .stagger-item { opacity: 1 !important; animation: none !important; }
	.ms-post-card:hover .ms-post-card__img { transform: none; }
}
