/* ============================= */
/*           FOOTER              */
/* ============================= */

.footer {
  background: var(--color-text-green);
  color: var(--color-bg);
  font-family: var(--font-helvetica-nue);
}

.footer a {
  color: var(--color-bg);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--color-active);
}

/* ----------------------------- */
/* SECCIÓN SUPERIOR (COLUMNS)    */
/* ----------------------------- */

.footer-top {
  min-width: 850px;
  max-width: 80vw;
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 50px) 20px;
  display: grid;
  /* Pista 1 con mínimo 300px. Las demás son fluidas. */
  /* ACTUALIZADO: de repeat(3, ...) a repeat(4, ...) para 5 columnas totales */
  grid-template-columns: minmax(300px, 1.4fr) repeat(4, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(30px, 2vw, 40px);
}

@media (max-width: 900px) {
  .footer-top {
    min-width: auto;
    align-items: center;
    max-width: 100%;
  }
}

/* Todos los items se pueden encoger sin desbordar */
.ft-col {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* ya NO usamos min-width en el item .ft-brand */
/* .ft-col.ft-brand { min-width: 300px; }  <-- eliminado */

.ft-logo {
  width: 160px;
  height: auto;
  margin-bottom: 14px;
  display: block;
}

.ft-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 22px;
  color: var(--color-bg);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.ft-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-bg);
  font-weight: 700;
  margin: 18px 0 10px;
}

.ft-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ft-social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text-green-light);
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.ft-social-btn svg {
  width: 80%;
  height: auto;
  fill: var(--color-bg);
}

.ft-social-btn:hover {
  background: var(--color-active);
  color: #111;
  transform: translateY(-2px);
}

.ft-title {
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin: 4px 0 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.ft-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ft-list li {
  margin: 10px 0;
}

.ft-list a {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* ----------------------------- */
/* BLOQUE DE CONTACTO            */
/* ----------------------------- */

.ft-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ft-contact li {
  margin: 12px 0;
}

.ft-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-bg);
  text-decoration: none;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.ft-contact a:hover {
  color: var(--color-active);
}

.ft-contact-ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.ft-contact-ico svg {
  width: 20px;
  height: 20px;
  fill: var(--color-bg);
  color: var(--color-bg);
}

.ft-contact a:hover .ft-contact-ico svg {
  color: var(--color-active);
}

/* ----------------------------- */
/* COLUMNA HORARIO (OPCIONAL)    */
/* ----------------------------- */

.ft-hours strong {
  font-weight: 800;
  color: #ffffff;
}

.ft-hours time {
  display: inline;
  opacity: 0.9;
}

/* ----------------------------- */
/* LÍNEA DIVISORIA Y PARTE FINAL */
/* ----------------------------- */

.ft-divider {
  border: 0;
  height: 1px;
  background: rgba(var(--color-text-rgb), 0.08);
  max-width: 80vw;
  margin: 8px auto 0;
}

@media (max-width: 900px) {
  .ft-divider {
    max-width: 100%;
  }
}

.footer-bottom {
  max-width: 80vw;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer-bottom {
    max-width: 100%;
  }
}

.ft-copy {
  margin: 0;
  color: var(--color-bg);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ft-legal {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.ft-legal a {
  color: var(--color-bg);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ft-legal a:hover {
  color: var(--color-active);
}

/* ----------------------------- */
/* RESPONSIVE                    */
/* ----------------------------- */

@media (max-width: 1100px) {
  /* ACTUALIZADO: de repeat(2, ...) a repeat(3, ...) para acomodar 5->4 columnas */
  .footer-top {
    grid-template-columns: minmax(300px, 1.2fr) repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  /* 2 columnas. La primera conserva 300px de mínimo */
  .footer-top {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  /* 1 columna */
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .ft-legal {
    gap: 16px;
  }
}
