/* =========================================================================
   Quoriks Guías — стили статей и ленты
   Значения из спецификации quoriks-css-spec.xlsx.
   Правится здесь, а не в Elementor: один файл на все статьи.
   ========================================================================= */

:root {
	/* Цвета */
	--q-navy: #0D2754;
	--q-navy-80: rgba(13, 39, 84, .8);
	--q-orange: #F5A623;
	--q-orange-80: rgba(245, 166, 35, .8);
	--q-blue-light: #4EAED4;
	--q-gray-blue: #8FA3BD;
	--q-text: #4B5563;
	--q-text-muted: #8FA3BD;
	--q-bg-page: #FFFFFF;
	--q-bg-page-alt: #F2F5FA;
	--q-bg-card: #FFFFFF;
	--q-bg-soft: #F2F5FA;
	--q-border: #D8E0EC;
	--q-link: #1A3F7A;
	--q-link-hover: #112B53;

	/* Цвет категории — переопределяется инлайново на карточке */
	--q-cat: var(--q-gray-blue);

	/* Шрифты */
	--q-font-text: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--q-font-h1: "Barlow", var(--q-font-text);
	--q-font-h: "Barlow Condensed", "Barlow", var(--q-font-text);
	--q-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Ширины */
	--q-ancho-texto: 574px;
	--q-ancho-ancho: 732px;
	--q-ancho-archivo: 1136px;

	/* Скругления */
	--q-radio: 6px;
	--q-radio-boton: 4px;
	--q-radio-pildora: 999px;

	/* Прочее */
	--q-transicion: .2s ease;
}

/* -------------------------------------------------------------------------
   Каркас статьи
   ------------------------------------------------------------------------- */

.q-guia {
	font-family: var(--q-font-text);
	color: var(--q-text);
	max-width: var(--q-ancho-ancho);
	margin-inline: auto;
	padding-inline: 20px;
}

/* Текстовые блоки уже общей ширины; таблицы и таймлайн занимают всю. */
/* Каркас и блоки — 732px. */
.q-guia > *:not(.q-progreso),
.q-seccion > * {
	max-width: var(--q-ancho-ancho);
	margin-inline: 0;
}

/* Проза (абзацы, списки) — узкая колонка 574px для читаемости.
   Заголовки, таблицы, синие блоки и таймлайн остаются 732. */
.q-prosa,
.q-pasos__texto,
.q-checklist__lista,
.q-checklist__nota {
	max-width: var(--q-ancho-texto);
}

/* resumen, puntos clave, оглавление — та же ширина, что и всё. */
.q-guia > .q-resumen,
.q-guia > .q-puntos,
.q-guia > .q-toc {
	max-width: var(--q-ancho-ancho);
}

.q-guia__cuerpo > .q-seccion + .q-seccion,
.q-guia__cuerpo > * + * {
	margin-top: 36px;
}

.q-seccion {
	scroll-margin-top: 24px;
}

/* -------------------------------------------------------------------------
   Прогресс чтения
   ------------------------------------------------------------------------- */

.q-progreso {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	height: 3px;
	background: transparent;
	z-index: 9999;
	pointer-events: none;
}

.q-progreso__barra {
	display: block;
	height: 100%;
	width: 0;
	background: var(--q-orange);
	transition: width .1s linear;
}

/* -------------------------------------------------------------------------
   Хлебные крошки
   ------------------------------------------------------------------------- */

.q-migas {
	font-size: 13px;
	color: var(--q-gray-blue);
	margin-bottom: 20px;
}

.q-migas a {
	color: var(--q-gray-blue);
	text-decoration: none;
	transition: color var(--q-transicion);
}

.q-migas a:hover {
	color: var(--q-link);
}

.q-migas__sep {
	margin-inline: 6px;
	color: var(--q-border);
}

/* -------------------------------------------------------------------------
   Шапка
   ------------------------------------------------------------------------- */

.q-cabecera__kicker {
	font-family: var(--q-font-h);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--q-navy);
	margin: 0 0 12px;
}

.q-cabecera__titulo {
	font-family: var(--q-font-h1);
	font-size: 44px;
	line-height: 47.5px;
	letter-spacing: -.44px;
	font-weight: 700;
	color: var(--q-navy);
	margin: 0;
}

.q-cabecera__meta {
	font-size: 14px;
	line-height: 22px;
	color: var(--q-gray-blue);
	margin: 14px 0 0;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--q-border);
	max-width: var(--q-ancho-ancho);
}

