/* Header y hero: medidas proporcionales a la referencia de 941 px.
   Capas del hero: fondo 0, velo local 1, texto 2, avión 3, paquetes 4. */
.header,
.hero {
   --u: min(.10626993vw, 1.7px)
}

.header {
   position: relative;
   z-index: 5;
   width: 100%;
   max-width: none;
   background: #fff
}

.header .header-inner {
   position: relative;
   display: grid;
   grid-template-columns: 1fr;
   gap: 0;
   width: min(calc(100% - 40px), 1340px);
   max-width: 1340px;
   height: calc(66 * var(--u));
   min-height: 0;
   padding: 0;
   margin: auto
}

.header .brand-logo {
   position: absolute;
   left: calc(5 * var(--u));
   top: calc(-1 * var(--u));
   width: calc(95 * var(--u));
   height: calc(95 * var(--u));
   display: block;
   z-index: 6
}

.header .brand-logo img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: contain
}

.header .nav {
   grid-column: 1 / -1;
   display: flex;
   justify-content: center;
   justify-self: center;
   align-items: center;
   gap: calc(25 * var(--u));
   width: auto;
   order: initial;
   overflow: visible;
   white-space: nowrap;
   font-size: calc(11 * var(--u));
   font-weight: 500;
   color: #062b71
}

.header .nav a {
   padding: calc(7 * var(--u)) 0 calc(4 * var(--u));
   border-bottom: calc(1.5 * var(--u)) solid transparent;
   line-height: 1.2
}

.header .nav a[aria-current] {
   font-weight: 700;
   border-color: #063997
}

.header .nav a:hover {
   border-color: #063997
}

.menu-toggle {
   display: none
}

