/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Hello Elementor Child Theme for MiRed
Author: MiRed
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/**
 * SISTEMA DE DISEÑO MIRED — VARIABLES Y ESTILOS
 */
:root {
	--mired-red: #E00034;
	--mired-orange: #F09420;
	--mired-blue: #00AEF0;
	--mired-dark: #161616;
	--mired-light-bg: #f4f4f4;
	--mired-newsletter-bg: #F0F9FF;
	--mired-newsletter-border: #E0F2FE;
	--mired-text-muted: #718096;
	--mired-border-radius-large: 24px;
	--mired-border-radius-medium: 16px;
	--mired-border-radius-small: 8px;
}

body {
	font-family: 'Nunito', sans-serif;
	color: var(--mired-dark);
}

.mired-single-post {
	width: 100%;
	padding: 40px 20px 80px 20px;
	box-sizing: border-box;
}

.mired-single-post__container {
	max-width: 1210px;
	margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────────────────
   CABECERA DEL POST (HERO FIEL A FIGMA)
   ────────────────────────────────────────────────────────────────────────── */
.mired-post-hero {
	width: 100%;
	margin-top: 120px; /* Margen superior muy amplio para separarlo de la cabecera */
	margin-bottom: 40px;
}

.mired-post-hero__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 30px;
}

.mired-post-hero__title-col {
	flex: 0 0 45%;
	max-width: 45%;
}

.mired-post-hero__lead-col {
	flex: 0 0 50%;
	max-width: 50%;
	padding-top: 10px; /* Alineación ligera con el título */
}

.mired-post-hero__title,
.mired-single-post__title {
	font-size: 48px;
	line-height: 1.15;
	font-weight: 800;
	color: var(--mired-red); /* Título en rojo MiRed */
	margin: 0;
	letter-spacing: -0.02em;
}

.mired-post-hero__lead,
.mired-single-post__lead {
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
	color: #333333;
}

.mired-post-hero__middle {
	margin-bottom: 35px; /* Más espacio debajo de la línea divisoria */
}

.mired-post-hero__square,
.mired-single-post__square {
	width: 28px;
	height: 28px;
	background-color: var(--mired-red);
	border-radius: 4px; /* Bordes ligeramente redondeados de 4px */
	margin-bottom: 32px; /* Más espacio entre el cuadrado y la línea divisoria */
}

.mired-post-hero__line {
	border: 0;
	border-top: 1px solid #f4f4f4; /* Línea separadora muy sutil de color F4F4F4 */
	margin: 0;
}

.mired-post-hero__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.mired-post-hero__category-pill a,
.mired-single-post__breadcrumb-link {
	display: inline-block;
	padding: 6px 14px;
	background-color: #f4f4f4; /* Fondo gris claro F4F4F4 */
	color: #1a202c; /* Texto oscuro */
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 100px; /* Estilo píldora totalmente redondeado */
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mired-post-hero__category-pill a:hover,
.mired-single-post__breadcrumb-link:hover {
	background-color: var(--mired-red);
	color: #ffffff;
}

.mired-post-hero__date,
.mired-single-post__date {
	font-size: 13px;
	font-weight: 500;
	color: #a0aec0; /* Color gris suave */
	text-transform: capitalize;
}

/* ──────────────────────────────────────────────────────────────────────────
   BANNER (IMAGEN DESTACADA)
   ────────────────────────────────────────────────────────────────────────── */
.mired-single-post__banner {
	width: 100%;
	height: 400px;
	border-radius: 24px !important; /* Bordes redondeados del contenedor exterior */
	overflow: hidden;
	margin-bottom: 60px;
}

.mired-single-post__banner-img,
.mired-single-post__banner img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 24px !important;
}

