/* ==========================================================================
   Guía Patas · Prospecto
   Papel fino de prospecto, tinta azul-negra y el color de caja de cada
   categoría. Una sola familia (Archivo) en anchos condensados para las caras
   de caja y ancho normal para leer.
   ========================================================================== */

:root {
	--papel: #fbfcfd;
	--fondo: #eceff3;
	--tinta: #121a2b;
	--tinta-2: #475166;
	--regla: #c8cfd9;
	--regla-2: #dde2e9;
	--alerta: #c62a2a;
	--alerta-t: #9c1c1c;
	--alerta-fondo: #fdf0ee;
	--cat: #121a2b;
	--cat-t: #121a2b;
	--sobre: #ffffff;
	--profundidad: 18px;
	--sombra-papel: 0 1px 2px rgba(18, 26, 43, 0.08), 0 22px 44px -28px rgba(18, 26, 43, 0.35);
	--salida: cubic-bezier(0.16, 1, 0.3, 1);
	--condensada: 72%;
}

.gp-cat-salud { --cat: #1f4fd1; --cat-t: #1f4fd1; --sobre: #fff; }
.gp-cat-cuidados { --cat: #00796b; --cat-t: #00695f; --sobre: #fff; }
.gp-cat-comportamiento { --cat: #6a3fc9; --cat-t: #5b31b8; --sobre: #fff; }
.gp-cat-alimentacion { --cat: #f2a900; --cat-t: #855400; --sobre: #121a2b; }

/* ---- Superficies del navegador ---------------------------------------- */

html { scrollbar-color: var(--regla) var(--fondo); scroll-padding-top: 1.5rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; }
::selection { background: var(--tinta); color: var(--papel); }
:where(input, textarea) { caret-color: var(--cat, var(--tinta)); }
:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--tinta);
	outline-offset: 3px;
	border-radius: 1px;
}
a { text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
img { height: auto; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* ---- Cabecera ---------------------------------------------------------- */

.gp-cabecera {
	background: var(--papel);
	border-bottom: 1px solid var(--regla);
	position: relative;
}
.gp-cabecera__fila {
	min-height: 4.5rem;
	gap: 0.75rem 2rem !important;
	padding-block: 0.5rem;
}
.gp-marca { margin: 0; line-height: 1; }
.gp-marca a {
	font-stretch: 70%;
	font-weight: 860;
	font-size: 1.75rem;
	letter-spacing: -0.015em;
	text-decoration: none;
	color: var(--tinta);
}
.gp-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.35rem 1.5rem;
	flex-wrap: wrap;
}
.gp-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	font-weight: 620;
	font-size: 1rem;
	text-decoration: none;
	color: var(--tinta);
}
.gp-nav a::before {
	content: "";
	width: 0.72rem;
	height: 0.72rem;
	background: var(--tinta);
	flex: none;
	transition: transform 250ms var(--salida);
}
.gp-nav a:hover::before,
.gp-nav a[aria-current]::before { transform: scale(1.35); background: var(--cat); }
.gp-nav a[aria-current] {
	text-decoration: underline;
	text-decoration-color: var(--cat);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.45em;
}
.gp-cabecera__buscar { margin-left: auto; }
.gp-cabecera .gp-nav { margin-left: auto; }
.gp-cabecera .wp-block-search__button {
	width: 44px;
	height: 44px;
	padding: 0;
	display: grid;
	place-items: center;
	background: var(--tinta);
	color: var(--papel);
	border: 0;
}
.gp-cabecera .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.gp-cabecera .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.gp-cabecera .wp-block-search__input {
	border: 1.5px solid var(--tinta);
	border-right: 0;
	background: var(--papel);
	font: inherit;
	font-size: 1rem;
	padding-inline: 0.75rem;
}

@media (max-width: 781px) {
	.gp-cabecera__fila { flex-wrap: wrap !important; }
	.gp-cabecera .gp-nav {
		order: 3;
		flex-basis: 100%;
		margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem));
		padding: 0 clamp(1rem, 4vw, 2.5rem);
		overflow-x: auto;
		scrollbar-width: none;
		border-top: 1px solid var(--regla-2);
	}
	.gp-cabecera .gp-nav { overflow: visible; }
	.gp-nav ul { flex-wrap: wrap; column-gap: 1.1rem; row-gap: 0; }
	.gp-nav a { white-space: nowrap; min-height: 40px; }
	.gp-cabecera__buscar { margin-left: auto; }
}

/* ---- Titulares de sección --------------------------------------------- */