/* Ревьюер в мета-строке — ссылка на блок «Sobre este artículo» */
.q-cabecera__revisor {
	color: var(--q-gray-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--q-transicion);
}

.q-cabecera__revisor:hover {
	color: var(--q-link);
}

/* -------------------------------------------------------------------------
   Resumen ejecutivo
   ------------------------------------------------------------------------- */

.q-resumen {
	background: var(--q-bg-soft);
	border-left: 3px solid var(--q-orange);
	border-radius: 0;
	padding: 24px 28px;
	margin-top: 73px;
}

.q-resumen__etiqueta {
	font-family: var(--q-font-h);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--q-orange);
	margin: 0 0 12px;
}

.q-resumen__texto {
	font-size: 15px;
	line-height: 25px;
}

.q-resumen__texto > *:first-child { margin-top: 0; }
.q-resumen__texto > *:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Puntos clave
   ------------------------------------------------------------------------- */

.q-puntos {
	border: 1px solid var(--q-border);
	border-radius: var(--q-radio);
	padding: 24px 28px;
	margin-top: 24px;
}

.q-puntos__titulo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--q-font-h);
	font-size: 18px;
	font-weight: 700;
	color: var(--q-navy);
	margin: 0 0 16px;
}

.q-puntos__icono {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--q-orange);
}

.q-puntos__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.q-puntos__item {
	position: relative;
	padding-left: 20px;
	font-size: 15px;
	line-height: 24px;
}

.q-puntos__item + .q-puntos__item {
	margin-top: 12px;
}

/* Ромб, а не круг — как в макете */
.q-puntos__item::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 8px;
	width: 7px;
	height: 7px;
	background: var(--q-orange);
	transform: rotate(45deg);
}

/* -------------------------------------------------------------------------
   Оглавление
   ------------------------------------------------------------------------- */

.q-toc {
	background: var(--q-bg-soft);
	border-radius: var(--q-radio);
	padding: 24px 28px;
	margin-top: 24px;
}

.q-toc__titulo {
	font-family: var(--q-font-h);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .84px;
	text-transform: uppercase;
	color: var(--q-navy);
	margin: 0 0 16px;
}

.q-toc__lista {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: q-toc;
}

.q-toc__item + .q-toc__item {
	margin-top: 10px;
}

.q-toc__lista {
	padding-left: 28px;
}

.q-toc__enlace {
	font-size: 15px;
	line-height: 22px;
	color: var(--q-link);
	text-decoration: none;
	transition: color var(--q-transicion);
}

.q-toc__enlace:hover,
.q-toc__item.is-activo .q-toc__enlace {
	color: var(--q-orange);
}

/* -------------------------------------------------------------------------
   Заголовки секций и проза
   ------------------------------------------------------------------------- */

.q-seccion__titulo {
	font-family: var(--q-font-h);
	font-size: 28px;
	line-height: 34px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 7px 0 15px;
}

.q-prosa {
	font-size: 17px;
	line-height: 30px;
}

.q-prosa p {
	margin: 0 0 20px;
}

.q-prosa > *:last-child {
	margin-bottom: 0;
}

.q-prosa h3 {
	font-family: var(--q-font-h);
	font-size: 20px;
	line-height: 26px;
	font-weight: 600;
	color: var(--q-orange);
	margin: 16px 0 11px;
}

.q-prosa a {
	color: var(--q-link);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--q-transicion);
}

.q-prosa a:hover {
	color: var(--q-link-hover);
}

.q-prosa ul,
.q-prosa ol {
	margin: 0 0 11px;
	padding-left: 22px;
}

.q-prosa li + li {
	margin-top: 6px;
}

.q-prosa strong {
	color: var(--q-navy);
	font-weight: 600;
}

.q-prosa blockquote {
	margin: 16px 0;
	padding-left: 16px;
	border-left: 3px solid var(--q-orange);
	font-style: italic;
}

/* -------------------------------------------------------------------------
   Таблица
   ------------------------------------------------------------------------- */

.q-tabla-envoltura {
	margin: 14px 0 16px;
	overflow-x: auto;
}

