/* ==========================================================
   RED DRAGON SUPPLY SOLUTIONS
   GATEWAY CARDS — PREMIUM / CLEAN / MODERN
========================================================== */


/* ==========================================================
   01. ROOT
========================================================== */

:root {

      --red: #d91f26;
      --red-dark: #a91218;
  
      --ink: #242321;
      --muted: #77736d;
  
      --paper: #f5f2ec;
      --paper-light: #fbfaf7;
  
      --white: #ffffff;
  
      --line: rgba(36, 35, 33, 0.10);
  
      --title-font: "Sora", sans-serif;
      --body-font: "Manrope", sans-serif;
  
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
  
  }
  
  
  /* ==========================================================
     02. RESET
  ========================================================== */
  
  *,
  *::before,
  *::after {
  
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  
  }
  
  
  html,
  body {
  
      min-height: 100%;
  
  }
  
  
  body {
  
      font-family: var(--sans);
  
      background: var(--paper);
  
      color: var(--ink);
  
      overflow-x: hidden;
  
      -webkit-font-smoothing: antialiased;
  
      text-rendering: optimizeLegibility;
  
  }
  
  
  img {
  
      display: block;
  
      max-width: 100%;
  
  }
  
  
  a {
  
      color: inherit;
  
      text-decoration: none;
  
  }
  
  
  ::selection {
  
      background: var(--red);
  
      color: var(--white);
  
  }
  
  
  /* ==========================================================
     03. GATEWAY
  ========================================================== */
  
  .gateway {
  
      position: relative;
  
      min-height: 100svh;
  
      display: flex;
  
      align-items: center;
  
      overflow: hidden;
  
      padding: 32px;
  
      background:
  
          radial-gradient(
              circle at 88% 8%,
              rgba(217, 31, 38, 0.08),
              transparent 28%
          ),
  
          radial-gradient(
              circle at 8% 95%,
              rgba(0,0,0,0.035),
              transparent 24%
          ),
  
          linear-gradient(
              180deg,
              #fbfaf7 0%,
              #f3efe8 100%
          );
  
  }
  
  
  /* subtle decorative circles */
  
  .gateway::before {
  
      content: "";
  
      position: absolute;
  
      width: 500px;
      height: 500px;
  
      top: -290px;
      right: -180px;
  
      border-radius: 50%;
  
      border: 1px solid rgba(217, 31, 38, 0.08);
  
  }
  
  
  .gateway::after {
  
      content: "";
  
      position: absolute;
  
      width: 340px;
      height: 340px;
  
      left: -210px;
      bottom: -200px;
  
      border-radius: 50%;
  
      border: 1px solid rgba(36, 35, 33, 0.05);
  
  }
  
  
  /* ==========================================================
     04. SHELL
  ========================================================== */
  
  .gateway-shell {
  
      position: relative;
  
      z-index: 2;
  
      width: min(100%, 1280px);
  
      margin: 0 auto;
  
  }
  
  
  /* ==========================================================
     05. TOP
  ========================================================== */
  
  .gateway-top {
  
      display: flex;
  
      align-items: center;
  
      justify-content: space-between;
  
      margin-bottom: 24px;
  
  }
  
  
  /* LOGO */
  
  .brand img {
  
      width: 78px;
      height: 78px;
  
      object-fit: contain;
  
  }
  
  
  /* ==========================================================
     06. LANGUAGE SWITCHER
  ========================================================== */
  
  .language-switcher {
  
      display: flex;
  
      align-items: center;
  
      gap: 18px;
  
  }
  
  
  .language-switcher a {
  
      position: relative;
  
      color: #908b84;
  
      font-size: 9px;
  
      font-weight: 700;
  
      letter-spacing: 0.14em;
  
      transition: color 0.25s ease;
  
  }
  
  
  .language-switcher a::after {
  
      content: "";
  
      position: absolute;
  
      left: 0;
      bottom: -5px;
  
      width: 0;
      height: 1px;
  
      background: var(--red);
  
      transition: width 0.25s ease;
  
  }
  
  
  .language-switcher a:hover,
  .language-switcher a.active {
  
      color: var(--red);
  
  }
  
  
  .language-switcher a:hover::after,
  .language-switcher a.active::after {
  
      width: 100%;
  
  }
  
  
  /* ==========================================================
     07. INTRO
  ========================================================== */
  
  .gateway-intro {
  
      max-width: 800px;
  
      margin: 0 auto 34px;
  
      text-align: center;
  
  }
  
  
  .gateway-eyebrow {
  
      margin-bottom: 10px;
  
      color: var(--red);
  
      font-size: 8px;
  
      font-weight: 700;
  
      letter-spacing: 0.22em;
  
      text-transform: uppercase;
  
  }
  
  
  .gateway-intro h1 {

      font-family: var(--title-font);
  
      font-size: clamp(52px, 5.5vw, 86px);
  
      line-height: 0.96;
  
      letter-spacing: -0.055em;
  
      font-weight: 700;
  
      color: var(--ink);
  }
  
  
  .gateway-copy {
  
      max-width: 540px;
  
      margin: 14px auto 0;
  
      color: var(--muted);
  
      font-size: 13px;
  
      line-height: 1.7;
  
  }
  
  
  /* ==========================================================
     08. CARDS GRID
  ========================================================== */
  
  .gateway-routes {
  
      display: grid;
  
      grid-template-columns: repeat(3, 1fr);
  
      gap: 18px;
  
  }
  
  
  /* ==========================================================
     09. CARD
  ========================================================== */
  
  .gateway-route {
  
      position: relative;
  
      min-height: 350px;
  
      padding: 28px;
  
      display: flex;
  
      flex-direction: column;
  
      justify-content: space-between;
  
      overflow: hidden;
  
      border-radius: 26px;
  
      background:
  
          linear-gradient(
              180deg,
              rgba(255,255,255,0.97),
              rgba(250,248,243,0.96)
          );
  
      border: 1px solid rgba(36,35,33,0.08);
  
      box-shadow:
  
          0 18px 40px
          rgba(30,30,30,0.05);
  
      transition:
  
          transform 0.45s var(--ease),
          box-shadow 0.45s var(--ease),
          border-color 0.35s ease;
  
  }
  
  
  /* glow */
  
  .gateway-route::before {
  
      content: "";
  
      position: absolute;
  
      width: 240px;
      height: 240px;
  
      top: -135px;
      right: -125px;
  
      border-radius: 50%;
  
      background:
  
          radial-gradient(
              circle,
              rgba(217,31,38,0.14),
              rgba(217,31,38,0) 68%
          );
  
      transition:
  
          transform 0.5s var(--ease),
          opacity 0.4s ease;
  
  }
  
  
  /* bottom red accent */
  
  .gateway-route::after {
  
      content: "";
  
      position: absolute;
  
      left: 28px;
      right: 28px;
      bottom: 0;
  
      height: 3px;
  
      border-radius: 3px 3px 0 0;
  
      background:
  
          linear-gradient(
              90deg,
              var(--red),
              rgba(217,31,38,0.18)
          );
  
      transform: scaleX(0);
  
      transform-origin: left;
  
      transition: transform 0.5s var(--ease);
  
  }
  
  
  .gateway-route > * {
  
      position: relative;
  
      z-index: 2;
  
  }
  
  
  /* hover */
  
  .gateway-route:hover {
  
      transform: translateY(-8px);
  
      border-color: rgba(217,31,38,0.16);
  
      box-shadow:
  
          0 28px 65px
          rgba(30,30,30,0.11);
  
  }
  
  
  .gateway-route:hover::before {
  
      transform: scale(1.2);
  
  }
  
  
  .gateway-route:hover::after {
  
      transform: scaleX(1);
  
  }
  
  
  /* ==========================================================
     10. NUMBER
  ========================================================== */
  
  .route-number {
  
      color: #aaa49d;
  
      font-size: 9px;
  
      font-weight: 700;
  
      letter-spacing: 0.16em;
  
  }
  
  
  /* ==========================================================
     11. ROUTE MAIN
  ========================================================== */
  
  .route-main {
  
      margin-top: auto;
  
  }
  
  
  .route-type {
  
      display: block;
  
      margin-bottom: 10px;
  
      color: var(--red);
  
      font-size: 8px;
  
      font-weight: 700;
  
      letter-spacing: 0.20em;
  
      text-transform: uppercase;
  
  }
  
  
  .route-main h2 {
  
      display: flex;
  
      align-items: center;
  
      flex-wrap: wrap;
  
      gap: 10px;
  
      font-family: var(--serif);
  
      font-size: clamp(38px, 3.4vw, 52px);
  
      line-height: 0.98;
  
      letter-spacing: -0.035em;
  
      font-weight: 500;
  
      color: var(--ink);
  
  }
  
  
  /* ARROW BETWEEN COUNTRIES */
  
  .route-arrow {
  
      font-family: var(--sans);
  
      font-size: 0.52em;
  
      font-weight: 500;
  
      color: var(--red);
  
      transition: transform 0.35s var(--ease);
  
  }
  
  
  .gateway-route:hover
  .route-arrow {
  
      transform: translateX(5px);
  
  }
  
  
  /* ==========================================================
     12. ACTION
  ========================================================== */
  
  .route-action {
  
      display: flex;
  
      align-items: center;
  
      justify-content: space-between;
  
      margin-top: 28px;
  
      padding-top: 18px;
  
      border-top: 1px solid var(--line);
  
      color: var(--muted);
  
      font-size: 10px;
  
      font-weight: 600;
  
  }
  
  
  .route-action i {
  
      width: 40px;
      height: 40px;
  
      display: grid;
  
      place-items: center;
  
      flex-shrink: 0;
  
      border-radius: 50%;
  
      background: #f0ede7;
  
      color: var(--red);
  
      transition:
  
          transform 0.35s var(--ease),
          background 0.35s ease,
          color 0.35s ease;
  
  }
  
  
  .gateway-route:hover
  .route-action i {
  
      transform: translateX(4px);
  
      background: var(--red);
  
      color: var(--white);
  
  }
  
  
  /* ==========================================================
     13. FOOT
  ========================================================== */
  
  .gateway-foot {
  
      margin-top: 20px;
  
      display: flex;
  
      align-items: center;
  
      justify-content: space-between;
  
      gap: 20px;
  
      color: #928d86;
  
      font-size: 8px;
  
      font-weight: 600;
  
      letter-spacing: 0.12em;
  
      text-transform: uppercase;
  
  }
  
  
  /* ==========================================================
     14. TABLET
  ========================================================== */
  
  @media
  (max-width: 980px) {
  
      .gateway {
  
          align-items: flex-start;
  
          padding: 24px 20px;
  
      }
  
  
      .gateway-routes {
  
          grid-template-columns: 1fr;
  
      }
  
  
      .gateway-route {
  
          min-height: 230px;
  
      }
  
  }
  
  
  /* ==========================================================
     15. MOBILE
  ========================================================== */
  
  @media
  (max-width: 600px) {
  
      .gateway {
  
          padding: 18px 14px 24px;
  
      }
  
  
      .brand img {
  
          width: 62px;
          height: 62px;
  
      }
  
  
      .gateway-top {
  
          margin-bottom: 18px;
  
      }
  
  
      .gateway-intro {
  
          margin-bottom: 24px;
  
      }
  
  
      .gateway-intro h1 {
  
          font-size: clamp(44px, 13vw, 60px);
  
      }
  
  
      .gateway-copy {
  
          margin-top: 10px;
  
          font-size: 11px;
  
      }
  
  
      .gateway-routes {
  
          gap: 12px;
  
      }
  
  
      .gateway-route {
  
          min-height: 200px;
  
          padding: 21px;
  
          border-radius: 20px;
  
      }
  
  
      .gateway-route::after {
  
          left: 21px;
          right: 21px;
  
      }
  
  
      .route-main h2 {
  
          font-size: 35px;
  
      }
  
  
      .route-action {
  
          margin-top: 17px;
  
          padding-top: 13px;
  
      }
  
  
      .route-action i {
  
          width: 34px;
          height: 34px;
  
      }
  
  
      .gateway-foot {
  
          flex-direction: column;
  
          align-items: flex-start;
  
          gap: 10px;
  
          margin-top: 16px;
  
      }
  
  }

  .gateway-intro h1,