.mired-single-post__banner-img--placeholder {
	background: linear-gradient(135deg, #e9e9e9 0%, #f4f4f4 100%);
}

/* ──────────────────────────────────────────────────────────────────────────
   CONTENIDO DE LECTURA (Cuerpo del Post - Max 717px)
   ────────────────────────────────────────────────────────────────────────── */
.mired-single-post__content-wrap {
	max-width: 717px;
	margin: 0 auto;
}

.mired-single-post__content {
	font-size: 18px;
	line-height: 1.65;
	color: var(--mired-dark);
}

.mired-single-post__content p {
	margin-top: 0;
	margin-bottom: 24px;
}

.mired-single-post__content h2,
.mired-single-post__content h3,
.mired-single-post__content h4 {
	color: var(--mired-dark);
	font-weight: 800;
	line-height: 1.25;
	margin: 48px 0 20px 0;
}

.mired-single-post__content h2 {
	font-size: 32px;
}

.mired-single-post__content h3 {
	font-size: 26px;
}

.mired-single-post__content blockquote {
	border-left: 4px solid var(--mired-red);
	padding: 8px 0 8px 24px;
	margin: 32px 0;
	font-size: 22px;
	line-height: 1.45;
	font-style: italic;
	color: var(--mired-dark);
	font-weight: 500;
}

.mired-single-post__content blockquote cite {
	display: block;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	color: var(--mired-text-muted);
	margin-top: 10px;
}

.mired-single-post__content ul,
.mired-single-post__content ol {
	margin: 0 0 24px 0;
	padding-left: 24px;
}

.mired-single-post__content li {
	margin-bottom: 8px;
}

.mired-single-post__content a {
	color: var(--mired-blue);
	text-decoration: underline;
	font-weight: 600;
}

.mired-single-post__content a:hover {
	color: var(--mired-red);
}

/* ──────────────────────────────────────────────────────────────────────────
   ETIQUETAS (TAGS)
   ────────────────────────────────────────────────────────────────────────── */
.mired-single-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}

.mired-single-post__tag-pill {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--mired-border-radius-small);
	background-color: var(--mired-light-bg);
	color: var(--mired-dark);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mired-single-post__tag-pill:hover {
	background-color: var(--mired-red);
	color: #ffffff;
}

/* ──────────────────────────────────────────────────────────────────────────
   SEPARADOR
   ────────────────────────────────────────────────────────────────────────── */
.mired-single-post__divider-wrap {
	margin: 60px 0;
}

.mired-single-post__divider {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   ARTÍCULOS RELACIONADOS
   ────────────────────────────────────────────────────────────────────────── */
.mired-single-post__related {
	margin-bottom: 60px;
}

.mired-single-post__related-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 20px;
}

.mired-single-post__related-title {
	font-size: 36px;
	font-weight: 800;
	color: var(--mired-dark);
	margin: 0 0 4px 0;
}

.mired-single-post__related-subtitle {
	font-size: 16px;
	color: var(--mired-text-muted);
	margin: 0;
}

.mired-single-post__back-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--mired-dark);
	font-weight: 700;
	font-size: 14px;
	transition: color 0.2s ease;
}

.mired-single-post__back-link:hover {
	color: var(--mired-blue);
}

.mired-single-post__back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background-color: var(--mired-blue);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.mired-single-post__back-btn svg {
	width: 16px;
	height: 16px;
	display: block;
}

.mired-single-post__back-link:hover .mired-single-post__back-btn {
	transform: translateX(3px);
	background-color: var(--mired-red);
}

/* ──────────────────────────────────────────────────────────────────────────
   NEWSLETTER FORM
   ────────────────────────────────────────────────────────────────────────── */
.mired-single-post__newsletter {
	background-color: var(--mired-newsletter-bg);
	border: 1px solid var(--mired-newsletter-border);
	border-radius: var(--mired-border-radius-large);
	padding: 50px 60px;
	box-sizing: border-box;
}

.mired-single-post__newsletter-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

.mired-single-post__newsletter-content {
	flex: 1 1 400px;
}

.mired-single-post__newsletter-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--mired-dark);
	margin: 0 0 10px 0;
}

.mired-single-post__newsletter-desc {
	font-size: 16px;
	line-height: 1.5;
	color: #4a5568;
	margin: 0;
}