.q-tabla {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

/* Шапка: основной фон тёмный, 3-й столбец чуть светлее — в тон
   выделенному столбцу тела. */
.q-tabla__cabeza {
	background: #0D2754;
	border-top: none;
}

.q-tabla__cabeza th:nth-child(3) {
	background: #1A3F7A;
}

.q-tabla__cabeza th {
	font-family: var(--q-font-h);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .52px;
	text-transform: uppercase;
	color: #fff;
	text-align: left;
	padding: 12px 16px;
	/* Тема рисует рамку на th — на скруглённых углах она проступает
	   чёрной линией по верху и краям. Гасим полностью. */
	border: none !important;
}

.q-tabla__cabeza tr th:first-child {
	border-top-left-radius: var(--q-radio);
}

.q-tabla__cabeza tr th:last-child {
	border-top-right-radius: var(--q-radio);
}

.q-tabla tbody td,
.q-tabla tbody th {
	padding: 12px 16px;
	vertical-align: top;
	/* Только горизонтальная линия между строками. Вертикальные
	   рамки темы гасим явно. */
	border: none;
	border-bottom: 1px solid var(--q-border);
	background: transparent !important;
}

/* Гасим зебру/фон из темы (Hello Elementor красит строки). !important —
   потому что тема задаёт фон на tr с равной специфичностью.
   Третий столбец исключаем — у него своя заливка ниже. */
.q-tabla tbody tr,
.q-tabla tbody tr:nth-child(even),
.q-tabla tbody tr:nth-child(odd),
.q-tabla tbody td:not(:nth-child(3)),
.q-tabla tbody th:not(:nth-child(3)) {
	background: transparent !important;
	background-color: transparent !important;
}

/* Третий визуальный столбец («Panel empresarial de alta gama»):
   1-я ячейка строки — <th> criterio, дальше три <td>, значит 3-й
   столбец = nth-child(3). Заливка на всю высоту тела. Шапка синяя. */
.q-tabla tbody tr > td:nth-child(3),
.q-tabla tbody tr > th:nth-child(3) {
	background: #F2F5FA !important;
	background-color: #F2F5FA !important;
}

.q-tabla tbody tr:last-child td,
.q-tabla tbody tr:last-child th {
	border-bottom: none;
}

.q-tabla__criterio {
	font-weight: 600;
	color: var(--q-navy);
	text-align: left;
	white-space: normal;
}

.q-tabla__nota {
	font-size: 12px;
	line-height: 21px;
	font-style: italic;
	color: var(--q-gray-blue);
	margin: 0;
}

/* Бейджи SÍ / NO */

.q-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: var(--q-radio-pildora);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.q-badge--no {
	background: var(--q-bg-soft);
	color: var(--q-gray-blue);
}

.q-badge--si {
	background: var(--q-orange);
	color: var(--q-navy);
}

/* -------------------------------------------------------------------------
   Чеклист
   ------------------------------------------------------------------------- */

.q-checklist--tarjeta {
	background: var(--q-bg-soft);
	border: 1px solid var(--q-border);
	border-radius: var(--q-radio);
	padding: 24px 29px;
}

.q-checklist__titulo {
	font-family: var(--q-font-h);
	font-size: 16px;
	line-height: 28px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0 0 16px;
}

.q-checklist__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.q-checklist__item {
	position: relative;
	padding-left: 28px;
	font-size: 15px;
	line-height: 22px;
}

.q-checklist__item + .q-checklist__item {
	margin-top: 12px;
}

.q-checklist__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	border: 1px solid var(--q-border);
	border-radius: 3px;
	background: #fff;
}

.q-checklist__nota {
	font-size: 13px;
	line-height: 23px;
	color: var(--q-gray-blue);
	margin: 16px 0 0;
}

/* -------------------------------------------------------------------------
   Нумерованные шаги
   ------------------------------------------------------------------------- */

.q-pasos {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: q-paso;
}

.q-pasos__item {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
}

.q-pasos__item + .q-pasos__item {
	margin-top: 24px;
}

