/* ==========================================================================
   LAYOUT — encabezado y pie de página (compartidos por todas las páginas)
   ========================================================================== */

/* ---------- Encabezado ---------- */

.site-header {
  padding-top: 56px;
}

.site-header__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 91px;
}

.site-header__logo {
  flex: none;
  display: block;
}

.site-header__logo img {
  width: clamp(150px, 16vw, 232px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 65px);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 40px;
  border-radius: var(--radius-pill);
  color: var(--color-navy);
  font-size: var(--fs-small);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.nav-pill:hover {
  background: var(--color-sky);
}

.nav-pill[aria-current="page"] {
  background: var(--color-orange);
  color: var(--color-white);
}

.site-header__toggle {
  display: none;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-sky);
  position: relative;
}

.site-header__toggle span,
.site-header__toggle::before,
.site-header__toggle::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-navy);
  transition: transform 0.2s, opacity 0.2s;
}

.site-header__toggle::before {
  top: 15px;
}

.site-header__toggle span {
  top: 22.5px;
}

.site-header__toggle::after {
  top: 30px;
}

.site-header__toggle[aria-expanded="true"]::before {
  transform: translateY(7.5px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] span {
  opacity: 0;
}

.site-header__toggle[aria-expanded="true"]::after {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .nav-pill {
    padding: 0 20px;
  }
}

@media (max-width: 880px) {
  .site-header {
    padding-top: 24px;
  }

  .site-header__toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: 0 12px 32px rgba(27, 69, 118, 0.18);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-pill {
    justify-content: flex-start;
    height: 48px;
    padding: 0 24px;
  }
}

/* ---------- Pie de página ---------- */

.site-footer {
  margin-top: var(--section-gap);
  background: var(--color-sky);
  color: var(--color-muted);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 400fr) minmax(0, 330fr) minmax(0, 330fr);
  gap: 0 24px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 52px clamp(24px, 10.5vw, 151px) 65px clamp(24px, 9vw, 129px);
}

.footer-heading {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
}

.footer-brand__logo img {
  width: 190px;
  max-width: 100%;
  height: auto;
}

.form-msg {
  min-height: 1.3em;
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--color-navy);
}

.form-msg[data-state="error"] {
  color: #b00020;
}

.footer-social {
  margin-top: 35px;
}

.footer-social__list {
  display: flex;
  gap: 32px;
  margin-top: 14px;
}

.footer-social__link {
  display: block;
  flex: none;
  width: 59px;
  height: 59px;
  border-radius: 50%;
}

.footer-social__link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-col {
  margin-top: 13px;
}

.footer-col + .footer-col {
  margin-top: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 17px;
  font-size: var(--fs-small);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.footer-group + .footer-group {
  margin-top: 40px;
}

.footer-contact__title {
  margin-bottom: 57px;
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-contact__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  background: var(--color-orange);
}

.footer-contact__icon img {
  max-width: 34px;
  max-height: 31px;
}

.footer-contact__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-label);
}

.footer-contact__value {
  overflow-wrap: anywhere;
  font-size: var(--fs-small);
  color: var(--color-muted);
  text-decoration: none;
}

.footer-contact__value--accent {
  font-family: var(--font-accent);
  font-weight: 300;
}

a.footer-contact__value {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
    padding: 48px var(--gutter);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col,
  .footer-col + .footer-col {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-contact__title {
    margin-bottom: 24px;
  }
}