.mired-single-post__newsletter-form {
	flex: 1 1 400px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.mired-single-post__newsletter-fields {
	display: flex;
	gap: 12px;
	width: 100%;
}

.mired-single-post__newsletter-input-group {
	flex: 1;
}

.mired-single-post__newsletter-input {
	width: 100%;
	height: 48px;
	padding: 0 20px;
	border-radius: 12px;
	border: 1px solid #cbd5e0;
	font-family: inherit;
	font-size: 15px;
	background-color: #ffffff;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mired-single-post__newsletter-input:focus {
	outline: none;
	border-color: var(--mired-blue);
	box-shadow: 0 0 0 3px rgba(0, 174, 240, 0.15);
}

.mired-single-post__newsletter-submit-btn {
	height: 48px;
	padding: 0 28px;
	border-radius: 12px;
	border: 0;
	background-color: var(--mired-red);
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
}

.mired-single-post__newsletter-submit-btn:hover {
	background-color: #b30029;
}

.mired-single-post__newsletter-submit-btn:active {
	transform: scale(0.98);
}

.mired-single-post__newsletter-consent {
	display: flex;
	align-items: center;
}

.mired-single-post__newsletter-consent-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.mired-single-post__newsletter-checkbox {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: var(--mired-red);
}

.mired-single-post__newsletter-consent-text {
	font-size: 13px;
	color: #4a5568;
	line-height: 1.4;
	user-select: none;
}

/* ──────────────────────────────────────────────────────────────────────────
   DISEÑO RESPONSIVO (Breakpoints)
   ────────────────────────────────────────────────────────────────────────── */

/* Tablet y pantallas medianas */
@media (max-width: 1024px) {
	.mired-post-hero__title {
		font-size: 38px;
	}

	.mired-single-post__banner {
		height: 320px;
	}
}

/* Móviles */
@media (max-width: 768px) {
	.e-con.e-flex > .e-con-inner {
		padding-top: 132px;
	}

	.mired-single-post {
		padding: 24px 15px 48px 15px;
	}

	.mired-post-hero {
		margin-top: 60px; /* Margen superior adaptado a móviles */
	}

	.mired-post-hero__top {
		flex-direction: column;
		gap: 20px;
		margin-bottom: 20px;
	}

	.mired-post-hero__title-col {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.mired-post-hero__lead-col {
		flex: 0 0 100%;
		max-width: 100%;
		padding-top: 0;
	}

	.mired-post-hero__title,
	.mired-single-post__title {
		font-size: 32px;
	}

	.mired-post-hero__lead {
		font-size: 16px;
	}

	.mired-post-hero__square {
		margin-bottom: 16px;
	}

	.mired-single-post__banner {
		height: 240px !important;
		margin-bottom: 40px !important;
		border-radius: 24px !important;
	}

	.mired-single-post__banner-img,
	.mired-single-post__banner img {
		border-radius: 24px !important;
	}

	.mired-single-post__content {
		font-size: 16px;
	}

	.mired-single-post__content h2 {
		font-size: 26px;
		margin-top: 36px;
	}

	.mired-single-post__content blockquote {
		font-size: 18px;
		padding-left: 16px;
		margin: 24px 0;
	}

	.mired-single-post__related-title {
		font-size: 28px;
	}

	.mired-single-post__newsletter {
		padding: 30px 24px;
	}

	.mired-single-post__newsletter-container {
		gap: 24px;
	}

	.mired-single-post__newsletter-fields {
		flex-direction: column;
		gap: 12px;
	}

	.mired-single-post__newsletter-submit-btn {
		width: 100%;
	}
}

/* ──────────────────────────────────────────────────────────────────────────
   PÁGINA DE RESULTADOS DE BÚSQUEDA (search.php) Y 404 (404.php)
   ────────────────────────────────────────────────────────────────────────── */
.mired-search-page {
	width: 100%;
	padding: 72px 20px 112px;
	box-sizing: border-box;
	font-family: 'Nunito', sans-serif;
	color: var(--mired-dark);
}

.mired-search-page *,
.mired-search-page *::before,
.mired-search-page *::after {
	box-sizing: inherit;
}

.mired-search-page__container {
	max-width: 1210px;
	margin: 0 auto;
}

/* ── Cabecera ── */
.mired-search-page__hero-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 32px;
}

.mired-search-page__heading {
	flex: 1 1 52%;
	min-width: 0;
}

.mired-search-page__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mired-text-muted);
}

.mired-search-page__title {
	margin: 0;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mired-dark);
	overflow-wrap: anywhere;
}

.mired-search-page__term {
	color: var(--mired-red);
}

.mired-search-page__count {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--mired-text-muted);
}

.mired-search-page__count strong {
	color: var(--mired-dark);
	font-weight: 800;
}

