/* DASA: estilos de la web. Procedencia del diseño: THIRD-PARTY-NOTICES.md. */

/* Tipografías */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-regular.ttf') format('truetype');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-bold.ttf') format('truetype');
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-bold.ttf') format('truetype');
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-extrabold.ttf') format('truetype');
}

/* Base */
:root {
  --color-primary: #1151d3;
  --color-nav: #202f5b;
  --color-text: #222;
  --color-background: #eee;
  --font-body: Inter, sans-serif;
  --font-heading: Montserrat, sans-serif;
  --page-gutter: 50px;
  --column-gap: 30px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font: 400 16px/30px var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { color: #002954; }
a:focus { text-decoration: underline; }
/* Dos tonos: foco distinguible sobre superficies claras y oscuras. */
a:focus-visible, button:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
iframe { max-width: 100%; border: 0; }
p, ul, ol { margin: 0 0 1rem; }
strong, b { font-weight: bolder; }
h1, h2, h3 {
  margin: 0 0 1.4rem;
  color: #212121;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.05em;
}
h2 { font-size: 28px; }
h3, .section-title--compact { font-size: 24px; }
.site-container { padding-inline: var(--page-gutter); }
.text-center { text-align: center; }
.text-link-color { color: #0000ff; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px;
  clip-path: none;
  background: #fff;
  color: #111;
}

/* Cabecera */
.site-banner {
  padding-block: 25px;
  background: linear-gradient(rgb(32 47 91 / 60%), rgb(32 47 91 / 60%)),
    url('/assets/media/cropped-2003-65393.jpg') center / cover no-repeat;
}
.site-brand { width: calc((100% + var(--column-gap)) / 4 - var(--column-gap)); }
.brand-logo {
  display: block;
  margin-right: 50px;
  font-size: 26px;
  line-height: 25px;
}
.brand-name, .footer-brand-name {
  margin: 0 0 5px;
  font: 700 34px/1.3 var(--font-heading);
  letter-spacing: -.05em;
}
.brand-name a, .footer-brand-name a { color: #fff; }

/* Navegación */
.main-nav { position: relative; z-index: 10; background: var(--color-nav); }
.nav-mobile { display: none; }
.nav-links, .nav-submenu { margin: 0; padding: 0; list-style: none; }
.nav-links { display: flex; flex-wrap: wrap; }
.nav-link {
  display: block;
  margin: 0;
  border: 0;
  padding: 10px 22px;
  background: transparent;
  color: rgb(255 255 255 / 71%);
  font: 700 14px/2.3 var(--font-heading);
  letter-spacing: .5px;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s ease-out, background-color .25s ease-out;
}
.nav-link:hover, .nav-link:focus, .nav-link[aria-current="page"],
.nav-group.is-current > .nav-link { color: #fff; background: var(--color-primary); }
.nav-link:focus { text-decoration: none; }
.home-icon { display: inline-block; width: 20.75px; height: 18px; fill: currentColor; vertical-align: -.125em; }
.nav-group { position: relative; }
.nav-group-toggle { white-space: nowrap; }
.nav-group-toggle::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: '';
  border: .3em solid transparent;
  border-bottom: 0;
  border-top-color: currentColor;
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  min-width: 250px;
  margin-top: 0;
  background: #1f2024;
}
.nav-submenu a {
  display: block;
  padding: 12px 15px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  transition: background-color .25s;
}
.nav-submenu a:hover, .nav-submenu a[aria-current="page"] { background: var(--color-primary); }
.nav-submenu a:focus { background: #222; }
.nav-toggle {
  display: none;
  margin: .5rem auto;
  padding: .5rem .75rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: transparent;
  color: #fff;
}
.nav-toggle:hover, .nav-toggle:focus { background: #002954; border-color: #002954; }
.menu-icon { position: relative; display: block; width: 1.75rem; height: 1rem; }
.menu-icon span { position: absolute; right: 0; width: 100%; height: 2px; background: currentColor; }
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: .5rem; }
.menu-icon span:nth-child(3) { top: 1rem; }

/* Título de página y distribución */
.page-heading { padding-block: 30px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 15%); }
.page-home .page-heading { margin-top: 20px; }
.page-title { margin: 0; color: var(--color-text); font-size: 30px; line-height: 30px; }
.page-layout {
  display: grid;
  /* Conserva las proporciones y el espacio entre columnas del diseño original. */
  grid-template-columns: minmax(0, calc((100% - var(--column-gap)) * 2 / 3 + 10px)) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: start;
  padding-block: 60px;
}
.page-content { min-width: 0; padding: 20px; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 8%); }
.page-content--intro-space { padding-top: calc(20px + 1rem); }
.page-content--end-space { padding-bottom: calc(20px + 1rem); }
.content-image { display: table; margin: 0; }
.content-image--center { margin-inline: auto; }
.content-image--spaced { margin-bottom: 1rem; }
.content-image img { vertical-align: bottom; }
.project-image { width: 100%; max-width: 700px; }

/* Ubicación */
.location-card {
  min-width: 0;
  margin-bottom: 30px;
  padding: 10px 20px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
}
.location-title {
  margin: -10px -20px 20px;
  border-bottom: 2px solid var(--color-primary);
  font-size: 18px;
  line-height: 40px;
  text-transform: capitalize;
}
.location-title span { display: inline-block; padding-inline: 15px; color: #fff; background: var(--color-primary); }
.location-address { margin: 0; font-style: normal; }

/* Pie */
.site-footer { padding-top: 40px; background: #121026; }
.footer-brand { width: calc((100% - var(--column-gap)) / 2); padding-bottom: 30px; }
.footer-brand .brand-logo { padding-block: 15px; }
.footer-brand img { width: 160px; }
.footer-brand-name { margin-bottom: 0; }
.footer-bottom { padding-block: 25px; background: #090818; color: #aaaed1; font-size: 13px; line-height: 18px; }
.footer-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); align-items: center; }
.footer-copyright { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: block; padding-block: .5rem; color: inherit; }
.footer-links a:hover, .footer-links a:focus { color: #fff; }

/* Adaptación a pantallas pequeñas */
@media (max-width: 1200px) { html { font-size: 95%; } }
@media (max-width: 1179px) { :root { --page-gutter: 15px; } }
@media (max-width: 991.98px) {
  html { font-size: 90%; }
  .site-brand .brand-name a { font-size: 30px; }
  .main-nav > .site-container { padding: 0; }
  .nav-mobile { display: flex; align-items: center; padding-inline: 15px; }
  .nav-home-mobile { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--color-primary); color: #fff; text-align: center; }
  .nav-home-mobile:hover, .nav-home-mobile:focus { color: #fff; }
  .nav-home-mobile .home-icon { width: 18px; height: 16px; }
  .js .nav-toggle { display: block; }
  .nav-links { flex-direction: column; }
  .js .nav-links:not(.is-open) { display: none; }
  .nav-home-item { display: none; }
  .nav-group-toggle { width: 100%; }
  .nav-submenu { position: static; }
}
@media (max-width: 767px) {
  html { font-size: 85%; }
  .site-brand { width: 100%; text-align: center; }
  .brand-logo { margin-right: 0; }
  .nav-link { padding: 12px 16px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .location-card { margin-bottom: 35px; }
  .footer-brand { width: 100%; text-align: center; }
  .footer-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; text-align: center; }
  .footer-bottom { line-height: 2; }
  .footer-links { justify-content: center; }
}
@media (max-width: 575px) { html { font-size: 80%; } }

/* Accesibilidad e impresión */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  *, *::before, *::after { text-shadow: none !important; box-shadow: none !important; }
  .main-nav, .skip-link { display: none; }
  a { text-decoration: underline; }
  img { break-inside: avoid; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { break-after: avoid; }
}

/* La página Situación utiliza el ancho completo para el mapa. */
.page-layout--full { grid-template-columns: minmax(0, 1fr); }
.map-section { text-align: center; }
.map-section figure { display: block; margin: 0 0 1rem; }

/* Los enlaces dentro del contenido no dependen solo del color. */
.page-content a, .location-map-link a {
  text-decoration: underline;
  text-underline-offset: .15em;
}
.location-map-link { margin: 1rem 0 0; }
.project-figure { margin: 0; }
.project-credits { margin-top: 1rem; font-size: .9375em; line-height: 1.6; }

/* El placeholder reserva el espacio del mapa sin cargar recursos externos. */
.consent-map { width: 300px; max-width: 100%; min-height: 250px; }
.consent-map--large { width: 1200px; min-height: 900px; }
.consent-map iframe { display: block; width: 100%; }
.consent-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 24px;
  border: 1px solid #ddd;
  background: #f2f2f2;
  color: #333;
  text-align: center;
}
.consent-map-placeholder p { max-width: 32rem; margin: 0; }