.header .button {
   grid-column: 3;
   width: 100%;
   min-height: calc(35 * var(--u));
   padding: calc(8 * var(--u)) calc(13 * var(--u));
   gap: calc(8 * var(--u));
   border-radius: calc(15 * var(--u));
   font-size: calc(13 * var(--u));
   white-space: nowrap;
   background: linear-gradient(100deg, #00999e, #00a3a3);
   box-shadow: inset 0 0 calc(8 * var(--u)) #ffffff20
}

.header .button svg {
   width: calc(18 * var(--u));
   height: calc(18 * var(--u))
}

.hero {
   position: relative;
   isolation: isolate;
   overflow: hidden;
   width: 100%;
   max-width: none;
   background: #d7edf6
}

.hero .hero-background {
   position: absolute;
   top: 0;
   bottom: 0;
   left: 50%;
   width: 100vw;
   max-width: none;
   height: 100%;
   object-fit: cover;
   object-position: right center;
   transform: translateX(-50%);
   z-index: 0;
   pointer-events: none
}

.hero .hero-picture {
   display: contents
}

.hero::before {
   content: '';
   position: absolute;
   inset: 0;
   z-index: 1;
   pointer-events: none;
   background: linear-gradient(90deg, #ffffffd4 0%, #ffffffe0 25%, #ffffffad 43%, #ffffff26 61%, transparent 72%)
}

.hero .hero-inner {
   position: relative;
   display: block;
   isolation: auto;
   width: min(calc(100% - 40px), 1340px);
   max-width: 1340px;
   height: calc(372 * var(--u));
   padding: calc(48 * var(--u)) 0 0;
   margin: auto
}

.hero .hero-copy {
   position: relative;
   z-index: 2;
   width: calc(610 * var(--u));
   max-width: 100%
}

.hero h1 {
   font-family: Georgia, 'Times New Roman', serif;
   font-weight: 700;
   font-size: calc(46 * var(--u));
   line-height: 1;
   letter-spacing: calc(-1.65 * var(--u));
   width: max-content;
   max-width: 100%;
   margin: 0;
   color: #072968
}

.hero h1 span {
   display: block;
   white-space: nowrap;
   color: #009da2
}

.hero h1 .headline-first {
   color: #072968;
   transform: scaleX(.88);
   transform-origin: left
}

.hero h1 span:not(.headline-first) {
   transform: scaleX(.94);
   transform-origin: left
}

.hero h2 {
   font-family: Arial, Helvetica, sans-serif;
   font-size: calc(19 * var(--u));
   font-weight: 700;
   letter-spacing: calc(-.65 * var(--u));
   line-height: 1.2;
   margin: calc(16 * var(--u)) 0 0;
   color: #05266a;
   white-space: nowrap
}

.hero .hero-description {
   max-width: none;
   width: calc(500 * var(--u));
   font-size: calc(15 * var(--u));
   line-height: 1.28;
   letter-spacing: calc(-.1 * var(--u));
   margin-top: calc(9 * var(--u));
   color: #284782
}

.hero .hero-actions {
   display: flex;
   gap: calc(10 * var(--u));
   margin-top: calc(26 * var(--u));
   flex-wrap: nowrap
}

.hero .hero-actions .button {
   min-height: calc(42 * var(--u));
   padding: calc(9 * var(--u)) calc(15 * var(--u));
   border-radius: calc(15 * var(--u));
   gap: calc(8 * var(--u));
   white-space: nowrap;
   font-size: calc(14 * var(--u));
   line-height: 1.2;
   background: linear-gradient(110deg, #064799, #1052aa);
   border: 1px solid #ffffffb0;
   box-shadow: 0 1px 2px #0a377520
}

.hero .hero-actions .button:first-child {
   width: calc(231 * var(--u))
}

.hero .hero-actions .button.outline {
   width: calc(156 * var(--u));
   background: #ffffffed;
   color: #063d93;
   border-color: #245bac
}

.hero .hero-actions .button svg {
   width: calc(20 * var(--u));
   height: calc(20 * var(--u))
}

.hero .hero-benefits {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   align-items: center;
   width: calc(435 * var(--u));
   max-width: 100%;
   gap: 0;
   margin-top: calc(20 * var(--u))
}

.hero .hero-benefit {
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: flex-start;
   gap: calc(8 * var(--u));
   min-height: calc(34 * var(--u));
   font-size: calc(11 * var(--u));
   line-height: 1.3;
   text-align: left;
   width: auto
}

.hero .hero-benefit+.hero-benefit {
   width: auto;
   padding-left: calc(10 * var(--u));
   border-left: 1px solid #ffffffa8
}

.hero .hero-benefit:last-child {
   width: auto
}

.hero .icon-circle {
   width: calc(34 * var(--u));
   height: calc(34 * var(--u));
   background: #fffffff0;
   color: #063980;
   box-shadow: 0 3px 10px #28496a0a
}

.hero .benefit-plane,
.hero .hero-benefit:nth-child(2) .icon-circle svg {
   fill: currentColor;
   stroke-width: 1
}

.hero .icon-circle svg {
   width: calc(21 * var(--u));
   height: calc(21 * var(--u))
}

.hero .icon-circle .benefit-cuba-map {
   width: calc(32 * var(--u));
   height: calc(32 * var(--u))
}

.hero .hero-plane,
.hero .hero-packages {
   position: absolute;
   height: auto;
   display: block;
   pointer-events: none;
   user-select: none
}

.hero .hero-plane {
   z-index: 3;
   width: calc(181 * var(--u));
   left: calc(546 * var(--u));
   top: calc(-18 * var(--u))
}

.hero .hero-packages {
   z-index: 4;
   width: calc(416 * var(--u));
   right: calc(-2 * var(--u));
   bottom: calc(-55 * var(--u))
}

/* Ajuste básico para pantallas pequeñas: texto libre y visuales debajo. */
@media(max-width:800px) {

   .header,
   .hero {
      --u: 1px
   }

   .header .header-inner {
      width: calc(100% - 32px);
      height: auto;
      min-height: 124px;
      grid-template-columns: 90px 1fr;
      gap: 8px;
      padding: 10px 0
   }

   .header .brand-logo {
      position: relative;
      left: -5px;
      top: -6px;
      width: 90px;
      height: 90px;
      grid-column: 1;
      grid-row: 1
   }

   .header .button {
      grid-column: 2;
      grid-row: 1;
      justify-self: end;
      max-width: 180px;
      font-size: 13px
   }

   .header .nav {
      grid-column: 1 / -1;
      grid-row: 2;
      gap: 12px;
      font-size: 12px;
      white-space: normal;
      flex-wrap: wrap;
      justify-content: space-between
   }

   .hero .hero-inner {
      height: auto;
      min-height: 730px;
      padding: 30px 20px 300px
   }

   .hero .hero-copy {
      width: 100%;
      max-width: 610px
   }

   .hero h1 {
      font-size: clamp(32px, 5.8vw, 46px);
      letter-spacing: -1.2px;
      width: auto;
      max-width: 100%;
      line-height: 1.04
   }

   .hero h1 span {
      white-space: normal
   }

   .hero h1 .headline-first,
   .hero h1 span:not(.headline-first) {
      transform: none
   }

   .hero h2 {
      font-size: 19px;
      white-space: normal;
      letter-spacing: -.5px;
      line-height: 1.3;
      margin-top: 20px
   }

   .hero .hero-description {
      width: auto;
      font-size: 16px;
      line-height: 1.4
   }

   .hero .hero-description br {
      display: none
   }

   .hero .hero-actions {
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 28px
   }

   .hero .hero-actions .button {
      font-size: 14px;
      padding: 10px 12px
   }

   .hero .hero-actions .button:first-child {
      width: auto
   }

   .hero .hero-actions .button.outline {
      width: auto
   }

   .hero .hero-benefits {
      width: 435px;
      gap: 0;
      margin-top: 20px
   }

   .hero .hero-benefit,
   .hero .hero-benefit+.hero-benefit,
   .hero .hero-benefit:last-child {
      flex: 1;
      min-width: 0;
      width: auto;
      gap: 7px;
      padding-left: 0;
      border: 0;
      font-size: 11px
   }

   .hero .icon-circle {
      width: 34px;
      height: 34px
   }

   .hero .icon-circle svg {
      width: 21px;
      height: 21px
   }

   .hero .hero-plane {
      width: 165px;
      top: auto;
      left: 25px;
      bottom: 170px
   }

   .hero .hero-packages {
      width: 390px;
      max-width: 90%;
      right: -4px;
      bottom: -44px
   }

   .hero .hero-background {
      object-position: 65% center
   }

   .hero::before {
      background: linear-gradient(90deg, #ffffffdb, #ffffffa8 55%, transparent), linear-gradient(#ffffff99, transparent 75%)
   }
}

@media(max-width:420px) {
   .hero .hero-inner {
      min-height: 650px;
      padding: 26px 20px 220px
   }

   .header .nav a {
      padding: 9px 0 7px
   }

   .header .nav {
      gap: 8px
   }

   .hero .hero-benefits {
      width: 100%;
      max-width: 100%;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 16px
   }

   .hero .hero-benefit {
      flex-direction: column;
      align-items: center;
      gap: 4px;
      min-width: 0;
      text-align: center;
      font-size: 12px
   }

   .hero .hero-benefit:nth-child(3) {
      grid-column: 1 / -1;
      justify-self: center;
      width: 50%
   }

   .hero .icon-circle {
      width: 32px;
      height: 32px
   }

   .hero .icon-circle svg {
      width: 20px;
      height: 20px
   }
}

@media(max-width:767.98px) {
   .header .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: calc(100% - 32px);
      height: 82px;
      min-height: 82px;
      padding: 0
   }

   .header .brand-logo {
      position: relative;
      left: 0;
      top: 0;
      width: 72px;
      height: 72px
   }

   .menu-toggle {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: #063980;
      cursor: pointer
   }

   .menu-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      margin: 3px 0;
      border-radius: 2px;
      background: currentColor;
      transition: transform .2s ease, opacity .2s ease
   }

   .menu-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(8px) rotate(45deg)
   }

   .menu-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0
   }

   .menu-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg)
   }

   .header .nav {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      z-index: 10;
      flex-direction: column;
      align-items: stretch;
      justify-self: stretch;
      gap: 0;
      width: 100%;
      padding: 6px 0;
      overflow: visible;
      white-space: normal;
      background: #fff;
      border-top: 1px solid #d9e8f1;
      border-bottom: 1px solid #d9e8f1;
      box-shadow: 0 8px 16px #062b7118
   }

   .header .nav.is-open {
      display: flex
   }

   .header .nav a {
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 46px;
      padding: 10px 16px;
      border-bottom: 0;
      color: #062b71
   }

   .header .nav a[aria-current] {
      color: #009da2;
      border-left: 3px solid #009da2;
      background: #eff9fa
   }
}

