/**
 * JADE GRUPO INMOBILIARIO - FOOTER CORPORATIVO (ADN DE MARCA)
 * Basado en las directrices de jade_logo.json y la estructura de referencia del usuario:
 * - Fondo carbón corporativo (--jade-charcoal: #171717)
 * - Títulos en Oro Jade (--jade-gold: #B99A63)
 * - Enlaces en gris refinado con hover en Oro Claro (--jade-gold-light: #D5B77B)
 * - En móvil: Grid de 2 columnas (2x2) y barra inferior con iconos centrados arriba y copyright abajo
 */

/* ==========================================================================
   CONTENEDOR PRINCIPAL
   ========================================================================== */
.jade-footer {
  position: relative;
  background: var(--jade-charcoal, #171717);
  color: #9E9E9E;
  font-family: var(--font-main, 'Outfit', sans-serif);
  border-top: 1px solid rgba(185, 154, 99, 0.22);
  overflow: hidden;
}

/* Contenedor derecho: Powered by Codetech + Redes sociales */
.jade-footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.jade-footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.82rem;
  color: #9E9E9E;
  transition: all 0.25s ease;
  user-select: none;
}

.jade-powered-text {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.jade-powered-logo {
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s ease;
}

.jade-powered-brand {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #D4D4D4;
  transition: color 0.25s ease;
}

.jade-footer-powered:hover {
  color: #ffffff;
}

.jade-footer-powered:hover .jade-powered-logo {
  transform: scale(1.12);
}

.jade-footer-powered:hover .jade-powered-brand {
  color: var(--jade-gold-light, #D5B77B);
}

.jade-footer-powered-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.16);
}

.jade-footer-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.8rem;
}

/* ==========================================================================
   LOGO SUPERIOR
   ========================================================================== */
.jade-footer-top {
  margin-bottom: 3.2rem;
}

.jade-footer-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.jade-footer-logo-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.jade-footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   GRID DE 4 COLUMNAS (Soluciones, Soporte, Empresa, Legal)
   ========================================================================== */
.jade-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.jade-footer-col {
  display: flex;
  flex-direction: column;
}

.jade-footer-heading {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--jade-gold, #B99A63);
  margin-bottom: 1.3rem;
  letter-spacing: 0.02em;
}

.jade-footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  padding: 0;
  margin: 0;
}

.jade-footer-nav li {
  display: block;
}

.jade-footer-link {
  color: #9E9E9E;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.jade-footer-link:hover {
  color: var(--jade-gold-light, #D5B77B);
  transform: translateX(2px);
}

.jade-footer-gold-accent {
  color: var(--jade-gold, #B99A63);
  font-weight: 600;
}

/* ==========================================================================
   BARRA INFERIOR (Google Score + Copyright a la izq / Redes a la dcha)
   ========================================================================== */
.jade-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(185, 154, 99, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.jade-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Badge de Google Reviews */
.jade-footer-g-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(185, 154, 99, 0.22);
  padding: 0.32rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.jade-footer-g-badge:hover {
  background: rgba(185, 154, 99, 0.1);
  border-color: var(--jade-gold, #B99A63);
}

.jade-footer-g-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.jade-footer-g-badge span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #EAEAEA;
  line-height: 1;
}

.jade-footer-copy {
  font-size: 0.83rem;
  color: #A0A0A0;
  line-height: 1.4;
}

/* Iconos de redes sociales */
.jade-footer-socials {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.jade-social-icon-link {
  color: #B0B0B0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.22s ease;
}

.jade-social-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.jade-social-icon-link:hover {
  color: var(--jade-gold, #B99A63);
  transform: translateY(-2px);
}

.jade-social-icon-link:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE (Móvil en cuadrícula 2x2 e iconos centrados)
   ========================================================================== */
@media (max-width: 900px) {
  .jade-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.6rem 2rem;
  }
}

@media (max-width: 600px) {
  .jade-footer-container {
    padding: 3.5rem 1.25rem 5.5rem;
  }

  .jade-footer-top {
    margin-bottom: 2.4rem;
  }

  .jade-footer-logo-img {
    height: 48px;
  }

  /* Cuadrícula 2x2 exacta como en la referencia del usuario */
  .jade-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 1.4rem;
    margin-bottom: 2.8rem;
  }

  .jade-footer-heading {
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
  }

  .jade-footer-link {
    font-size: 0.84rem;
  }

  /* Barra inferior: Powered y redes sociales arriba centrados, copyright abajo centrado */
  .jade-footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
    padding-top: 1.8rem;
  }

  .jade-footer-bottom-right {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.15rem;
  }

  /* Ocultar badge de Google en móvil para centrado limpio idéntico a referencia */
  .jade-footer-g-badge {
    display: none;
  }

  .jade-footer-bottom-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .jade-footer-socials {
    justify-content: center;
    gap: 1.6rem;
  }

  .jade-footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: #A8A8A8;
  }
}