/* ==========================================================================
   Redes sociales (v9.5) — inc/redes.php
   Franja «Síguenos» arriba del pie, fila del menú móvil, tarjetas de contacto y
   franja de «pedido recibido». Blanco, líneas #E5E5E5, botones de 48px con contorno
   #222 y radio 4px; WhatsApp en negro. Logos monocromos (#222): sin colores de marca.
   ========================================================================== */

/* ---------- Botón de red (logo + nombre) ---------- */
.filo-redes-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px; border: 1px solid #222222; border-radius: 4px;
	background: #FFFFFF; color: #222222;
	font-family: var(--f); font-size: 14px; font-weight: 700; font-stretch: 100%; line-height: 1.1;
	letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
	-webkit-tap-highlight-color: transparent;
}
.filo-redes-btn .filo-redes-logo { flex: none; width: 20px; height: 20px; }
.filo-redes-btn--wa { background: #000000; border-color: #000000; color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
	.filo-redes-btn:hover { background: #F6F6F6; border-color: #000000; color: #000000; }
	.filo-redes-btn--wa:hover { background: #333333; border-color: #333333; color: #FFFFFF; }
}
.filo-redes-btn:active { background: #F2F2F2; }
.filo-redes-btn--wa:active { background: #333333; }
.filo-pie .filo-redes-btn:focus-visible,
.filo-redes-btn:focus-visible { outline: 2px solid #000000; outline-offset: 2px; border-radius: 4px; }

/* ---------- Franja «Síguenos» (primera fila del pie) ---------- */
.filo-redes-banda { background: #FFFFFF; border-bottom: 1px solid #E5E5E5; color: #222222; }
.filo-redes-banda__in {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 40px;
	padding-block: 32px;
}
.filo-redes-banda__tit {
	margin: 0 0 4px; font-family: var(--f); font-stretch: 100%; font-size: 20px; font-weight: 800; line-height: 1.25;
	letter-spacing: 0; text-transform: uppercase; color: #222222;
}
.filo-redes-banda__lema { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.45; color: #444444; }
.filo-redes-banda__usuario { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #767676; }
.filo-redes-banda__usuario strong { color: #222222; font-weight: 700; }
.filo-redes-banda__lista {
	display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.filo-redes-banda__lista > li { margin: 0; }

/* Con el boletín debajo: un solo bloque blanco con dos filas (línea interior, no dos franjas). */
.filo-redes-banda:has(+ .filo-pie__boletin) { border-bottom: 0; }
.filo-redes-banda + .filo-pie__boletin .filo-pie__boletin-in { border-top: 1px solid #E5E5E5; }

@media (max-width: 990px) {
	.filo-redes-banda__in { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 24px; }
	.filo-redes-banda__tit { font-size: 18px; }
	.filo-redes-banda__lista { justify-content: flex-start; }
}
@media (max-width: 640px) {
	.filo-redes-banda__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.filo-redes-banda__lista .filo-redes-btn { width: 100%; padding: 0 12px; }
	/* Número impar de botones: el último (WhatsApp) ocupa toda la fila. */
	.filo-redes-banda__lista > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Botones de icono (44px): menú móvil y «pedido recibido» ---------- */
.filo-redes-iconos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.filo-redes-iconos > li { margin: 0; }
.filo-redes-iconos__btn {
	display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #E5E5E5; border-radius: 4px;
	background: #FFFFFF; color: #222222; text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
	-webkit-tap-highlight-color: transparent;
}
.filo-redes-iconos__btn .filo-redes-logo { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
	.filo-redes-iconos__btn:hover { background: #F6F6F6; border-color: #222222; }
}
.filo-redes-iconos__btn:active { background: #F2F2F2; }
.filo-redes-iconos__btn:focus-visible { outline: 2px solid #000000; outline-offset: 2px; border-radius: 4px; }

/* ---------- Menú móvil: «Síguenos» + WhatsApp al final ---------- */
.filo-redes-menu { display: grid; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 1px solid #E5E5E5; }
.filo-redes-menu:first-child { margin-top: 0; padding-top: 4px; border-top: 0; }
.filo-redes-menu__fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filo-redes-menu__tit {
	margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #767676;
}
.filo-redes-menu__lista { flex-wrap: nowrap; }
.filo-menu .filo-redes-menu__wa { min-height: 48px; gap: 8px; }
.filo-redes-menu__wa .filo-redes-logo { width: 20px; height: 20px; }

/* ---------- Contacto: tarjetas [filo_contacto] ---------- */
.filo-redes-ct,
.filo-contenido .filo-redes-ct {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
	margin: 24px 0; padding: 0; list-style: none;
}
.filo-redes-ct__card,
.filo-contenido .filo-redes-ct__card {
	display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 16px;
	border: 1px solid #E5E5E5; border-radius: 6px; background: #FFFFFF; color: #222222;
}
.filo-redes-ct__card::marker { content: none; }
.filo-redes-ct__cabeza { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: #222222; }
.filo-redes-ct__cabeza .filo-icono { flex: none; width: 22px; height: 22px; }
.filo-redes-ct__nombre,
.filo-contenido .filo-redes-ct__nombre {
	margin: 0; font-family: var(--f); font-stretch: 100%; font-size: 16px; font-weight: 700; line-height: 1.3;
	letter-spacing: 0; text-transform: none; color: #222222;
}
.filo-redes-ct__dato,
.filo-contenido .filo-redes-ct__dato {
	margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: #222222; font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.filo-redes-ct__texto,
.filo-contenido .filo-redes-ct__texto { margin: 0; font-size: 13px; line-height: 1.45; color: #767676; }
.filo-redes-ct__btn,
.filo-contenido .filo-redes-ct__btn { margin-top: auto; padding: 8px 12px; white-space: normal; }
.filo-redes-ct__card > p:last-of-type { margin-bottom: 12px; }
.filo-redes-ct__card > p:last-child { margin-bottom: 0; }
.filo-contenido a.filo-redes-ct__btn.filo-btn--oscuro,
.filo-contenido a.filo-redes-ct__btn.filo-btn--oscuro:hover { color: #FFFFFF; text-decoration: none; }
.filo-contenido a.filo-redes-ct__btn.filo-btn--contorno { color: #222222; text-decoration: none; }

/* ---------- «Pedido recibido» ---------- */
.filo-redes-gracias {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
	margin: 24px 0; padding: 12px 16px; border: 1px solid #E5E5E5; border-radius: 6px; background: #FFFFFF;
}
.filo-redes-gracias__txt { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; color: #222222; }

@media (prefers-reduced-motion: reduce) {
	.filo-redes-btn, .filo-redes-iconos__btn { transition: none; }
}
/* v9.7.1 — Tablet en vertical (641–990px): los botones van en una sola fila de columnas iguales
   (antes el último, WhatsApp, caía solo a una segunda fila a 768px). */
@media (min-width: 641px) and (max-width: 990px) {
	.filo-redes-banda__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
	.filo-redes-banda__lista .filo-redes-btn { width: 100%; gap: 6px; padding: 0 10px; font-size: 13px; }
}