/* Formulario de búsqueda */
.mired-search-page__form {
	flex: 0 1 420px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 14px;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mired-search-page__form:focus-within {
	border-color: var(--mired-blue);
	box-shadow: 0 0 0 3px rgba(0, 174, 240, 0.16);
}

.mired-search-page__form-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	color: #adb0b0;
}

.mired-search-page .mired-search-page__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 8px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	box-shadow: none;
}

.mired-search-page .mired-search-page__input:focus {
	outline: none;
	box-shadow: none;
}

.mired-search-page .mired-search-page__input::-webkit-search-decoration,
.mired-search-page .mired-search-page__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.mired-search-page .mired-search-page__submit {
	flex: 0 0 auto;
	margin: 0;
	padding: 9px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--mired-dark);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.mired-search-page .mired-search-page__submit:hover,
.mired-search-page .mired-search-page__submit:focus-visible {
	background: var(--mired-blue);
	color: #ffffff;
}

/* Separador cuadrado + línea (mismo lenguaje que el hero de artículo) */
.mired-search-page__divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.mired-search-page__square {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background: var(--mired-red);
}

.mired-search-page__line {
	flex: 1 1 auto;
	height: 1px;
	margin: 0;
	border: 0;
	background: #e6e6e6;
}

/* ── Filtros por tipo (pestañas de texto) ── */
.mired-search-page__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin-bottom: 8px;
	border-bottom: 1px solid #ececec;
}

.mired-search-page__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0 14px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--mired-text-muted);
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.mired-search-page__chip:hover,
.mired-search-page__chip:focus-visible {
	color: var(--mired-dark);
}

.mired-search-page__chip.is-active {
	border-bottom-color: var(--mired-dark);
	color: var(--mired-dark);
}

.mired-search-page__chip-count {
	font-size: 13px;
	font-weight: 600;
	color: var(--mired-text-muted);
}

/* ── Resultados (lista limpia con separadores) ── */
.mired-search-page__results {
	display: flex;
	flex-direction: column;
}

.mired-search-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	padding: 32px 0;
	border-bottom: 1px solid #ececec;
}

.mired-search-card__body {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 760px;
}

.mired-search-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 18px;
	color: var(--mired-text-muted);
}

.mired-search-card__type {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mired-blue);
}

.mired-search-card__cat {
	color: var(--mired-text-muted);
	font-weight: 600;
	text-decoration: none;
}

.mired-search-card__cat:hover {
	color: var(--mired-dark);
}

.mired-search-card__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.mired-search-card__title a {
	color: var(--mired-dark);
	text-decoration: none;
	transition: color 0.15s ease;
}

.mired-search-card__title a:hover,
.mired-search-card__title a:focus-visible {
	color: var(--mired-blue);
}

.mired-search-card__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #4a5568;
}

.mired-search-page mark {
	padding: 0 1px;
	border-radius: 2px;
	background: rgba(0, 174, 240, 0.14);
	color: inherit;
}

.mired-search-card__media {
	flex: 0 0 168px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--mired-light-bg);
	aspect-ratio: 4 / 3;
}

.mired-search-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── Paginación ── */
.mired-search-page__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.mired-search-page__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	background: transparent;
	color: var(--mired-dark);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mired-search-page__pagination a.page-numbers:hover,
.mired-search-page__pagination a.page-numbers:focus-visible {
	background: var(--mired-light-bg);
}

.mired-search-page__pagination .page-numbers.current {
	background: var(--mired-dark);
	color: #ffffff;
}

.mired-search-page__pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 4px;
	color: var(--mired-text-muted);
}

.mired-search-page__pagination .prev,
.mired-search-page__pagination .next {
	padding: 0 14px;
}

/* ── Estado vacío ── */
.mired-search-page__empty {
	padding: 8px 0;
}

.mired-search-page__tips {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mired-text-muted);
}

.mired-search-page__tips li + li {
	margin-top: 4px;
}

.mired-search-page__tips a {
	color: var(--mired-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mired-search-page__tips a:hover {
	color: var(--mired-blue);
}

/* ── Accesos rápidos (línea de enlaces) ── */
.mired-search-page__quick {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 24px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #ececec;
}

.mired-search-page__quick-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--mired-text-muted);
}

.mired-search-page__quick-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mired-search-page__quick-link {
	font-size: 15px;
	font-weight: 700;
	color: var(--mired-dark);
	text-decoration: none;
	transition: color 0.15s ease;
}