.route-main h2,
.route-number,
.route-type,
.route-action,
.gateway-eyebrow,
.language-switcher a,
.gateway-foot {
    font-family: var(--title-font);
}

body,
.gateway-copy {
    font-family: var(--body-font);
}

/* ==========================================================
   CARDS GRID
========================================================== */

.gateway-routes {

      display: grid;
  
      grid-template-columns: repeat(3, 1fr);
  
      gap: 22px;
  }
  
  
  /* ==========================================================
     CARD
  ========================================================== */
  
  .gateway-route {
  
      position: relative;
  
      min-height: 360px;
  
      padding: 30px;
  
      display: flex;
  
      flex-direction: column;
  
      justify-content: space-between;
  
      overflow: hidden;
  
      border-radius: 24px;
  
      background:
          linear-gradient(
              180deg,
              rgba(255, 255, 255, 0.98) 0%,
              rgba(248, 246, 241, 0.98) 100%
          );
  
      border:
          1px solid
          rgba(36, 35, 33, 0.08);
  
      box-shadow:
          0 14px 40px
          rgba(25, 25, 25, 0.055);
  
      transition:
          transform 0.45s var(--ease),
          box-shadow 0.45s var(--ease),
          border-color 0.35s ease;
  }
  
  
  /* glow */
  
  .gateway-route::before {
  
      content: "";
  
      position: absolute;
  
      width: 280px;
      height: 280px;
  
      top: -150px;
      right: -145px;
  
      border-radius: 50%;
  
      background:
          radial-gradient(
              circle,
              rgba(217, 31, 38, 0.16),
              rgba(217, 31, 38, 0.00) 68%
          );
  
      transition:
          transform 0.55s var(--ease),
          opacity 0.45s ease;
  }
  
  
  /* bottom accent */
  
  .gateway-route::after {
  
      content: "";
  
      position: absolute;
  
      left: 28px;
      right: 28px;
      bottom: 0;
  
      height: 4px;
  
      border-radius: 4px 4px 0 0;
  
      background:
          linear-gradient(
              90deg,
              var(--red),
              rgba(217, 31, 38, 0.18)
          );
  
      transform: scaleX(0);
  
      transform-origin: left;
  
      transition:
          transform 0.5s var(--ease);
  }
  
  
  .gateway-route > * {
  
      position: relative;
  
      z-index: 2;
  }
  
  
  /* HOVER */
  
  .gateway-route:hover {
  
      transform:
          translateY(-10px);
  
      border-color:
          rgba(217, 31, 38, 0.17);
  
      box-shadow:
          0 30px 70px
          rgba(25, 25, 25, 0.12);
  }
  
  
  .gateway-route:hover::before {
  
      transform: scale(1.18);
  }
  
  
  .gateway-route:hover::after {
  
      transform: scaleX(1);
  }
  
  
  /* ==========================================================
     NUMBER
  ========================================================== */
  
  .route-number {
  
      width: 36px;
      height: 36px;
  
      display: grid;
  
      place-items: center;
  
      border-radius: 50%;
  
      background:
          rgba(217, 31, 38, 0.08);
  
      color:
          var(--red);
  
      font-family:
          var(--title-font);
  
      font-size: 10px;
  
      font-weight: 700;
  
      letter-spacing: -0.02em;
  }
  
  
  /* ==========================================================
     ROUTE MAIN
  ========================================================== */
  
  .route-main {
  
      margin-top: auto;
  }
  
  
  .route-type {
  
      display: inline-flex;
  
      align-items: center;
  
      gap: 8px;
  
      margin-bottom: 12px;
  
      color: var(--red);
  
      font-family: var(--title-font);
  
      font-size: 9px;
  
      font-weight: 700;
  
      letter-spacing: 0.14em;
  
      text-transform: uppercase;
  }
  
  
  .route-type::before {
  
      content: "";
  
      width: 18px;
      height: 2px;
  
      border-radius: 10px;
  
      background: var(--red);
  }
  
  
  .route-main h2 {
  
      display: flex;
  
      align-items: center;
  
      flex-wrap: wrap;
  
      gap: 10px;
  
      font-family: var(--title-font);
  
      font-size: clamp(34px, 3vw, 47px);
  
      line-height: 1.02;
  
      letter-spacing: -0.05em;
  
      font-weight: 700;
  
      color: var(--ink);
  }
  
  
  /* ARROW */
  
  .route-arrow {
  
      font-family: var(--title-font);
  
      font-size: 0.52em;
  
      font-weight: 700;
  
      color: var(--red);
  
      transition:
          transform 0.35s var(--ease);
  }
  
  
  .gateway-route:hover
  .route-arrow {
  
      transform: translateX(6px);
  }
  
  
  /* ==========================================================
     ACTION
  ========================================================== */
  
  .route-action {
  
      display: flex;
  
      align-items: center;
  
      justify-content: space-between;
  
      margin-top: 28px;
  
      padding-top: 18px;
  
      border-top:
          1px solid
          rgba(36, 35, 33, 0.08);
  
      color: var(--muted);
  
      font-family: var(--title-font);
  
      font-size: 10px;
  
      font-weight: 600;
  
      transition:
          color 0.3s ease;
  }
  
  
  .gateway-route:hover
  .route-action {
  
      color: var(--ink);
  }
  
  
  .route-action i {
  
      width: 42px;
      height: 42px;
  
      display: grid;
  
      place-items: center;
  
      flex-shrink: 0;
  
      border-radius: 50%;
  
      background:
          linear-gradient(
              135deg,
              #f0ede7,
              #e9e5de
          );
  
      color: var(--red);
  
      box-shadow:
          inset 0 0 0 1px
          rgba(36, 35, 33, 0.05);
  
      transition:
          transform 0.35s var(--ease),
          background 0.35s ease,
          color 0.35s ease;
  }
  
  
  .gateway-route:hover
  .route-action i {
  
      transform:
          translateX(5px);
  
      background:
          var(--red);
  
      color:
          var(--white);
  }


  .gateway-eyebrow {

      margin-bottom: 10px;
  
      color: var(--red);
  
      font-family: var(--title-font);
  
      font-size: 8px;
  
      font-weight: 700;
  
      letter-spacing: 0.18em;
  
      text-transform: uppercase;
  }
  
  
  .gateway-copy {
  
      max-width: 540px;
  
      margin: 14px auto 0;
  
      color: var(--muted);
  
      font-family: var(--body-font);
  
      font-size: 13px;
  
      line-height: 1.7;
  }

  .language-switcher a {

      position: relative;
  
      font-family: var(--title-font);
  
      color: #908b84;
  
      font-size: 9px;
  
      font-weight: 700;
  
      letter-spacing: 0.10em;
  
      transition: color 0.25s ease;
  }

  .gateway {

      position: relative;
  
      min-height: 100svh;
  
      display: flex;
  
      align-items: center;
  
      overflow: hidden;
  
      padding: 32px;
  
      background-color: #f6f3ed;
  
      background-image:
  
          linear-gradient(
              rgba(36, 35, 33, 0.028) 1px,
              transparent 1px
          ),
  
          linear-gradient(
              90deg,
              rgba(36, 35, 33, 0.028) 1px,
              transparent 1px
          );
  
      background-size:
          34px 34px;
  
  }

  .gateway::before,
