/* ============================================================================
   footer-premium.css
   Refined site footer — premium dark card with balanced columns,
   styled payment pills, and refined typography.
   ============================================================================ */

/* --- Footer base: subtle gradient, better padding --------------------- */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  color: #cbd5e1;
  padding: 48px 0 20px;
  margin-top: 48px;
  position: relative;
}
.site-footer::before {
  /* Subtle top edge highlight */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.4) 50%, transparent 100%);
}
.site-footer .footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Columns grid: 4 balanced columns on desktop ---------------------- */
.site-footer .footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 1023px) {
  .site-footer .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .site-footer .footer__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Brand column (first) -------------------------------------------- */
.site-footer .footer__cols > div:first-child {
  padding-right: 16px;
}
.site-footer .footer__title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 14px;
  position: relative;
}
.site-footer .footer__cols > div:first-child .footer__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  text-transform: none;
}
.site-footer .footer__text {
  color: rgba(203, 213, 225, 0.75);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.site-footer .footer__contact {
  margin: 0 0 14px;
}
.site-footer .footer__contact .footer__link {
  color: var(--primary, #60a5fa);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-block;
  padding: 0;
  margin: 0;
}

/* Trust badges refined */
.site-footer .footer__trust {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.site-footer .footer__trust .footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.2px;
}
.site-footer .footer__trust .footer__badge svg {
  color: #34d399;
}

/* --- Link columns (Catálogo / Para tu empresa / Información) --------- */
.site-footer .footer__col-group {
  min-width: 0;
}
.site-footer .footer__col-group > summary {
  list-style: none;
  cursor: default;
}
.site-footer .footer__col-group > summary::-webkit-details-marker { display: none; }
.site-footer .footer__col-group > summary .footer__title {
  margin-bottom: 16px;
}

.site-footer .footer__col-group nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer .footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(203, 213, 225, 0.8);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease, padding 0.15s ease;
  border-radius: 0;
  position: relative;
}
.site-footer .footer__link:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateX(3px);
}
.site-footer .footer__link:hover::before {
  content: "›";
  position: absolute;
  left: -12px;
  color: var(--primary, #60a5fa);
  font-weight: 800;
}

/* Catálogo column has many items — split into 2 sub-columns on wide screens */
@media (min-width: 900px) {
  .site-footer .footer__cols > .footer__col-group:nth-child(2) nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
  }
}

/* --- Payments row --------------------------------------------------- */
.site-footer .footer__payments {
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer .footer__payments-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 1;
}
.site-footer .footer__payments .footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.site-footer .footer__payments .footer__badge::before {
  /* Small payment-ish dot marker */
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: inline-block;
}

/* --- Bottom row: copyright + legal links ----------------------------- */
.site-footer .footer__bottom {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.site-footer .footer__legal {
  margin-left: 0;
  font-size: 12px;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-footer .footer__legal a {
  color: rgba(203, 213, 225, 0.75);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-footer .footer__legal a:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: none;
}
.site-footer .footer__legal span[aria-hidden="true"] {
  color: rgba(203, 213, 225, 0.25);
}

/* --- Mobile tweaks -------------------------------------------------- */
@media (max-width: 640px) {
  .site-footer { padding: 36px 0 20px; margin-top: 32px; }
  .site-footer .footer__cols > .footer__col-group {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-footer .footer__cols > div:first-child {
    margin-bottom: 8px;
    padding-right: 0;
  }
  .site-footer .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .site-footer .footer__legal { flex-wrap: wrap; }
}
