/* =====================================================================
   footer-v1.css · Pie de página profesional (tienda / customer-area)
   Cargado DESPUÉS de app.css. Rediseña <footer class="site-footer">
   con fondo en gradiente, columnas de enlaces y barra inferior.
   Se "pega" al fondo del viewport cuando la página es corta (sticky
   footer vía flex en body.customer-area), en escritorio y móvil.
   Selectores con la especificidad justa para ganar a las reglas
   antiguas de `footer` repartidas por app.css (incluidos !important).
   ===================================================================== */

/* ---- Sticky footer: el pie siempre queda abajo ------------------- */
body.customer-area{
  min-height:100svh;
  min-height:100vh; /* fallback navegadores sin svh */
  display:flex;
  flex-direction:column;
}
body.customer-area > main{ flex:1 0 auto; }
body.customer-area > .site-footer{ flex-shrink:0; }

/* ---- Contenedor ------------------------------------------------- */
body.customer-area footer.site-footer{
  margin-top:64px !important;
  padding:0 !important;
  border:0 !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
  color:#a1a1a6 !important;
  position:relative;
  overflow:hidden;
  /* Gradiente oscuro con matiz azul marca + negro */
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(0,229,255,.10), transparent 60%),
    radial-gradient(70% 120% at 100% 0%, rgba(0,24,80,.55), transparent 55%),
    linear-gradient(180deg, #0a0f1c 0%, #06070b 55%, #000 100%) !important;
}
/* Filo superior luminiscente con el acento de marca */
body.customer-area footer.site-footer::before{
  content:"";
  position:absolute; inset:0 0 auto 0; height:1px;
  background:linear-gradient(90deg, transparent, var(--accent,#00E5FF), transparent);
  opacity:.5;
}

body.customer-area footer.site-footer .wrap{
  display:block !important;
  position:relative;
  padding-top:52px;
  padding-bottom:28px;
}

/* ---- Zona superior: marca + columnas ---------------------------- */
.site-footer__top{
  display:grid;
  grid-template-columns:1.4fr repeat(3, minmax(0,1fr));
  gap:40px 32px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* ---- Columna de marca ------------------------------------------- */
.site-footer__brand{ max-width:340px; }
.site-footer__logo{
  display:inline-flex; align-items:center; gap:12px;
  text-decoration:none !important;
}
.site-footer__logo img{
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.4);
}
.site-footer__wordmark{
  font:700 20px/1 var(--sans);
  letter-spacing:-.02em;
  color:#f5f5f7 !important;
}
.site-footer__tld{ color:var(--accent,#00E5FF) !important; }
.site-footer__tagline{
  margin:16px 0 20px;
  font-size:13.5px; line-height:1.6;
  color:#8b96a5 !important;
  max-width:300px;
}
.site-footer__social{ display:flex; gap:10px; }
.site-footer__social a{
  display:grid; place-items:center;
  width:38px; height:38px; border-radius:50%;
  color:#c8d0dc !important;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  transition:background .18s, border-color .18s, color .18s, transform .18s;
}
.site-footer__social a:hover{
  color:var(--gsm-accent-ink,#06070b) !important;
  background:var(--accent,#00E5FF);
  border-color:var(--accent,#00E5FF);
  transform:translateY(-2px);
  text-decoration:none !important;
}
.site-footer__social svg{ width:18px; height:18px; display:block; }

/* ---- Columnas de enlaces ---------------------------------------- */
.site-footer__col h3{
  margin:0 0 16px;
  font:700 11px/1 var(--sans);
  text-transform:uppercase; letter-spacing:.14em;
  color:#f5f5f7 !important;
}
.site-footer__col ul{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
body.customer-area footer.site-footer .site-footer__col a{
  color:#a1a1a6 !important;
  font-size:14px; line-height:1.3;
  display:inline-flex; align-items:center; gap:7px;
  transition:color .15s, transform .15s;
}
body.customer-area footer.site-footer .site-footer__col a:hover{
  color:#f5f5f7 !important;
  transform:translateX(2px);
  text-decoration:none !important;
}
.site-footer__col a::before{
  content:""; width:4px; height:4px; border-radius:50%;
  background:var(--accent,#00E5FF); opacity:0;
  transition:opacity .15s;
}
.site-footer__col a:hover::before{ opacity:1; }

/* ---- Barra inferior --------------------------------------------- */
.site-footer__bottom{
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:14px 24px;
  padding-top:24px;
  font-size:12.5px; color:#8b96a5 !important;
}
.site-footer__copy{ color:#8b96a5 !important; }
.site-footer__legal{ display:flex; flex-wrap:wrap; gap:8px 20px; }
body.customer-area footer.site-footer .site-footer__legal a{
  color:#8b96a5 !important; font-size:12.5px;
  transition:color .15s;
}
body.customer-area footer.site-footer .site-footer__legal a:hover{
  color:#f5f5f7 !important; text-decoration:none !important;
}

/* ================= MODO CLARO ===================================== */
:root[data-theme="light"] body.customer-area footer.site-footer{
  color:#5B6878 !important;
  border-top-color:#E4E9F0 !important;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(32,91,216,.06), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F2F5FA 55%, #EAEFF6 100%) !important;
}
:root[data-theme="light"] body.customer-area footer.site-footer::before{ opacity:.6; }
:root[data-theme="light"] body.customer-area footer.site-footer .site-footer__top{
  border-bottom-color:#E4E9F0;
}
:root[data-theme="light"] .site-footer__wordmark,
:root[data-theme="light"] .site-footer__col h3{ color:#0F1620 !important; }
:root[data-theme="light"] .site-footer__tagline{ color:#5B6878 !important; }
:root[data-theme="light"] .site-footer__social a{
  color:#40516A !important;
  background:rgba(15,22,32,.04);
  border-color:#E4E9F0;
}
:root[data-theme="light"] body.customer-area footer.site-footer .site-footer__col a{ color:#40516A !important; }
:root[data-theme="light"] body.customer-area footer.site-footer .site-footer__col a:hover{ color:#0F1620 !important; }
:root[data-theme="light"] .site-footer__bottom,
:root[data-theme="light"] .site-footer__copy{ color:#5B6878 !important; }
:root[data-theme="light"] body.customer-area footer.site-footer .site-footer__legal a{ color:#5B6878 !important; }
:root[data-theme="light"] body.customer-area footer.site-footer .site-footer__legal a:hover{ color:#0F1620 !important; }

/* ================= RESPONSIVE ===================================== */
@media (max-width:860px){
  .site-footer__top{
    grid-template-columns:1fr 1fr;
    gap:32px 24px;
  }
  .site-footer__brand{ grid-column:1 / -1; max-width:420px; }
}
@media (max-width:560px){
  body.customer-area footer.site-footer .wrap{ padding-top:40px; padding-bottom:24px; }
  .site-footer__top{
    grid-template-columns:1fr;
    gap:28px;
    padding-bottom:28px;
  }
  .site-footer__brand{ max-width:none; }
  .site-footer__bottom{
    flex-direction:column; align-items:flex-start; gap:14px;
  }
}

@media (prefers-reduced-motion:reduce){
  .site-footer__social a:hover,
  body.customer-area footer.site-footer .site-footer__col a:hover{ transform:none; }
}