.gateway::after {
    display: none;
}

.gateway-route::before {
      display: none;
  }

  .gateway-route {

      position: relative;
  
      min-height: 360px;
  
      padding: 30px;
  
      display: flex;
  
      flex-direction: column;
  
      justify-content: space-between;
  
      overflow: hidden;
  
      border-radius: 24px;
  
      background:
          rgba(255, 255, 255, 0.90);
  
      border:
          1px solid
          rgba(36, 35, 33, 0.10);
  
      box-shadow:
          0 10px 28px
          rgba(36, 35, 33, 0.045);
  
      backdrop-filter:
          blur(4px);
  
      -webkit-backdrop-filter:
          blur(4px);
  
      transition:
          transform 0.4s var(--ease),
          box-shadow 0.4s var(--ease),
          border-color 0.3s ease;
  
  }

  .gateway-route:hover {

      transform:
          translateY(-8px);
  
      border-color:
          rgba(36, 35, 33, 0.16);
  
      box-shadow:
          0 18px 40px
          rgba(36, 35, 33, 0.08);
  
  }

  .gateway-route::after {

      content: "";
  
      position: absolute;
  
      left: 30px;
      right: 30px;
  
      bottom: 0;
  
      height: 3px;
  
      border-radius:
          3px 3px 0 0;
  
      background:
          var(--red);
  
      transform:
          scaleX(0);
  
      transform-origin:
          left;
  
      transition:
          transform 0.45s var(--ease);
  
  }
  
  .gateway-route:hover::after {
      transform:
          scaleX(1);
  }

  .gateway {

      background-color: #f6f3ed;
  
      background-image:
  
          radial-gradient(
              circle,
              rgba(36, 35, 33, 0.055) 1px,
              transparent 1px
          ),
  
          linear-gradient(
              rgba(36, 35, 33, 0.022) 1px,
              transparent 1px
          ),
  
          linear-gradient(
              90deg,
              rgba(36, 35, 33, 0.022) 1px,
              transparent 1px
          );
  
      background-size:
          22px 22px,
          44px 44px,
          44px 44px;
  }

  
  /* ==========================================================
   WELCOME SCREEN
========================================================== */

