/*
Theme Name: Protectora Animales
Author: NeoXite (jose santiago perez nuñez)
Description: Tema personalizado para protectoras de animales sin ánimo de lucro. Incluye fichas de animales, generador de contratos PDF, test de compatibilidad, Kanban, Dark Mode y Media Folders.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: protectora
Tags: animals, pets, adoption, protectora, blog, one-column, custom-logo, custom-menu
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
	/* Global Tokens - Light Mode */
	--color-primary: #2D6A4F;
	--color-accent: #E07A5F;
	--color-surface: #FFFDF9;
	--color-background: #FFFFFF;
	--color-text-main: #0E2217;
	--color-text-muted: #949494;

	/* Typography */
	--font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

	/* Radios */
	--radius-card: 24px;
	--radius-btn: 30px;
	--radius-full: 50%;

	/* Sombras */
	--shadow-card: 0px 8px 30px 0px rgba(0, 0, 0, 0.05);
	--shadow-hover: 0px 14px 34px rgba(224, 122, 95, 0.25);

	/* Transiciones */
	--transition: 0.3s ease;

	/* Legacy Variables for compatibility if needed */
	--color-heading: #1B4332;
	--color-white: #FFFFFF;
	--color-button: var(--color-accent);
	--color-button-hover: #E68A73;
	--color-donation: #8A6D00;
	--color-donation-hover: #775C00;
	--color-donation-light: rgba(138, 109, 0, 0.12);
	--color-line: #E5E7EB;
	--color-bg-light: #FAF8F5;
	--color-dark: #2D6A4F;
	--color-dark-deep: #1B4332;
	--color-dark-2: #4A6E5F;
	--color-accent-2: #2D6A4F;
	--color-accent-3: #E07A5F;
	--color-border: #E5E7EB;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 16.32px;
	line-height: 1.7;
	color: var(--color-text-main);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Tipografía
   ========================================================================== */

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 800;
	color: var(--color-primary);
	line-height: 1.25;
}

h1 {
	font-size: 70.4px;
	line-height: 1.2;
	letter-spacing: -0.704px;
}

h2 {
	font-size: 57.6px;
	line-height: 1.25;
	letter-spacing: -0.576px;
}

h3 {
	font-size: 20.8px;
	line-height: 1.25;
}

h4 {
	font-size: clamp(1.125rem, 3vw, 1.5625rem);
	letter-spacing: normal;
	line-height: 1.35;
}

