/* ==========================================================================
   Magnasegur — estilos del theme
   1. Variables   2. Base   3. Botones y formularios   4. Cabecera
   5. Contenido   6. Blog   7. Pie   8. Ajustes para Elementor   9. Utilidades
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
	--ms-blue: #00477e;        /* azul del logo */
	--ms-blue-dark: #00365f;   /* hover de botones */
	--ms-navy: #002b4d;        /* franja de avisos y pie */
	--ms-ink: #181818;         /* negro del logo: títulos */
	--ms-text: #56626e;        /* texto de párrafo */
	--ms-mist: #eef4f9;        /* fondo suave */
	--ms-sky: #dceaf5;         /* fondo de iconos */
	--ms-line: #d9e3ec;        /* bordes */
	--ms-white: #fff;

	--ms-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ms-radius: 8px;
	--ms-radius-lg: 16px;
	--ms-wrap: 1200px;
	--ms-narrow: 760px;
	--ms-gutter: 24px;
	--ms-header-h: 88px;
	--ms-shadow-btn: 0 10px 22px -10px rgba(0, 71, 126, 0.6);

	/* Escudo del logo, usado como máscara para los iconos */
	--ms-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 91 16c2 .6 3 2 3 4v30c0 24-18 39-44 47C24 89 6 74 6 50V20c0-2 1-3.4 3-4z'/%3E%3C/svg%3E");
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ms-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--ms-white);
	color: var(--ms-text);
	font-family: var(--ms-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--ms-ink);
	font-family: var(--ms-font);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--ms-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--ms-blue-dark);
}

:focus-visible {
	outline: 3px solid #5aa5e0;
	outline-offset: 3px;
	border-radius: 4px;
}

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

img {
	vertical-align: middle;
}

hr {
	height: 0;
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--ms-line);
}

strong,
b {
	font-weight: 600;
	color: var(--ms-ink);
}

blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--ms-blue);
	color: var(--ms-ink);
	font-size: 1.15em;
	font-weight: 500;
}

table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 0.95em;
}

th,
td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--ms-line);
	text-align: left;
}

th {
	color: var(--ms-ink);
	font-weight: 600;
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	padding: 20px;
	overflow-x: auto;
	border-radius: var(--ms-radius);
	background: var(--ms-mist);
}

::selection {
	background: var(--ms-blue);
	color: #fff;
}

/* 3. Botones y formularios ------------------------------------------------ */
.ms-btn,
input[type="submit"],
button[type="submit"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border: 2px solid var(--ms-blue);
	border-radius: var(--ms-radius);
	background: var(--ms-blue);
	box-shadow: var(--ms-shadow-btn);
	color: #fff;
	font-family: var(--ms-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ms-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	border-color: var(--ms-blue-dark);
	background: var(--ms-blue-dark);
	color: #fff;
	transform: translateY(-1px);
}

.ms-btn--lg {
	padding: 20px 46px;
	font-size: 18px;
}

.ms-btn--ghost {
	background: transparent;
	box-shadow: none;
	color: var(--ms-blue);
}

.ms-btn--ghost:hover {
	background: var(--ms-blue);
	border-color: var(--ms-blue);
	color: #fff;
}

.ms-btn--light {
	border-color: #fff;
	background: #fff;
	box-shadow: none;
	color: var(--ms-blue);
}

.ms-btn--light:hover {
	border-color: var(--ms-mist);
	background: var(--ms-mist);
	color: var(--ms-blue-dark);
}

label {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--ms-ink);
	font-size: 0.92em;
	font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
	background: #fff;
	color: var(--ms-ink);
	font-family: var(--ms-font);
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--ms-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 71, 126, 0.18);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

::placeholder {
	color: #8b97a3;
	opacity: 1;
}

/* 4. Cabecera ------------------------------------------------------------- */
.ms-wrap {
	width: 100%;
	max-width: calc(var(--ms-wrap) + var(--ms-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ms-gutter);
}

.ms-wrap--narrow {
	max-width: calc(var(--ms-narrow) + var(--ms-gutter) * 2);
}

.ms-skip {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--ms-radius);
	background: var(--ms-ink);
	color: #fff;
	text-decoration: none;
}