.q-pasos__numero {
	font-family: var(--q-font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.68px;
	color: var(--q-orange);
	padding-top: 5px;
}

.q-pasos__nombre {
	font-family: var(--q-font-h);
	font-size: 17px;
	line-height: 30px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0 0 4px;
}

.q-pasos__texto {
	font-size: 17px;
	line-height: 30px;
	color: var(--q-gray-blue);
}

.q-pasos__texto > *:first-child { margin-top: 0; }
.q-pasos__texto > *:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Timeline
   ------------------------------------------------------------------------- */

.q-timeline {
	display: grid;
	grid-template-columns: repeat(var(--q-timeline-cols, 5), 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.q-timeline__etapa {
	position: relative;
}

.q-timeline__marca {
	display: block;
	position: relative;
	height: 14px;
	margin-bottom: 20px;
}

.q-timeline__linea {
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 2px;
	transform: translateY(-50%);
	background: var(--q-border);
}

.q-timeline__punto {
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--q-navy);
	transform: translateY(-50%);
}

/* Точка сдвигается вправо по мере продвижения — как в макете. */
.q-timeline__etapa:nth-child(1) .q-timeline__punto { left: 12%; }
.q-timeline__etapa:nth-child(2) .q-timeline__punto { left: 42%; }
.q-timeline__etapa:nth-child(3) .q-timeline__punto { left: 42%; }
.q-timeline__etapa:nth-child(4) .q-timeline__punto { left: 42%; }
.q-timeline__etapa:nth-child(5) .q-timeline__punto { left: 72%; }

.q-timeline__etapa.is-destacado .q-timeline__punto {
	background: var(--q-orange);
}

.q-timeline__numero {
	display: block;
	font-family: var(--q-font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.68px;
	color: var(--q-orange);
	margin-bottom: 8px;
}

.q-timeline__nombre {
	font-family: var(--q-font-h);
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	color: var(--q-navy);
	margin: 0 0 8px;
}

.q-timeline__texto {
	font-size: 13px;
	line-height: 20px;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Destacado
   ------------------------------------------------------------------------- */

.q-destacado {
	border-radius: var(--q-radio);
	padding: 24px 28px;
}

.q-destacado--oscuro {
	background: var(--q-navy);
	border-left: 3px solid var(--q-orange);
	border-radius: 0 var(--q-radio) var(--q-radio) 0;
	padding: 28px 32px;
}

.q-destacado--oscuro .q-destacado__texto {
	color: rgba(255, 255, 255, .9);
	font-style: normal;
}

/* Шапка тёмной врезки: иконка-предупреждение + заголовок в одну строку. */
.q-destacado__cabeza {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.q-destacado__icono {
	flex: 0 0 auto;
	display: inline-flex;
	width: 26px;
	height: 28px;
}

.q-destacado__titulo {
	font-family: var(--q-font-h);
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.q-destacado--claro {
	background: var(--q-bg-soft);
	border-left: 3px solid var(--q-orange);
	border-radius: 0 var(--q-radio) var(--q-radio) 0;
}

.q-destacado__texto {
	font-size: 17px;
	line-height: 29px;
	font-style: italic;
}

.q-destacado__texto > *:first-child { margin-top: 0; }
.q-destacado__texto > *:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Цитата эксперта
   ------------------------------------------------------------------------- */

.q-cita {
	position: relative;
	background: var(--q-navy);
	border-radius: var(--q-radio);
	padding: 28px;
	color: rgba(255, 255, 255, .9);
	overflow: hidden;
}

/* Декоративная кавычка на фоне, за текстом. */
.q-cita::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 28px;
	width: 46px;
	height: 38px;
	background: url("img/quote.svg") no-repeat center / contain;
	pointer-events: none;
	z-index: 0;
}

.q-cita > * {
	position: relative;
	z-index: 1;
}

.q-cita__texto {
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 29px;
	font-style: italic;
	border: none;
	padding: 0;
}

.q-cita__persona {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}

.q-cita__nombre {
	font-family: var(--q-font-h);
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

.q-cita__cargo {
	font-size: 13px;
	color: rgba(255, 255, 255, .65);
	margin: 2px 0 0;
}

.q-cita__bio {
	font-size: 14px;
	line-height: 22px;
	color: rgba(255, 255, 255, .8);
	margin: 8px 0 0;
}

.q-cita .q-avatar--iniciales {
	background: #fff;
	color: var(--q-navy);
}

/* -------------------------------------------------------------------------
   Аватар
   ------------------------------------------------------------------------- */

.q-avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--q-navy);
	color: #fff;
	font-family: var(--q-font-h);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .5px;
}

.q-avatar__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   CTA
   ------------------------------------------------------------------------- */

.q-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background: var(--q-bg-card);
	border-radius: 4px;
	padding: 24px 28px;
}

/* Рамка — только по галочке в редакторе. */
.q-cta--borde {
	border: 1px solid var(--q-border);
	border-left: 3px solid var(--q-orange);
}

.q-cta--lista {
	grid-column: 1 / -1;
	background: var(--q-bg-card);
	border: 1px solid var(--q-border);
	border-left: 3px solid var(--q-orange);
	margin: 20px 0;
}

.q-cta__titulo {
	font-family: var(--q-font-h);
	font-size: 20px;
	line-height: 25px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0 0 8px;
}

.q-cta__descripcion {
	font-size: 15px;
	line-height: 22px;
	margin: 0;
}

.q-cta__accion {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   Кнопки
   ------------------------------------------------------------------------- */

.q-boton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--q-font-h1);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 14px 22px;
	border-radius: var(--q-radio-boton);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--q-transicion), color var(--q-transicion), border-color var(--q-transicion);
}

.q-boton--primario {
	background: var(--q-orange);
	border: 1px solid var(--q-orange);
	color: var(--q-navy);
}

.q-boton--primario:hover {
	background: var(--q-orange-80);
	border-color: var(--q-orange-80);
	color: var(--q-navy);
}

.q-boton--secundario {
	background: #fff;
	border: 1px solid var(--q-navy);
	color: var(--q-navy);
}

.q-boton--secundario:hover {
	background: var(--q-navy);
	color: #fff;
}

.q-boton__flecha {
	transition: transform var(--q-transicion);
}

.q-boton:hover .q-boton__flecha {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */

.q-faq {
	margin-top: 48px;
}

.q-faq__titulo {
	font-family: var(--q-font-h);
	font-size: 28px;
	line-height: 34px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0 0 20px;
}

.q-faq__item {
	border-top: 1px solid var(--q-border);
}

.q-faq__item:last-child {
	border-bottom: 1px solid var(--q-border);
}

.q-faq__pregunta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--q-font-h);
	font-size: 16px;
	line-height: 22px;
	font-weight: 600;
	color: var(--q-navy);
}