.welcome-screen {

      position: fixed;
  
      inset: 0;
  
      z-index: 9999;
  
      display: flex;
  
      align-items: center;
  
      justify-content: center;
  
      background-color: #f6f3ed;
  
      background-image:
          radial-gradient(
              circle,
              rgba(36, 35, 33, 0.045) 1px,
              transparent 1px
          );
  
      background-size:
          22px 22px;
  
      transition:
          opacity 0.65s ease,
          visibility 0.65s ease;
  }
  
  
  .welcome-screen.hide {
  
      opacity: 0;
      visibility: hidden;
  }
  
  
  .welcome-inner {
  
      display: flex;
  
      flex-direction: column;
  
      align-items: center;
  
      text-align: center;
  }
  
  
  .welcome-logo {
  
      width: 105px;
  
      opacity: 0;
  
      transform: translateY(10px) scale(0.96);
  
      animation:
          welcomeLogo 0.7s
          cubic-bezier(0.22, 1, 0.36, 1)
          forwards;
  }
  
  
  .welcome-line {
  
      width: 150px;
  
      height: 1px;
  
      margin-top: 24px;
  
      overflow: hidden;
  
      background:
          rgba(36,35,33,0.10);
  }
  
  
  .welcome-line span {
  
      display: block;
  
      width: 100%;
  
      height: 100%;
  
      background: var(--red);
  
      transform: translateX(-100%);
  
      animation:
          welcomeLine 0.8s
          0.25s
          cubic-bezier(0.22, 1, 0.36, 1)
          forwards;
  }
  
  
  .welcome-brand {
  
      margin-top: 18px;
  
      font-family:
          var(--title-font);
  
      font-size: 12px;
  
      font-weight: 700;
  
      letter-spacing: 0.16em;
  
      color: var(--ink);
  
      opacity: 0;
  
      transform: translateY(6px);
  
      animation:
          welcomeText 0.55s
          0.45s
          ease forwards;
  }
  
  
  .welcome-tagline {
  
      margin-top: 6px;
  
      font-family:
          var(--body-font);
  
      font-size: 9px;
  
      letter-spacing: 0.12em;
  
      text-transform: uppercase;
  
      color: var(--muted);
  
      opacity: 0;
  
      transform: translateY(6px);
  
      animation:
          welcomeText 0.55s
          0.58s
          ease forwards;
  }
  
  
  @keyframes welcomeLogo {
  
      to {
          opacity: 1;
          transform:
              translateY(0)
              scale(1);
      }
  
  }
  
  
  @keyframes welcomeLine {
  
      to {
          transform:
              translateX(0);
      }
  
  }
  
  
  @keyframes welcomeText {
  
      to {
          opacity: 1;
          transform:
              translateY(0);
      }
  
  }

  .welcome-screen.hide {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
  }


  /* =====================================================
   LANGUAGE SWITCHER
   RED DRAGON — HOME
===================================================== */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* BOTONES */