.ms-skip:focus {
	top: 16px;
	color: #fff;
}

.ms-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.admin-bar .ms-header {
	top: 32px;
}

.ms-header.is-scrolled {
	box-shadow: 0 1px 0 var(--ms-line), 0 12px 24px -18px rgba(0, 43, 77, 0.35);
}

.ms-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: calc(1400px + var(--ms-gutter) * 2);
	min-height: var(--ms-header-h);
}

.ms-brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.ms-brand a {
	display: block;
	line-height: 0;
}

.ms-brand img {
	width: auto;
	height: 56px;
	max-width: 240px;
	object-fit: contain;
}

.ms-nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-width: 0;
}

.ms-nav__list,
.ms-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-inline: auto;
}

.ms-nav__list li {
	position: relative;
}

.ms-nav__list a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--ms-radius);
	color: var(--ms-ink);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.ms-nav__list a:hover,
.ms-nav__list .current-menu-item > a,
.ms-nav__list .current_page_item > a,
.ms-nav__list .current-menu-ancestor > a {
	color: var(--ms-blue);
}

.ms-nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.ms-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 240px;
	padding: 10px;
	border: 1px solid var(--ms-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 40px -24px rgba(0, 43, 77, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.ms-nav__list li:hover > .sub-menu,
.ms-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ms-nav__list .sub-menu a {
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 400;
}

.ms-nav__list .sub-menu a:hover {
	background: var(--ms-mist);
}

.ms-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 22px;
}

.ms-link-clientes {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ms-blue);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.ms-link-clientes:hover {
	text-decoration: underline;
}

.ms-link-clientes svg {
	flex: 0 0 auto;
}

/* En escritorio el enlace al área de clientes vive en la franja azul;
   en móvil, dentro del menú desplegable. */
.ms-link-clientes--nav {
	display: none;
}

.ms-sub-toggle {
	display: none;
}

.ms-header .ms-btn {
	padding: 13px 24px;
	white-space: nowrap;
}

.ms-burger {
	display: none;
	width: 48px;
	height: 48px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: var(--ms-radius);
	background: var(--ms-mist);
	color: var(--ms-ink);
	cursor: pointer;
}

.ms-burger__bars,
.ms-burger__bars::before,
.ms-burger__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	margin-inline: auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.ms-burger__bars {
	position: relative;
}

.ms-burger__bars::before,
.ms-burger__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.ms-burger__bars::before { top: -7px; }
.ms-burger__bars::after { top: 7px; }

.ms-burger[aria-expanded="true"] .ms-burger__bars { background: transparent; }
.ms-burger[aria-expanded="true"] .ms-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.ms-burger[aria-expanded="true"] .ms-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Franja de avisos bajo la cabecera */
.ms-announce {
	background: var(--ms-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.ms-announce__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 6px 24px;
	max-width: calc(1400px + var(--ms-gutter) * 2);
	padding-block: 12px;
}

.ms-announce__text {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 18px;
}

.ms-announce .ms-link-clientes--bar {
	grid-column: 3;
	justify-self: end;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.ms-announce .ms-link-clientes--bar:hover {
	text-decoration: underline;
}

.ms-announce a {
	color: #fff;
	font-weight: 600;
	text-underline-offset: 0.22em;
}

.ms-announce a:hover {
	color: #cfe4f6;
}

#contenido:focus {
	outline: none;
}

/* Escritorio estrecho (portátiles): todo un poco más compacto para que quepa el menú. */
@media (max-width: 1480px) {
	.ms-header__inner {
		gap: 16px;
	}

	.ms-brand img {
		height: 46px;
	}

	.ms-nav {
		gap: 12px;
	}

	.ms-nav__list {
		gap: 0;
	}

	.ms-nav__list a {
		padding: 10px 9px;
		font-size: 14.5px;
	}

	.ms-nav__list .menu-item-has-children > a::after {
		margin-left: 6px;
	}

	.ms-header .ms-btn {
		padding: 12px 16px;
		font-size: 13.5px;
	}
}

/* Tableta y móvil: menú desplegable. */
@media (max-width: 1240px) {
	:root {
		--ms-header-h: 72px;
	}

	.ms-burger {
		display: block;
	}

	.ms-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		max-height: calc(100vh - var(--ms-header-h));
		padding: 12px var(--ms-gutter) 24px;
		overflow-y: auto;
		border-top: 1px solid var(--ms-line);
		background: #fff;
		box-shadow: 0 24px 32px -24px rgba(0, 43, 77, 0.45);
	}

	.ms-nav.is-open {
		display: flex;
	}

	.ms-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
	}

	.ms-nav__list > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--ms-line);
	}

	.ms-nav__list a {
		flex: 1 1 0;
		padding: 14px 4px;
		border-radius: 0;
		font-size: 17px;
		white-space: normal;
	}

	.ms-nav__list .menu-item-has-children > a::after {
		display: none;
	}

	/* Botón que abre y cierra cada submenú */
	.ms-sub-toggle {
		flex: 0 0 48px;
		display: block;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 0;
		border-radius: var(--ms-radius);
		background: transparent;
		color: var(--ms-blue);
		cursor: pointer;
	}

	.ms-sub-toggle::before {
		content: "";
		display: block;
		width: 9px;
		height: 9px;
		margin: -4px auto 0;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.ms-sub-toggle[aria-expanded="true"]::before {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	.ms-nav__list .sub-menu {
		position: static;
		display: none;
		flex: 0 0 100%;
		min-width: 0;
		padding: 0 0 12px 14px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.ms-nav__list li.is-open > .sub-menu {
		display: block;
	}

	/* Sin JavaScript no hay botón: los submenús se muestran abiertos. */
	.ms-nav__list:not(.has-toggles) .sub-menu {
		display: block;
	}

	.ms-nav__list .sub-menu a {
		padding: 10px 4px;
		font-size: 16px;
	}

	.ms-header__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.ms-header .ms-btn {
		padding: 15px 24px;
		font-size: 15px;
	}

	.ms-link-clientes--nav {
		display: inline-flex;
		justify-content: center;
		padding: 8px;
	}

	.ms-announce {
		font-size: 14px;
	}

	.ms-announce__inner {
		grid-template-columns: 1fr;
	}

	.ms-announce__text {
		grid-column: 1;
	}

	.ms-announce .ms-link-clientes--bar {
		display: none;
	}

	.ms-announce--solo-enlace {
		display: none;
	}
}

@media (max-width: 782px) {
	.admin-bar .ms-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .ms-header {
		top: 0;
	}
}

/* 5. Contenido ------------------------------------------------------------ */
.ms-main {
	display: block;
	min-height: 40vh;
}

.ms-page-head {
	padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
	background: var(--ms-mist);
	text-align: center;
}

.ms-page-head h1 {
	margin: 0;
}

.ms-page-head__meta {
	margin: 14px 0 0;
	font-size: 0.95em;
}

.ms-page-body {
	padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
}

.ms-prose > *:last-child {
	margin-bottom: 0;
}

.ms-prose h2,
.ms-prose h3,
.ms-prose h4 {
	margin-top: 1.8em;
}

.ms-prose ul,
.ms-prose ol {
	margin: 0 0 1.4em;
	padding-left: 1.3em;
}

.ms-prose li {
	margin-bottom: 0.45em;
}

.ms-prose li::marker {
	color: var(--ms-blue);
	font-weight: 600;
}

.ms-prose img,
.ms-thumb img {
	border-radius: var(--ms-radius-lg);
}

.ms-thumb {
	margin: 0 0 40px;
}

.ms-thumb img {
	width: 100%;
}

.ms-pages {
	margin-top: 32px;
	font-weight: 500;
}

/* Alineaciones y bloques de WordPress */
.alignleft { float: left; margin: 6px 28px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 28px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(1100px, 100vw - 48px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-element-caption,
figcaption { margin-top: 10px; font-size: 0.88em; text-align: center; }
.gallery-caption,
.bypostauthor,
.sticky { display: block; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

/* 6. Blog ----------------------------------------------------------------- */
.ms-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-post {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 32px;
	align-items: start;
	padding: 36px 0;
	border-bottom: 1px solid var(--ms-line);
}

.ms-post:first-child {
	padding-top: 0;
}

.ms-post--no-thumb {
	grid-template-columns: 1fr;
}

.ms-post__thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.ms-post__date {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9em;
}

.ms-post__title {
	margin: 0 0 10px;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.ms-post__title a {
	color: var(--ms-ink);
	text-decoration: none;
}

.ms-post__title a:hover {
	color: var(--ms-blue);
}

.ms-post__excerpt p {
	margin-bottom: 12px;
}

.ms-post__more {
	font-weight: 600;
}

.ms-pagination {
	margin-top: 48px;
}

.ms-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ms-pagination .page-numbers {
	min-width: 44px;
	padding: 9px 14px;
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
	color: var(--ms-ink);
	font-weight: 500;
	text-align: center;
	text-decoration: none;
}

.ms-pagination .page-numbers.current,
.ms-pagination a.page-numbers:hover {
	border-color: var(--ms-blue);
	background: var(--ms-blue);
	color: #fff;
}

.ms-empty {
	text-align: center;
}

.ms-empty .search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 28px auto 0;
}

.ms-empty .search-form label {
	flex: 1;
	margin: 0;
}

.ms-404__code {
	display: block;
	margin-bottom: 8px;
	color: var(--ms-blue);
	font-size: clamp(4rem, 3rem + 8vw, 8rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

/* Comentarios */
.ms-comments {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--ms-line);
}

.ms-comments ol {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.ms-comments ol ol {
	margin: 0;
	padding-left: 28px;
}

.ms-comments .comment-body {
	padding: 22px 0;
	border-bottom: 1px solid var(--ms-line);
}

.ms-comments .comment-author img {
	margin-right: 10px;
	border-radius: 50%;
}

.ms-comments .comment-metadata {
	margin: 4px 0 10px;
	font-size: 0.85em;
}

.ms-comments .comment-form p {
	margin-bottom: 18px;
}

@media (max-width: 640px) {
	.ms-post {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* 7. Pie ------------------------------------------------------------------ */
.ms-footer {
	background: var(--ms-navy);
	color: rgba(255, 255, 255, 0.78);
	font-size: 15.5px;
}

.ms-footer a {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.ms-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.ms-footer__main {
	display: grid;
	grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 48px;
	padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
}

.ms-footer__brand img {
	width: auto;
	height: 58px;
	margin-bottom: 22px;
}

.ms-footer__brand p {
	max-width: 34ch;
	margin: 0;
}

.ms-footer .ms-footer__title {
	margin: 6px 0 18px;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

/* Sin título, la lista de contacto arranca a la altura del logo. */
.ms-footer__contact > ul:first-child {
	margin-top: 8px;
}

.ms-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-footer__col li {
	margin-bottom: 10px;
}

.ms-footer__contact li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	line-height: 1.5;
}

.ms-footer__contact svg {
	flex: 0 0 18px;
	margin-top: 3px;
	color: #7ebaec;
}

.ms-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 13.5px;
	line-height: 1.6;
}

.ms-footer__legal-inner {
	padding-block: 26px 30px;
}

.ms-footer__legal p {
	max-width: 110ch;
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.62);
}

.ms-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 32px;
}

.ms-footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
}

/* Botón flotante de WhatsApp */
.ms-wa {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px 13px 16px;
	border-radius: 999px;
	background: #128c4b;
	box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.ms-wa:hover {
	background: #0e7a41;
	color: #fff;
}

@media (max-width: 960px) {
	.ms-footer__main {
		grid-template-columns: 1fr 1fr;
		gap: 40px 32px;
	}

	.ms-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.ms-footer__main {
		grid-template-columns: 1fr;
	}

	.ms-wa span {
		display: none;
	}

	.ms-wa {
		padding: 15px;
	}
}

/* 8. Ajustes para Elementor ---------------------------------------------- */

/* Elementor pone line-height:1 a los títulos; lo dejamos legible por defecto.
   Cualquier valor que pongas en el widget tiene prioridad sobre esto. */
.elementor-widget-heading .elementor-heading-title {
	line-height: 1.2;
}

.elementor-widget-heading h1.elementor-heading-title {
	line-height: 1.12;
}

.elementor-widget-text-editor p:last-child,
.elementor-icon-box-description:last-child {
	margin-bottom: 0;
}

/* Botones de Elementor con el estilo de la casa (se puede cambiar en
   Ajustes del sitio > Botones o en cada widget). */
.elementor-widget-button .elementor-button,
.elementor-widget-form .elementor-button {
	border-radius: var(--ms-radius);
	background-color: var(--ms-blue);
	box-shadow: var(--ms-shadow-btn);
	font-family: var(--ms-font);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.elementor-widget-button .elementor-button:hover,
.elementor-widget-form .elementor-button:hover {
	background-color: var(--ms-blue-dark);
}

/* Clase «ms-escudo»: convierte el fondo del icono en el escudo del logo.
   Úsala en un widget Icono o Caja de icono (Avanzado > Clases CSS). */
.elementor-widget.ms-escudo .elementor-icon {
	border-radius: 0;
	-webkit-mask: var(--ms-shield) center / 100% 100% no-repeat;
	mask: var(--ms-shield) center / 100% 100% no-repeat;
}

/* Clase «ms-portada»: el escudo del logo, muy suave, al fondo de la sección. */
.ms-portada {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23f2f7fb' d='M50 3 91 16c2 .6 3 2 3 4v30c0 24-18 39-44 47C24 89 6 74 6 50V20c0-2 1-3.4 3-4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 90%;
}

/* Clase «ms-tarjeta» para columnas o contenedores: borde fino y esquinas suaves. */
.ms-tarjeta > .elementor-element-populated,
.e-con.ms-tarjeta {
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius-lg);
	background-color: #fff;
}

/* La plantilla de inicio de la versión 1.0.0 guardaba las columnas con un ancho
   (33.333) que Elementor no reconoce, y cada caja tomaba el ancho de su texto.
   Esta regla les da el tercio exacto sin tener que rehacer la página. Si fijas un
   ancho a mano en la columna (Diseño > Ancho), el tuyo tiene prioridad. */
@media (min-width: 768px) {
	.elementor-column[class*="elementor-col-33.333"] {
		width: 33.333%;
	}
}

/* Acordeón (preguntas frecuentes) */
.elementor-accordion .elementor-accordion-item {
	border-color: var(--ms-line);
}

.elementor-accordion .elementor-tab-title {
	color: var(--ms-ink);
	font-weight: 600;
}

/* Elementor puede fijar un color de enlace global (.elementor-kit-N a) que se
   aplica a todos los enlaces de la página. Estas reglas evitan que ese color
   pise los botones del theme y los enlaces de la cabecera y del pie. */
body a.ms-btn,
body a.ms-btn:hover,
body a.ms-btn:focus {
	color: #fff;
}

body a.ms-btn--ghost,
body a.ms-btn--light {
	color: var(--ms-blue);
}

body a.ms-btn--ghost:hover {
	color: #fff;
}

body a.ms-btn--light:hover {
	color: var(--ms-blue-dark);
}

body .ms-nav__list a {
	color: var(--ms-ink);
}

body .ms-nav__list a:hover,
body .ms-nav__list .current-menu-item > a,
body .ms-nav__list .current_page_item > a,
body .ms-nav__list .current-menu-ancestor > a,
body a.ms-link-clientes,
body a.ms-link-clientes:hover {
	color: var(--ms-blue);
}

body .ms-announce a.ms-link-clientes,
body .ms-announce a.ms-link-clientes:hover {
	color: #fff;
}

body .ms-announce a {
	color: #fff;
}

body .ms-announce a:hover {
	color: #cfe4f6;
}

body .ms-footer a {
	color: rgba(255, 255, 255, 0.86);
}

body .ms-footer a:hover,
body a.ms-wa,
body a.ms-wa:hover,
body a.ms-skip,
body a.ms-skip:focus {
	color: #fff;
}

body .ms-post__title a,
body .ms-pagination a.page-numbers {
	color: var(--ms-ink);
}

body .ms-post__title a:hover {
	color: var(--ms-blue);
}

body .ms-pagination a.page-numbers:hover {
	color: #fff;
}

/* 9. Utilidades ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.ms-header,
	.ms-announce,
	.ms-footer,
	.ms-wa {
		display: none;
	}
}
