/* ============================================================
   DataWay — Footer (footer.php)
   Requiere: dataway-ui.css
   ============================================================ */

/* ---- Franjas clientes / integraciones (arriba del footer) ---- */
.clientes-strip,
.integra-strip {
  border-top: 1px solid var(--dw-line);
  padding: 28px 0;
}
.clientes-strip { background: var(--dw-bg-section); overflow: hidden; }
.integra-strip  { background: var(--dw-bg); border-bottom: 1px solid var(--dw-line); }

.integra-strip > .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.clientes-label {
  display: block;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dw-text-muted);
  margin-bottom: 20px;
}

/* ---- Marquee de clientes (cinta que se desliza sola) ---- */
.clientes-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Desvanece los bordes izq/der para que las cards no corten en seco */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.clientes-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: clientesScroll 32s linear infinite;
}
.clientes-marquee:hover .clientes-track { animation-play-state: paused; }

@keyframes clientesScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* el track tiene 2 copias del set: -50% = un set completo */
}

.client-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 320px;
  padding: 18px;
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.client-chip:hover {
  border-color: color-mix(in srgb, var(--dw-primary) 40%, transparent);
  background: rgba(79, 142, 247, 0.06);
  transform: translateY(-2px);
}
.client-chip__logo {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
}
.client-chip__logo img { width: 100%; height: 100%; object-fit: contain; }
.client-chip__logo img.logo-rect { width: 100%; height: auto; object-fit: contain; }
.client-chip__logo i { color: var(--dw-primary); font-size: 1.7rem; }
.client-chip__info { min-width: 0; }
.client-chip__info strong {
  display: block;
  font-family: var(--dw-font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dw-text);
  line-height: 1.25;
}
.client-chip__sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dw-primary);
  margin: 1px 0 4px;
}
.client-chip__info p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dw-text-muted);
  line-height: 1.4;
  white-space: normal;
}

@media (max-width: 560px) {
  .client-chip { width: 260px; padding: 14px; gap: 12px; }
  .client-chip__logo { width: 52px; height: 52px; }
  .client-chip__info strong { font-size: 0.85rem; }
  .client-chip__info p { font-size: 0.72rem; }
  .clientes-track { animation-duration: 24s; }
}

/* Celular real (no solo "ventana angosta de escritorio"): los logos de
   64px se veían desproporcionados en una pantalla de 320-420px, pero
   achicarlos del todo los hace ilegibles — un tamaño intermedio, cómodo de
   ver sin ocupar todo el ancho de pantalla. */
@media (max-width: 420px) {
  .client-chip { width: 250px; padding: 13px; gap: 11px; }
  .client-chip__logo { width: 48px; height: 48px; border-radius: 9px; padding: 5px; }
  .client-chip__logo i { font-size: 1.4rem; }
  .client-chip__info strong { font-size: 0.82rem; }
  .client-chip__sub { font-size: 0.66rem; }
  .client-chip__info p { font-size: 0.7rem; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  .clientes-track { animation: none; }
  .clientes-marquee { overflow-x: auto; }
}

/* ---- "Integra con": cards con logo real, mismo lenguaje visual que las de clientes ---- */
.integra-strip--destacado { padding: 34px 0; }
.integra-strip--destacado .clientes-label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.76rem; color: var(--dw-primary);
}

.integra-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.integra-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 156px;
  padding: 20px 14px;
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.integra-card:hover {
  border-color: color-mix(in srgb, var(--dw-primary) 35%, transparent);
  background: rgba(79, 142, 247, 0.06);
  transform: translateY(-2px);
}
.integra-card__logo {
  width: 72px; height: 72px;
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}
.integra-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.integra-card span {
  font-family: var(--dw-font);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--dw-text-muted);
  text-align: center;
  line-height: 1.2;
}
.integra-card:hover span { color: var(--dw-text); }

@media (max-width: 560px) {
  .integra-strip { padding: 22px 0; }
  .integra-grid { gap: 10px; }
  .integra-card { width: 100px; padding: 14px 10px; gap: 8px; }
  .integra-card__logo { width: 52px; height: 52px; }
  .integra-card span { font-size: 0.68rem; }
}

@media (max-width: 420px) {
  .integra-grid { gap: 10px; }
  .integra-card { width: 92px; padding: 12px 8px; gap: 8px; }
  .integra-card__logo { width: 46px; height: 46px; border-radius: 9px; padding: 5px; }
  .integra-card span { font-size: 0.66rem; }
}

.site-footer {
  background: #0b0d12;
  border-top: 1px solid var(--dw-line);
  color: var(--dw-text-muted);
  padding: 64px 0 28px;
  font-family: var(--dw-font);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.site-footer .footer-col h3 {
  color: var(--dw-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-col ul li { margin-bottom: 11px; }

.site-footer .footer-col a {
  color: var(--dw-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.22s ease, padding-left 0.22s ease;
}
.site-footer .footer-col a:hover {
  color: var(--dw-primary);
  padding-left: 4px;
}

/* ---- Columna marca ---- */
.site-footer .footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}
.site-footer .footer-brand .footer-logo:hover { opacity: 0.85; }
.site-footer .footer-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--dw-primary), #7ab4ff);
  color: #fff;
  flex-shrink: 0;
}
.site-footer .footer-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-footer .footer-logo__name {
  font-family: var(--dw-font-head, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--dw-text);
}
.site-footer .footer-logo__sub {
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dw-primary);
  margin-top: 3px;
}
.site-footer .footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 320px;
}

.site-footer .footer-social {
  display: flex;
  gap: 10px;
}
.site-footer .footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dw-line);
  color: var(--dw-text-soft);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.site-footer .footer-social a:hover {
  background: var(--dw-primary);
  border-color: var(--dw-primary);
  color: #fff;
  padding-left: 0;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--dw-primary-glow);
}

/* ---- Contacto ---- */
.site-footer .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.site-footer .footer-contact i {
  color: var(--dw-primary);
  font-size: 0.9rem;
  margin-top: 3px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.site-footer .footer-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dw-text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.site-footer .footer-review-btn i { color: #f5a623; }
.site-footer .footer-review-btn:hover {
  border-color: color-mix(in srgb, var(--dw-primary) 40%, transparent);
  color: var(--dw-text);
  background: rgba(79, 142, 247, 0.08);
}

/* ---- Barra inferior ---- */
.site-footer .footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--dw-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.site-footer .footer-bottom p { margin: 0; }
.site-footer .footer-bottom a {
  color: var(--dw-text-soft);
  text-decoration: none;
}
.site-footer .footer-bottom a:hover { color: var(--dw-primary); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer { padding: 48px 0 24px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .footer-bottom { flex-direction: column; text-align: center; }
}