.language-switcher button {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    padding: 8px 10px;

    border: 1px solid transparent;
    border-radius: 6px;

    background: transparent;

    color: #777;

    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.04em;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


/* HOVER */

.language-switcher button:hover {
    color: #D71920;
    background: rgba(215, 25, 32, 0.05);
}


/* IDIOMA ACTIVO */

.language-switcher button.active {
    color: #D71920;

    background: rgba(215, 25, 32, 0.08);

    border-color: rgba(215, 25, 32, 0.15);
}


/* ACCESIBILIDAD */

.language-switcher button:focus-visible {
    outline: 2px solid #D71920;
    outline-offset: 3px;
}


/* MOBILE */

@media (max-width: 600px) {

    .language-switcher {
        gap: 3px;
    }

    .language-switcher button {
        min-width: 34px;
        padding: 7px 8px;
        font-size: 10px;
    }

}


/* =====================================================
   RED DRAGON SUPPLY SOLUTIONS
   GATEWAY — RESPONSIVE FIX
===================================================== */


/* =====================================================
   ESTRUCTURA PRINCIPAL
===================================================== */

.gateway {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px 32px;

    box-sizing: border-box;
}

.gateway-shell {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: clamp(14px, 2vh, 26px);
}


/* =====================================================
   ENCABEZADO
===================================================== */

.gateway-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-shrink: 0;
}

