:root {
  --navy: #052181;
  --navy-deep: #011e86;
  --cyan: #0076b8;
  --cyan-icon: #0076b8;
  --overlay: #1e73be;
  --gray: #595959;
  --text: #555555;
  --muted: #595959;
  --line: #e8e8e8;
  --paper: #ffffff;
  --footer: #f4f4f4;
  --measure: 72ch;
  --topbar-h: 36px;
  --header-h: 150px;
  --header-h-scrolled: 70px;
  --logo-h: 118px;
  --logo-h-scrolled: 56px;
  --header-shift: 0px;
  --header-h-now: var(--header-h);
  --logo-h-now: var(--logo-h);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: calc(var(--topbar-h) + var(--header-h));
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus,
.skip:focus-visible {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--paper);
  padding: 8px 12px;
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 42;
  height: var(--topbar-h);
  background: var(--paper);
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
  transform: translateY(calc(-1 * var(--header-shift)));
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.topbar a {
  color: var(--gray);
  font-weight: 200;
}

.topbar a:hover {
  color: var(--cyan);
}

.header {
  position: fixed;
  top: calc(var(--topbar-h) - var(--header-shift));
  left: 0;
  right: 0;
  z-index: 41;
  background: var(--paper);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: var(--header-h-now);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: var(--logo-h-now);
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav a:hover,
.nav a.is-active {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 6px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Hero slider — mismo ancho que el resto de bloques */
.slider-wrap {
  padding-top: 20px;
}

.slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0a2a4a;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-deco {
  position: absolute;
  right: -4%;
  
  width: min(58%, 720px);
  pointer-events: none;
  opacity: 0.95;
}

.slide:nth-child(3) .slide-deco {
  right: 0;
  top: 0;
  width: min(42%, 520px);
}

.slide-copy {
  position: relative;
  z-index: 2;
  width: calc(100% - 80px);
  margin: 0 auto;
  padding-top: 92px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.slide-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 35px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  max-width: 16ch;
}

.slide-copy p {
  margin: 0;
  max-width: 482px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 30, 70, 0.72);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.slider-btn:hover {
  background: var(--cyan);
}

.slider-btn.prev {
  left: 18px;
}

.slider-btn.next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--cyan);
}

/* Feature tiles */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 0 10px;
}

.feature {
  position: relative;
  display: block;
  min-height: 230px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--overlay);
}

.feature:hover,
.feature:focus-visible {
  color: #fff;
}

.feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.feature:hover img,
.feature:focus-visible img {
  opacity: 0.2;
}

.feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  padding: 45px 30px;
}

.feature-copy::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 30px;
  bottom: 30px;
  left: 30px;
  border: 1px solid #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.feature:hover .feature-copy::before,
.feature:focus-visible .feature-copy::before {
  opacity: 1;
  transform: scale(1);
}

.feature h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translate3d(0, 50%, 0);
  transition: transform 0.35s ease;
}

.feature:hover h2,
.feature:focus-visible h2 {
  transform: translate3d(0, 0, 0);
}

.feature p {
  margin: 12px 0 0;
  color: #fff;
  font-size: 14px;
  max-width: 220px;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.feature:hover p,
.feature:focus-visible p {
  opacity: 1;
  transform: scale(1);
}

/* Sections */
.section {
  padding: 72px 0 20px;
}

.section-tight {
  padding: 40px 0;
}

.center {
  text-align: center;
}

h1,
.page-title,
.section-title {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0 auto 8px;
  color: var(--muted);
  max-width: 52ch;
}

.navy {
  color: var(--navy-deep);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 16px;
}

.prose p {
  margin: 0 0 14px;
  text-align: justify;
  max-width: var(--measure);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  align-items: start;
  padding: 28px 0;
}

.split img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.split-text h2 {
  margin-top: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 20px 0 60px;
}

.map-frame {
  width: 100%;
  height: 220px;
  border: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 10px;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  stroke: var(--cyan-icon);
  fill: none;
  stroke-width: 1.7;
}

.contact-item p {
  margin: 0;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  padding: 10px 12px;
  font: inherit;
  color: var(--navy);
  background: #fafafa;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--cyan);
  background: #fff;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 28px;
  border: 0;
  background: var(--cyan);
  color: #fff;
  font: 600 13px/1 Montserrat, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: var(--navy);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 50px;
}

.form-status {
  min-height: 1.4em;
  font-size: 13px;
}

.form-status.is-ok {
  color: #1b7a3a;
}

.form-status.is-err {
  color: #a32020;
}

/* Products tabs — línea Bridge (q_tabs boxed) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  border-bottom: 2px solid var(--overlay);
  margin: 48px 0 0;
}

.tabs button {
  appearance: none;
  border: 2px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--navy);
  font: 600 13px/40px Montserrat, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  height: 40px;
  padding: 0 14px;
  margin-bottom: -2px;
  cursor: pointer;
}

.tabs button:hover {
  color: var(--cyan);
}

.tabs button.is-active {
  color: var(--cyan);
  background: #fff;
  border-color: var(--overlay);
  border-bottom-color: #fff;
  border-radius: 3px 3px 0 0;
}

.tab-panel {
  display: none;
  padding: 36px 0 60px;
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.tab-icon {
  width: 94px;
  height: auto;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
}

/* Legal */
.legal {
  padding: 60px 0 80px;
}

.legal h1 {
  margin-bottom: 28px;
}

.legal h2 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  max-width: var(--measure);
}

/* Footer */
.footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 13px;
  text-align: center;
  padding: 22px 16px;
}

.footer a {
  color: var(--gray);
}

.footer a:hover {
  color: var(--cyan);
}

/* Cookies */
.cookie-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  background: #fff;
  color: var(--navy);
  font: 600 12px/1 Montserrat, sans-serif;
  padding: 10px 16px;
  box-shadow: 0 6px 18px rgba(5, 33, 129, 0.12);
  cursor: pointer;
}

.cookie-panel {
  position: fixed;
  inset: auto 16px 64px auto;
  width: min(420px, calc(100% - 32px));
  z-index: 51;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(5, 33, 129, 0.16);
  padding: 20px;
  display: none;
}

.cookie-panel.is-open {
  display: block;
}

.cookie-panel p {
  margin: 0 0 14px;
  font-size: 13px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  min-height: 36px;
  padding: 8px 14px;
}

.btn-ghost {
  background: #eef3f7;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 64px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-item a {
  color: inherit;
}

.contact-item a:hover {
  color: var(--cyan);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-h: 56px;
    --header-h: 80px;
    --header-h-scrolled: 64px;
    --logo-h: 52px;
    --logo-h-scrolled: 42px;
  }

  .topbar .wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
    order: -1;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      visibility 0.3s ease,
      padding 0.35s ease;
  }

  .header.is-open .nav {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 8px 20px 16px;
  }

  .nav a {
    padding: 12px 0;
    width: 100%;
  }

  .slider {
    height: 460px;
  }

  .slide-copy {
    padding-top: 56px;
    width: calc(100% - 48px);
  }

  .slide-deco {
    opacity: 0.55;
  }

  .features,
  .split,
  .contact-grid,
  .tab-panel.is-active {
    grid-template-columns: 1fr;
  }

  .split img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .topbar {
    font-size: 12px;
  }

  .slider {
    height: 420px;
  }

  .slide-copy h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .topbar,
  .header,
  .header-main,
  .logo img,
  .nav,
  .slide,
  .feature img,
  .feature-copy::before,
  .feature h2,
  .feature p {
    transition: none;
  }

  .feature h2 {
    transform: none;
  }
}