.gp-titulo-seccion {
	font-stretch: var(--condensada);
	font-weight: 820;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
	letter-spacing: -0.015em;
	border-top: 4px solid var(--tinta);
	padding-top: 0.6rem;
	margin: 0 0 1.5rem;
}

/* ---- Portada: el mostrador y la estantería ----------------------------- */

.gp-portada { padding-bottom: var(--wp--preset--spacing--60); }

.gp-mostrador {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
	padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}
.gp-mostrador__titulo {
	font-stretch: 68%;
	font-weight: 850;
	font-size: clamp(3rem, 1.7rem + 5.4vw, 6rem);
	line-height: 0.9;
	letter-spacing: -0.025em;
	margin: 0 0 1.5rem;
	text-wrap: balance;
}
.gp-mostrador__intro {
	font-size: clamp(1.15rem, 1rem + 0.45vw, 1.35rem);
	line-height: 1.5;
	color: var(--tinta-2);
	max-width: 36ch;
	margin: 0 0 2rem;
}
.gp-mostrador__buscar .wp-block-search__inside-wrapper {
	border: 2px solid var(--tinta);
	padding: 0;
	background: var(--papel);
	box-shadow: var(--sombra-papel);
}
.gp-mostrador__buscar .wp-block-search__input {
	border: 0;
	font: inherit;
	font-size: 1.2rem;
	padding: 0 1.1rem;
	min-height: 3.75rem;
	background: transparent;
	color: var(--tinta);
}
.gp-mostrador__buscar .wp-block-search__input::placeholder { color: #6a7385; }
.gp-mostrador__buscar .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--tinta);
	color: var(--papel);
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0 1.6rem;
	transition: background-color 200ms ease;
}
.gp-mostrador__buscar .wp-block-search__button:hover { background: #2a3448; }
.gp-mostrador__sugerencias {
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--tinta-2);
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	align-items: baseline;
}
.gp-mostrador__sugerencias a { color: var(--tinta); font-weight: 600; }