.q-faq__pregunta::-webkit-details-marker {
	display: none;
}

.q-faq__icono {
	flex: 0 0 auto;
	position: relative;
	width: 12px;
	height: 12px;
}

.q-faq__icono::before,
.q-faq__icono::after {
	content: "";
	position: absolute;
	background: var(--q-gray-blue);
	transition: transform var(--q-transicion), opacity var(--q-transicion);
}

.q-faq__icono::before {
	inset-inline: 0;
	top: 50%;
	height: 2px;
	transform: translateY(-50%);
}

.q-faq__icono::after {
	inset-block: 0;
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
}

.q-faq__item[open] .q-faq__icono::after {
	opacity: 0;
	transform: translateX(-50%) rotate(90deg);
}

.q-faq__respuesta {
	font-size: 15px;
	line-height: 22px;
	padding-bottom: 20px;
}

.q-faq__respuesta > *:first-child { margin-top: 0; }
.q-faq__respuesta > *:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   Fuentes
   ------------------------------------------------------------------------- */

.q-fuentes {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--q-border);
}

.q-fuentes__titulo {
	font-family: var(--q-font-h);
	font-size: 20px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0 0 20px;
}

.q-fuentes__subtitulo {
	font-family: var(--q-font-h);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.68px;
	text-transform: uppercase;
	color: var(--q-orange);
	margin: 24px 0 12px;
}

.q-fuentes__lista {
	margin: 0;
	padding-left: 18px;
}

.q-fuentes__item {
	font-size: 14px;
	line-height: 22px;
}

.q-fuentes__item + .q-fuentes__item {
	margin-top: 8px;
}

