/* ══════════════════════════════════════════
   footer.css — pie de página estándar (sf-footer)
   Incluir en cualquier página que use el footer.
   Requiere Material Icons y Montserrat (ya cargados en <head>).
   ══════════════════════════════════════════ */

/* ── 1. VARIABLES ──────────────────────────
   Variables locales scoped dentro de .sf-footer
   para no contaminar el :root global de cada página.
   ─────────────────────────────────────────── */
.sf-footer {
	--sf-bg:      #131e09;
	--sf-crema:   #F2EBE0;
	--sf-brote:   #5BB37A;
	--sf-muted:   rgba(242, 235, 224, .65);
	--sf-divider: rgba(255, 255, 255, .06);
	font-family: 'Montserrat', system-ui, sans-serif;
}

/* ── 2. CONTENEDOR RAÍZ ────────────────────
   ─────────────────────────────────────────── */
.sf-footer {
	background: var(--sf-bg);
	color: var(--sf-crema);
}

/* ── 3. GRID PRINCIPAL ─────────────────────
   4 columnas: marca · navegar · legal · contacto.
   ─────────────────────────────────────────── */
.sf-main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: 56px;
	padding: 64px 80px 56px;
	max-width: 1400px;
	margin: 0 auto;
}

/* ── 4. COLUMNA DE MARCA ───────────────────
   Logo, descripción corta.
   ─────────────────────────────────────────── */
.sf-brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sf-logo-icon {
	width: 200px;
	height: auto;
	margin-bottom: 4px;
}

.sf-brand-desc {
	font-size: 14px;
	line-height: 1.65;
	color: var(--sf-muted);
	max-width: 280px;
}

/* ── 5. REDES SOCIALES ─────────────────────
   ─────────────────────────────────────────── */
.sf-social {
	display: flex;
	gap: 8px;
	padding: 4px 0;
}

.sf-social-btn {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #1f3010;
	border: 1px solid #2e4a18;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, border-color 0.2s;
}

.sf-social-btn:hover {
	background: #2a4216;
	border-color: #487226;
}

/* ── 6. CHIP ECOLÓGICO ─────────────────────
   ─────────────────────────────────────────── */
.sf-eco-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid rgba(91, 179, 122, .32);
	background: rgba(91, 179, 122, .07);
	color: var(--sf-brote);
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	width: fit-content;
}

.sf-eco-chip .material-icons { font-size: 14px; }

/* ── 7. COLUMNAS DE NAVEGACIÓN Y LEGAL ─────
   Encabezado de columna + lista de enlaces.
   ─────────────────────────────────────────── */
.sf-col {
	display: flex;
	flex-direction: column;
	padding-top: 2px;
}

.sf-col-head {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sf-brote);
	margin-bottom: 20px;
}

.sf-links {
	display: flex;
	flex-direction: column;
}

.sf-link {
	font-size: 15px;
	font-weight: 400;
	color: rgba(242, 235, 224, .72);
	text-decoration: none;
	padding: 9px 0;
	display: flex;
	align-items: center;
	gap: 9px;
	border-bottom: 1px solid var(--sf-divider);
	transition: color 0.15s;
}

.sf-link:last-child { border-bottom: none; }

.sf-link::before {
	content: '→';
	color: rgba(91, 179, 122, .45);
	font-size: 14px;
	flex-shrink: 0;
	transition: color 0.15s;
}

.sf-link:hover           { color: white; }
.sf-link:hover::before   { color: var(--sf-brote); }

/* ── 8. COLUMNA DE CONTACTO ────────────────
   ─────────────────────────────────────────── */
.sf-contact-items {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.sf-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.sf-contact-icon {
	font-size: 18px;
	color: var(--sf-brote);
	flex-shrink: 0;
	margin-top: 1px;
}

.sf-contact-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sf-contact-title {
	font-size: 14px;
	font-weight: 500;
	color: rgba(242, 235, 224, .88);
	text-decoration: none;
	line-height: 1.3;
}

a.sf-contact-title:hover { color: white; }

.sf-contact-sub {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sf-brote);
}

/* ── 9. BARRA INFERIOR ─────────────────────
   Copyright a la izquierda, links legales a la derecha.
   ─────────────────────────────────────────── */
.sf-bottom {
	border-top: 1px solid var(--sf-divider);
	padding: 20px 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1400px;
	margin: 0 auto;
}

.sf-copy {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(242, 235, 224, .55);
}