/* Estantería: cada categoría es una caja; su altura crece con las guías que contiene. */
.gp-estante { position: relative; padding-top: 2rem; }
.gp-estante__cajas {
	list-style: none;
	margin: 0;
	padding: 0 var(--profundidad) 0 0;
	display: flex;
	align-items: flex-end;
	gap: calc(var(--profundidad) + 0.5rem);
	height: clamp(18rem, 26vw, 24rem);
}
.gp-estante { container: estante / inline-size; }
.gp-estante__caja {
	flex: 1 1 0;
	min-width: 0;
	height: calc(var(--alto) * 100%);
	position: relative;
	container-type: inline-size;
	transition: transform 350ms var(--salida);
}
.gp-estante__caja a {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0 0 0.9rem;
	background: var(--papel);
	color: var(--tinta);
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(18, 26, 43, 0.12);
}
.gp-estante__caja a > span:not(.gp-estante__nombre):not(.gp-estante__lado):not(.gp-estante__banda) { padding-inline: 0.8rem; }
/* Cara superior de la caja */
.gp-estante__caja a::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 100%;
	width: 100%;
	height: calc(var(--profundidad) * 0.8);
	background: #dfe4eb;
	transform-origin: bottom left;
	transform: skewX(-51deg);
	box-shadow: inset 0 0 0 1px rgba(18, 26, 43, 0.08);
}
/* Cara lateral */
.gp-estante__lado {
	position: absolute;
	top: 0;
	left: 100%;
	width: var(--profundidad);
	height: 100%;
	transform-origin: top left;
	transform: skewY(-39deg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 72%, #000) 0 42%, #c3cad4 42% 100%);
}
.gp-estante__banda { display: none; }
.gp-estante__nombre {
	display: flex;
	align-items: flex-end;
	min-height: 42%;
	padding: 0.8rem 0.8rem 0.85rem;
	margin-bottom: 0.35rem;
	background: var(--cat);
	color: var(--sobre);
	border-bottom: 3px solid color-mix(in srgb, var(--cat) 70%, #000);
	font-stretch: 64%;
	font-weight: 850;
	font-size: clamp(1rem, 14.5cqi, 2rem);
	font-stretch: 58% !important;
	line-height: 0.95;
	letter-spacing: -0.01em;
	hyphens: manual;
}

.gp-estante__uso {
	font-size: 0.8rem;
	line-height: 1.3;
	color: var(--tinta-2);
}
.gp-estante__cuenta {
	margin-top: auto !important;
	font-weight: 700;
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	color: var(--cat-t);
	border-top: 1px solid var(--regla);
	padding-top: 0.4rem;
	margin-top: 0.2rem;
}
.gp-estante__balda {
	height: 14px;
	margin-right: calc(-1 * var(--profundidad));
	background: var(--tinta);
	box-shadow: 0 16px 22px -12px rgba(18, 26, 43, 0.45);
	position: relative;
}
.gp-estante__balda::before {
	content: "";
	position: absolute;
	inset: -6px 0 auto 0;
	height: 6px;
	background: #2a3448;
}
.gp-estante__caja:hover,
.gp-estante__caja:focus-within { transform: translateY(-12px); }
.gp-estante__caja:hover .gp-estante__nombre { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

@media (max-width: 1100px) and (min-width: 782px) {
	.gp-estante__uso { display: none; }
}

@media (max-width: 1023px) {
	.gp-mostrador { grid-template-columns: 1fr; align-items: start; }
	.gp-mostrador__intro { max-width: 52ch; }
}
@container estante (max-width: 520px) {
	.gp-estante__cajas {
		display: grid;
		grid-template-columns: 1fr 1fr;
		height: auto;
		align-items: end;
		row-gap: 3rem;
		column-gap: calc(var(--profundidad) + 1rem);
	}
	.gp-estante__caja { height: calc(var(--alto) * 16rem); min-height: 12rem; }
	.gp-estante__nombre { font-size: clamp(1.3rem, 16cqi, 1.9rem); }
	.gp-estante__caja::after {
		content: "";
		position: absolute;
		left: -0.75rem;
		right: calc(-1 * var(--profundidad) - 0.75rem);
		bottom: -14px;
		height: 14px;
		background: var(--tinta);
		box-shadow: 0 12px 18px -10px rgba(18, 26, 43, 0.4);
	}
	.gp-estante__balda { display: none; }
}

/* ---- Portada: últimos prospectos --------------------------------------- */

.gp-ultimos { margin-top: var(--wp--preset--spacing--50); }

.gp-banda,
.gp-fila__cat { margin: 0; }

.gp-destacado .wp-block-post-template,
.gp-filas .wp-block-post-template { list-style: none; margin: 0; padding: 0; }

.gp-destacado__caja {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	background: var(--papel);
	box-shadow: var(--sombra-papel);
	margin-right: var(--profundidad);
	position: relative;
}
.gp-destacado__caja::after {
	content: "";
	position: absolute;
	top: 0;
	left: 100%;
	width: var(--profundidad);
	height: 100%;
	transform-origin: top left;
	transform: skewY(-39deg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 72%, #000) 0 3.1rem, #c3cad4 3.1rem);
}
.gp-destacado__foto { margin: 0; }
.gp-destacado__foto img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.gp-destacado__caja { align-items: start; }
.gp-destacado__cara { align-self: stretch; }
.gp-destacado__cara {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.gp-banda {
	margin: 0 calc(-1 * clamp(1.25rem, 3vw, 2.5rem)) 0.75rem;
	background: var(--cat);
	padding: 0.85rem clamp(1.25rem, 3vw, 2.5rem);
	min-height: 3.1rem;
	font-weight: 720;
	font-stretch: 85%;
}
.gp-banda a { color: var(--sobre); text-decoration: none; }
.gp-banda .wp-block-post-terms__separator { display: none; }
.gp-destacado__titulo {
	margin: 0;
	font-stretch: 70%;
	font-weight: 840;
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.gp-destacado__titulo a { text-decoration: none; }
.gp-destacado__titulo a:hover { text-decoration: underline; text-decoration-color: var(--cat); text-decoration-thickness: 3px; }
.gp-destacado__resumen { color: var(--tinta-2); font-size: 1.1rem; margin: 0; }
.gp-destacado__resumen p { margin: 0; }
.gp-boton { margin-top: auto; }
a.gp-boton,
.gp-boton a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 1.4rem;
	background: var(--tinta);
	color: var(--papel);
	font-weight: 700;
	text-decoration: none;
	align-self: flex-start;
	transition: background-color 200ms ease;
}
a.gp-boton:hover { background: var(--cat); color: var(--sobre); }

/* Filas: listado tipo vademécum */
.gp-filas { margin-top: 2.5rem; }
.gp-fila {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr) 6.5rem;
	grid-template-areas: "cat titulo foto" "cat resumen foto";
	column-gap: 1.75rem;
	row-gap: 0.35rem;
	align-items: start;
	padding: 1.35rem 0.25rem;
	border-top: 1px solid var(--regla);
	position: relative;
	transition: background-color 200ms ease;
}
.gp-filas li:last-child .gp-fila { border-bottom: 1px solid var(--regla); }
.gp-fila:hover { background: var(--papel); }
.gp-fila__cat {
	grid-area: cat;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 650;
	font-size: 0.95rem;
	padding-top: 0.3rem;
}
.gp-fila__cat a { color: var(--tinta-2); text-decoration: none; }
.gp-fila__cat a:hover { text-decoration: underline; }
.gp-fila__cat .wp-block-post-terms__separator { display: none; }
.gp-fila__titulo {
	grid-area: titulo;
	margin: 0;
	font-stretch: 76%;
	font-weight: 780;
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
}
.gp-fila__titulo a { text-decoration: none; }
.gp-fila__titulo a::after { content: ""; position: absolute; inset: 0; }
.gp-fila:hover .gp-fila__titulo a { text-decoration: underline; text-decoration-color: var(--cat); text-decoration-thickness: 2px; }
.gp-fila__resumen { grid-area: resumen; margin: 0; color: var(--tinta-2); font-size: 1rem; line-height: 1.5; }
.gp-fila__resumen p { margin: 0; max-width: 62ch; }
.gp-fila__foto { grid-area: foto; margin: 0; }
.gp-fila__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gp-fila__cat a { position: relative; z-index: 1; }

@media (max-width: 781px) {
	.gp-destacado__caja { grid-template-columns: 1fr; }
	.gp-fila {
		grid-template-columns: minmax(0, 1fr) 5rem;
		grid-template-areas: "titulo foto" "cat foto" "resumen resumen";
		column-gap: 1rem;
	}
	.gp-fila__resumen { display: none; }
}

/* ---- Vademécum --------------------------------------------------------- */

.gp-indice { margin-top: var(--wp--preset--spacing--60); }
.gp-indice__cabeza p { color: var(--tinta-2); max-width: 60ch; }
.gp-leyenda {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-right: 0.75rem;
	color: var(--tinta);
	font-weight: 600;
	white-space: nowrap;
}
.gp-leyenda::before { content: ""; width: 0.7rem; height: 0.7rem; background: var(--cat); }
.gp-leyenda.is-salud { --cat: #1f4fd1; }
.gp-leyenda.is-cuidados { --cat: #00796b; }
.gp-leyenda.is-comportamiento { --cat: #6a3fc9; }
.gp-leyenda.is-alimentacion { --cat: #f2a900; }

.gp-vademecum {
	columns: 3 18rem;
	column-gap: 3rem;
	column-rule: 1px solid var(--regla);
	margin-top: 2rem;
}
.gp-vademecum__grupo {
	break-inside: avoid;
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	margin-bottom: 1.5rem;
}
.gp-vademecum__letra {
	margin: 0;
	font-stretch: 62%;
	font-weight: 880;
	font-size: 2.25rem;
	line-height: 1;
	color: var(--tinta);
}
.gp-vademecum ul { list-style: none; margin: 0; padding: 0; }
.gp-vademecum li { border-top: 1px solid var(--regla-2); }
.gp-vademecum li:first-child { border-top: 0; }
.gp-vademecum a {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 0.5rem 0 0.6rem;
	text-decoration: none;
	color: var(--tinta);
}
.gp-vademecum__titulo { font-weight: 600; line-height: 1.3; }
.gp-vademecum__meta { font-size: 0.8rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.gp-vademecum a:hover .gp-vademecum__titulo { text-decoration: underline; text-decoration-color: var(--cat); text-decoration-thickness: 2px; }

/* ---- Guía: la caja y la hoja ------------------------------------------ */

.gp-guia { padding-block: clamp(1.75rem, 4vw, 3.5rem) var(--wp--preset--spacing--60); }
.gp-guia__rejilla {
	display: grid;
	grid-template-columns: minmax(0, 48rem) minmax(15rem, 19rem);
	justify-content: center;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}
.gp-guia__cabeza {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: stretch;
}
@media (min-width: 1024px) {
	.gp-guia__cabeza .gp-guia__foto { position: relative; min-height: 16rem; }
	.gp-guia__cabeza .gp-guia__foto img { position: absolute; inset: 0; }
}
.gp-guia__principal { min-width: 0; }
.gp-guia__lateral { position: sticky; top: 1.5rem; }
.gp-solo-movil { display: none; }

@media (max-width: 1023px) {
	.gp-guia__rejilla { grid-template-columns: minmax(0, 48rem); }
	.gp-guia__cabeza { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
	.gp-guia__foto img { aspect-ratio: 3 / 1 !important; height: auto !important; }
	.gp-guia__lateral { display: none; }
	.gp-solo-movil { display: block; }
}

.gp-caja {
	position: relative;
	background: var(--papel);
	margin: calc(var(--profundidad) * 0.8) var(--profundidad) 0 0;
	box-shadow: var(--sombra-papel);
}
.gp-caja::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 100%;
	width: 100%;
	height: calc(var(--profundidad) * 0.8);
	background: #dfe4eb;
	transform-origin: bottom left;
	transform: skewX(-51deg);
}
.gp-caja::after {
	content: "";
	position: absolute;
	top: 0;
	left: 100%;
	width: var(--profundidad);
	height: 100%;
	transform-origin: top left;
	transform: skewY(-39deg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 72%, #000) 0 3rem, #c3cad4 3rem);
}
.gp-caja__banda {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	min-height: 3rem;
	padding: 0.55rem clamp(1.1rem, 3vw, 2rem);
	background: var(--cat);
	color: var(--sobre);
	font-weight: 720;
	font-stretch: 85%;
}
.gp-caja__banda a { color: var(--sobre); text-decoration: none; }
.gp-caja__banda a:hover { text-decoration: underline; }
.gp-caja__ref { font-variant-numeric: tabular-nums; font-weight: 600; opacity: 0.92; }
.gp-caja__cara { padding: clamp(1.25rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2rem) clamp(1.1rem, 2.5vw, 1.5rem); }
.gp-caja__titulo {
	margin: 0;
	font-stretch: 68%;
	font-weight: 850;
	font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4.25rem);
	line-height: 0.94;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.gp-caja__uso {
	margin: 1rem 0 0;
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
	line-height: 1.45;
	color: var(--tinta-2);
	max-width: 52ch;
}
.gp-caja__pie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--regla);
	font-size: 0.95rem;
	font-weight: 600;
}
.gp-caja__especies,
.gp-caja__lectura { display: inline-flex; align-items: center; gap: 0.4rem; }
.gp-caja__especies .gp-icono { width: 30px; height: 30px; }
.gp-caja__especies .gp-icono + .gp-icono { margin-left: -0.15rem; }
.gp-caja__lectura .gp-icono { width: 20px; height: 20px; color: var(--tinta-2); }
.gp-barras { width: 7.5rem; height: 2.1rem; margin-left: auto; color: var(--tinta); }

.gp-caja--categoria .gp-caja__titulo { font-size: clamp(3rem, 1.8rem + 5vw, 6rem); }
.gp-archivo__cabeza { padding-block: clamp(1.75rem, 4vw, 3.5rem) 1rem; }
.gp-archivo__cabeza .gp-caja { max-width: 52rem; }
.gp-archivo__cabeza--simple { max-width: 52rem; }
.gp-archivo__titulo {
	font-stretch: 68%;
	font-weight: 850;
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
	text-wrap: balance;
}
.gp-archivo { padding-bottom: var(--wp--preset--spacing--60); }
.gp-archivo .gp-filas { margin-top: 1rem; }

.gp-guia__foto { margin: calc(var(--profundidad) * 0.8) 0 0; box-shadow: var(--sombra-papel); }
.gp-guia__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-caja__lea { margin: 1rem 0 0; font-size: 0.95rem; line-height: 1.45; color: var(--tinta-2); }
.gp-caja__lea strong { color: var(--tinta); }

/* La hoja: papel fino con los pliegues del prospecto */
.gp-hoja {
	position: relative;
	background-color: var(--papel);
	background-image:
		repeating-linear-gradient(180deg, transparent 0 calc(30rem - 2px), rgba(18, 26, 43, 0.035) calc(30rem - 2px) calc(30rem - 1px), rgba(255, 255, 255, 0.9) calc(30rem - 1px) 30rem);
	box-shadow: var(--sombra-papel);
	padding: clamp(1.4rem, 4.5vw, 3.25rem);
	margin-top: 0;
}
.gp-hoja__lea {
	margin: 0 0 1.75rem;
	padding: 0.9rem 1.1rem;
	border: 1.5px solid var(--tinta);
	font-size: 1rem;
	line-height: 1.5;
	max-width: 68ch;
}
.gp-hoja--pagina { margin-block: clamp(1.75rem, 4vw, 3.5rem) var(--wp--preset--spacing--60); max-width: 48rem; margin-inline: auto; }
.gp-pagina__titulo {
	margin: 0 0 1.5rem;
	font-stretch: 68%;
	font-weight: 850;
	font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4rem);
	line-height: 0.95;
	letter-spacing: -0.02em;
}

/* ---- El texto del prospecto ------------------------------------------- */

.gp-prospecto { max-width: 68ch; }
.gp-prospecto > * + * { margin-block-start: 0; }
.gp-prospecto p { margin: 0 0 1em; }
.gp-entrada > p:first-child {
	font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.35rem);
	line-height: 1.5;
}
.gp-seccion { margin-top: 2.75rem; }
.gp-seccion h2 {
	display: flex;
	align-items: baseline;
	gap: 0.55em;
	margin: 0 0 0.75rem;
	font-stretch: 76%;
	font-weight: 800;
	font-size: clamp(1.55rem, 1.25rem + 1vw, 2rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.gp-num {
	color: var(--cat-t);
	font-variant-numeric: tabular-nums;
	flex: none;
}
.gp-prospecto h3 {
	margin: 1.75rem 0 0.5rem;
	font-stretch: 82%;
	font-weight: 750;
	font-size: 1.3rem;
	line-height: 1.2;
}
.gp-prospecto ul {
	list-style: none;
	padding-left: 1.5rem;
	margin: 0 0 1.25em;
}
.gp-prospecto ul li { position: relative; margin-bottom: 0.45em; }
.gp-prospecto ul li::before {
	content: "–";
	position: absolute;
	left: -1.35rem;
	color: var(--cat-t);
	font-weight: 800;
}
.gp-prospecto ol {
	list-style: none;
	counter-reset: paso;
	padding: 0;
	margin: 0 0 1.25em;
}
.gp-prospecto ol li {
	counter-increment: paso;
	position: relative;
	padding-left: 2.75rem;
	margin-bottom: 0.9em;
	min-height: 2rem;
}
.gp-prospecto ol li::before {
	content: counter(paso);
	position: absolute;
	left: 0;
	top: -0.05rem;
	width: 1.9rem;
	height: 1.9rem;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--tinta);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
}
.gp-prospecto a { text-decoration-color: var(--cat); text-decoration-thickness: 2px; }
.gp-prospecto strong { font-weight: 700; }
.gp-prospecto hr { border: 0; border-top: 1px solid var(--regla); margin: 2.5rem 0; }
.gp-prospecto .wp-block-separator { opacity: 1; }

/* Tabla de dosis */
.gp-prospecto .wp-block-table { margin: 1.5rem 0 2rem; overflow-x: auto; }
.gp-prospecto table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	font-size: 1rem;
	border-top: 3px solid var(--tinta);
}
.gp-prospecto th,
.gp-prospecto td {
	border: 0;
	border-bottom: 1px solid var(--regla);
	padding: 0.65rem 0.9rem 0.65rem 0;
	text-align: left;
	vertical-align: top;
}
.gp-prospecto thead th {
	font-stretch: 80%;
	font-weight: 750;
	border-bottom: 2px solid var(--tinta);
	line-height: 1.25;
}
.gp-prospecto tbody tr:nth-child(even) td { background: rgba(18, 26, 43, 0.025); }

/* Cuándo ir al veterinario: advertencia recuadrada */
.gp-seccion.is-alerta {
	border: 2px solid var(--alerta);
	background: var(--alerta-fondo);
	padding: clamp(1.1rem, 3vw, 1.75rem);
	margin-inline: clamp(-1.75rem, -2vw, -0.5rem);
}
.gp-seccion.is-alerta h2 { color: var(--alerta-t); }
.gp-seccion.is-alerta .gp-num { color: var(--alerta-t); }
.gp-alerta-icono {
	width: 1.05em;
	height: 1.05em;
	color: var(--alerta);
	flex: none;
	align-self: center;
	margin-right: -0.15em;
}
.gp-seccion.is-alerta ul li::before { color: var(--alerta); }
.gp-seccion.is-alerta > :last-child { margin-bottom: 0; }

.gp-aviso-final {
	margin-top: 2.5rem !important;
	padding-top: 1rem;
	border-top: 1px solid var(--regla);
	color: var(--tinta-2);
	font-size: 0.925rem !important;
	line-height: 1.5;
}
.gp-aviso-final em { font-style: normal; }
.gp-aviso-final strong { color: var(--tinta); }

.gp-cierre {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 3px solid var(--tinta);
	font-size: 0.95rem;
	color: var(--tinta-2);
}
.gp-cierre p { margin: 0 0 0.35rem; }
.gp-cierre__revision { color: var(--tinta); font-weight: 650; }

/* ---- Contenido del prospecto (índice) ---------------------------------- */

.gp-contenido {
	background: var(--papel);
	font-size: 0.975rem;
}
.gp-guia__lateral .gp-contenido {
	box-shadow: var(--sombra-papel);
	padding: 1.25rem 1.25rem 0.75rem;
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
}
.gp-solo-movil .gp-contenido {
	border: 1.5px solid var(--tinta);
	padding: 0 1rem;
	margin: 0 0 1.75rem;
}
.gp-contenido summary {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	font-stretch: 80%;
	font-weight: 780;
	font-size: 1.15rem;
	cursor: pointer;
	list-style: none;
}
.gp-contenido summary::-webkit-details-marker { display: none; }
.gp-contenido summary .gp-icono { width: 22px; height: 22px; }
.gp-contenido summary::after {
	content: "";
	margin-left: auto;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 250ms var(--salida);
}
.gp-contenido details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.gp-guia__lateral .gp-contenido summary { pointer-events: none; }
.gp-guia__lateral .gp-contenido summary::after { display: none; }
.gp-contenido ol { list-style: none; margin: 0.25rem 0 0.75rem; padding: 0; }
.gp-contenido li { border-top: 1px solid var(--regla-2); }
.gp-contenido a {
	display: grid;
	grid-template-columns: 1.9rem minmax(0, 1fr);
	align-items: baseline;
	padding: 0.5rem 0;
	color: var(--tinta-2);
	text-decoration: none;
	line-height: 1.3;
	transition: color 200ms ease;
}
.gp-contenido a .gp-num {
	display: inline-grid;
	place-items: center;
	width: 1.45rem;
	height: 1.45rem;
	font-size: 0.85rem;
	font-weight: 750;
	transition: background-color 250ms var(--salida), color 250ms var(--salida);
}
.gp-contenido a:hover { color: var(--tinta); }
.gp-contenido a[aria-current] { color: var(--tinta); font-weight: 650; }
.gp-contenido a[aria-current] .gp-num { background: var(--cat); color: var(--sobre); }
.gp-contenido li.is-alerta a { color: var(--alerta-t); }
.gp-contenido li.is-alerta a .gp-num { color: var(--alerta-t); }
.gp-contenido li.is-alerta a[aria-current] .gp-num { background: var(--alerta); color: #fff; }

/* ---- Más prospectos ---------------------------------------------------- */

.gp-relacion {
	max-width: var(--wp--style--global--wide-size, 78rem);
	margin: var(--wp--preset--spacing--60) auto 0;
}
.gp-relacion h2 {
	font-stretch: var(--condensada);
	font-weight: 820;
	font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
	letter-spacing: -0.015em;
	border-top: 4px solid var(--tinta);
	padding-top: 0.6rem;
	margin: 0 0 1.5rem;
}
.gp-relacion ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.25rem;
}
.gp-relacion a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--papel);
	box-shadow: var(--sombra-papel);
	text-decoration: none;
	color: var(--tinta);
	transition: transform 300ms var(--salida), box-shadow 300ms var(--salida);
}
.gp-relacion a:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(18, 26, 43, 0.08), 0 30px 50px -28px rgba(18, 26, 43, 0.45); }
.gp-relacion__banda {
	background: var(--cat);
	color: var(--sobre);
	padding: 0.5rem 1rem;
	font-weight: 700;
	font-stretch: 85%;
	font-size: 0.95rem;
}
.gp-relacion__titulo {
	padding: 1rem 1rem 1.25rem;
	font-stretch: 74%;
	font-weight: 800;
	font-size: 1.4rem;
	line-height: 1.05;
	flex: 1;
}
.gp-relacion__ref {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.65rem 1rem;
	border-top: 1px solid var(--regla);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--tinta-2);
	font-variant-numeric: tabular-nums;
}
.gp-relacion__ref .gp-icono { width: 20px; height: 20px; color: var(--tinta); transition: transform 300ms var(--salida); }
.gp-relacion a:hover .gp-icono { transform: translateX(4px); }

/* ---- Búsqueda, paginación y vacíos ------------------------------------- */

.gp-busqueda .gp-mostrador__buscar { max-width: 40rem; margin-top: 0.5rem; }
.gp-paginacion { margin-top: 2rem; font-weight: 650; gap: 1rem; }
.gp-paginacion a { text-decoration: none; }
.gp-paginacion .page-numbers.current { background: var(--tinta); color: var(--papel); padding: 0.2rem 0.6rem; }
.gp-vacio {
	border: 1.5px solid var(--tinta);
	background: var(--papel);
	padding: 1.25rem 1.5rem;
	max-width: 60ch;
}

/* ---- Espacios para monetizar (vacíos hasta que se usen) ---------------- */

.gp-anuncio:empty { display: none; }
.gp-anuncio:not(:empty) {
	margin: 0 0 2rem;
	min-height: 280px;
	padding-top: 1.4rem;
	position: relative;
	border-top: 1px solid var(--regla);
	border-bottom: 1px solid var(--regla);
}
.gp-anuncio:not(:empty)::before {
	content: "Publicidad";
	position: absolute;
	top: 0.25rem;
	left: 0;
	font-size: 0.75rem;
	color: var(--tinta-2);
}

/* Patrón "Producto recomendado" (afiliados) */
.gp-producto {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	border: 1.5px solid var(--tinta);
	background: var(--papel);
	padding: 1.25rem;
	margin: 2rem 0;
}
.gp-producto .wp-block-image { margin: 0; }
.gp-producto h3,
.gp-producto .gp-producto__nombre { margin: 0 0 0.35rem; font-stretch: 78%; font-weight: 800; font-size: 1.35rem; }
.gp-producto p { margin: 0 0 0.75rem; font-size: 1rem; }
.gp-producto .gp-producto__nota { font-size: 0.8rem; color: var(--tinta-2); margin: 0.75rem 0 0; }
.gp-producto .wp-block-button__link { border-radius: 0; font-weight: 700; }
@media (max-width: 560px) {
	.gp-producto { grid-template-columns: 1fr; }
}

/* ---- Pie: el reverso de la caja --------------------------------------- */

.gp-pie {
	background: var(--tinta);
	color: #d7dce5;
	margin-top: 0;
	padding-block: clamp(2.5rem, 5vw, 4rem);
	font-size: 0.95rem;
}
.gp-pie a { color: #fff; }
.gp-pie__rejilla {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto;
	gap: 2rem 3rem;
	align-items: start;
}
.gp-pie .gp-marca a { color: #fff; }
.gp-pie__lema { margin: 0.75rem 0 0; max-width: 30ch; }
.gp-pie__aviso p { margin: 0; max-width: 52ch; line-height: 1.55; }
.gp-pie__aviso strong { color: #fff; }
.gp-legal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.gp-legal a { text-decoration: none; }
.gp-legal a:hover { text-decoration: underline; }
.gp-barras-bloque { display: grid; justify-items: center; gap: 0.35rem; color: #fff; }
.gp-barras-bloque .gp-barras { width: 11rem; height: 3.25rem; margin: 0; background: #fff; color: var(--tinta); padding: 0.4rem 0.6rem; box-sizing: content-box; }
.gp-barras-bloque span { font-size: 0.75rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
	.gp-pie__rejilla { grid-template-columns: 1fr 1fr; }
	.gp-pie__aviso { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
	.gp-pie__rejilla { grid-template-columns: 1fr; }
	.gp-pie__aviso { grid-row: auto; }
	.gp-barras-bloque { justify-items: start; }
}

/* ---- Movimiento -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Palabras separadas en los titulares condensados */
.gp-mostrador__titulo, .gp-caja__titulo, .gp-destacado__titulo, .gp-archivo__titulo, .gp-pagina__titulo,
.gp-titulo-seccion, .gp-estante__nombre, .gp-fila__titulo, .gp-relacion__titulo, .gp-seccion h2, .gp-relacion h2 {
	word-spacing: 0.12em;
}

/* Móvil estrecho: la respuesta antes que nada (al final para ganar a las reglas base) */
@media (max-width: 560px) {
	.gp-guia__cabeza .gp-guia__foto { display: none; }
	.gp-caja__uso { display: none; }
	.gp-caja__cara { padding-top: 1rem; }
	.gp-caja__titulo { font-size: clamp(2rem, 1.4rem + 3vw, 2.5rem); }
	.gp-caja__pie { flex-wrap: nowrap; gap: 0.75rem; margin-top: 1rem; padding-top: 0.75rem; font-size: 0.85rem; }
	.gp-caja__lectura .gp-icono { display: none; }
	.gp-caja__pie .gp-barras { width: 4.5rem; height: 1.6rem; flex: none; }
	.gp-caja__lea { margin-top: 0.75rem; font-size: 0.85rem; }
	.gp-guia { padding-top: 1.25rem; }
	.gp-cabecera .gp-nav { overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
	.gp-nav ul { flex-wrap: nowrap; }
}