.q-fuentes__item a {
	color: var(--q-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.q-fuentes__item a:hover {
	color: var(--q-link-hover);
}

.q-fuentes__nota {
	font-size: 12px;
	line-height: 20px;
	color: var(--q-gray-blue);
	margin: 24px 0 0;
}

/* -------------------------------------------------------------------------
   Sobre este artículo
   ------------------------------------------------------------------------- */

.q-sobre {
	margin-top: 48px;
}

.q-sobre__titulo {
	font-family: var(--q-font-h);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.68px;
	text-transform: uppercase;
	color: var(--q-navy);
	margin: 0 0 20px;
}

.q-sobre__rejilla {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.q-persona {
	border: 1px solid var(--q-border);
	border-radius: var(--q-radio);
	padding: 24px;
}

.q-persona__rol {
	font-family: var(--q-font-h);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.54px;
	text-transform: uppercase;
	color: var(--q-gray-blue);
	margin: 0 0 16px;
}

.q-persona__cabeza {
	display: flex;
	align-items: center;
	gap: 16px;
}

.q-persona__nombre {
	font-family: var(--q-font-h);
	font-size: 16px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0;
}

.q-persona__cargo {
	font-size: 13px;
	line-height: 19px;
	color: var(--q-gray-blue);
	margin: 2px 0 0;
}

.q-persona__bio {
	font-size: 14px;
	line-height: 22px;
	margin: 16px 0 0;
}

.q-persona__fecha {
	font-size: 14px;
	line-height: 22px;
	margin: 16px 0 0;
}

/* -------------------------------------------------------------------------
   Artículos relacionados
   ------------------------------------------------------------------------- */

.q-relacionados {
	margin-top: 48px;
}

.q-relacionados__titulo {
	font-family: var(--q-font-h);
	font-size: 20px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0 0 16px;
}

.q-relacionados__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.q-relacionados__item + .q-relacionados__item {
	margin-top: 12px;
}

.q-relacionados__enlace {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	line-height: 22px;
	color: var(--q-link);
	text-decoration: none;
	transition: color var(--q-transicion);
}

.q-relacionados__enlace:hover {
	color: var(--q-orange);
}

.q-relacionados__flecha {
	transition: transform var(--q-transicion);
}

.q-relacionados__enlace:hover .q-relacionados__flecha {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   Архив: фильтры
   ------------------------------------------------------------------------- */

.q-archivo {
	font-family: var(--q-font-text);
	color: var(--q-text);
	max-width: var(--q-ancho-archivo);
	margin-inline: auto;
	padding-inline: 20px;
}

.q-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.q-filtro {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--q-border);
	border-radius: var(--q-radio-pildora);
	padding: 9px 18px;
	font-family: var(--q-font-h1);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .13px;
	color: var(--q-navy);
	text-decoration: none;
	transition: background var(--q-transicion), color var(--q-transicion), border-color var(--q-transicion);
}

.q-filtro__punto {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--q-cat);
}

.q-filtro:hover,
.q-filtro.is-activo {
	background: var(--q-navy);
	border-color: var(--q-navy);
	color: #fff;
}

.q-archivo__titulo {
	font-family: var(--q-font-h);
	font-size: 22px;
	line-height: 26px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 56px 0 20px;
}

.q-archivo__vacio {
	font-size: 15px;
	color: var(--q-gray-blue);
	padding: 40px 0;
}

/* -------------------------------------------------------------------------
   Архив: сетка карточек
   ------------------------------------------------------------------------- */

.q-rejilla {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.q-tarjeta {
	display: flex;
	flex-direction: column;
	min-height: 365px;
	background: var(--q-bg-card);
	border: 1px solid var(--q-cat);
	border-top: 3px solid var(--q-cat);
	border-radius: var(--q-radio);
	padding: 24px;
	transition: transform var(--q-transicion), box-shadow var(--q-transicion);
}

.q-tarjeta:hover {
	transform: translateY(-7px);
	box-shadow: 0 3px 3px rgba(13, 39, 84, .12);
}

.q-tarjeta__cabeza {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.q-tarjeta__categoria {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--q-font-h);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--q-navy);
}

.q-tarjeta__punto {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--q-cat);
}

.q-tarjeta__fecha {
	font-family: var(--q-font-mono);
	font-size: 10px;
	letter-spacing: .1px;
	color: var(--q-gray-blue);
}

.q-tarjeta__titulo {
	font-family: var(--q-font-h);
	font-size: 19px;
	line-height: 25px;
	font-weight: 600;
	color: var(--q-navy);
	margin: 0 0 12px;
}

.q-tarjeta__enlace {
	color: inherit;
	text-decoration: none;
}

/* Кликабельна вся карточка, но в разметке остаётся одна ссылка —
   так скринридер не читает дубли, а мышь попадает куда угодно. */
.q-tarjeta__enlace::after {
	content: "";
	position: absolute;
	inset: 0;
}

.q-tarjeta {
	position: relative;
}

.q-tarjeta__resumen {
	font-size: 14px;
	line-height: 23px;
	margin: 0;
}

.q-tarjeta__mas {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: auto 0 0;
	padding-top: 20px;
	font-family: var(--q-font-h1);
	font-size: 13px;
	font-weight: 600;
	color: var(--q-navy);
}

.q-tarjeta__flecha {
	color: var(--q-orange);
	transition: transform var(--q-transicion);
}

.q-tarjeta:hover .q-tarjeta__flecha {
	transform: translateX(5px);
}

/* -------------------------------------------------------------------------
   Пагинация
   ------------------------------------------------------------------------- */

.q-paginacion {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.q-paginacion a,
.q-paginacion span.current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 10px;
	border: 1px solid var(--q-border);
	border-radius: var(--q-radio-boton);
	font-family: var(--q-font-h1);
	font-size: 14px;
	font-weight: 600;
	color: var(--q-navy);
	text-decoration: none;
	transition: background var(--q-transicion), color var(--q-transicion);
}

.q-paginacion a:hover,
.q-paginacion span.current {
	background: var(--q-navy);
	border-color: var(--q-navy);
	color: #fff;
}

/* -------------------------------------------------------------------------
   Изображения и видео
   ------------------------------------------------------------------------- */

.q-figura,
.q-video {
	margin: 0;
}

.q-figura__img {
	width: 100%;
	height: auto;
	border-radius: var(--q-radio);
	display: block;
}

.q-figura__pie,
.q-video__pie {
	font-size: 12px;
	line-height: 21px;
	color: var(--q-gray-blue);
	margin-top: 8px;
}

.q-video__marco {
	position: relative;
	padding-top: 56.25%;
	border-radius: var(--q-radio);
	overflow: hidden;
}

.q-video__marco iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -------------------------------------------------------------------------
   Служебные обёртки: раскладка без собственного оформления
   ------------------------------------------------------------------------- */

.q-cabecera {
	margin-bottom: 0;
}

.q-migas__actual {
	color: var(--q-navy);
}

.q-faq__texto {
	flex: 1 1 auto;
}

/* Текст FAQ и «Leer guía» должны переносится, а иконка — нет */
.q-faq__lista {
	display: block;
}

.q-cita__datos,
.q-persona__identidad {
	min-width: 0;
}

.q-cta__texto {
	flex: 1 1 320px;
	min-width: 0;
}

.q-pasos__cuerpo {
	min-width: 0;
}

.q-relacionados__texto {
	min-width: 0;
}

.q-avatar--foto {
	background: transparent;
}

/* Состояние загрузки при AJAX-фильтрации */
.q-archivo__resultados {
	transition: opacity var(--q-transicion);
}

.q-archivo__resultados.is-cargando {
	opacity: .45;
	pointer-events: none;
}

/* =========================================================================
   Планшет
   ========================================================================= */

@media (max-width: 1024px) {

	.q-rejilla {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =========================================================================
   Мобильная версия
   ========================================================================= */

@media (max-width: 767px) {

	.q-guia,
	.q-archivo {
		padding-inline: 16px;
	}

	.q-cabecera__titulo {
		font-size: 28px;
		line-height: 30px;
		letter-spacing: -.28px;
	}

	.q-seccion__titulo,
	.q-faq__titulo {
		font-size: 24px;
		line-height: 29px;
	}

	.q-archivo__titulo {
		font-size: 22px;
	}

	.q-resumen {
		margin-top: 40px;
	}

	/* Таблица превращается в карточки. Заголовки колонок приходят
	   из data-label — вторая разметка не нужна. */

	.q-tabla-envoltura {
		overflow-x: visible;
	}

	.q-tabla,
	.q-tabla tbody,
	.q-tabla tr {
		display: block;
		width: 100%;
	}

	.q-tabla__cabeza {
		display: none;
	}

	/* Каждая строка = карточка: внешняя рамка + цветная полоса слева,
	   фон прозрачный (без серой заливки темы). */
	.q-tabla tbody tr {
		display: block;
		border: 1px solid var(--q-border);
		border-left: 3px solid var(--q-cat, var(--q-navy));
		border-radius: var(--q-radio);
		padding: 24px;
		margin-bottom: 16px;
		background: transparent !important;
		background-color: transparent !important;
	}

	.q-tabla tbody tr:last-child {
		margin-bottom: 0;
	}

	/* Внутри карточки — никаких рамок и фонов у ячеек.
	   Сбрасываем и заливку 3-го столбца: в мобиле столбцов нет. */
	.q-tabla tbody th,
	.q-tabla tbody td,
	.q-tabla tbody tr > td:nth-child(3),
	.q-tabla tbody tr > th:nth-child(3) {
		border: none;
		background: transparent !important;
		background-color: transparent !important;
	}

	/* Бейджи SÍ/NO в мобиле — без серой заливки, просто текст,
	   иначе под каждым значением серая полоса (см. макет). */
	.q-tabla .q-badge {
		background: none;
		padding: 0;
		font-weight: 600;
	}

	.q-tabla .q-badge--si {
		color: var(--q-orange);
	}

	.q-tabla .q-badge--no {
		color: var(--q-text);
	}

	.q-tabla tbody th,
	.q-tabla tbody td {
		display: block;
		padding: 0;
		border-bottom: none;
	}

	.q-tabla__criterio {
		font-size: 17px;
		line-height: 29px;
		margin-bottom: 12px;
	}

	.q-tabla tbody td {
		display: grid;
		grid-template-columns: 1fr;
		gap: 2px;
		font-size: 14px;
		line-height: 24px;
	}

	.q-tabla tbody td + td {
		margin-top: 12px;
	}

	.q-tabla tbody td::before {
		content: attr(data-label);
		font-family: var(--q-font-h);
		font-size: 11px;
		line-height: 19px;
		font-weight: 600;
		letter-spacing: .52px;
		text-transform: uppercase;
		color: var(--q-gray-blue);
	}

	/* Timeline в мобиле — вертикальная линия слева, точки на ней,
	   контент справа. Каждый этап отодвинут под линию через padding. */

	.q-timeline {
		display: block;
		grid-template-columns: none;
		gap: 0;
	}

	.q-timeline__etapa {
		position: relative;
		padding-left: 40px;
		padding-bottom: 28px;
	}

	/* Марка снова видна и переориентирована вертикально. */
	.q-timeline__marca {
		display: block;
		position: absolute;
		left: 0;
		top: 4px;
		bottom: 0;
		width: 24px;
		height: auto;
		margin: 0;
	}

	/* Линия — вертикальная, тянется вниз до следующей точки. */
	.q-timeline__linea {
		position: absolute;
		left: 11px;
		top: 12px;
		bottom: -4px;
		inset-inline: auto;
		width: 2px;
		height: auto;
		transform: none;
		background: var(--q-border);
	}

	/* У последнего этапа линия не нужна. */
	.q-timeline__etapa:last-child {
		padding-bottom: 0;
	}

	.q-timeline__etapa:last-child .q-timeline__linea {
		display: none;
	}

	/* Точка — на линии, с белой обводкой как в макете. */
	.q-timeline__punto,
	.q-timeline__etapa:nth-child(1) .q-timeline__punto,
	.q-timeline__etapa:nth-child(2) .q-timeline__punto,
	.q-timeline__etapa:nth-child(3) .q-timeline__punto,
	.q-timeline__etapa:nth-child(4) .q-timeline__punto,
	.q-timeline__etapa:nth-child(5) .q-timeline__punto {
		position: absolute;
		left: 0;
		top: 0;
		width: 24px;
		height: 24px;
		border: 6px solid var(--q-navy);
		background: #fff;
		transform: none;
	}

	.q-timeline__etapa.is-destacado .q-timeline__punto {
		border-color: var(--q-orange);
		background: #fff;
	}

	.q-timeline__numero {
		display: block;
		font-size: 12px;
		margin-bottom: 6px;
	}

	.q-timeline__nombre {
		font-size: 17px;
		line-height: 24px;
		margin-bottom: 8px;
	}

	.q-timeline__texto {
		font-size: 14px;
		line-height: 21px;
	}

	/* Лента в одну колонку */

	.q-rejilla {
		grid-template-columns: 1fr;
	}

	.q-tarjeta {
		min-height: 0;
	}

	.q-sobre__rejilla {
		grid-template-columns: 1fr;
	}

	.q-cta {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 20px;
	}

	/* Пустой текстовый блок (когда у CTA только кнопка) не должен
	   резервировать место и раздвигать колонку. */
	.q-cta__texto:empty {
		display: none;
	}

	/* Кнопка занимает ширину карточки и центрирует подпись. */
	.q-cta__accion {
		width: 100%;
	}

	.q-cta .q-boton {
		width: 100%;
		justify-content: center;
	}

	/* Стрелка в «Artículos relacionados» уезжает вправо */

	.q-relacionados__enlace {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}

	.q-pasos__item {
		grid-template-columns: 32px 1fr;
		gap: 12px;
	}
}

/* =========================================================================
   Печать
   ========================================================================= */

@media print {

	.q-progreso,
	.q-filtros,
	.q-cta,
	.q-paginacion {
		display: none !important;
	}

	.q-faq__item {
		break-inside: avoid;
	}

	.q-faq__respuesta {
		display: block !important;
	}
}

/* =========================================================================
   Уважение к настройкам доступности
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {

	.q-tarjeta,
	.q-boton,
	.q-boton__flecha,
	.q-tarjeta__flecha,
	.q-relacionados__flecha,
	.q-progreso__barra {
		transition: none !important;
	}

	.q-tarjeta:hover {
		transform: none;
	}
}
