:root {
  --road-navy: #000080;
  --road-dark: #071126;
  --road-blue: #1f6feb;
  --road-slate: #475569;
  --road-green: #2e7d32;
  --road-amber: #f5a623;
  --road-white: #f8fafc;
  --road-surface: #eef2f6;
  --road-line: #d6dee9;
  --road-shadow: 0 24px 70px rgba(7, 17, 38, .16);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  border-bottom: 1px solid rgba(0, 0, 128, .10);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(7, 17, 38, .05);
}

.header-inner {
  min-height: 86px;
}

.brand {
  min-width: 228px;
}

.brand-logo-v2 {
  width: auto;
  height: 58px;
  max-width: 235px;
  object-fit: contain;
}

.main-nav {
  gap: 32px;
}

.main-nav a {
  color: #152033;
  font-weight: 760;
}

.portal-button {
  background: var(--road-navy);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 720px;
  isolation: isolate;
  background-image: url("../img/route360-hero.png");
  background-size: cover;
  background-position: center center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 38, .97) 0%,
      rgba(7, 17, 38, .91) 34%,
      rgba(7, 17, 38, .60) 58%,
      rgba(7, 17, 38, .18) 82%,
      rgba(7, 17, 38, .06) 100%
    );
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 155px;
  border-radius: 0;
  background:
    linear-gradient(
      176deg,
      transparent 0 49%,
      var(--off-white) 50% 100%
    );
}

.hero-content {
  width: min(710px, 62%);
  padding-top: 112px;
  padding-bottom: 180px;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 5.6vw, 5.65rem);
  line-height: .98;
  letter-spacing: -.065em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .26);
}

.hero p {
  max-width: 650px;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

.hero-note {
  position: relative;
  padding-left: 28px;
}

.hero-note::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--road-amber);
}

/* =========================================================
   SEÑALIZACIÓN VIAL
   ========================================================= */

.road-sign {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 5px solid currentColor;
  background: #fff;
  color: var(--road-navy);
  box-shadow:
    0 0 0 3px #fff,
    0 14px 28px rgba(7, 17, 38, .14);
}

.road-sign::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 6px;
  height: 28px;
  background: #8390a3;
  transform: translateX(-50%);
}

.road-sign-round {
  border-radius: 50%;
}

.road-sign-triangle {
  width: 76px;
  height: 68px;
  border-radius: 10px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.road-sign-diamond {
  border-radius: 10px;
  transform: rotate(45deg);
}

.road-sign-diamond > span {
  transform: rotate(-45deg);
}

.road-sign-stop {
  clip-path: polygon(
    30% 0,
    70% 0,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0 70%,
    0 30%
  );
  color: #a61d24;
}

.road-sign svg {
  width: 37px;
  height: 37px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.road-sign-stop span {
  color: #a61d24;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .06em;
}

.road-section-heading {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
}

.road-section-heading .section-intro {
  margin-bottom: 0;
}

/* =========================================================
   TARJETAS Y RITMO VISUAL
   ========================================================= */

.section {
  position: relative;
}

.section:nth-of-type(even) {
  background:
    linear-gradient(
      90deg,
      transparent 0 8%,
      rgba(0, 0, 128, .025) 8% 92%,
      transparent 92% 100%
    );
}

.card {
  border-radius: 18px;
  border-color: rgba(71, 85, 105, .17);
  box-shadow: 0 10px 30px rgba(7, 17, 38, .055);
}

.card:hover {
  transform: translateY(-7px);
}

.card .icon {
  display: none;
}

.profile-card-v2 {
  min-height: 280px;
  padding-top: 38px;
  border-top: 7px solid var(--road-navy);
}

.profile-card-v2:nth-child(2) {
  border-top-color: var(--road-blue);
}

.profile-card-v2:nth-child(3) {
  border-top-color: var(--road-green);
}

.profile-card-v2:nth-child(4) {
  border-top-color: var(--road-amber);
}

.profile-card-v2 h3 {
  margin-top: 25px;
}

.problem-grid .card {
  position: relative;
  min-height: 205px;
  padding: 72px 28px 28px;
}

.problem-grid .card::before {
  position: absolute;
  top: 22px;
  left: 26px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 4px solid #bd252c;
  border-radius: 50%;
  color: #bd252c;
  background: #fff;
  font-weight: 950;
}

.problem-grid .card:nth-child(1)::before {
  content: "€";
}

.problem-grid .card:nth-child(2)::before {
  content: "⏱";
}

.problem-grid .card:nth-child(3)::before {
  content: "!";
}

.problem-grid .card:nth-child(4)::before {
  content: "↻";
}

.problem-grid .card:nth-child(5)::before {
  content: "+";
}

.problem-grid .card:nth-child(6)::before {
  content: "?";
}

.solution-card {
  position: relative;
  min-height: 395px;
  overflow: visible;
  padding-top: 48px;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 30px;
  width: 54px;
  height: 54px;
  border: 5px solid var(--road-navy);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7,17,38,.13);
  transform: rotate(45deg);
}

.solution-card::after {
  position: absolute;
  top: -4px;
  left: 50px;
  z-index: 2;
  color: var(--road-navy);
  font-size: 1.28rem;
  font-weight: 950;
}

.solution-card:nth-child(1)::after {
  content: "↗";
}

.solution-card:nth-child(2)::after {
  content: "→";
}

.solution-card:nth-child(3)::after {
  content: "⇉";
}

/* =========================================================
   AITOR
   ========================================================= */

.aitor-image-v2,
.founder-image-v2 {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.aitor-image-v2 {
  object-position: center center;
}

.founder-image-v2 {
  object-position: center 20%;
}

.section-navy .media-panel {
  background: #0a1530;
}

.aitor-launcher {
  border: 3px solid rgba(255,255,255,.9);
  box-shadow:
    0 20px 50px rgba(0, 0, 128, .38),
    0 0 0 5px rgba(245, 166, 35, .20);
}

.aitor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   CONFIANZA / FUNDADOR
   ========================================================= */

.founder-block-v2 .media-panel {
  min-height: 570px;
}

.founder-block-v2 .media-panel img {
  min-height: 570px;
}

.founder-block-v2 .quote {
  background: #fff7e7;
}

/* =========================================================
   DETALLE DE CARRETERA
   ========================================================= */

.road-divider {
  position: relative;
  height: 46px;
  overflow: hidden;
  background: #313944;
}

.road-divider::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  width: 100%;
  height: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 42px,
      #f6f2ce 42px 102px,
      transparent 102px 144px
    );
}

.road-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 5px 12px rgba(0,0,0,.18),
    inset 0 -5px 12px rgba(0,0,0,.18);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .brand {
    min-width: 190px;
  }

  .brand-logo-v2 {
    max-width: 190px;
    height: 50px;
  }

  .hero-content {
    width: min(720px, 74%);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-logo-v2 {
    max-width: 158px;
    height: 43px;
  }

  .hero {
    min-height: 690px;
    background-position: 58% center;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(7,17,38,.97) 0%,
        rgba(7,17,38,.90) 56%,
        rgba(7,17,38,.56) 100%
      );
  }

  .hero-content {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 150px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .road-section-heading {
    align-items: flex-start;
    gap: 20px;
  }

  .road-sign {
    width: 57px;
    height: 57px;
  }

  .road-sign svg {
    width: 29px;
    height: 29px;
  }

  .founder-block-v2 .media-panel,
  .founder-block-v2 .media-panel img {
    min-height: 440px;
  }
}
