@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700;800;900&family=Montserrat:wght@400;600;700&display=swap');

.site-footer {
	--oz-f-bg: #0c1024;
	--oz-f-outline: #8fa8c8;
	--oz-f-chevron: #c9d8ef;
	/* Trazo doble blanco del headline (exterior tenue + interior sólido). */
	--oz-f-head-stroke-outer: rgba(255, 255, 255, 0.55);
	--oz-f-head-stroke-inner: #ffffff;
	/* Scrollbar: tonos azul claro sobre el fondo oscuro del footer. */
	--oz-f-scroll-track: rgba(255, 255, 255, 0.08);
	--oz-f-scroll-thumb: rgba(201, 216, 239, 0.55);
	--oz-f-scroll-thumb-hover: rgba(201, 216, 239, 0.85);

	margin-top: 0;
	padding: 0;
	border: none;
	background: var(--oz-footer-bg, var(--oz-f-bg));
	color: var(--oz-footer-text, #ffffff);
	font-family: 'Montserrat', var(--OZ-Font-Base, system-ui, sans-serif);
	text-align: left;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 2.5rem;
	align-items: start;
	width: 100%;
	max-width: var(--OZ-Container-PC, 1400px);
	margin: 0 auto;
	padding: 2.5rem var(--container-padding, 1.25rem) 3rem;
	box-sizing: border-box;
}

.site-footer__col--pages {
	padding-left: 2rem;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

/*
 * Título hueco "¿POR QUÉ ELEGIR..." del footer.
 * - Texto en mayúsculas (text-transform: uppercase)
 * - Sin relleno (color: transparent)
 * - Solo contorno blanco vía -webkit-text-stroke
 * - Tipografía sans-serif moderna (Inter / system-ui)
 * - Responsive con font-size por clamp y breakpoints específicos
 */
.site-footer__hollow-title {
	display: block;
	margin: 0 0 1.5rem;
	padding: 0;
	width: auto;
	max-width: none;
	flex: none;
	font-size: clamp(1.4rem, 2.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.015em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: visible;
	color: transparent;
	-webkit-text-stroke: 1.5px #ffffff;
}

/* La columna que lo contiene no debe recortar el título ni forzar wrap */
.site-footer__col--brand {
	overflow: visible;
	min-width: 0;
}

/* Fallback: navegadores sin soporte de -webkit-text-stroke */
@supports not (-webkit-text-stroke: 1px white) {
	.site-footer__hollow-title {
		color: rgba(255, 255, 255, 0.8);
		-webkit-text-stroke: 0;
	}
}

/* Tablet */
@media (max-width: 991px) {
	.site-footer__hollow-title {
		font-size: clamp(1.25rem, 3.2vw, 2rem);
		-webkit-text-stroke-width: 1.25px;
	}
}

/* Móvil */
@media (max-width: 575px) {
	.site-footer__hollow-title {
		font-size: clamp(1rem, 5.4vw, 1.65rem);
		-webkit-text-stroke-width: 1px;
		letter-spacing: 0.01em;
	}
}

.site-footer__headline__layer {
	display: block;
	margin: 0;
	padding: 0;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.site-footer__headline__layer--outer {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	-webkit-text-stroke: 3px var(--oz-f-head-stroke-outer);
	paint-order: stroke fill;
	pointer-events: none;
}

.site-footer__headline__layer--inner {
	position: relative;
	z-index: 2;
	-webkit-text-stroke: 1.25px var(--oz-f-head-stroke-inner);
	paint-order: stroke fill;
}

@supports not (-webkit-text-stroke: 1px white) {
	.site-footer__headline__layer--outer {
		display: none;
	}

	.site-footer__headline__layer--inner {
		color: #ffffff;
		-webkit-text-fill-color: #ffffff;
		-webkit-text-stroke: 0;
	}
}

.site-footer__brand {
	margin: 0 0 1.25rem;
	line-height: 0;
	max-width: 170px;
}

.site-footer__logo-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	color: inherit;
	max-width: 170px;
}

.site-footer__logo-link:hover {
	opacity: 0.92;
	text-decoration: none;
}

/* WordPress envuelve el logo en .custom-logo-link e inyecta width/height inline en <img>.
   Forzamos el tamaño con !important para sobrescribir esos atributos. */
.site-footer__brand .custom-logo-link,
.site-footer__logo-link .custom-logo-link {
	display: inline-block;
	line-height: 0;
	max-width: 170px;
}

.site-footer__brand img.custom-logo,
.site-footer__logo-link img.custom-logo,
.site-footer__brand .custom-logo-link img,
.site-footer__logo-link .custom-logo-link img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 170px !important;
	max-height: 56px !important;
	object-fit: contain;
}

.site-footer__logo-link--text {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	line-height: 1.2;
}

.site-footer__logo-name {
	font-size: 1.35rem;
	font-weight: 700;
	font-style: italic;
	color: #4a6fd4;
}

.site-footer__logo-tag {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #ffffff;
	background: #2e3192;
	border-radius: 2px;
	font-style: normal;
}

.site-footer__intro {
	margin: 0;
	max-width: 36rem;
	font-size: 0.9rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
}

.site-footer__title {
	margin: 0 0 1.35rem;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #ffffff;
}

.site-footer__nav .site-footer__link-list,
.site-footer__link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__link-list li {
	position: relative;
	margin: 0 0 0.85rem;
	padding-left: 1.9rem;
	line-height: 1.4;
}

/* Chevron doble (»). Unicode U+00BB, renderiza como la doble flecha elegante
   visible en la maqueta. Se usa `font-family: Arial` para garantizar el glifo
   aunque la fuente Montserrat base no lo soporte bien. */
.site-footer__link-list li::before {
	content: '\00BB';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	color: var(--oz-f-chevron);
	font-family: 'Arial', sans-serif;
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.site-footer__link-list a {
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: opacity .2s ease, color .2s ease;
}

.site-footer__link-list a:hover {
	color: #ffffff;
	text-decoration: none;
	opacity: 0.85;
}

/* Columna categorías con scroll si hay muchas */
.site-footer__cats-scroll {
	max-height: 15rem;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.9rem;
	scrollbar-width: thin;
	scrollbar-color: var(--oz-f-scroll-thumb) var(--oz-f-scroll-track);
}

/* Scrollbar WebKit (Chrome, Safari, Edge) — estilo azulado visible sobre
   el fondo oscuro del footer, con track y thumb redondeados. */
.site-footer__cats-scroll::-webkit-scrollbar {
	width: 10px;
}

.site-footer__cats-scroll::-webkit-scrollbar-track {
	background: var(--oz-f-scroll-track);
	border-radius: 10px;
}

.site-footer__cats-scroll::-webkit-scrollbar-thumb {
	background: var(--oz-f-scroll-thumb);
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

.site-footer__cats-scroll::-webkit-scrollbar-thumb:hover {
	background: var(--oz-f-scroll-thumb-hover);
	background-clip: padding-box;
	border: 2px solid transparent;
}

.site-footer__cats-empty {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.65);
}

/*
 * Responsive footer (alineado con style.css del tema):
 * — móvil:   max-width 767px
 * — tablet:  768px – 991px
 * — laptop:  992px – 1199px
 * — desktop: ≥ 1200px (reglas base arriba)
 */

/* Tablet: 2 columnas (marca arriba a ancho completo) */
@media (max-width: 991px) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem 1.75rem;
		padding: 2.25rem var(--container-padding, 1.25rem) 2.75rem;
	}

	.site-footer__col--brand {
		grid-column: 1 / -1;
	}

	.site-footer__col--pages {
		padding-left: 0;
		border-left: none;
		padding-top: 1.5rem;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.site-footer__col--cats {
		padding-top: 1.5rem;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.site-footer__headline {
		font-size: clamp(1.1rem, 3vw, 1.5rem);
	}

	.site-footer__title {
		font-size: 1.1rem;
		margin-bottom: 1.1rem;
	}

	.site-footer__brand,
	.site-footer__logo-link,
	.site-footer__brand .custom-logo-link,
	.site-footer__logo-link .custom-logo-link {
		max-width: 150px;
	}

	.site-footer__brand img.custom-logo,
	.site-footer__logo-link img.custom-logo,
	.site-footer__brand .custom-logo-link img,
	.site-footer__logo-link .custom-logo-link img {
		max-width: 150px !important;
		max-height: 50px !important;
	}
}

/* Laptop estrecho: un poco más de aire que tablet de 2 cols */
@media (min-width: 992px) and (max-width: 1199px) {
	.site-footer__inner {
		gap: 1.85rem 2rem;
		padding: 2.35rem var(--container-padding, 1.25rem) 2.85rem;
	}

	.site-footer__headline {
		font-size: clamp(1.15rem, 2.2vw, 1.55rem);
	}

	.site-footer__title {
		font-size: 1.1rem;
	}

	.site-footer__intro {
		font-size: 0.88rem;
	}

	.site-footer__link-list a {
		font-size: 0.9rem;
	}

	.site-footer__cats-scroll {
		max-height: 14rem;
	}
}

/* Móvil: una columna, tipografías y espaciados reducidos */
@media (max-width: 767px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1.75rem var(--container-padding, 1.1rem) 2.25rem;
	}

	.site-footer__headline {
		font-size: clamp(1rem, 4.2vw, 1.35rem);
		letter-spacing: 0.035em;
		margin-bottom: 1.15rem;
	}

	.site-footer__headline__layer--outer {
		-webkit-text-stroke: 2.2px var(--oz-f-head-stroke-outer);
	}

	.site-footer__headline__layer--inner {
		-webkit-text-stroke: 0.9px var(--oz-f-head-stroke-inner);
	}

	.site-footer__brand,
	.site-footer__logo-link,
	.site-footer__brand .custom-logo-link,
	.site-footer__logo-link .custom-logo-link {
		max-width: 140px;
	}

	.site-footer__brand img.custom-logo,
	.site-footer__logo-link img.custom-logo,
	.site-footer__brand .custom-logo-link img,
	.site-footer__logo-link .custom-logo-link img {
		max-width: 140px !important;
		max-height: 46px !important;
	}

	.site-footer__logo-name {
		font-size: 1.15rem;
	}

	.site-footer__intro {
		font-size: 0.85rem;
		line-height: 1.6;
	}

	.site-footer__title {
		font-size: 1.05rem;
		margin-bottom: 1rem;
	}

	.site-footer__link-list li {
		padding-left: 1.65rem;
		margin-bottom: 0.7rem;
	}

	.site-footer__link-list li::before {
		font-size: 1em;
	}

	.site-footer__link-list a {
		font-size: 0.88rem;
	}

	.site-footer__cats-scroll {
		max-height: 13rem;
		padding-right: 0.75rem;
	}

	.site-footer__cats-scroll::-webkit-scrollbar {
		width: 8px;
	}

	.site-footer__col--pages,
	.site-footer__col--cats {
		padding-top: 1.15rem;
	}
}

.site-footer__signature {
	width: 100%;
	margin-top: 1.5rem;
	padding: 0.75rem 1rem;
	text-align: center;
}

.site-footer__signature p {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.18);
	line-height: 1.4;
}

.site-footer__signature a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__signature a:hover,
.site-footer__signature a:focus-visible {
	color: rgba(255, 255, 255, 0.55);
	outline: none;
}