.mired-search-page__quick-link:hover,
.mired-search-page__quick-link:focus-visible {
	color: var(--mired-blue);
}

/* ── 404 ── */
.mired-404 .mired-search-page__container {
	max-width: 640px;
}

.mired-404__hero {
	padding: 40px 0 8px;
	text-align: center;
}

.mired-404__title {
	margin: 0 0 12px;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mired-dark);
}

.mired-404__lead {
	margin: 0 0 28px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--mired-text-muted);
}

.mired-404 .mired-search-page__form {
	max-width: 520px;
	margin: 0 auto;
}

.mired-404__home {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 24px;
	font-size: 15px;
	font-weight: 700;
	color: var(--mired-dark);
	text-decoration: none;
	transition: color 0.15s ease;
}

.mired-404__home:hover,
.mired-404__home:focus-visible {
	color: var(--mired-blue);
}

.mired-404 .mired-search-page__quick {
	justify-content: center;
	margin-top: 64px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.mired-search-page__hero-top {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	.mired-search-page__form {
		flex-basis: auto;
	}
}

@media (max-width: 768px) {
	.mired-search-page {
		padding: 40px 15px 72px;
	}

	.mired-search-page__title,
	.mired-404__title {
		font-size: 30px;
	}

	.mired-search-card {
		flex-direction: column;
		gap: 16px;
		padding: 24px 0;
	}

	.mired-search-card__media {
		order: -1;
		flex-basis: auto;
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.mired-search-card__title {
		font-size: 19px;
	}

	.mired-search-card__excerpt {
		font-size: 15px;
	}

	.mired-search-page__pagination {
		justify-content: center;
	}

	.mired-search-page__pagination .prev span,
	.mired-search-page__pagination .next span {
		display: none;
	}

	.mired-search-page__quick {
		flex-direction: column;
		gap: 12px;
	}

	.mired-404__hero {
		padding-top: 16px;
	}

	.mired-404 .mired-search-page__quick {
		align-items: center;
	}
}

@media (max-width: 480px) {
	.mired-search-page .mired-search-page__submit {
		padding: 9px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mired-search-page * {
		transition: none !important;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER (plantilla Elementor #29) — versión móvil compacta
   Producto e Información lado a lado, todo alineado a la izquierda, contacto
   en fila y barra legal + redes en una sola línea. Los ids son los de los
   contenedores del footer en Elementor; si se rehace el footer hay que
   actualizarlos.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
	/* CTA superior */
	.elementor-29 .elementor-element.elementor-element-f086c34 { padding-top: 40px; padding-bottom: 40px; }
	.elementor-29 .elementor-element.elementor-element-2e6a7a6 { gap: 16px; }
	.elementor-29 .elementor-element.elementor-element-d43dd82 { gap: 8px; }

	/* Columnas: grid de 2; logo y contacto a lo ancho */
	.elementor-29 .elementor-element.elementor-element-53cd120 { padding-top: 40px; padding-bottom: 24px; }
	.elementor-29 .elementor-element.elementor-element-e4a052d {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
		row-gap: 24px;
		justify-items: start;
		align-items: start;
	}
	.elementor-29 .elementor-element.elementor-element-7f4e847,
	.elementor-29 .elementor-element.elementor-element-c2d6807 { grid-column: 1 / -1; }
	.elementor-29 .elementor-element-e4a052d > .elementor-element.e-con {
		justify-content: flex-start;
		align-items: flex-start;
		gap: 8px;
		padding: 0;
		width: 100%;
	}
	.elementor-29 .elementor-element-e4a052d .elementor-element.elementor-widget { text-align: left; width: 100%; }
	.elementor-29 .elementor-element-e4a052d .elementor-element.elementor-widget-text-editor p { text-align: left; }
	.elementor-29 .elementor-element-e4a052d .elementor-element.elementor-widget-icon-list .elementor-icon-list-item,
	.elementor-29 .elementor-element-e4a052d .elementor-element.elementor-widget-icon-list .elementor-icon-list-item > a { justify-content: flex-start; text-align: left; }
	.elementor-29 .elementor-element-e4a052d .elementor-icon-list-text { font-size: 15px; }

	/* Contacto: teléfono + email en fila, dirección abajo */
	.elementor-29 .elementor-element.elementor-element-c2d6807 {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 20px;
		row-gap: 6px;
	}
	.elementor-29 .elementor-element.elementor-element-453c4db,
	.elementor-29 .elementor-element.elementor-element-3ea1176 { grid-column: 1 / -1; }
	.elementor-29 .elementor-element.elementor-element-707da1a,
	.elementor-29 .elementor-element.elementor-element-c75f57e { width: auto; }
	.elementor-29 .elementor-element.elementor-element-3ea1176 p { font-size: 14px; }

	/* Barra inferior: legal + redes en una fila, copyright abajo */
	.elementor-29 .elementor-element.elementor-element-10ca0f6 { padding: 8px 0; }
	.elementor-29 .elementor-element.elementor-element-83c90e9.e-con {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 8px 16px;
		padding-bottom: 24px;
	}
	.elementor-29 .elementor-element-83c90e9 > .elementor-element.e-con { padding: 0; width: auto; flex-direction: row; }
	.elementor-29 .elementor-element.elementor-element-b8c42a4 { order: 3; width: 100%; }
	.elementor-29 .elementor-element-b8c42a4 .elementor-element.elementor-widget-text-editor,
	.elementor-29 .elementor-element-b8c42a4 p { font-size: 13px; text-align: left; }
	.elementor-29 .elementor-element.elementor-element-766cbc1 { order: 1; gap: 16px; }
	.elementor-29 .elementor-element-766cbc1 .elementor-icon-list-text { font-size: 14px; }
	.elementor-29 .elementor-element.elementor-element-d9e37cb { order: 2; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER (plantilla Elementor #27) — el <header> es fixed pero no tenía
   z-index, así que el contenedor espaciador vacío que va debajo (36a5325) se
   pintaba ENCIMA y bloqueaba los toques a la hamburguesa y la lupa en móvil.
   ═══════════════════════════════════════════════════════════════════════════ */
.elementor-27 > header.e-con {
	z-index: 1000; /* por debajo del drawer del menú (100001) */
}

/* Usuarios logueados: el header fijo quedaba tapado por la admin bar */
body.admin-bar .elementor-27 > header.e-con {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .elementor-27 > header.e-con {
		top: 46px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO VIDEO (Home #17, widget c1c86f4 en contenedor e82534b)
   - El espaciador del header mide lo mismo que el header fijo (84px), así el
     contenido arranca debajo y no queda tapado (antes: 20px desktop/tablet,
     142px + margin-top -135px en móvil).
   - Se quitan los parches (alto fijo 226px en móvil, margin-top 200px de la
     sección siguiente en tablet) y el video mide por sí mismo.
   - Desktop: 16:9 a ancho completo (como el original).
   - Tablet/móvil: el video tiene mucho blanco a los lados, así que se recorta
     (cover) a 70vw / cuadrado para que el logo se vea grande.
   ═══════════════════════════════════════════════════════════════════════════ */
.elementor-27 .elementor-element.elementor-element-36a5325 {
	min-height: 84px !important;
	height: 84px;
	padding: 0 !important;
}

.elementor-17 .elementor-element.elementor-element-e82534b.e-con {
	height: auto !important;
	min-height: 0 !important;
	margin-block: 0 !important;
	margin-top: 0 !important;
}

.elementor-17 .elementor-element.elementor-element-c1c86f4 {
	margin-top: 0 !important;
	width: 100%;
}

/* Desktop: 16:9 a ancho completo (como el original), solo se limpia el fondo */
.elementor-17 .elementor-element-c1c86f4 .elementor-video {
	background: #fff !important;
}

/* Sección siguiente: el video ya trae blanco interno, no hace falta 200px */
.elementor-17 .elementor-element.elementor-element-eecf862 {
	margin-top: 40px !important;
}

@media (max-width: 1024px) {
	.elementor-17 .elementor-element-c1c86f4 .elementor-wrapper { aspect-ratio: auto !important; height: 70vw; background: #fff; }
	.elementor-17 .elementor-element-c1c86f4 .elementor-video { width: 100%; height: 100%; object-fit: cover; }
}

@media (max-width: 767px) {
	.elementor-17 .elementor-element-c1c86f4 .elementor-wrapper { height: 100vw; }
}

/* Política de cookies (Complianz): mismo ancho de columna que Términos y Privacidad */
.elementor-widget-text-editor .cmplz-document {
	max-width: none;
}