/**
 * Pre-Footer Styles
 *
 * Estilos para la sección pre-footer personalizable.
 *
 * @package Fiscalia
 */

/* ==========================================================================
   Pre-Footer Section
   ========================================================================== */

.fiscalia-pre-footer {
	background-color: #1e3a8a;
	color: #ffffff;
	padding-top: 40px;
	padding-bottom: 40px;
	margin-top: 0;
}

.fiscalia-pre-footer .container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Pre-Footer Widgets */
.pre-footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

/* Widget Styles */
.pre-footer-widget {
	margin-bottom: 0;
}

.pre-footer-widget-title {
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 16px;
	font-family: var(--fiscalia-font-headings, 'Nunito Sans', sans-serif);
}

.pre-footer-widget p {
	margin-bottom: 12px;
	line-height: 1.6;
	font-size: 15px;
}

.pre-footer-widget a {
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.pre-footer-widget a:hover,
.pre-footer-widget a:focus {
	opacity: 0.8;
	text-decoration: underline;
}

/* Widget Lists */
.pre-footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pre-footer-widget ul li {
	margin-bottom: 12px;
	padding-left: 20px;
	position: relative;
}

.pre-footer-widget ul li::before {
	content: "›";
	position: absolute;
	left: 0;
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
}

/* Grid Layout para múltiples widgets */
@media (min-width: 768px) {
	.pre-footer-widgets {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 32px;
	}
}

/* Logos institucionales */
.pre-footer-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: center;
}

.pre-footer-logos img {
	max-height: 60px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* Enlaces tipo megamenú */
.pre-footer-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 32px;
}

.pre-footer-links-column h3 {
	color: #ffffff;
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 16px;
	text-transform: uppercase;
	border-bottom: 2px solid rgba(255, 255, 255, 0.3);
	padding-bottom: 8px;
}

.pre-footer-links-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pre-footer-links-column ul li {
	margin-bottom: 8px;
}

.pre-footer-links-column a {
	display: block;
	padding: 4px 0;
	font-size: 14px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.pre-footer-links-column a:hover,
.pre-footer-links-column a:focus {
	transform: translateX(4px);
	opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
	.fiscalia-pre-footer {
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.pre-footer-widgets {
		gap: 24px;
	}

	.pre-footer-logos {
		gap: 16px;
	}

	.pre-footer-logos img {
		max-height: 50px;
	}

	.pre-footer-links {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Accesibilidad */
.fiscalia-pre-footer a:focus {
	outline: 2px solid #FFD700;
	outline-offset: 2px;
}

/* Modo impresión */
@media print {
	.fiscalia-pre-footer {
		background-color: transparent !important;
		color: #000000 !important;
	}

	.pre-footer-logos img {
		filter: none;
	}
}