.gateway-top .brand img {
    width: clamp(55px, 6vw, 75px);
    height: auto;
}


/* =====================================================
   INTRO — MÁS COMPACTA
===================================================== */

.gateway-intro {
    text-align: center;

    margin: 0 auto;

    max-width: 900px;

    flex-shrink: 0;
}

.gateway-eyebrow {
    margin-bottom: 10px;
}

.gateway-intro h1 {
    max-width: 850px;

    margin: 0 auto;

    font-size: clamp(38px, 4.2vw, 66px);
    line-height: 1.08;

    letter-spacing: -0.055em;

    text-wrap: balance;
}

.gateway-copy {
    max-width: 620px;

    margin: 14px auto 0;

    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.6;
}


/* =====================================================
   CARDS — TRES COLUMNAS REALES
===================================================== */

.gateway-routes {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: clamp(12px, 1.8vw, 22px);

    width: 100%;

    min-width: 0;

    align-items: stretch;
}


/* =====================================================
   CARD
===================================================== */

.gateway-route {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    min-width: 0;

    min-height: 220px;

    padding: clamp(18px, 2vw, 28px);

    box-sizing: border-box;

    overflow: hidden;
}


/* =====================================================
   NÚMERO
===================================================== */

.route-number {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


/* =====================================================
   CONTENIDO DEL CARD
===================================================== */

.route-main {
    width: 100%;
    min-width: 0;

    margin: 14px 0;
}

.route-type {
    display: block;

    margin-bottom: 10px;

    font-size: 11px;

    letter-spacing: 0.12em;
}


/* =====================================================
   TÍTULO DE RUTA
===================================================== */

.route-main h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin: 0;

    font-size: clamp(22px, 2.5vw, 36px);
    line-height: 1.2;

    letter-spacing: -0.045em;

    overflow-wrap: anywhere;
}