@media(max-width:420px) {
   .hero .hero-benefits {
      width: 100%;
      max-width: 100%;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr))
   }

   .hero .hero-benefits > :nth-child(3) {
      grid-column: 1 / -1;
      justify-self: center
   }
}

@media(max-width:420px) {
   .hero {
      background: url(assets/havana-station/hero/hero-mobile-v1.webp) center right / cover no-repeat
   }

   .hero .hero-background {
      display: none
   }

   .hero .hero-inner {
      min-height: 0;
      padding: 16px 20px 10px
   }

   .hero h2 {
      margin-top: 10px
   }

   .hero .hero-actions {
      margin-top: 12px
   }

   .hero .hero-benefits {
      margin-top: 8px;
      gap: 10px 16px;
      background: rgba(255, 255, 255, .76);
      border-radius: 12px
   }
}

/* Franja compacta de beneficios integrada al borde inferior del Hero. */
.hero .hero-benefits {
   background: linear-gradient(to top, rgba(255, 255, 255, .88), rgba(255, 255, 255, .55), transparent);
   border-radius: 0
}

.hero .hero-benefit+.hero-benefit {
   padding-left: calc(14 * var(--u));
   border-left: 1px solid #8eafc8
}

@media(min-width:801px) {
   .hero .hero-benefit {
      font-size: min(calc(11 * var(--u)), 16px)
   }

   .hero .icon-circle {
      width: min(calc(34 * var(--u)), 50px);
      height: min(calc(34 * var(--u)), 50px)
   }
}

