/* footer-test.css — Footer branded (manual de marca v1.3). Scope: #footer-test */

#footer-test {
  background: var(--brand-secundario);   /* #1C2E4A azul oscuro (light) / #4A7DB0 dark token NO — usar literal oscuro */
  color: #fff;
  margin-top: 40px;
  font-family: 'Lora', Georgia, serif;
}
html.dark #footer-test { background: #0d1726; }

#footer-test .footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 36px 16px 20px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 768px) {
  #footer-test .footer-inner { flex-direction: row; justify-content: space-between; gap: 40px; }
}

/* Columnas de links */
#footer-test .footer-cols { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 768px) {
  #footer-test .footer-cols { flex-direction: row; gap: 48px; flex: 1; }
}
#footer-test .footer-col__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px;
  padding: 14px 0; cursor: pointer; text-align: left;
}
#footer-test .footer-col__head:focus-visible { outline: 2px solid var(--brand-acento); outline-offset: 2px; }
#footer-test .footer-col__chev { transition: transform 0.2s; display: inline-flex; }
#footer-test .footer-col.is-open .footer-col__chev { transform: rotate(180deg); }

/* Mobile: accordion (collapsed by default, expand via Alpine state class) */
#footer-test .footer-col__body {
  list-style: none; margin: 0; padding: 0; overflow: hidden;
  max-height: 0; transition: max-height 0.25s ease;
}
#footer-test .footer-col.is-open .footer-col__body { max-height: 320px; }
#footer-test .footer-col__body li { padding: 4px 0; }
#footer-test .footer-col__body a { color: #DCEAF5; text-decoration: none; font-size: 15px; }
#footer-test .footer-col__body a:hover { text-decoration: underline; }
#footer-test .footer-col__body a:focus-visible { outline: 2px solid var(--brand-acento); outline-offset: 2px; border-radius: 2px; }
#footer-test .footer-newsletter a:focus-visible,
#footer-test .footer-social a:focus-visible,
#footer-test .footer-socio:focus-visible,
#footer-test .footer-fiscal a:focus-visible { outline: 2px solid #DCEAF5; outline-offset: 2px; border-radius: 4px; }

/* Desktop: títulos no-clickeables, listas siempre visibles */
@media (min-width: 768px) {
  #footer-test .footer-col__head { cursor: default; border-bottom: none; padding: 0 0 10px; pointer-events: none; }
  #footer-test .footer-col__chev { display: none; }
  #footer-test .footer-col__body { max-height: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #footer-test .footer-col__chev, #footer-test .footer-col__body { transition: none; }
}

/* Info (whatsapp, social, dirección, fiscal, legal) */
#footer-test .footer-info { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { #footer-test .footer-info { width: 42%; flex-shrink: 0; } }
/* WhatsApp — pill blanca con ícono verde (mismo lenguaje que el cta-wa de /que-ofrecemos) */
#footer-test .footer-wa-row { margin: 0; }
#footer-test .footer-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #0B2F55; text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 14px;
  padding: 11px 22px; border-radius: 50px; box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
#footer-test .footer-wa svg { width: 20px; height: 20px; fill: #25D366; flex-shrink: 0; }
#footer-test .footer-wa:hover { transform: translateY(-1px); box-shadow: 0 9px 26px rgba(0,0,0,0.26); }
@media (prefers-reduced-motion: reduce) { #footer-test .footer-wa:hover { transform: none; } }
/* Íconos sociales: los webp son negros — sobre el azul se invierten a blanco (fix 17/07) */
#footer-test .footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
#footer-test .footer-social img { width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: 0.85; }
#footer-test .footer-social a:hover img { opacity: 1; }
#footer-test .footer-direccion,
#footer-test .footer-legal { font-size: 12px; line-height: 1.7; color: #cfe0ee; }
#footer-test .footer-fiscal { display: flex; align-items: center; gap: 12px; }
#footer-test .footer-fiscal p { margin: 0; font-size: 12px; line-height: 1.5; color: #cfe0ee; }
#footer-test .footer-fiscal img { width: 30px; height: 41px; }

/* Socios */
#footer-test .footer-socios {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  padding: 22px 16px; border-top: 1px solid rgba(255,255,255,0.12);
}
#footer-test .footer-socio {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 130px; text-align: center; color: #cfe0ee; text-decoration: none; font-size: 11px;
}
/* Los logos tienen fondo blanco opaco (excepto MAV) — invertirlos daba cajas blancas
   (bug 17/07). Chip blanco uniforme con el logo original adentro. */
#footer-test .footer-socio img {
  height: 40px; width: auto; max-width: 120px; object-fit: contain;
  background: #fff; padding: 5px 9px; border-radius: 8px; box-sizing: border-box;
  opacity: 0.92;
}
#footer-test .footer-socio:hover img { opacity: 1; }
