/* =========================================
   CG FOOTER — Astra Child Theme
   Fuentes: Julius Sans One + Montserrat
   (cargadas por el tema Astra)
   ========================================= */

.cg-footer {
  background-color: #1c1c1c;
  border-top: 2px solid rgba(153, 204, 0, 0.3);
  width: 100%;
}

.cg-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 32px 44px;
  box-sizing: border-box;
}

/* Grid principal: 3 columnas */
.cg-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  align-items: start;
}

/* Columnas */
.cg-footer__col {
  padding: 0 36px;
}

.cg-footer__col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.cg-footer__col:first-child {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cg-footer__col:last-child {
  padding-right: 0;
}

/* Título de sección */
.cg-footer__title {
  font-family: 'Julius Sans One', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #99cc00;
  margin: 0 0 22px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(153, 204, 0, 0.25);
}

/* Logo */
.cg-footer__logo-link {
  display: block;
  text-align: center;
  margin-bottom: 0;
}

.cg-footer__logo {
  max-height: 120px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Redes sociales */
.cg-footer__social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cg-footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid #99cc00;
  border-radius: 50%;
  color: #99cc00;
  font-size: 1.3rem;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.cg-footer__social-icon:hover {
  background-color: #99cc00;
  color: #1c1c1c;
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(153, 204, 0, 0.35);
}

/* Navegación */
.cg-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.cg-footer__nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #cccccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.cg-footer__nav-link::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background-color: rgba(153, 204, 0, 0.5);
  flex-shrink: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.cg-footer__nav-link:hover {
  color: #99cc00;
}

.cg-footer__nav-link:hover::before {
  width: 20px;
  background-color: #99cc00;
}

/* Texto "Folge uns" */
.cg-footer__social-hint {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #888888;
  line-height: 1.7;
  margin: 0;
}

/* Iconos grandes Folge uns */
.cg-footer__follow-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cg-footer__follow-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #cccccc;
  transition: color 0.2s ease;
}

.cg-footer__follow-item i {
  font-size: 1.6rem;
  color: #99cc00;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cg-footer__follow-item span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  line-height: 1.3;
}

.cg-footer__follow-item:hover {
  color: #ffffff;
}

.cg-footer__follow-item:hover i {
  transform: scale(1.15);
}

/* ---- Barra de copyright ---- */
.cg-footer__bar {
  background-color: #151515;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cg-footer__bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

.cg-footer__bar-copy,
.cg-footer__bar-links,
.cg-footer__powered {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: #666666;
}

.cg-footer__bar-links {
  display: flex;
  gap: 16px;
}

.cg-footer__bar-links a {
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cg-footer__bar-links a:hover {
  color: #aaaaaa;
}

.cg-footer__powered a {
  color: #99cc00;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cg-footer__powered a:hover {
  opacity: 0.75;
}

/* ---- Responsive: tablet ---- */
@media (max-width: 860px) {
  .cg-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cg-footer__col {
    padding: 0;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 28px;
  }

  .cg-footer__col:first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 28px;
  }

  .cg-footer__logo-link {
    margin-bottom: 0;
  }

  .cg-footer__col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ---- Responsive: móvil ---- */
@media (max-width: 560px) {
  .cg-footer__inner {
    padding: 40px 20px 32px;
  }

  .cg-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cg-footer__col:first-child {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cg-footer__col:last-child {
    grid-column: auto;
  }

  .cg-footer__bar-inner {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .cg-footer__bar-links {
    justify-content: center;
  }
}

/* Ocultar el footer por defecto de Astra */
#colophon.site-footer {
  display: none !important;
}
