footer {
  --footer-bg: #161b23;
  --footer-text: #e4e4e4;
  --footer-gold: #d2af56;

  padding: 64px 24px 28px;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: "Raleway", sans-serif;
}

footer *,
footer *::before,
footer *::after {
  box-sizing: border-box;
}

/* Bloque superior: logo + columnas */
footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 52px;
  width: min(100%, 1210px);
  margin-inline: auto;
  align-items: center;
}

footer > div:first-child > div:first-child img {
  display: block;
  width: 205px;
  max-width: 100%;
  height: auto;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Las tres columnas principales */
footer > div:first-child > ul {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

footer > div:first-child > ul > li {
  min-width: 0;
}

footer > div:first-child > ul > li > span {
  display: block;
  margin-bottom: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Separación de los enlaces dentro de cada columna */
footer > div:first-child > ul > li > ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

footer > div:first-child > ul > li > ul > li {
  min-width: 0;
}

/* Sublistas de ciudadanía y residencia */
footer > div:first-child > ul > li > ul > li > ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 17px;
  margin-left: 32px;
}

/* Enlaces */
footer a {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: var(--footer-text);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 250ms ease;
}

/* Línea fina que aparece de izquierda a derecha */
footer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--footer-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--footer-gold);
}

footer a:hover::after,
footer a:focus-visible::after {
  transform: scaleX(1);
}

footer a:focus-visible {
  outline: 2px solid var(--footer-gold);
  outline-offset: 6px;
}

/* Columna de contacto */
footer > div:first-child > ul > li:last-child a {
  gap: 20px;
  text-transform: none;
  overflow-wrap: anywhere;
}

footer > div:first-child > ul > li:last-child a img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

/* Línea divisoria */
footer > hr {
  width: min(100%, 1210px);
  height: 1px;
  margin: 64px auto 28px;
  border: 0;
  background: var(--footer-gold);
  opacity: 0.45;
}

/* Franja inferior */
footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(100%, 1210px);
  margin-inline: auto;
}

footer > div:last-child p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

footer > div:last-child a {
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.ft-chico{
    font-variant: small-caps !important;
    text-transform: none !important;
}

/* Tablet */
@media (min-width: 700px) {
  footer {
    padding: 76px 40px 30px;
  }

  footer > div:first-child {
  align-items: flex-start;
}

  footer > div:first-child > ul {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 42px;
    row-gap: 50px;
  }

  footer > div:first-child > ul > li {
    flex: 1 1 calc(50% - 42px);
  }

  footer > div:last-child {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
}

/* Desktop */
@media (min-width: 1100px) {
  footer {
    padding: 84px 48px 58px;
  }

  footer > div:first-child {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }

  footer > div:first-child > div:first-child {
    flex: 0 0 240px;
  }

  footer > div:first-child > ul {
    flex: 1;
    flex-wrap: nowrap;
    gap: 48px;
  }

  footer > div:first-child > ul > li {
    flex: 1 1 0;
  }

  footer > div:first-child > ul > li:first-child {
    flex: 1.15 1 0;
  }

  footer > hr {
    margin-top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer a,
  footer a::after {
    transition: none;
  }
}