.mobile-menu-toggle,
.mobile-menu,
.mobile-menu-overlay,
.consent-banner,
.consent-panel {
  display: none;
}

.language-control {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
}

.language-control summary {
  display: inline-flex;
  width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.language-globe-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.language-control summary::-webkit-details-marker {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 150px;
  overflow: hidden;
  border: 1px solid #d7e0ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(4, 28, 64, 0.18);
}

.language-menu a {
  padding: 11px 14px;
  color: #061833;
  font-weight: 800;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: #eef5ff;
  color: #0648c7;
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 44px 190px;
  width: calc(100% - 24px);
  max-width: none;
  gap: 10px;
}

.site-header .brand {
  justify-self: start;
}

.site-header .desktop-nav {
  min-width: 0;
  justify-content: flex-start;
}

.site-header .language-control {
  justify-self: center;
}

.site-header .header-actions {
  width: 190px;
}

.site-header .header-actions .button {
  width: 190px;
  min-width: 190px;
  padding-inline: 10px;
  text-align: center;
}

html[lang="en"] .site-header .desktop-nav,
html[lang="es"] .site-header .desktop-nav {
  gap: 5px;
  font-size: 0.72rem;
}

html[lang="en"] .site-header .desktop-nav .nav-link,
html[lang="es"] .site-header .desktop-nav .nav-link {
  gap: 4px;
  padding: 0 1px;
}

html[lang="en"] .site-header .header-actions .button,
html[lang="es"] .site-header .header-actions .button {
  padding-inline: 11px;
  font-size: 0.82rem;
}

.consent-banner {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: 16px;
  left: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: auto;
  padding: 18px;
  border: 1px solid #d7e0ed;
  border-radius: 8px;
  background: #fff;
  color: #061833;
  box-shadow: 0 20px 60px rgba(4, 28, 64, 0.24);
}

.consent-banner.is-visible,
.consent-panel.is-visible {
  display: flex;
}

.consent-banner p {
  margin: 0;
  line-height: 1.55;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-actions button,
.cookie-settings-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #0648c7;
  border-radius: 6px;
  background: #fff;
  color: #0648c7;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.consent-actions button[data-consent-accept] {
  background: #0648c7;
  color: #fff;
}

.consent-panel {
  position: fixed;
  z-index: 100;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 15, 38, 0.68);
}

.consent-panel-card {
  width: min(100%, 520px);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  color: #061833;
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #d7e0ed;
}

@media (max-width: 1180px) {
  .site-header .desktop-nav,
  .site-header .header-actions {
    display: none;
  }

  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    width: min(var(--max), calc(100% - 32px));
    gap: 12px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
  }
}

@media (max-width: 900px) {
  .site-header .nav,
  .site-header .header-actions {
    display: none;
  }

  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    min-height: 76px;
    padding: 0 16px;
    gap: 12px;
  }

  .site-header .language-control {
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
  }

  .mobile-menu-overlay {
    position: fixed;
    z-index: 70;
    inset: 0;
    background: rgba(0, 15, 38, 0.62);
  }

  .mobile-menu-overlay.is-open {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px);
    overflow-y: auto;
    padding: 18px;
    background: #061833;
    color: #fff;
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  .mobile-menu.is-open {
    display: block;
    transform: translateX(0);
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .mobile-language-section {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mobile-language-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
  }

  .mobile-language-heading .language-globe-icon {
    width: 19px;
    height: 19px;
  }

  .mobile-menu-close {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 28px;
  }

  .mobile-menu nav,
  .mobile-menu .nav-item,
  .mobile-menu .nav-submenu {
    display: grid;
    position: static;
    width: auto;
  }

  .mobile-menu .nav-link,
  .mobile-menu .nav-submenu a {
    min-height: 44px;
    align-items: center;
    padding: 10px 4px;
    color: #fff;
  }

  .mobile-menu .nav-submenu {
    margin: 0 0 8px 14px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 184, 28, 0.6);
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-language-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
  }

  .mobile-language-list a {
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    color: #fff;
    text-align: center;
  }

  .mobile-language-list a[aria-current="true"] {
    border-color: #f8b918;
    background: #f8b918;
    color: #061833;
    font-weight: 900;
  }

  .home-hero-image {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .consent-banner.is-visible {
    display: grid;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-actions button:last-child {
    grid-column: 1 / -1;
  }
}
