/* =========================================================
 * Footer C&G Importador & Distribuidor SAC
 * Panel azul central (logo + menú) sobre fondo navy con
 * patrón de cuadrados muy sutil que aparece al hacer hover.
 * ========================================================= */

/* =========================================================
 * Barra de beneficios (banda clara sobre el footer navy)
 * ========================================================= */
.cg-features {
	background: #f6f6f4;
	font-family: var(--OZ-Font-Base, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.cg-features * { box-sizing: border-box; }
.cg-features__inner {
	max-width: 1720px;
	margin: 0 auto;
	padding: 22px 40px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 22px clamp(48px, 7vw, 120px);
}
.cg-feature {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}
.cg-feature__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 42px;
	object-fit: contain;
	display: block;
}
.cg-feature__text {
	margin: 0;
	color: #0a173a;
	font-size: clamp(15px, 1.4vw, 20px);
	font-weight: 500;
	line-height: 1.18;
	white-space: nowrap;
}

/* Tablet: 2 x 2 */
@media (max-width: 991.98px) {
	.cg-features__inner {
		padding: 20px;
		gap: 18px 40px;
	}
	.cg-feature {
		flex: 0 0 calc(50% - 20px);
		justify-content: flex-start;
	}
}

/* Móvil: 2 columnas (2 x 2), bloque centrado y con más aire */
@media (max-width: 575.98px) {
	.cg-features__inner {
		max-width: 460px;
		padding: 28px 16px;
		gap: 26px 14px;
	}
	.cg-feature {
		flex: 0 0 calc(50% - 7px);
		gap: 12px;
	}
	.cg-feature__icon { width: 40px; height: 34px; }
	.cg-feature__text { font-size: 13.5px; line-height: 1.25; }
}

.cg-footer {
	--cg-navy:        #0a173a;
	--cg-navy-2:      #0c1d4a;
	--cg-blue:        #1173d4;
	--cg-blue-2:      #0e63bb;
	--cg-social:      #1877f2;
	--cg-grid-line:   rgba(255, 255, 255, 0.045);
	--cg-grid-line-h: rgba(120, 170, 255, 0.16);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: radial-gradient(120% 120% at 50% 0%, var(--cg-navy-2) 0%, var(--cg-navy) 70%);
	color: #fff;
	padding: 46px 0 34px;
	font-family: var(--OZ-Font-Base, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}

.cg-footer * { box-sizing: border-box; }

/* --- Patrón de cuadrados (sutil, se intensifica al pasar el mouse) --- */
.cg-footer__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(to right, var(--cg-grid-line) 1px, transparent 1px),
		linear-gradient(to bottom, var(--cg-grid-line) 1px, transparent 1px);
	background-size: 34px 34px;
	transition: background-image .45s ease, opacity .45s ease;
}
.cg-footer:hover .cg-footer__grid {
	background-image:
		linear-gradient(to right, var(--cg-grid-line-h) 1px, transparent 1px),
		linear-gradient(to bottom, var(--cg-grid-line-h) 1px, transparent 1px);
}

.cg-footer__inner {
	position: relative;
	max-width: 1720px;
	margin: 0 auto;
	padding: 0 40px;
}

/* --- Panel azul central --- */
.cg-footer__panel {
	background: linear-gradient(180deg, var(--cg-blue) 0%, var(--cg-blue-2) 100%);
	border-radius: 26px;
	padding: 40px 24px 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	box-shadow: 0 18px 46px -22px rgba(17, 115, 212, 0.65);
}

.cg-footer__logo { display: inline-flex; line-height: 0; }
.cg-footer__logo img {
	max-width: 340px;
	width: auto;
	height: auto;
	max-height: 78px;
	display: block;
}

/* --- Barra de navegación (pill) --- */
.cg-footer__nav-wrap {
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 12px;
	padding: 6px 8px;
	background: rgba(255, 255, 255, 0.04);
}
.cg-footer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px;
}
.cg-footer__nav li { margin: 0; }
.cg-footer__nav a {
	display: inline-block;
	padding: 10px 26px;
	color: #eaf2ff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 8px;
	transition: background-color .2s ease, color .2s ease;
}
.cg-footer__nav a:hover,
.cg-footer__nav .current-menu-item > a,
.cg-footer__nav .current_page_item > a {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* --- Separador --- */
.cg-footer__divider {
	border: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.12);
	margin: 30px 0 24px;
}

/* --- Redes sociales --- */
.cg-footer__social {
	display: flex;
	justify-content: flex-end;
	gap: 14px;
}
.cg-footer__social a {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--cg-social);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.cg-footer__social a:hover {
	background: #0f6ae0;
	transform: translateY(-3px);
	box-shadow: 0 10px 22px -10px rgba(24, 119, 242, 0.9);
}
.cg-footer__social svg { display: block; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
	.cg-footer__inner { padding: 0 20px; }
	.cg-footer__panel { padding: 32px 18px 36px; border-radius: 20px; }
}
@media (max-width: 575.98px) {
	.cg-footer { padding: 34px 0 28px; }
	.cg-footer__logo img { max-width: 240px; }
	.cg-footer__nav a { padding: 9px 16px; font-size: 14px; }
	.cg-footer__social { justify-content: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	.cg-footer__grid,
	.cg-footer__social a { transition: none !important; }
	.cg-footer__social a:hover { transform: none; }
}
