/**
 * NandaStream — Custom Footer CSS
 * Version: 3.2.0
 *
 * Estilos específicos del footer (.ns-footer).
 * Depende de ns-global.css para los tokens :root (--ns-bg, --ns-accent, etc.)
 *
 * ESTRATEGIA: Mobile-first. Estilos base = móvil (1 columna).
 * Tablet (≥640px) = 2 columnas. Desktop (≥1024px) = 4 columnas.
 *
 * SECCIONES:
 *   1. Container y wrap
 *   2. Grid de columnas
 *   3. Columna brand (logo, tagline, CTA WhatsApp, social)
 *   4. Columnas de links (categorías, atención, legal)
 *   5. Aviso legal
 *   6. Bottom (copyright + WhatsApp)
 *   7. Responsive (tablet + desktop)
 *   8. Compat con LiteSpeed Cache + reduced motion
 */

/* ==============================================================
   1. CONTAINER Y WRAP
   ============================================================== */
.ns-footer {
	background: var(--ns-bg);
	color: var(--ns-text);
	border-top: 1px solid var(--ns-border);
	padding: 48px 0 24px;
	margin-top: 64px;
	font-family: var(--ns-stack);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ns-footer-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==============================================================
   2. GRID DE COLUMNAS — mobile-first (1 columna)
   ============================================================== */
.ns-footer-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin-bottom: 32px;
}

.ns-footer-col {
	min-width: 0;
}

/* ==============================================================
   3. COLUMNA BRAND
   ============================================================== */
.ns-footer-logo {
	display: inline-block;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ns-text);
	text-decoration: none;
	margin-bottom: 14px;
	line-height: 1;
}
.ns-footer-logo span {
	color: var(--ns-text);
}
.ns-footer-logo strong {
	color: var(--ns-accent);
	font-weight: 700;
}
.ns-footer-logo:hover {
	color: var(--ns-text);
}

.ns-footer-tagline {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--ns-text-strong);
	margin: 0 0 18px;
	max-width: 360px;
}

.ns-footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ns-grad-cta);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 11px 18px;
	border-radius: var(--ns-r);
	text-decoration: none;
	box-shadow: var(--ns-shadow-cta);
	transition: box-shadow var(--ns-t-md), transform 100ms ease;
	margin-bottom: 20px;
	line-height: 1;
}
.ns-footer-cta:hover {
	color: #fff;
	box-shadow: var(--ns-shadow-cta-h);
	transform: translateY(-1px);
}
.ns-footer-cta:active {
	transform: translateY(1px);
}
.ns-footer-cta svg {
	stroke: #fff;
	flex-shrink: 0;
}

.ns-footer-social {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ns-footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--ns-surf);
	border: 1px solid var(--ns-border);
	border-radius: var(--ns-r);
	color: var(--ns-accent);
	transition: background var(--ns-t), border-color var(--ns-t), transform var(--ns-t);
	text-decoration: none;
}
.ns-footer-social-link:hover {
	background: var(--ns-bg-soft);
	border-color: var(--ns-border-hov);
	color: var(--ns-accent-d);
	transform: translateY(-2px);
}
.ns-footer-social-link svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ==============================================================
   4. COLUMNAS DE LINKS
   ============================================================== */
.ns-footer-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--ns-text);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 14px;
	padding: 0;
	line-height: 1.4;
}

.ns-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ns-footer-list li {
	margin: 0;
	padding: 6px 0;
	border: none;
}
.ns-footer-list a {
	display: inline-flex;
	align-items: center;
	color: var(--ns-text);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: color var(--ns-t);
	line-height: 1.5;
}
.ns-footer-list a:hover {
	color: var(--ns-accent);
}
.ns-footer-list a svg {
	stroke: var(--ns-accent);
}

/* ==============================================================
   5. AVISO LEGAL
   ============================================================== */
.ns-footer-legal {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--ns-text-mute);
	background: var(--ns-bg-soft);
	border: 1px solid var(--ns-border);
	border-radius: var(--ns-r-lg);
	padding: 16px 20px;
	margin: 24px 0;
}
.ns-footer-legal strong {
	color: var(--ns-text);
	font-weight: 700;
}
.ns-footer-legal strong svg {
	stroke: var(--ns-accent);
}

/* ==============================================================
   6. BOTTOM (copyright + WhatsApp)
   ============================================================== */
.ns-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--ns-border-soft);
	font-size: 12px;
	font-weight: 500;
	color: var(--ns-text-mute);
}
.ns-footer-copy {
	color: var(--ns-text-mute);
}
.ns-footer-divider {
	color: var(--ns-text-dim);
	user-select: none;
}
.ns-footer-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ns-accent);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--ns-t);
}
.ns-footer-phone:hover {
	color: var(--ns-accent-d);
}
.ns-footer-phone svg {
	stroke: currentColor;
	flex-shrink: 0;
}

/* ==============================================================
   7. RESPONSIVE
   ============================================================== */

/* Tablet: 2 columnas */
@media (min-width: 640px) {
	.ns-footer-cols {
		grid-template-columns: 1fr 1fr;
		gap: 32px 28px;
	}
	.ns-footer-col--brand {
		grid-column: 1 / -1;
	}
}

/* Desktop: 4 columnas con brand más ancha */
@media (min-width: 1024px) {
	.ns-footer {
		padding: 64px 0 32px;
	}
	.ns-footer-wrap {
		padding: 0 32px;
	}
	.ns-footer-cols {
		grid-template-columns: 2fr 1fr 1fr 1fr;
		gap: 48px;
		margin-bottom: 40px;
	}
	.ns-footer-col--brand {
		grid-column: auto;
	}
	.ns-footer-tagline {
		font-size: 14px;
	}
	.ns-footer-bottom {
		justify-content: flex-start;
		padding-top: 22px;
	}
}

/* Pantallas anchas: dejar margen lateral generoso */
@media (min-width: 1440px) {
	.ns-footer-wrap {
		padding: 0;
	}
}

/* ==============================================================
   8. COMPAT + ACCESIBILIDAD
   ============================================================== */

/* Focus visible accesible */
.ns-footer a:focus-visible,
.ns-footer-cta:focus-visible,
.ns-footer-social-link:focus-visible {
	outline: 2px solid var(--ns-accent);
	outline-offset: 2px;
	border-radius: var(--ns-r-sm);
}
.ns-footer-cta:focus-visible {
	outline-offset: 3px;
}

/* prefers-reduced-motion: desactivar animaciones */
@media (prefers-reduced-motion: reduce) {
	.ns-footer-cta,
	.ns-footer-social-link,
	.ns-footer-list a,
	.ns-footer-phone {
		transition: none !important;
		transform: none !important;
	}
	.ns-footer-cta:hover,
	.ns-footer-social-link:hover {
		transform: none !important;
	}
}

/* Print: simplificar (no es común imprimir el footer pero por buenas prácticas) */
@media print {
	.ns-footer-cta,
	.ns-footer-social,
	.ns-footer-phone svg {
		display: none;
	}
	.ns-footer {
		border-top-color: #000;
		color: #000;
	}
}