h5 {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

h6 {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

p {
	margin-bottom: 1rem;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-button-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -1px;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

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

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #FFFFFF;
	background: var(--color-accent);
	border: none;
	border-radius: var(--radius-btn);
	cursor: pointer;
	transition: all var(--transition);
	box-shadow: none;
	text-decoration: none;
	line-height: 1;
}

.btn:hover {
	background: var(--color-accent);
	color: #FFFFFF;
	transform: translateY(-2px);
	opacity: 0.9;
	box-shadow: var(--shadow-hover);
}

.btn-sm {
	padding: 10px 22px;
	font-size: 0.75rem;
}

.btn-lg {
	padding: 18px 42px;
	font-size: 1rem;
}

.btn-outline {
	background: transparent;
	color: var(--color-button);
	border: 2px solid var(--color-button);
	box-shadow: none;
}

.btn-outline:hover {
	background: var(--color-button);
	color: var(--color-white);
	box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
	display: inline-block;
	padding: 6px 14px;
	font-family: var(--font-body);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 20px;
	line-height: 1;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.animal-card-link:hover .badge,
.animal-card-link:hover .animal-card-badge,
a:hover .badge {
	color: #ffffff !important;
}

.badge-en-adopcion,
.badge-adopcion {
	background: #10b981 !important;
	color: #ffffff !important;
}

.badge-urgente {
	background: #dc2626 !important;
	color: #ffffff !important;
}

.badge-adoptado {
	background: #6366f1 !important;
	color: #ffffff !important;
}

.badge-en-acogida,
.badge-acogida {
	background: #f59e0b !important;
	color: #ffffff !important;
}

.badge-pendiente {
	background: #8b5cf6 !important;
	color: #ffffff !important;
}

.badge-reservado {
	background: #3b82f6 !important;
	color: #ffffff !important;
}

.badge-fallecido {
	background: #6b7280 !important;
	color: #ffffff !important;
}

.badge-tipo,
.badge-tipo-animal {
	background: #1B4332 !important;
	color: #ffffff !important;
	background-color: rgba(20, 46, 32, 0.85) !important;
	backdrop-filter: blur(4px);
}

/* ==========================================================================
   Secciones
   ========================================================================== */

.section {
	padding: 7em 0;
}

.section-light {
	background: var(--color-bg-light);
}

.section-dark {
	background: var(--color-dark);
	color: var(--color-white);
}

.section-dark .section-title {
	color: var(--color-white);
}

.section-title {
	font-family: var(--font-heading);
	font-size: clamp(2.0625rem, 5vw, 4.1875rem);
	font-weight: 700;
	color: var(--color-heading);
	letter-spacing: 0.02em;
	margin-bottom: 0.5em;
	text-align: center;
	text-transform: uppercase;
}

.section-title::after {
	display: none;
}

.section-desc {
	text-align: center;
	font-size: 1rem;
	color: var(--color-primary);
	max-width: 600px;
	margin: -0.5em auto 2em;
}

/* ==========================================================================
   Grid de tarjetas
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.card {
	background: var(--color-white);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
	transform: none !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Responsive base
   ========================================================================== */

@media (max-width: 768px) {
	.section {
		padding: 3em 0;
	}

	.home-features+.section {
		padding-top: 1.5em;
	}

	.container {
		padding: 0 16px;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
	.section {
		padding: 5em 0;
	}

	.home-features+.section {
		padding-top: 2.5em;
	}
}

/* ==========================================================================
   Page Structure
   ========================================================================== */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.relative {
	position: relative;
}

.z-10 {
	z-index: 10;
}

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

.text-white {
	color: var(--color-white) !important;
}

.text-uppercase {
	text-transform: uppercase;
}

.text-accent-3 {
	color: var(--color-accent-3);
}

.mt-3 {
	margin-top: 1rem;
}

.mt-4 {
	margin-top: 1.5rem;
}

.mb-5 {
	margin-bottom: 3rem;
}

.mb-0 {
	margin-bottom: 0;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.bg-primary {
	background-color: var(--color-button) !important;
}

.bg-light {
	background-color: var(--color-bg-light) !important;
}

.bg-accent-3 {
	background-color: var(--color-accent-3) !important;
}

.paw-pattern-bg {
	background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(0,0,0,0.015)" d="M226.5 92.9c14.3 7.3 22.9 22.9 22.9 38.6 0 15.7-8.6 31.3-22.9 38.6-21.6 11-47.5-3.3-47.5-27.4 0-24.1 25.9-38.4 47.5-27.4zm106.6-49.8c-21.6-11-47.5 3.3-47.5 27.4 0 24.1 25.9 38.4 47.5 27.4 14.3-7.3 22.9-22.9 22.9-38.6 0-15.7-8.6-31.3-22.9-38.6zm-196.2 92.5c-21.6-11-47.5 3.3-47.5 27.4 0 24.1 25.9 38.4 47.5 27.4 14.3-7.3 22.9-22.9 22.9-38.6 0-15.7-8.6-31.3-22.9-38.6zm239.3 0c-21.6-11-47.5 3.3-47.5 27.4 0 24.1 25.9 38.4 47.5 27.4 14.3-7.3 22.9-22.9 22.9-38.6 0-15.7-8.6-31.3-22.9-38.6zM256 224c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"/></svg>');
	background-size: 150px;
	background-repeat: repeat;
	background-position: center;
}

.section-padding {
	padding: 5em 0;
}

.border-top-bottom {
	border-top: 1px solid var(--color-line);
	border-bottom: 1px solid var(--color-line);
	padding: 3em 0;
}

.btn-primary {
	background: var(--color-button);
	color: var(--color-white);
	border: none;
}

.btn-primary:hover {
	background: var(--color-button-hover);
	color: var(--color-white);
}

.btn-light {
	background: var(--color-white);
	color: var(--color-button);
	border: none;
}

.btn-light:hover {
	background: var(--color-bg-light);
	color: var(--color-button-hover);
}

.btn-rounded {
	border-radius: 30px;
}

.btn-text {
	color: var(--color-button);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
	text-decoration: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9999;
	background: transparent;
	border: none;
	box-shadow: none;
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
	transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		-webkit-backdrop-filter 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: visible !important;
}

.site-header.is-scrolled,
.site-header.menu-open {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(20, 46, 32, 0.08);
	border: none;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
	gap: 20px;
	position: relative;
	overflow: visible !important;
	transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled .header-inner,
.site-header.menu-open .header-inner {
	padding: 10px 24px;
}

.header-col-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-col-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.header-col-logo img,
.header-col-logo .custom-logo {
	height: 60px;
	max-height: 68px;
	width: auto;
	object-fit: contain;
	display: block;
	transition: transform 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled .header-col-logo img,
.site-header.menu-open .header-col-logo img,
.site-header.is-scrolled .header-col-logo .custom-logo,
.site-header.menu-open .header-col-logo .custom-logo {
	height: 52px;
	max-height: 56px;
}

.header-logo-text {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	transition: color 0.35s ease, text-shadow 0.35s ease;
}

.site-header.is-scrolled .header-logo-text,
.site-header.menu-open .header-logo-text {
	color: var(--color-heading, #142E20);
	text-shadow: none;
}

.header-col-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
}

/* Navigation */
.main-navigation {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.primary-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 32px;
}

.primary-menu a {
	display: block;
	padding: 12px 0;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: color 0.35s ease, text-shadow 0.35s ease;
	white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
	color: var(--color-button, #E07A5F);
	text-shadow: none;
}

.site-header.is-scrolled .primary-menu a,
.site-header.menu-open .primary-menu a {
	color: var(--color-heading, #142E20);
	text-shadow: none;
}

.site-header.is-scrolled .primary-menu a:hover,
.site-header.menu-open .primary-menu a:hover,
.site-header.is-scrolled .primary-menu .current-menu-item a,
.site-header.menu-open .primary-menu .current-menu-item a {
	color: var(--color-button-hover, #C85A3D);
}

/* Submenus */
.primary-menu .menu-item-has-children {
	position: relative;
}

.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(20, 46, 32, 0.08);
	border-radius: 16px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
	padding: 10px 0;
	margin: 0;
	list-style: none !important;
	list-style-type: none !important;
	min-width: 220px;
	z-index: 100;
}

.primary-menu .sub-menu li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0;
	padding: 0;
}

.primary-menu .menu-item-has-children:hover>.sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-heading, #142E20) !important;
	text-shadow: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-menu .sub-menu a:hover {
	color: #ffffff !important;
	background: var(--color-button, #E07A5F);
}

.submenu-toggle {
	display: none;
}

/* Menu Toggle (mobile) */
.menu-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 101;
}

.menu-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition), background-color 0.35s ease;
}

.site-header.is-scrolled .menu-toggle-bar,
.site-header.menu-open .menu-toggle-bar,
.menu-toggle[aria-expanded="true"] .menu-toggle-bar {
	background: var(--color-heading, #142E20);
}

/* Transformar hamburguesa a X al abrir el menú */
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}


/* Header CTA */
.header-col-cta {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

.header-cta-btn {
	padding: 10px 22px;
	font-size: 0.75rem;
	font-weight: 700;
	background: var(--color-button);
	box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
}

.header-cta-btn:hover {
	background: var(--color-button-hover);
	box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

/* Botón Donar — Mostaza/Dorado */
.header-cta-btn-donation {
	padding: 10px 22px;
	font-size: 0.75rem;
	background: var(--color-donation, #8A6D00);
	color: #ffffff !important;
	font-weight: 700;
	margin-right: 12px;
	box-shadow: 0 4px 14px rgba(201, 162, 39, 0.28);
}

.header-cta-btn-donation:hover {
	background: var(--color-donation-hover, #775C00);
	color: #ffffff !important;
	box-shadow: 0 6px 20px rgba(201, 162, 39, 0.38);
}

/* Mantener clase anterior como alias por compatibilidad */
.header-cta-btn-secondary {
	padding: 10px 22px;
	font-size: 0.75rem;
	background: var(--color-donation, #8A6D00);
	color: #ffffff !important;
	font-weight: 700;
	margin-right: 12px;
	box-shadow: 0 4px 14px rgba(201, 162, 39, 0.28);
}

.header-cta-btn-secondary:hover {
	background: var(--color-donation-hover, #775C00);
	color: #ffffff !important;
}

/* Etiqueta Urgente */
.badge-urgente {
	background: #dc2626 !important;
	/* Rojo llamativo */
	color: #fff !important;
	animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
	0% {
		box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
	}
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* Footer Sponsors Marquee Premium */
.footer-sponsors-marquee {
	width: 100%;
	overflow: hidden;
	background: #ffffff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding: 2.5rem 0 5rem 0;
	/* extra padding at the bottom so tooltip is not clipped */
	position: relative;
	display: block;
	/* Using block prevents flex-shrink from collapsing the track */
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: scrollMarquee 150s linear infinite;
	flex-shrink: 0;
}

.marquee-content {
	display: flex;
	gap: 6rem;
	padding-right: 6rem;
	/* Ensures the gap between the two duplicate lists is identical to the gap between items */
}

/* Pause animation on hover */
.footer-sponsors-marquee:hover .marquee-track {
	animation-play-state: paused;
}

.marquee-item {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
}

.marquee-logo {
	max-height: 160px;
	/* Much bigger */
	width: auto;
	filter: grayscale(100%) opacity(0.6);
	mix-blend-mode: multiply;
	/* Removes white backgrounds on images */
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: center;
}

/* Hover effects */
.marquee-item:hover .marquee-logo {
	filter: grayscale(0%) opacity(1);
	transform: scale(1.1);
}

/* Glassmorphism Tooltip - Redesigned to be highly legible */
.marquee-tooltip {
	position: absolute;
	top: calc(100% + 20px);
	/* Display below the logo */
	bottom: auto;
	left: 50%;
	transform: translateX(-50%) translateY(-10px);
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.1);
	color: var(--color-dark-deep);
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	z-index: 10;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Tooltip Arrow */
.marquee-tooltip::after {
	content: '';
	position: absolute;
	bottom: 100%;
	/* Arrow on top */
	top: auto;
	left: 50%;
	transform: translateX(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: transparent transparent rgba(255, 255, 255, 0.95) transparent;
}

.marquee-item:hover .marquee-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@keyframes scrollMarquee {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
		/* Shifts exactly by one list width, achieving a flawless infinite loop */
	}
}



/* Footer Main */
.footer-main {
	background: var(--color-dark-deep, #1B4332);
	padding: 4em 0 3em;
	color: rgba(255, 255, 255, 0.85);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
	display: grid;
	grid-template-columns: 40% 15% 15% 30%;
	gap: 0;
}

/* Col 1: About */
.footer-col-about {
	padding: 1em;
	margin-right: 3em;
}

.footer-logo img,
.footer-logo .custom-logo {
	height: 56px;
	width: auto;
}

.footer-logo-text {
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-white);
	text-decoration: none;
}

.footer-desc {
	margin: 12px 0 16px;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
}

.footer-social {
	display: flex;
	gap: 10px;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--color-white);
	background: rgba(255, 255, 255, 0.1);
	transition: color var(--transition), background var(--transition);
}

.social-link:hover {
	color: var(--color-white);
	background: var(--color-accent);
}

/* Col 2 & 3: Services / Company */
.footer-col-services,
.footer-col-company {
	padding: 1em;
}

/* Footer Headings */
.footer-heading {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 16px;
}

/* Footer Menus */
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin-bottom: 7px;
}

.footer-menu a {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color var(--transition);
}

.footer-menu a:hover {
	color: var(--color-accent);
}

/* Col 4: Gallery */
.footer-col-gallery {
	padding: 1em;
}

.footer-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.footer-gallery-item {
	display: block;
	border-radius: 15px;
	overflow: hidden;
	aspect-ratio: 1;
	transition: opacity var(--transition);
}

.footer-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.6s ease, transform 0.6s ease;
}

.footer-gallery-item:hover img {
	transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
	background: #0E2217;
	padding: 1.25em 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.footer-copyright {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-white);
}

.footer-legal {
	display: flex;
	align-items: center;
	gap: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-white);
}

.footer-legal a {
	color: var(--color-white);
	text-decoration: none;
	padding: 0 8px;
	transition: color var(--transition);
}

.footer-legal a:hover {
	color: var(--color-button-hover);
}

.legal-sep {
	display: inline-block;
	width: 2px;
	height: 12px;
	background: rgba(255, 255, 255, 0.17);
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* Features overlap */
.home-features {
	position: relative;
	z-index: 20;
	margin-top: -7em;
}

.home-features+.section {
	padding-top: 3.5em;
}

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

.feature-card {
	padding: 2em;
	border-radius: 15px;
	box-shadow: var(--shadow-card);
	text-align: center;
}

.feature-light {
	background: var(--color-white);
}

.feature-primary {
	background: var(--color-button);
}

.feature-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	border-radius: 50%;
	font-size: 28px;
	color: var(--color-white);
	border: 7px solid var(--color-white);
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}

.feature-icon-orange {
	background: var(--color-accent-3);
}

.feature-icon-accent {
	background: var(--color-accent-2);
}

.feature-icon-white {
	background: var(--color-white);
	color: var(--color-button);
}

.feature-title {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--color-heading);
}

.feature-primary .feature-title {
	color: var(--color-white);
}

.feature-desc {
	font-size: 14px;
	color: var(--color-primary);
	margin-bottom: 16px;
}

.feature-primary .feature-desc {
	color: var(--color-white);
}

/* Who We Are */
.who-we-are-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.section-subtitle {
	color: var(--color-accent-3);
	margin-bottom: 10px;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section-paws {
	position: relative;
	overflow: hidden;
}

.section-paws::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='rgba(0,0,0,0.03)' d='M226.5 92.9c14.3 73.1-.1 134-29.3 147.5s-61.9-25.3-76.3-98.3c-14.3-73.1.1-134 29.3-147.5s61.9 25.3 76.3 98.3zm-143.6 47.6c-27.2 44.8-19.1 98.8 8.6 114s64.6-9.5 91.8-54.2 19.1-98.8-8.6-114-64.6 9.5-91.8 54.2zM438 140.5c-27.2-44.8-80.6-69.4-108.4-54.2s-19.1 69.2 8.6 114 80.6 69.4 108.4 54.2 19.1-69.2-8.6-114zM285.5 240.4c-29.2-13.5-74.9 25.3-89.2 98.3s4.2 134 33.4 147.5 74.9-25.3 89.2-98.3-4.2-134-33.4-147.5zM256 325.2c-73.8 0-141.4 39.5-171 101.6-12.8 26.8-7.9 59.8 12.3 80.5 18 18.4 47.4 22.8 70.8 11.2C201.2 502 227.8 496 256 496s54.8 6 87.9 22.5c23.4 11.6 52.8 7.2 70.8-11.2 20.2-20.7 25.1-53.7 12.3-80.5-29.6-62.1-97.2-101.6-171-101.6z'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='rgba(0,0,0,0.04)' d='M226.5 92.9c14.3 73.1-.1 134-29.3 147.5s-61.9-25.3-76.3-98.3c-14.3-73.1.1-134 29.3-147.5s61.9 25.3 76.3 98.3zm-143.6 47.6c-27.2 44.8-19.1 98.8 8.6 114s64.6-9.5 91.8-54.2 19.1-98.8-8.6-114-64.6 9.5-91.8 54.2zM438 140.5c-27.2-44.8-80.6-69.4-108.4-54.2s-19.1 69.2 8.6 114 80.6 69.4 108.4 54.2 19.1-69.2-8.6-114zM285.5 240.4c-29.2-13.5-74.9 25.3-89.2 98.3s4.2 134 33.4 147.5 74.9-25.3 89.2-98.3-4.2-134-33.4-147.5zM256 325.2c-73.8 0-141.4 39.5-171 101.6-12.8 26.8-7.9 59.8 12.3 80.5 18 18.4 47.4 22.8 70.8 11.2C201.2 502 227.8 496 256 496s54.8 6 87.9 22.5c23.4 11.6 52.8 7.2 70.8-11.2 20.2-20.7 25.1-53.7 12.3-80.5-29.6-62.1-97.2-101.6-171-101.6z'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='rgba(0,0,0,0.025)' d='M226.5 92.9c14.3 73.1-.1 134-29.3 147.5s-61.9-25.3-76.3-98.3c-14.3-73.1.1-134 29.3-147.5s61.9 25.3 76.3 98.3zm-143.6 47.6c-27.2 44.8-19.1 98.8 8.6 114s64.6-9.5 91.8-54.2 19.1-98.8-8.6-114-64.6 9.5-91.8 54.2zM438 140.5c-27.2-44.8-80.6-69.4-108.4-54.2s-19.1 69.2 8.6 114 80.6 69.4 108.4 54.2 19.1-69.2-8.6-114zM285.5 240.4c-29.2-13.5-74.9 25.3-89.2 98.3s4.2 134 33.4 147.5 74.9-25.3 89.2-98.3-4.2-134-33.4-147.5zM256 325.2c-73.8 0-141.4 39.5-171 101.6-12.8 26.8-7.9 59.8 12.3 80.5 18 18.4 47.4 22.8 70.8 11.2C201.2 502 227.8 496 256 496s54.8 6 87.9 22.5c23.4 11.6 52.8 7.2 70.8-11.2 20.2-20.7 25.1-53.7 12.3-80.5-29.6-62.1-97.2-101.6-171-101.6z'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='rgba(0,0,0,0.035)' d='M226.5 92.9c14.3 73.1-.1 134-29.3 147.5s-61.9-25.3-76.3-98.3c-14.3-73.1.1-134 29.3-147.5s61.9 25.3 76.3 98.3zm-143.6 47.6c-27.2 44.8-19.1 98.8 8.6 114s64.6-9.5 91.8-54.2 19.1-98.8-8.6-114-64.6 9.5-91.8 54.2zM438 140.5c-27.2-44.8-80.6-69.4-108.4-54.2s-19.1 69.2 8.6 114 80.6 69.4 108.4 54.2 19.1-69.2-8.6-114zM285.5 240.4c-29.2-13.5-74.9 25.3-89.2 98.3s4.2 134 33.4 147.5 74.9-25.3 89.2-98.3-4.2-134-33.4-147.5zM256 325.2c-73.8 0-141.4 39.5-171 101.6-12.8 26.8-7.9 59.8 12.3 80.5 18 18.4 47.4 22.8 70.8 11.2C201.2 502 227.8 496 256 496s54.8 6 87.9 22.5c23.4 11.6 52.8 7.2 70.8-11.2 20.2-20.7 25.1-53.7 12.3-80.5-29.6-62.1-97.2-101.6-171-101.6z'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='rgba(0,0,0,0.03)' d='M226.5 92.9c14.3 73.1-.1 134-29.3 147.5s-61.9-25.3-76.3-98.3c-14.3-73.1.1-134 29.3-147.5s61.9 25.3 76.3 98.3zm-143.6 47.6c-27.2 44.8-19.1 98.8 8.6 114s64.6-9.5 91.8-54.2 19.1-98.8-8.6-114-64.6 9.5-91.8 54.2zM438 140.5c-27.2-44.8-80.6-69.4-108.4-54.2s-19.1 69.2 8.6 114 80.6 69.4 108.4 54.2 19.1-69.2-8.6-114zM285.5 240.4c-29.2-13.5-74.9 25.3-89.2 98.3s4.2 134 33.4 147.5 74.9-25.3 89.2-98.3-4.2-134-33.4-147.5zM256 325.2c-73.8 0-141.4 39.5-171 101.6-12.8 26.8-7.9 59.8 12.3 80.5 18 18.4 47.4 22.8 70.8 11.2C201.2 502 227.8 496 256 496s54.8 6 87.9 22.5c23.4 11.6 52.8 7.2 70.8-11.2 20.2-20.7 25.1-53.7 12.3-80.5-29.6-62.1-97.2-101.6-171-101.6z'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='rgba(0,0,0,0.02)' d='M226.5 92.9c14.3 73.1-.1 134-29.3 147.5s-61.9-25.3-76.3-98.3c-14.3-73.1.1-134 29.3-147.5s61.9 25.3 76.3 98.3zm-143.6 47.6c-27.2 44.8-19.1 98.8 8.6 114s64.6-9.5 91.8-54.2 19.1-98.8-8.6-114-64.6 9.5-91.8 54.2zM438 140.5c-27.2-44.8-80.6-69.4-108.4-54.2s-19.1 69.2 8.6 114 80.6 69.4 108.4 54.2 19.1-69.2-8.6-114zM285.5 240.4c-29.2-13.5-74.9 25.3-89.2 98.3s4.2 134 33.4 147.5 74.9-25.3 89.2-98.3-4.2-134-33.4-147.5zM256 325.2c-73.8 0-141.4 39.5-171 101.6-12.8 26.8-7.9 59.8 12.3 80.5 18 18.4 47.4 22.8 70.8 11.2C201.2 502 227.8 496 256 496s54.8 6 87.9 22.5c23.4 11.6 52.8 7.2 70.8-11.2 20.2-20.7 25.1-53.7 12.3-80.5-29.6-62.1-97.2-101.6-171-101.6z'/%3E%3C/svg%3E");
	background-position: 2% 20%, 8% 70%, 15% 45%, 95% 15%, 88% 60%, 92% 85%;
	background-size: 60px, 80px, 50px, 70px, 45px, 65px;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none;
	opacity: 0.8;
}

.section-paws>.container {
	position: relative;
	z-index: 1;
}

.meow-image-wrap {
	position: relative;
	width: 100%;
	z-index: 2;
	/* Keep aspect ratio to prevent jumpiness, similar to blob-image */
	aspect-ratio: 4/3;
}

.meow-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 100px 20px 100px 20px;
	display: block;
	position: relative;
	z-index: 2;
}

.meow-image-wrap::before {
	content: '';
	position: absolute;
	top: -15px;
	left: -15px;
	right: -15px;
	bottom: -15px;
	border: 3px solid var(--color-accent-3);
	border-radius: 115px 30px 115px 30px;
	z-index: 1;
	transform: translate(-10px, 10px);
	pointer-events: none;
}

/* Logos */
.logos-grid {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	padding: 0 20px;
}

.logos-grid img {
	height: 40px;
	opacity: 0.6;
	transition: var(--transition);
}

.logos-grid img:hover {
	opacity: 1;
}

/* Services */
.services-list-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 40px;
}

.service-box {
	background: var(--color-white);
	border-radius: 15px;
	padding: 30px 20px;
	text-align: center;
	transition: transform var(--transition), box-shadow var(--transition);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

.service-box-bg {
	position: absolute;
	top: -50px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 100px;
	background: var(--color-bg-light);
	border-radius: 50%;
	z-index: 1;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.service-box:hover {
	transform: none !important;
}

.service-box:hover .service-box-bg {
	transform: translateX(-50%) scale(10);
	background: var(--color-button);
}

.service-box-icon {
	position: relative;
	z-index: 2;
	font-size: 32px;
	color: var(--color-button);
	margin-bottom: 20px;
	transition: color 0.3s ease;
}

.service-box:hover .service-box-icon {
	color: var(--color-white);
}

.service-box-title {
	position: relative;
	z-index: 2;
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--color-heading);
	transition: color 0.3s ease;
}

.service-box:hover .service-box-title {
	color: var(--color-white);
}

.service-box-desc {
	position: relative;
	z-index: 2;
	font-size: 14px;
	color: var(--color-primary);
	transition: color 0.3s ease;
}

.service-box:hover .service-box-desc {
	color: var(--color-white);
}

/* Parallax CTA */
.home-parallax {
	position: relative;
	padding: 8em 0;
}

.parallax-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.parallax-overlay {
	position: absolute;
	inset: 0;
	background: rgba(41, 41, 41, 0.7);
}

.parallax-title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 67px);
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 20px;
	line-height: 1.2;
}

.parallax-desc {
	color: var(--color-white);
	font-size: 16px;
	max-width: 600px;
	margin: 0 auto 24px;
}

/* Adoption Grid */
.section-dashed-bg {
	position: relative;
	z-index: 1;
}

.section-dashed-bg::before {
	content: '';
	position: absolute;
	top: 10%;
	left: 0;
	right: 0;
	bottom: 20%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300' preserveAspectRatio='none'%3E%3Cpath d='M0,250 C300,0 700,350 1000,50' fill='none' stroke='%23FF7F50' stroke-width='3' stroke-dasharray='12,12'/%3E%3C/svg%3E");
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -1;
	pointer-events: none;
	opacity: 0.5;
}

.btn-small-pill {
	display: inline-block;
	background: var(--color-button);
	color: var(--color-white);
	padding: 6px 18px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: var(--transition);
}

.btn-small-pill:hover {
	background: var(--color-button-hover);
	color: var(--color-white);
}

.animales-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.animal-card {
	background: var(--color-white);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform var(--transition), box-shadow var(--transition);
}

.animal-card:hover {
	transform: none !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.animal-card-image {
	position: relative;
	height: 250px;
	overflow: hidden;
}

.animal-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.animal-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-bg-light);
}

.animal-price {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--color-accent-3);
	color: var(--color-white);
	padding: 5px 15px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	z-index: 10;
}

.animal-card-body {
	padding: 30px 20px;
	text-align: left;
}

.animal-card-body p {
	font-size: 13px;
	color: var(--color-primary);
	margin-bottom: 20px;
	line-height: 1.6;
}

.animal-age {
	color: var(--color-accent-3);
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.animal-card-title {
	font-family: var(--font-heading);
	font-size: 41px;
	font-weight: 700;
	color: var(--color-heading);
	margin-bottom: 10px;
	line-height: 1.2;
	text-transform: uppercase;
}

.animal-card-desc {
	font-size: 14px;
	color: var(--color-primary);
	margin-bottom: 16px;
}

/* Editorial Vision / Mission */
.editorial-vision-container {
	display: flex;
	align-items: center;
	position: relative;
	gap: 0;
}

.editorial-vision-image {
	width: 55%;
	position: relative;
	z-index: 1;
}

.editorial-vision-image img {
	width: 100%;
	height: 600px;
	object-fit: cover;
	border-radius: 0 40px 40px 0;
	box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.editorial-vision-content {
	width: 55%;
	margin-left: -10%;
	background: var(--color-white);
	padding: 60px;
	border-radius: 20px;
	box-shadow: -10px 20px 50px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 2;
}

.editorial-vision-title {
	font-family: var(--font-heading);
	font-size: 55px;
	line-height: 1.1;
	color: var(--color-heading);
	margin-bottom: 20px;
	text-transform: uppercase;
}

.editorial-vision-lead {
	font-size: 16px;
	color: var(--color-heading);
	margin-bottom: 40px;
	line-height: 1.6;
}

.editorial-values-wrapper {
	display: flex;
	gap: 40px;
	border-top: 2px solid var(--color-bg-light);
	padding-top: 40px;
}

.editorial-value-item {
	flex: 1;
}

.editorial-value-item h4 {
	color: var(--color-button);
	font-family: var(--font-heading);
	font-size: 32px;
	margin-bottom: 10px;
}

.editorial-value-item p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-primary);
}

@media (max-width: 991px) {
	.editorial-vision-container {
		flex-direction: column;
	}

	.editorial-vision-image,
	.editorial-vision-content {
		width: 100%;
		margin: 0;
	}

	.editorial-vision-content {
		padding: 40px;
		transform: translateY(-50px);
	}

	.editorial-vision-image img {
		height: 400px;
		border-radius: 20px;
	}

	.editorial-values-wrapper {
		flex-direction: column;
		gap: 30px;
	}
}

/* Stats */
.home-stats {
	padding: 4em 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	text-align: center;
}

.stat-number {
	font-family: var(--font-heading);
	font-size: 67px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 8px;
}

.stat-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-form-wrapper {
	background: var(--color-bg-light);
	padding: 40px;
	border-radius: 15px;
	box-shadow: var(--shadow-card);
}

.form-control {
	width: 100%;
	padding: 15px;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-primary);
	background: var(--color-white);
	border: 1px solid var(--color-line);
	border-radius: 10px;
	transition: border-color var(--transition);
}

.form-control:focus {
	border-color: var(--color-button-hover);
	outline: none;
}

textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

.w-100 {
	width: 100%;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 1024px) {

	.features-grid,
	.who-we-are-grid,
	.services-list-grid,
	.animales-grid,
	.vision-grid,
	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-features {
		margin-top: -3em;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-col-about {
		grid-column: 1 / -1;
		margin-right: 0;
	}

	.footer-col-gallery {
		grid-column: 1 / -1;
	}

	.footer-gallery {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media (max-width: 768px) {

	/* Evitar desbordamiento horizontal en todo el tema */
	html,
	body {
		overflow-x: hidden !important;
		width: 100% !important;
		max-width: 100vw !important;
	}

	#page,
	.site-main,
	.site-content,
	.site-footer {
		max-width: 100%;
		overflow-x: hidden;
	}

	/* Header mobile */
	.site-header {
		width: 100%;
		overflow: visible !important;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 9999;
	}

	.header-inner {
		padding: 10px 14px;
		justify-content: space-between;
		width: 100%;
		box-sizing: border-box;
		gap: 6px;
	}

	.header-col-logo {
		flex: 0 1 auto;
		min-width: 0;
		max-width: 60%;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.header-col-logo img,
	.header-col-logo .custom-logo {
		height: 46px;
		max-height: 50px;
		width: auto;
	}

	.header-logo-text {
		font-size: 1.35rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		display: block;
	}

	.header-col-nav {
		flex: 0 0 auto;
		padding: 0;
		order: 3;
	}

	.header-col-cta {
		flex: 0 1 auto;
		max-width: none;
		display: flex;
		align-items: center;
		gap: 6px;
		order: 2;
		justify-content: flex-end;
	}

	.header-cta-btn,
	.header-cta-btn-donation,
	.header-cta-btn-secondary {
		padding: 7px 14px !important;
		font-size: 0.72rem !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
		letter-spacing: 0.3px !important;
		white-space: nowrap;
		border-radius: 20px !important;
	}

	.menu-toggle {
		display: flex;
		padding: 6px;
		margin-left: 4px;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
		border-top: 1px solid rgba(20, 46, 32, 0.08);
		border-radius: 0 0 20px 20px;
		padding: 16px 24px;
		display: none;
		z-index: 999;
	}

	.main-navigation.toggled {
		display: block !important;
	}

	.main-navigation.toggled .primary-menu a {
		color: var(--color-heading, #142E20) !important;
		text-shadow: none !important;
	}

	.primary-menu {
		flex-direction: column;
		gap: 0;
		width: 100%;
		padding: 0;
	}

	.primary-menu>li {
		width: 100%;
		border-bottom: 1px solid var(--color-line);
	}

	.primary-menu>li:last-child {
		border-bottom: none;
	}

	.primary-menu a {
		padding: 12px 0;
		font-weight: 600;
	}

	.primary-menu .menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	.primary-menu .menu-item-has-children>a {
		flex: 1;
		font-weight: 700;
		color: var(--color-heading);
		border-bottom: none;
	}

	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		background: rgba(45, 106, 79, 0.08);
		border: 1px solid rgba(45, 106, 79, 0.15);
		border-radius: 8px;
		color: var(--color-dark);
		cursor: pointer;
		transition: all 0.25s ease;
		margin: 6px 0;
		padding: 0;
	}

	.submenu-toggle svg {
		transition: transform 0.25s ease;
	}

	.menu-item-has-children.submenu-closed .submenu-toggle svg {
		transform: rotate(-90deg);
	}

	.primary-menu .sub-menu {
		display: block;
		width: 100%;
		position: static;
		box-shadow: none;
		background: rgba(250, 248, 245, 0.9);
		border-radius: 12px;
		padding: 6px 14px;
		margin: 2px 0 12px 0;
		border-left: 3px solid var(--color-button);
		list-style: none;
	}

	.menu-item-has-children.submenu-closed>.sub-menu {
		display: none !important;
	}

	.primary-menu .sub-menu a {
		padding: 8px 6px;
		font-size: 0.925rem;
		font-weight: 500;
		color: var(--color-primary);
		border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
		display: flex;
		align-items: center;
	}

	.primary-menu .sub-menu li:last-child>a {
		border-bottom: none;
	}

	.primary-menu .sub-menu a:hover {
		color: var(--color-button);
		background: transparent;
	}

	/* Features mobile */
	.home-features {
		margin-top: -2em;
	}

	.features-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	/* Who we are, vision */
	.who-we-are-grid,
	.vision-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	/* Services */
	.services-list-grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	/* Adoption */
	.animales-grid {
		grid-template-columns: 1fr;
	}

	/* Stats */
	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.stat-number {
		font-size: 48px;
	}

	/* Logos */
	.logos-grid {
		justify-content: center;
	}

	/* Footer mobile */
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.footer-col-about,
	.footer-col-services,
	.footer-col-company,
	.footer-col-gallery {
		padding: 0.5em 0;
		text-align: center;
	}

	.footer-col-about {
		margin-right: 0;
	}

	.footer-social {
		justify-content: center;
	}

	.footer-gallery {
		grid-template-columns: repeat(3, 1fr);
		max-width: 360px;
		margin: 0 auto;
	}

	.footer-bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}
}

@media (max-width: 480px) {
	.header-inner {
		padding: 8px 10px;
		gap: 4px;
	}

	.header-logo-text {
		font-size: 1.15rem;
	}

	.header-cta-btn {
		padding: 6px 12px !important;
		font-size: 0.7rem !important;
	}

	.header-cta-btn-donation,
	.header-cta-btn-secondary {
		display: none !important;
	}

	.services-list-grid {
		grid-template-columns: 1fr;
	}

	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.paw-cluster {
		display: none !important;
	}
}

/* ==========================================================================
   SISTEMA DE DISEÑO GLOBAL — PROTECTORA (Huellas reales, Badges, Filtros)
   ========================================================================== */

/* Huellas reales en los bordes (SVGs posicionados en el fondo) */
.paw-cluster {
	position: absolute;
	width: 280px;
	height: 380px;
	pointer-events: none;
	z-index: 1;
	opacity: 0.85;
}

.paw-cluster-right {
	right: -40px;
	top: 15%;
}

.paw-cluster-left {
	left: -40px;
	bottom: 15%;
}

@media (max-width: 991px) {
	.paw-cluster {
		width: 180px;
		height: 240px;
		opacity: 0.5;
	}
}

/* Marca de agua de huella real sobre tarjetas */
.huella-watermark {
	position: absolute;
	right: -15px;
	bottom: -15px;
	width: 140px;
	height: 140px;
	opacity: 0.04;
	pointer-events: none;
	z-index: 0;
	color: var(--color-heading);
}

/* Insignia en Hero (Píldora superior) */
.hero-subtitle-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 30px;
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

/* Filtros en pastillas modernas */
.filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 30px;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	margin: 0 4px 10px;
}

/* Eliminar saltos verticales al hacer hover en tarjetas y botones en TODO el sitio */
.animal-card-modern,
.animal-card,
.card,
.btn {
	transform: none !important;
}

/* ==========================================================================
   PAGE HERO UNIVERSAL (Adapted from page-como-ayudar.php)
   ========================================================================== */

.page-hero-universal {
	position: relative;
	width: 100%;
	min-height: 480px;
	/*min-height: clamp(420px, 52dvh, 600px);*/
	height: 55dvh;
	background:
		radial-gradient(circle at 50% 35%, rgba(64, 145, 108, 0.28), transparent 34%),
		linear-gradient(135deg, var(--hero-grad-start, #10291d) 0%, #1B4332 52%, var(--hero-grad-end, #2d6a4f) 100%);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 150px 24px 90px;
	color: #FFFFFF;
	text-align: center;
	isolation: isolate;
}

.page-hero-universal::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	z-index: 4;
}

.page-hero-universal__bg-left {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('images/hero-fondo-ilustracion.jpg');
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	opacity: 0.6;
	filter: saturate(0.85) contrast(1.05);
	z-index: 1;
}

.page-hero-universal__bg-right {
	display: none;
}

.page-hero-universal__overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(16, 41, 29, 0.898) 0%, rgba(16, 41, 29, 0.579) 60%, rgba(16, 41, 29, 0.15) 100%);
	z-index: 2;
}

.page-hero-universal__content {
	position: relative;
	z-index: 10;
	max-width: 760px;
	margin: 0 auto;
}

.page-hero-universal__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #FFFFFF;
	font-family: var(--font-body, 'Poppins', sans-serif);
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	padding: 7px 18px;
	border-radius: var(--radius-btn, 30px);
	margin-bottom: 22px;
	backdrop-filter: blur(8px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.page-hero-universal__badge svg {
	color: #F08E7A;
}

.page-hero-universal__title {
	font-family: var(--font-heading, 'Nunito', sans-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	color: #FFFFFF;
	margin: 0 0 16px 0;
	letter-spacing: -0.01em;
	line-height: 1.12;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-universal__desc {
	font-family: var(--font-body, 'Poppins', sans-serif);
	font-size: clamp(1rem, 2.2vw, 1.15rem);
	color: rgba(255, 255, 255, 0.95);
	max-width: 650px;
	margin: 0 auto 30px auto;
	line-height: 1.65;
	font-weight: 500;
	text-wrap: pretty;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-hero-universal__buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.page-hero-universal {
		padding: 120px 18px 70px;
		min-height: auto;
	}

	.page-hero-universal__title {
		font-size: clamp(2.25rem, 9vw, 3.4rem);
	}

	.page-hero-universal__bg-left {
		background-position: center center;
		opacity: 0.4;
	}
}

/* ==========================================================================
   FASE 3: MICROINTERACCIONES Y UX PREMIUM
   ========================================================================== */

/* --- 3.1 Cursor Personalizado --- */
@media (pointer: fine) {

	/* Ocultar el cursor por defecto en toda la página */
	body,
	a,
	button,
	.btn,
	input,
	textarea,
	select {
		cursor: none !important;
	}

	.custom-cursor,
	.custom-cursor-follower {
		position: fixed;
		top: 0;
		left: 0;
		pointer-events: none;
		border-radius: 50%;
		z-index: 99999;
		will-change: transform;
	}

	.custom-cursor {
		width: 8px;
		height: 8px;
		background-color: var(--primary-color, #ff6b6b);
		margin-top: -4px;
		margin-left: -4px;
		transition: background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
	}

	.custom-cursor-follower {
		width: 40px;
		height: 40px;
		border: 1.5px solid var(--primary-color, #ff6b6b);
		margin-top: -20px;
		margin-left: -20px;
		transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
			height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
			background-color 0.3s ease,
			border-color 0.3s ease;
	}

	/* Estados de Hover Magnético */
	.custom-cursor.active {
		width: 0px;
		height: 0px;
		background-color: transparent;
	}

	.custom-cursor-follower.active {
		width: 60px;
		height: 60px;
		margin-top: -30px;
		margin-left: -30px;
		background-color: rgba(255, 107, 107, 0.1);
		border-color: rgba(255, 107, 107, 0.8);
	}
}

/* --- 3.2 Parallax Scroll-Driven --- */
.parallax-bg {
	position: absolute;
	top: -10%;
	/* Sobresale un poco por arriba y abajo para tener espacio de recorrido */
	left: 0;
	width: 100%;
	height: 120%;
	/* Más grande que su contenedor relativo */
	pointer-events: none;
	z-index: 0;
	will-change: transform;
	background-size: auto;
	background-repeat: repeat;
	opacity: 0.05;
}

/* Contenedor relativo necesario para alojar el parallax */
.has-parallax {
	position: relative;
	overflow: hidden;
}

.has-parallax>* {
	position: relative;
	z-index: 1;
	/* Para que el contenido esté sobre el parallax */
}

/* --- 3.3 Transiciones de Página (View Transitions API) --- */
@view-transition {
	navigation: auto;
}

/* Transiciones suaves por defecto para la navegación dejadas al navegador (sin efecto rebote) */

/* ==========================================================================
   AJAX Premium Filters (Fase 4)
   ========================================================================== */
.filters-modern-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.filter-group-modern { display: flex; flex-direction: column; gap: 8px; }
.filter-group-title { font-size: 0.85rem; font-weight: 600; color: var(--color-text-light, #666); text-transform: uppercase; letter-spacing: 0.5px; }
.filter-pills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-radio { display: none; }
.filter-pill-label { display: inline-flex; align-items: center; padding: 8px 16px; background: #FFFFFF; border: 1px solid rgba(0,0,0,0.1); border-radius: 30px; font-size: 0.95rem; color: var(--color-text, #333); cursor: pointer; transition: all 0.25s ease; user-select: none; }
.filter-pill-label:hover { border-color: var(--color-primary, #FF6B6B); color: var(--color-primary, #FF6B6B); }
.filter-radio:checked + .filter-pill-label { background: var(--color-primary, #FF6B6B); border-color: var(--color-primary, #FF6B6B); color: #FFFFFF; font-weight: 600; box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2); }
.filter-actions-modern { display: flex; align-items: flex-end; gap: 12px; margin-top: auto; padding-bottom: 2px; }

/* Skeleton Loading State */
#animal-grid-container { transition: opacity 0.3s ease; }
.is-loading-ajax { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   Fase 5: Generador de Carteles QR (Impresión)
   ========================================================================== */
@media print {
	/* Ocultar todo el contenido de la web */
	body > *:not(#print-poster) {
		display: none !important;
	}
	
	/* Forzar la impresión solo del poster y resetear el body */
	body, html { 
		background: #FFF !important; 
		margin: 0 !important; 
		padding: 0 !important; 
		height: 100vh !important; 
		width: 100vw !important; 
		-webkit-print-color-adjust: exact; 
		print-color-adjust: exact; 
	}
	
	#print-poster {
		display: block !important;
		position: relative; 
		width: 100%; 
		height: 100%;
		background: #FFF; 
		font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
		box-sizing: border-box;
		-webkit-print-color-adjust: exact; 
		print-color-adjust: exact;
	}

	/* Configurar página para A4 */
	@page { size: A4 portrait; margin: 0; }

	.poster-inner {
		padding: 40px; display: flex; flex-direction: column; justify-content: space-between; height: 100%; box-sizing: border-box;
	}

	.poster-header { text-align: center; margin-bottom: 20px; }
	.poster-title-mega { font-size: 6rem; font-weight: 900; text-transform: uppercase; color: #D32F2F; margin: 0; line-height: 1; letter-spacing: -2px; }
	.poster-subtitle { font-size: 1.5rem; color: #333; margin: 10px 0 0 0; text-transform: uppercase; letter-spacing: 1px; }

	.poster-image { flex: 1; display: flex; justify-content: center; align-items: center; overflow: hidden; border: 10px solid #D32F2F; border-radius: 20px; margin-bottom: 30px; max-height: 45vh; }
	.poster-img { width: 100%; height: 100%; object-fit: cover; }

	.poster-info { margin-bottom: 30px; }
	.poster-animal-name { font-size: 3rem; font-weight: 800; margin: 0 0 10px 0; color: #000; }
	
	.poster-specs { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
	.poster-spec-item { font-size: 1.2rem; background: #f0f0f0; padding: 5px 15px; border-radius: 20px; color: #333; }
	.poster-description { font-size: 1.3rem; line-height: 1.4; color: #444; }

	.poster-footer { display: flex; justify-content: space-between; align-items: center; border-top: 3px solid #eee; padding-top: 20px; }
	.poster-cta-text { flex: 1; padding-right: 20px; }
	.poster-cta-text h4 { font-size: 1.8rem; margin: 0 0 10px 0; color: #D32F2F; }
	.poster-cta-text p { font-size: 1.1rem; margin: 0 0 5px 0; color: #555; }
	
	.poster-qr { width: 150px; height: 150px; flex-shrink: 0; }
	.poster-qr img { width: 100%; height: 100%; }
}