/**
 * site-footer.css
 *
 * Estilos del componente _site-footer.html.twig, extraídos de
 * css/pages/home.css (footer de la landing) para poder reutilizarse
 * fuera de esa página. Incluye solo las reglas que aplican al markup
 * real del footer (se omiten variantes de logo texto+marca y de header,
 * que no aplican aquí). El orden reproduce el de origen porque afecta
 * la cascada (home.css sobrescribe declaraciones más adelante en el
 * archivo).
 */

:root {
  --navy: #002744;
  --container: 1512px;
}

.container {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #0a3563;
  white-space: nowrap;
}

.brand--image {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo--footer {
  height: 46px;
  max-width: 240px;
}

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 44px 0 34px;
  min-height: 168px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
  column-gap: 30px;
  row-gap: 24px;
}

.footer-brand-block p {
  font-size: 14px;
  margin: 20px 0 0;
  color: #e9f1fb;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 64px;
  font-size: 14px;
  margin-top: 16px;
  color: #e9f1fb;
}

/* El footer se incluye también en páginas que no cargan el reset de
   enlaces de home.css (panel admin): sin esto los enlaces toman el azul
   y el subrayado por defecto del navegador. */
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: #7fc3ff;
}

.footer-copy {
  grid-column: 2;
  margin: 0;
  text-align: right;
  font-size: 13.5px;
  color: #e9f1fb;
}

@media (max-width: 1023px) {
  :root {
    --container: 720px;
  }

  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .footer-links {
    gap: 24px;
  }

  .brand-logo--footer {
    height: 40px;
    max-width: 209px;
  }
}

@media (max-width: 767px) {
  .container {
    width: calc(100% - 38px);
  }

  .brand {
    gap: 4px;
  }

  .site-footer {
    padding: 120px 0 29px 0;
    min-height: 525px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .footer-brand-block p {
    font-size: 10.5px;
    margin: 18px 0 32px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0 0 34px;
    font-size: 10.3px;
  }

  .footer-copy {
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    margin: 0;
    max-width: 190px;
  }

  .brand-logo--footer {
    height: 34px;
    max-width: 177px;
  }
}

/* Ajustes de home.css: tamaño de texto y layout "SIA + copyright" en línea */
.site-footer p,
.site-footer a {
  font-size: 18px;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 30px;
  row-gap: 20px;
}

.site-footer .footer-brand-block {
  display: flex;
  align-items: center;
}

.site-footer .footer-links {
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
}

.site-footer .footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.site-footer .footer-entity,
.site-footer .footer-copy {
  margin: 0;
  color: #e9f1fb;
  font-size: 18px;
  line-height: 1.25;
}

.site-footer .footer-copy {
  text-align: right;
}

@media (max-width: 767px) {
  .site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .site-footer .footer-links {
    margin: 28px 0;
  }

  .site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .site-footer .footer-copy {
    text-align: center;
  }
}
