/* Footer Styles */

/* Variables CSS para colores y espaciado del footer */
:root {
	--footer-bg: #0070C1;
	--footer-text: #ffffff;
	--footer-text-hover: #e5e7eb;
	--footer-text-light: #d1d5db;
	--footer-border: rgba(255, 255, 255, 0.1);
}

/* Footer principal */
.site-footer {
	background-color: var(--footer-bg);
	color: var(--footer-text);
}

/* Sección superior con columnas */
.footer-top {
	width: 100%;
	padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
	.footer-top {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media (min-width: 768px) {
	.footer-top {
		padding-left: 5rem;
		padding-right: 5rem;
	}
}

@media (min-width: 1024px) {
	.footer-top {
		padding-left: 10rem;
		padding-right: 10rem;
		padding-top: 5rem;
	}
}

.footer-columns {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 768px) {
	.footer-columns {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.footer-columns {
		gap: 1rem;
	}
}

/* Columnas individuales */
.footer-column {
	flex: 1;
}

.footer-column-title {
	font-weight: bold;
	font-size: 1.125rem;
	line-height: 1.5rem;
	margin-bottom: 1rem;
}

.footer-column-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-column-item {
	list-style: none;
}

.footer-column-link {
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 300;
	color: var(--footer-text);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

.footer-column-link:hover {
	color: var(--footer-text-hover);
}

/* Sección inferior */
.footer-bottom {
	width: 100%;
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

@media (min-width: 640px) {
	.footer-bottom {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media (min-width: 768px) {
	.footer-bottom {
		padding-left: 5rem;
		padding-right: 5rem;
	}
}

@media (min-width: 1024px) {
	.footer-bottom {
		padding-left: 10rem;
		padding-right: 10rem;
		padding-bottom: 5rem;
	}
}

.footer-bottom-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

@media (min-width: 768px) {
	.footer-bottom-content {
		flex-direction: row;
		gap: 0;
	}
}

/* Logo del footer */
.footer-logo {
	display: flex;
	align-items: center;
}

.footer-logo img {
	height: 60px;
	width: auto;
}

/* Enlaces legales y copyright */
.footer-legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

@media (min-width: 768px) {
	.footer-legal {
		align-items: center;
	}
}

.footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	.footer-legal-links {
		gap: 1.5rem;
	}
}

.footer-legal-link {
	font-weight: 300;
	color: var(--footer-text);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

.footer-legal-link:hover {
	color: var(--footer-text-hover);
}

.footer-copyright {
	font-weight: 300;
	font-size: 0.875rem;
	color: var(--footer-text-light);
	padding-top: 0.5rem;
}

/* Redes sociales */
.footer-social {
	display: flex;
	gap: 1rem;
}

.footer-social-link {
	color: var(--footer-text);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

.footer-social-link:hover {
	color: var(--footer-text-hover);
}

.footer-social-icon {
	width: 1.5rem;
	height: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.footer-bottom-content {
		text-align: center;
	}
	
	.footer-legal {
		order: 2;
	}
	
	.footer-social {
		order: 3;
	}
	
	.footer-logo {
		order: 1;
		margin-bottom: 1rem;
	}
}

/* Utilidades para espaciado */
.footer-spacing-sm {
	margin-bottom: 0.5rem;
}

.footer-spacing-md {
	margin-bottom: 1rem;
}

.footer-spacing-lg {
	margin-bottom: 1.5rem;
}

/* Estados de hover mejorados */
.footer-column-link:focus,
.footer-legal-link:focus,
.footer-social-link:focus {
	outline: 2px solid var(--footer-text-hover);
	outline-offset: 2px;
}

/* Transiciones suaves para todos los elementos interactivos */
.footer-column-link,
.footer-legal-link,
.footer-social-link {
	transition: color 0.15s ease-in-out, outline 0.15s ease-in-out;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
	.footer-column-link,
	.footer-legal-link,
	.footer-social-link {
		transition: none;
	}
}

/* Estilos para modo oscuro (si se implementa en el futuro) */
@media (prefers-color-scheme: dark) {
	:root {
		--footer-text-hover: #f3f4f6;
		--footer-text-light: #e5e7eb;
	}
}
