/* =============================================
   FOOTER — ServiHogar
============================================= */
.footer {
  background: #111a1d;
  color: rgba(255,255,255,.65);
}

/* Línea dorada decorativa en el top */
.footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-gold) 30%, var(--color-gold-light) 70%, transparent 100%);
}

.footer__main {
  padding-block: 3.5rem 2.5rem;
  display: grid;
  gap: 2.5rem;
}

/* Logo invertido para fondo oscuro */
.footer__logo {
  display: block;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: .85;
  height: 40px;
  width: auto;
}

.footer__brand-desc {
  font-size: .875rem;
  line-height: 1.75;
  max-width: 30ch;
  color: rgba(255,255,255,.55);
}

/* Columnas */
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer__col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer__col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(176,138,90,.25);
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-list li + li {
  margin-top: .5rem;
}

.footer__nav-list a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition), padding-left var(--transition);
}

.footer__nav-list a:hover {
  color: var(--color-gold-light);
  padding-left: .35rem;
}

/* Contacto */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .875rem;
  margin-bottom: .75rem;
  color: rgba(255,255,255,.55);
}

.footer__contact-item i {
  color: var(--color-gold);
  width: 14px;
  text-align: center;
  margin-top: .15rem;
  flex-shrink: 0;
}

.footer__contact-item a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__contact-item a:hover {
  color: var(--color-gold-light);
}

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-align: center;
  font-size: .775rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .01em;
}

.footer__bottom a {
  color: var(--color-gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__bottom a:hover {
  color: var(--color-white);
}

/* =============================================
   FOOTER REVEAL — desktop only
============================================= */
.footer-reveal-page .page-content {
  position: relative;
  z-index: 1;
  background: #fff;
}

.footer-reveal-page #site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  overflow-y: auto;
  max-height: calc(100vh - var(--footer-header-offset, 0px));
}

@media (max-width: 767px) {
  .footer-reveal-page #site-footer {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .footer-reveal-page .page-content {
    margin-bottom: 0 !important;
  }
}

/* =============================================
   DESKTOP BREAKPOINT
============================================= */
@media (min-width: 640px) {
  .footer__main {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .footer__cols {
    display: contents;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