.sf-legal-links {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sf-legal-link {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(242, 235, 224, .55);
	text-decoration: none;
	transition: color 0.15s;
}

.sf-legal-link:hover { color: rgba(242, 235, 224, .70); }

.sf-dot {
	color: rgba(242, 235, 224, .18);
	font-size: 10px;
}

/* ── 10. CTA BAND ──────────────────────────
   Banda superior opcional antes del footer principal.
   Usada en: index.html, aviso-privacidad.html, como-funciona.html.
   ─────────────────────────────────────────── */
.sf-footer .footer-last-cta {
	background: radial-gradient(ellipse at 72% 50%, #2a471a 0%, #1d340c 50%, #131e09 100%);
	width: 100%;
	display: flex;
	padding: 64px 80px;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}

.sf-footer .footer-cta-text h2 {
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 64px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--sf-crema);
	margin-bottom: 18px;
}

.sf-footer .footer-cta-hi {
	color: #E94D8C;
	font-style: italic;
}

.sf-footer .footer-cta-text p {
	font-size: 14px;
	color: var(--sf-muted);
	line-height: 1.6;
}

.sf-footer .footer-cta-action { flex-shrink: 0; }

.sf-footer .cta-green-btn {
	background: var(--sf-brote);
	color: #15291C;
	border: 0;
	border-radius: 999px;
	height: 56px;
	padding: 0 28px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: 'Montserrat', system-ui, sans-serif;
	transition: transform .15s;
}

.sf-footer .cta-green-btn:hover {
	transform: translateY(-1px);
	color: #15291C;
}

/* ── 11. RESPONSIVE — MÓVIL (< 768px) ─────
   ─────────────────────────────────────────── */
@media (max-width: 767px) {
	.sf-main {
		grid-template-columns: 1fr;
		padding: 40px 24px 32px;
		gap: 32px;
	}

	.sf-logo-icon { width: 150px; }

	.sf-bottom {
		flex-direction: column;
		gap: 12px;
		padding: 18px 24px;
		text-align: center;
	}

	.sf-legal-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.sf-col-nav { display: none; }

	.sf-footer .footer-last-cta {
		padding: 40px 24px;
		flex-direction: column;
	}

	.sf-footer .footer-cta-text h2 { font-size: 36px; }

	.sf-footer .footer-cta-action { width: 100%; }

	.sf-footer .footer-cta-action .cta-green-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ── 12. COOKIE BANNER ─────────────────────
   Banner fijo en la parte inferior.
   Compartido por todas las páginas que cargan footer.css.
   ─────────────────────────────────────────── */
.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #15291C;
	z-index: 200;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 18px 40px;
	max-width: 1200px;
	margin: 0 auto;
}

.cookie-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.cookie-brand-icon {
	font-size: 28px;
	color: rgba(158, 176, 139, 0.7);
}

.cookie-brand-label {
	font-size: 11px;
	font-weight: 500;
	color: rgba(158, 176, 139, 0.85);
	letter-spacing: 0.5px;
}

.cookie-title { display: none; }

.cookie-extra { display: inline; }

.cookie-text {
	flex: 1;
	font-size: 14px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.6;
	font-family: 'Montserrat', system-ui, sans-serif;
}

.cookie-privacy-link       { color: #F07AB0; font-weight: 500; }
.cookie-privacy-link:hover { color: #F07AB0; }

.cookie-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.cookie-reject-btn,
.cookie-accept-btn {
	padding: 10px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Montserrat', system-ui, sans-serif;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.cookie-reject-btn {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: rgba(255, 255, 255, 0.85);
}

.cookie-reject-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
	color: white;
}

.cookie-accept-btn {
	background: rgba(255, 255, 255, 0.12);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: white;
}

.cookie-accept-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
	.cookie-banner-inner {
		flex-wrap: wrap;
		padding: 16px 20px;
		gap: 10px;
	}

	.cookie-brand {
		flex-direction: row;
		align-items: center;
		gap: 6px;
		width: 100%;
	}

	.cookie-brand-icon  { font-size: 20px; }
	.cookie-brand-label { font-size: 12px; }

	.cookie-title {
		display: inline;
		font-size: 15px;
		font-weight: 700;
		color: white;
		margin-left: 4px;
	}

	.cookie-extra { display: none; }

	.cookie-text {
		width: 100%;
		font-size: 13px;
		margin-top: 2px;
	}

	.cookie-actions { width: 100%; gap: 10px; }

	.cookie-reject-btn,
	.cookie-accept-btn {
		flex: 1;
		text-align: center;
		padding: 12px 16px;
	}
}