@media(max-width:800px) {
   .hero .hero-benefit+.hero-benefit {
      padding-left: 10px;
      border-left: 1px solid #8eafc8
   }
}

@media(max-width:420px) {
   .hero .hero-benefits {
      background: transparent;
      border-radius: 0
   }

   .hero .hero-benefit,
   .hero .hero-benefit+.hero-benefit {
      flex-direction: row;
      align-items: center;
      gap: 6px;
      min-width: 0;
      text-align: left;
      font-size: 11px;
      line-height: 1.25
   }

   .hero .hero-benefit+.hero-benefit {
      padding-left: 8px;
      border-left: 1px solid #8eafc8
   }

   .hero .icon-circle {
      width: 30px;
      height: 30px
   }

   .hero .icon-circle svg {
      width: 18px;
      height: 18px
   }

   .hero .hero-benefit:nth-child(3) {
      border-left: 0;
      padding-left: 0
   }
}

@media(max-width:420px) {
   .hero .hero-benefits {
      width: 100%;
      max-width: 100%;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      margin-top: 8px;
      padding: 8px 0;
      background: rgba(255, 255, 255, .78);
      border-radius: 8px
   }

   .hero .hero-benefit,
   .hero .hero-benefit+.hero-benefit,
   .hero .hero-benefit:nth-child(3) {
      grid-column: auto;
      justify-self: stretch;
      width: auto;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding-left: 4px;
      min-width: 0;
      text-align: center;
      font-size: 10.5px;
      line-height: 1.15
   }

   .hero .hero-benefit+.hero-benefit,
   .hero .hero-benefit:nth-child(3) {
      border-left: 1px solid #8eafc8
   }

   .hero .icon-circle {
      width: 30px;
      height: 30px
   }

   .hero .icon-circle svg {
      width: 18px;
      height: 18px
   }
}

@media(max-width:420px) {
   .hero .hero-inner {
      padding: 6px 20px 0
   }

   .hero h2 {
      margin-top: 4px
   }

   .hero .hero-actions {
      margin-top: 6px
   }

   .hero .hero-benefits {
      margin-top: 4px;
      padding-block: 6px
   }
}
