/* ==========================================================================
   serviNec — Pie de página global (Footer)
   Basado fielmente en footer.html con Tailwind tokens convertidos a CSS puro.
   ========================================================================== */

/* Garantizar footer al fondo en páginas con poco contenido */
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

/* Contenedor principal del footer */
.snec-footer {
	width: 100%;
	background-color: #131313;
	color: #ffffff;
	padding-top: 2.5rem;   /* pt-10 */
	padding-bottom: 1.25rem;/* pb-5 */
	padding-left: clamp(1.5rem, 5vw, 5rem);  /* px-6 sm:px-12 md:px-16 lg:px-20 */
	padding-right: clamp(1.5rem, 5vw, 5rem);
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin-top: auto;
	flex-shrink: 0;
}

/* Envoltorio con límite de ancho */
.snec-footer__container {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

/* ── TopBar: Logo, Boletín, Contacto/Beneficios ── */
.snec-footer__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-bottom: 3rem;  /* pb-12 */
	border-bottom: 1px solid #242424;
}

@media (min-width: 1024px) {
	.snec-footer__top {
		flex-direction: row;
	}
}

/* Logo de marca */
.snec-footer__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.snec-footer__logo-link {
	display: inline-flex;
	align-items: baseline;
	text-decoration: none;
	color: #ffffff;
	transition: opacity 0.15s ease;
	line-height: 1;
}

.snec-footer__logo-link:hover {
	opacity: 0.9;
}

.snec-footer__logo-servi {
	font-size: 1.875rem; /* text-3xl (30px) */
	font-weight: 800;    /* font-extrabold */
	letter-spacing: -0.05em; /* tracking-tight brand-title */
	text-transform: lowercase;
	color: #ffffff;
}

.snec-footer__logo-nec {
	font-size: 1.875rem; /* text-3xl */
	font-weight: 700;    /* font-bold */
	letter-spacing: -0.025em;
	text-transform: uppercase;
	margin-left: 2px;
	color: #ffffff;
}

/* ── Newsletter Subscription Box ── */
.snec-footer__newsletter {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
	justify-content: center;
}

@media (min-width: 640px) {
	.snec-footer__newsletter {
		flex-direction: row;
		width: auto;
	}
}

.snec-footer__newsletter-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #ffffff;
	font-weight: 500;
	font-size: 0.875rem; /* 14px */
	white-space: nowrap;
}

.snec-footer__newsletter-label .snec-footer__icon {
	width: 1.25rem;
	height: 1.25rem;
	color: #e5e7eb; /* gray-200 */
	flex-shrink: 0;
}

.snec-footer__newsletter-form {
	position: relative;
	width: 100%;
}

@media (min-width: 640px) {
	.snec-footer__newsletter-form {
		width: 320px;
	}
}

@media (min-width: 768px) {
	.snec-footer__newsletter-form {
		width: 360px;
	}
}

.snec-footer__newsletter-input {
	width: 100%;
	background-color: #1c1c1e;
	color: #e5e7eb;
	font-size: 0.8125rem; /* 13px */
	border-radius: 9999px;
	padding: 0.625rem 2.75rem 0.625rem 1rem;
	border: 1px solid #333336;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	font-family: inherit;
}

@media (min-width: 768px) {
	.snec-footer__newsletter-input {
		font-size: 0.875rem;
	}
}

.snec-footer__newsletter-input::placeholder {
	color: #7c7c82;
}

.snec-footer__newsletter-input:focus {
	border-color: #6b7280;
	box-shadow: none;
}

.snec-footer__newsletter-btn {
	position: absolute;
	right: 0.875rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	color: #d1d5db; /* gray-300 */
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease;
}

.snec-footer__newsletter-btn:hover {
	color: #ffffff;
}

.snec-footer__newsletter-btn .snec-footer__icon {
	width: 1rem;
	height: 1rem;
}

/* ── Contacto y Beneficios ── */
.snec-footer__perks {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	font-size: 0.75rem;
	color: #e5e7eb;
	align-self: center;
}

@media (min-width: 1024px) {
	.snec-footer__perks {
		align-self: auto;
	}
}

.snec-footer__perk {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	color: inherit;
	text-decoration: none;
}

.snec-footer__perk--link {
	transition: opacity 0.15s ease;
}

.snec-footer__perk--link:hover {
	opacity: 0.85;
}

.snec-footer__perk-icon {
	width: 1rem;
	height: 1rem;
	color: #d1d5db;
	flex-shrink: 0;
}

.snec-footer__perk-text {
	color: #ffffff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
}

.snec-footer__perk-text--bold {
	font-weight: 500;
	letter-spacing: 0.025em;
}

/* ── Columnas de Enlaces (4 Columnas) ── */
.snec-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
	.snec-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.snec-footer__col {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.snec-footer__col-title {
	color: #ffffff;
	font-weight: 500;
	font-size: 1rem; /* 16px */
	line-height: 1.4;
	margin: 0 0 0.25rem 0;
}

.snec-footer__col-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem; /* space-y-2 (8px) */
}

.snec-footer__col-list li {
	margin: 0;
	padding: 0;
}

.snec-footer__col-list a {
	color: #9ca3af;
	font-size: 0.75rem; /* text-xs */
	line-height: 1.4;
	text-decoration: none;
	display: inline-block;
	transition: color 0.15s ease;
}

@media (min-width: 768px) {
	.snec-footer__col-list a {
		font-size: 0.875rem; /* md:text-sm */
	}
}

.snec-footer__col-list a:hover {
	color: #ffffff;
}

/* ── Medios de contacto (columna Atención al cliente) ── */
.snec-footer__contact {
	list-style: none;
	margin: 0.375rem 0 0;
	padding: 0.875rem 0 0;
	border-top: 1px solid #242424;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.snec-footer__contact li {
	margin: 0;
	padding: 0;
}

.snec-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 100%;
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	overflow-wrap: break-word;
	transition: color 0.15s ease;
}

.snec-footer__contact span {
	min-width: 0;
}

.snec-footer__contact svg {
	flex: none;
	width: 1rem;
	height: 1rem;
	color: #1565e8;
}

.snec-footer__contact a:hover {
	color: #9fc0f7;
}

.snec-footer__contact a:focus-visible {
	outline: 2px solid #1565e8;
	outline-offset: 3px;
	border-radius: 2px;
}

@media (min-width: 768px) {
	.snec-footer__contact a {
		font-size: 0.875rem;
	}
}

/* ── Divisor ── */
.snec-footer__divider {
	width: 100%;
	border: none;
	border-top: 1px solid #242424;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

/* ── Copyright ── */
.snec-footer__bottom {
	text-align: center;
	padding-top: 0.25rem;
}

.snec-footer__copyright {
	font-size: 11px;
	color: #9ca3af;
	letter-spacing: 0.025em;
	margin: 0;
	line-height: 1.4;
}