.route-main h2 > span:not(.route-arrow) {
    min-width: 0;
}

.route-arrow {
    flex-shrink: 0;

    font-size: 0.75em;
}


/* =====================================================
   ACCIÓN
===================================================== */

.route-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;

    margin-top: auto;

    padding-top: 14px;
}

.route-action > span {
    min-width: 0;

    font-size: 12px;
    line-height: 1.4;
}

.route-action i {
    flex-shrink: 0;
}


/* =====================================================
   FOOTER
===================================================== */

.gateway-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    flex-shrink: 0;

    font-size: 10px;
}


/* =====================================================
   LAPTOPS Y TABLETS HORIZONTALES
===================================================== */

@media (max-width: 1100px) {

    .gateway {
        padding: 22px 24px;
    }

    .gateway-intro h1 {
        font-size: clamp(34px, 4.8vw, 52px);
    }

    .gateway-route {
        padding: 20px;
    }

    .route-main h2 {
        font-size: clamp(22px, 2.7vw, 30px);
    }

}


/* =====================================================
   TABLETS VERTICALES
   CAMBIAMOS A CARDS COMPACTOS
===================================================== */

@media (max-width: 800px) {

    .gateway {
        padding: 20px 24px;
    }

    .gateway-shell {
        gap: 16px;
    }

    .gateway-intro h1 {
        max-width: 650px;

        font-size: clamp(34px, 5vw, 46px);
    }

    .gateway-copy {
        font-size: 13px;
    }

    .gateway-routes {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gateway-route {
        min-height: 0;

        display: grid;

        grid-template-columns: 42px minmax(0, 1fr) auto;

        align-items: center;

        gap: 16px;

        padding: 16px 20px;
    }

    .route-number {
        width: 38px;
        height: 38px;
    }

    .route-main {
        margin: 0;
    }

    .route-type {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .route-main h2 {
        font-size: clamp(22px, 3.5vw, 30px);
        gap: 8px;
    }

    .route-action {
        width: auto;

        margin: 0;
        padding: 0;

        gap: 12px;
    }

    .route-action > span {
        display: none;
    }

    .gateway-foot {
        font-size: 9px;
    }

}


/* =====================================================
   CELULARES
===================================================== */

@media (max-width: 480px) {

    .gateway {
        padding: 16px;
    }

    .gateway-shell {
        gap: 16px;
    }

    .gateway-top .brand img {
        width: 55px;
    }

    .gateway-intro h1 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.12;
    }

    .gateway-eyebrow {
        font-size: 9px;
    }

    .gateway-copy {
        font-size: 12px;
        line-height: 1.5;
    }

    .gateway-route {
        grid-template-columns: 34px minmax(0, 1fr) 34px;

        gap: 12px;

        padding: 14px;
    }

    .route-number {
        width: 34px;
        height: 34px;

        font-size: 12px;
    }

    .route-main h2 {
        font-size: clamp(19px, 5.5vw, 26px);
    }

    .route-type {
        font-size: 9px;
    }

    .route-action {
        justify-content: flex-end;
    }

    .gateway-foot {
        flex-direction: column;
        align-items: flex-start;

        gap: 6px;
    }

}


/* =====================================================
   PANTALLAS DE POCA ALTURA
===================================================== */

@media (max-height: 750px) and (min-width: 801px) {

    .gateway {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .gateway-shell {
        gap: 12px;
    }

    .gateway-intro h1 {
        font-size: clamp(32px, 3.5vw, 48px);
    }

    .gateway-copy {
        margin-top: 8px;
    }

    .gateway-route {
        min-height: 190px;
        padding: 18px;
    }

    .route-main {
        margin: 10px 0;
    }

}

/* =====================================================
   FIX — HEADER SIEMPRE ARRIBA
===================================================== */

.gateway {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: stretch;

    padding: 24px 32px;
}

.gateway-shell {
    width: 100%;
    max-width: 1200px;

    min-height: calc(100dvh - 48px);

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}

/* HEADER */

.gateway-top {
    width: 100%;

    margin-top: 0;
    padding-top: 0;

    flex-shrink: 0;
}

/* CONTENIDO CENTRAL */

.gateway-intro {
    margin: 0 auto;
}

/* TARJETAS */

.gateway-routes {
    flex-shrink: 0;
}

/* FOOTER */

.gateway-foot {
    margin-top: 0;
}

/* TABLET Y CELULAR */

@media (max-width: 800px) {

    .gateway {
        padding: 20px 24px;
    }

    .gateway-shell {
        min-height: calc(100dvh - 40px);
    }

}

@media (max-width: 480px) {

    .gateway {
        padding: 16px;
    }

    .gateway-shell {
        min-height: calc(100dvh - 32px);
    }

}

/* =====================================================
   GATEWAY — TÍTULO MÁS GRANDE
===================================================== */

/* ESCRITORIO */

.gateway-intro h1 {
    max-width: 1050px;

    font-size: clamp(56px, 6.5vw, 96px);
    line-height: 1.02;

    letter-spacing: -0.065em;
    font-weight: 800;

    margin: 0 auto;

    text-wrap: balance;
}

/* LAPTOP */

@media (max-width: 1100px) {

    .gateway-intro h1 {
        font-size: clamp(52px, 6.5vw, 76px);
    }

}

/* TABLET */

@media (max-width: 800px) {

    .gateway-intro h1 {
        max-width: 720px;

        font-size: clamp(48px, 7.5vw, 66px);
        line-height: 1.04;
    }

}

/* CELULAR */

@media (max-width: 480px) {

    .gateway-intro h1 {
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1.06;

        letter-spacing: -0.055em;
    }

}

/* PANTALLAS DE POCA ALTURA */

@media (max-height: 750px) and (min-width: 801px) {

    .gateway-intro h1 {
        font-size: clamp(48px, 5.5vw, 72px);
    }

}


/* ==========================================================
   RED DRAGON SUPPLY SOLUTIONS

   GATEWAY — USA → MÉXICO
   PERSONAL SHOPPING ROUTE

========================================================== */


/* ==========================================================
   01. SHOPPING ROUTE
========================================================== */

.gateway-route-shopping {

    position: relative;

    background:
        linear-gradient(
            115deg,
            rgba(215, 25, 32, 0.045),
            rgba(215, 25, 32, 0.012)
        );

    border-color: rgba(215, 25, 32, 0.16);

    overflow: hidden;

}


/* ACCENT LINE */

.gateway-route-shopping::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 100%;

    background: #d71920;

    transform: scaleY(0);

    transform-origin: bottom;

    transition: transform 0.4s ease;

}


.gateway-route-shopping:hover::before {

    transform: scaleY(1);

}


/* ==========================================================
   02. SERVICE LABEL
========================================================== */

.gateway-route-shopping .route-type {

    color: #d71920;

}


.route-type-shopping {

    display: inline-flex;

    align-items: center;

    gap: 8px;

}


/* ==========================================================
   03. DESCRIPTION
========================================================== */

.route-shopping-description {

    margin: 9px 0 0;

    font-family: "Manrope", sans-serif;

    font-size: 12px;

    font-weight: 500;

    line-height: 1.6;

    letter-spacing: -0.01em;

    color: #7a8088;

}


/* ==========================================================
   04. HOVER
========================================================== */

.gateway-route-shopping:hover {

    border-color: rgba(215, 25, 32, 0.38);

    background:
        linear-gradient(
            115deg,
            rgba(215, 25, 32, 0.075),
            rgba(215, 25, 32, 0.025)
        );

}


.gateway-route-shopping:hover .route-arrow {

    color: #d71920;

}


.gateway-route-shopping:hover .route-action {

    color: #d71920;

}


/* ==========================================================
   05. RESPONSIVE
========================================================== */

@media (max-width: 768px) {

    .route-shopping-description {

        font-size: 11px;

        line-height: 1.55;

        margin-top: 7px;

    }

}


@media (prefers-reduced-motion: reduce) {

    .gateway-route-shopping::before {

        transition: none;

    }

}