/* Fijar el header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000c1a;
  padding: 15px 60px;
  position: relative;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1em;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: #001a33;
  list-style: none;
  padding: 10px;
  top: 100%;
  left: 0;
}

.nav-links li:hover .dropdown {
  display: block;
}

.contacto-btn {
  background-color: #00d1ff;
  padding: 8px 15px;
  border-radius: 5px;
  color: black !important;
}

/* Botón hamburguesa */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px; /* debajo del header */
    left: 0;
    right: 0;
    background-color: #000c1a;
    flex-direction: column;
    align-items: center;
    display: none;
    gap: 10px;
    padding: 20px 0;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li:hover .dropdown {
    position: static;
  }

  .dropdown {
    position: static;
    background-color: #001a33;
    width: 100%;
    text-align: center;
  }
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/jost-400.ttf) format("truetype");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/jost-700.ttf) format("truetype");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/jost-800.ttf) format("truetype");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Jost", sans-serif;
  color: #193753;
  background: #fff;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #00bed0;
  outline-offset: 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  touch-action: manipulation;
}
.hero {
  height: 800px;
  min-height: 610px;
  position: relative;
  background: #001b2a;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  background: rgba(0, 24, 40, 0.68);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 24px 70px;
}
h1 {
  font-size: clamp(30px, 3.9vw, 74px);
  font-weight: 400;
  line-height: 1.12;
}
h1 strong {
  letter-spacing: 0.045em;
  font-weight: 800;
}
.hero-copy p {
  font-size: clamp(16px, 1.36vw, 25px);
  line-height: 1.28;
  margin-top: 55px;
}
.motion-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  border: 1px solid #ffffff80;
  background: #00213180;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.benefits {
  position: relative;
  min-height: 1060px;
  padding: 400px 24px 95px;
  overflow: clip;
}
.brand-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.brand {
  position: absolute;
  width: 18%;
  max-width: 350px;
  border-radius: 30px;
  box-shadow: 0 8px 10px #0003;
}
.brand-1 {
  left: 12%;
  top: 15px;
  transform: rotate(-32deg);
}
.brand-2 {
  left: 41%;
  top: -175px;
}
.brand-3 {
  right: 12%;
  top: 15px;
  transform: rotate(32deg);
}
.brand-4 {
  left: -7%;
  top: 400px;
  transform: rotate(32deg);
}
.brand-5 {
  right: -7%;
  top: 400px;
  transform: rotate(-32deg);
}
.benefits-inner {
  position: relative;
  max-width: 1130px;
  margin: auto;
  text-align: center;
}
h2 {
  font-size: clamp(27px, 3.1vw, 56px);
  line-height: 1.2;
}
.benefits h2 {
  letter-spacing: 0.055em;
  font-weight: 800;
}
.subtitle {
  font-size: clamp(16px, 1.85vw, 32px);
  margin-top: 24px;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 42px 0 36px;
}
.dots button {
  width: 44px;
  height: 20px;
  border: 0;
  background: transparent;
  position: relative;
}
.dots button:after {
  content: "";
  height: 3px;
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  background: #b3eced;
}
.dots button[aria-pressed="true"]:after {
  background: #23ccde;
}
.benefit-card {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  background: #203e59 url("assets/imgs-beneficios-1.jpg") center/cover no-repeat;
  text-align: left;
  display: flex;
  align-items: center;
}
.benefit-copy {
  color: #fff;
  width: 48%;
  padding: 45px 6.8%;
}
.benefit-copy h3 {
  font-size: clamp(22px, 2.1vw, 38px);
  font-weight: 800;
  margin-bottom: 22px;
}
.benefit-copy p {
  font-size: clamp(16px, 1.45vw, 25px);
  line-height: 1.35;
}
.round {
  display: inline-grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border: 0;
  border-radius: 50%;
  font-family: "Jost", sans-serif;
  font-size: 58px;
  line-height: 1;
  padding: 0 0 5px;
  background: #3cd3dd;
  color: #fff;
}
.next-benefit {
  position: absolute;
  right: -35px;
  top: calc(50% - 32px);
  background: #30ccd9d9;
}
.process {
  background: #082136 url("assets/fase-1.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 1090px;
  padding: 145px 0 40px;
  transition: background-image 0.25s;
}
.process-inner {
  max-width: 1440px;
  margin: auto;
  padding: 0 40px;
}
.process h2 {
  font-weight: 400;
  line-height: 1.25;
}
.process-inner > p {
  font-size: clamp(17px, 1.85vw, 32px);
  margin-top: 30px;
}
.phase-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  margin-top: 140px;
}
.phase-copy h3 {
  font-size: clamp(28px, 3vw, 55px);
  font-weight: 800;
}
.phase-copy p {
  font-size: clamp(17px, 1.8vw, 31px);
  margin: 35px 0 0 65px;
}
.phase-previews {
  display: flex;
  gap: 55px;
}
.phase-preview {
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #ffffff20;
  width: 46%;
  overflow: hidden;
  box-shadow: 0 8px 10px #0004;
}
.phase-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.phase-controls {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  margin: 50px 130px 0 0;
}
.outline {
  background: transparent;
  border: 2px solid white;
}
.packages {
  padding: 65px 30px 70px;
  text-align: center;
  min-height: 1200px;
}
.packages h2 {
  font-size: clamp(27px, 3vw, 54px);
}
.package-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1460px;
  margin: 200px auto 60px;
  isolation: isolate;
  min-height: 650px;
}
.package-card {
  position: relative;
  background: #f3f3f3 url("assets/fondo.jpg") center/cover;
  border-radius: 48px;
  box-shadow: 0 3px 7px #0003;
  flex: 1;
  min-width: 0;
  padding: 100px 28px 45px;
  opacity: 0.67;
  transform: scale(0.97);
  transition:
    transform 0.35s,
    opacity 0.35s;
  min-height: 570px;
}
.package-card.selected {
  opacity: 1;
  transform: scale(1.12);
  z-index: 2;
  box-shadow: 0 25px 24px #122a3c4d;
}
.piece {
  position: absolute;
  left: 50%;
  top: -108px;
  transform: translateX(-50%);
  width: 140px;
  height: 155px;
  display: grid;
  place-items: center;
}
.piece:before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #9780ff;
}
.piece img {
  position: relative;
  max-width: 130px;
  height: 175px;
  object-fit: contain;
}
.package-card.selected .piece:before {
  background: #4bdfd0;
}
.package-card:nth-child(3) .piece:before {
  background: #eee;
}
.package-card h3 {
  font-size: clamp(20px, 1.8vw, 33px);
  font-weight: 400;
  background: #a38afa;
  color: white;
  margin: 0 -55px 45px;
  padding: 24px 10px;
  border-radius: 0 45px 0 45px;
  white-space: nowrap;
}
.package-card.selected h3 {
  background: #4ce0cf;
  color: #002629;
}
.package-card:nth-child(3):not(.selected) h3 {
  background: #d5d5d5;
  color: #9376ff;
}
.package-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.6;
}
.package-card li {
  margin: 10px 0;
}
.package-controls {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.dark {
  width: 50px;
  height: 50px;
  font-size: 44px;
  background: #183751;
}
.preloader {
  display: none;
}
.js .preloader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #00131f;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
.preloader video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preloader button {
  position: absolute;
  bottom: 32px;
  right: 32px;
  color: white;
  border: 1px solid #ffffff65;
  background: #001723a0;
  border-radius: 30px;
  padding: 12px 20px;
}
.js .preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 1921px) {
  .hero {
    height: 850px;
  }
}
@media (max-width: 1100px) {
  .hero {
    height: 620px;
    min-height: 0;
  }
  .benefits {
    padding-top: 265px;
    min-height: 800px;
  }
  .brand-2 {
    top: -115px;
  }
  .brand {
    border-radius: 18px;
  }
  .brand-4,
  .brand-5 {
    top: 300px;
  }
  .benefit-card {
    min-height: 245px;
    max-width: 80%;
    margin: auto;
  }
  .benefit-copy {
    padding: 25px 5%;
  }
  .process {
    min-height: 730px;
    padding: 90px 0 45px;
  }
  .phase-layout {
    margin-top: 85px;
    gap: 40px;
  }
  .phase-previews {
    gap: 25px;
  }
  .phase-copy p {
    margin-left: 20px;
  }
  .phase-controls {
    margin-right: 80px;
  }
  .packages {
    min-height: 900px;
  }
  .package-grid {
    margin-top: 130px;
    min-height: 500px;
  }
  .package-card {
    padding: 75px 18px 30px;
    min-height: 470px;
    border-radius: 28px;
  }
  .package-card h3 {
    margin-left: -25px;
    margin-right: -25px;
    padding: 18px 4px;
  }
  .piece {
    transform: translateX(-50%) scale(0.8);
    top: -100px;
  }
  .package-card li {
    margin: 7px 0;
  }
}
@media (max-width: 650px) {
  .hero {
    height: 560px;
  }
  .hero-copy {
    padding-bottom: 50px;
  }
  h1 {
    font-size: 30px;
  }
  .hero-copy p {
    margin-top: 32px;
    line-height: 1.5;
  }
  .desktop {
    display: none;
  }
  .brand {
    width: 25%;
    border-radius: 13px;
  }
  .brand-2 {
    left: 37.5%;
    top: -65px;
  }
  .brand-1 {
    left: 6%;
    top: 15px;
  }
  .brand-3 {
    right: 6%;
    top: 15px;
  }
  .brand-4,
  .brand-5 {
    display: none;
  }
  .benefits {
    padding: 190px 22px 65px;
    min-height: 0;
  }
  .subtitle {
    line-height: 1.5;
    margin-top: 16px;
  }
  .dots {
    gap: 9px;
    margin: 25px 0 20px;
  }
  .dots button {
    width: 29px;
  }
  .benefit-card {
    max-width: 100%;
    min-height: 235px;
    border-radius: 18px;
    background-size: auto 100%;
    background-position: 46% center;
  }
  .benefit-copy {
    width: 53%;
    padding: 22px 14px;
  }
  .benefit-copy h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .benefit-copy p {
    font-size: 15px;
  }
  .next-benefit {
    width: 42px;
    height: 42px;
    right: -12px;
    top: calc(50% - 21px);
    font-size: 36px;
  }
  .process {
    padding: 55px 0 32px;
    min-height: 760px;
  }
  .process-inner {
    padding: 0 24px;
  }
  .process h2 {
    font-size: 27px;
  }
  .process h2 br {
    display: none;
  }
  .phase-layout {
    grid-template-columns: 1fr;
    margin-top: 55px;
    gap: 38px;
  }
  .phase-copy p {
    margin: 20px 0 0;
    line-height: 1.5;
  }
  .phase-previews {
    justify-content: flex-end;
    gap: 22px;
  }
  .phase-preview {
    width: 110px;
    border-radius: 10px;
  }
  .phase-controls {
    margin: 28px 0 0;
    gap: 18px;
  }
  .outline {
    width: 43px;
    height: 43px;
    font-size: 38px;
  }
  .packages {
    padding: 50px 20px 55px;
    min-height: 0;
  }
  .packages h2 {
    font-size: 26px;
  }
  .package-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 125px auto 30px;
    min-height: 490px;
  }
  .package-card {
    display: none;
    min-height: 480px;
    padding: 65px 20px 30px;
  }
  .package-card.selected {
    display: block;
    transform: none;
  }
  .package-card h3 {
    margin: 0 -25px 30px;
    font-size: 23px;
  }
  .package-card ul {
    font-size: 15px;
  }
  .piece {
    top: -105px;
  }
  .round.dark {
    width: 44px;
    height: 44px;
  }
  .motion-toggle {
    right: 15px;
    bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
  .js .preloader {
    display: none;
  }
}

/* Four positions around a circular track; three cards remain visible. */
.package-grid {
  position: relative;
  display: block;
  perspective: 1500px;
  touch-action: pan-y;
  height: 650px;
  min-height: 650px;
}
.package-card,
.package-card.selected {
  position: absolute;
  left: 33.333%;
  top: 50%;
  width: 33.333%;
  min-height: 570px;
  display: block;
  transform-origin: center;
  transition:
    transform 650ms cubic-bezier(0.22, 0.7, 0.18, 1),
    opacity 500ms ease,
    filter 650ms ease;
  will-change: transform, opacity;
}
.package-card[data-position="left"] {
  transform: translate(-92%, -50%) scale(0.94) rotateY(7deg);
  opacity: 0.67;
  z-index: 1;
  filter: brightness(0.99);
}
.package-card[data-position="center"] {
  transform: translate(0, -50%) scale(1.12);
  opacity: 1;
  z-index: 3;
  filter: none;
}
.package-card[data-position="right"] {
  transform: translate(92%, -50%) scale(0.94) rotateY(-7deg);
  opacity: 0.67;
  z-index: 1;
  filter: brightness(0.99);
}
.package-card[data-position="back"] {
  transform: translate(0, -55%) translateZ(-350px) scale(0.65);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}
.package-card:not(.selected) h3 {
  background: #a38afa;
  color: #fff;
}
.package-card.selected h3 {
  background: #4ce0cf;
  color: #002629;
}
.package-pending {
  font-size: 18px;
  padding: 35px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .package-grid {
    height: 560px;
    min-height: 560px;
  }
  .package-card,
  .package-card.selected {
    min-height: 470px;
  }
}
@media (max-width: 650px) {
  .packages {
    overflow: hidden;
  }
  .package-grid {
    max-width: none;
    width: 100%;
    height: 540px;
    min-height: 540px;
    margin-top: 120px;
  }
  .package-card,
  .package-card.selected {
    left: 16%;
    width: 68%;
    min-height: 485px;
    padding: 65px 12px 25px;
  }
  .package-card[data-position="center"] {
    transform: translate(0, -50%) scale(1);
  }
  .package-card[data-position="left"] {
    transform: translate(-87%, -50%) scale(0.82) rotateY(12deg);
  }
  .package-card[data-position="right"] {
    transform: translate(87%, -50%) scale(0.82) rotateY(-12deg);
  }
  .package-card h3 {
    font-size: clamp(15px, 4vw, 23px);
    margin-left: -14px;
    margin-right: -14px;
  }
  .package-card ul {
    font-size: 14px;
  }
  .package-card[data-position="back"] {
    transform: translate(0, -55%) translateZ(-250px) scale(0.6);
  }
}

.package-card[data-package="D"] h3,
.package-card[data-package="D"].selected h3 {
  background: #0e1618;
  color: #4ce0cf;
}
.package-card[data-package="D"] .piece:before {
  background: #0e1618;
}

body {
  overflow-x: clip;
}
.benefits {
  overflow: visible;
  z-index: 2;
}
.brand-cloud {
  pointer-events: auto;
}
.brand-cloud .brand {
  left: 41%;
  right: auto;
  top: 0;
  width: 18%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: white;
  max-width: none;
  transform: translate(0, -175px);
  opacity: 0;
  transition:
    transform 1.1s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.7s;
  will-change: transform, opacity;
  pointer-events: none;
}
.brand-cloud .brand[data-slot="0"] {
  transform: translate(-267%, 400px) rotate(32deg);
  opacity: 1;
}
.brand-cloud .brand[data-slot="1"] {
  transform: translate(-161%, 15px) rotate(-32deg);
  opacity: 1;
}
.brand-cloud .brand[data-slot="2"] {
  transform: translate(0, -175px);
  opacity: 1;
}
.brand-cloud .brand[data-slot="3"] {
  transform: translate(161%, 15px) rotate(32deg);
  opacity: 1;
}
.brand-cloud .brand[data-slot="4"] {
  transform: translate(267%, 400px) rotate(-32deg);
  opacity: 1;
}
.brand-cloud .brand[data-slot="5"] {
  transform: translate(380%, 600px) rotate(-55deg);
}
.brand-cloud .brand[data-slot="6"] {
  transform: translate(-380%, 600px) rotate(55deg);
}
.brand-controls {
  position: absolute;
  top: 330px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 3;
}
.brand-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid #19375335;
  border-radius: 50%;
  color: #193753;
  background: white;
  font:
    24px "Jost",
    sans-serif;
  display: grid;
  place-items: center;
}
.brand-controls #pause-brands {
  font-size: 16px;
}
@media (max-width: 1100px) {
  .brand-cloud .brand[data-slot="2"] {
    transform: translate(0, -115px);
  }
  .brand-cloud .brand[data-slot="0"] {
    transform: translate(-267%, 300px) rotate(32deg);
  }
  .brand-cloud .brand[data-slot="4"] {
    transform: translate(267%, 300px) rotate(-32deg);
  }
  .brand-controls {
    top: 210px;
  }
}
@media (max-width: 650px) {
  .brand-cloud .brand {
    left: 37.5%;
    width: 25%;
    border-radius: 13px;
  }
  .brand-cloud .brand[data-slot="2"] {
    transform: translate(0, -65px);
  }
  .brand-cloud .brand[data-slot="1"] {
    transform: translate(-126%, 15px) rotate(-32deg);
  }
  .brand-cloud .brand[data-slot="3"] {
    transform: translate(126%, 15px) rotate(32deg);
  }
  .brand-cloud .brand[data-slot="0"] {
    transform: translate(-275%, 170px) rotate(32deg);
    opacity: 0;
  }
  .brand-cloud .brand[data-slot="4"] {
    transform: translate(275%, 170px) rotate(-32deg);
    opacity: 0;
  }
  .brand-controls {
    top: 135px;
    gap: 12px;
  }
  .brand-controls button {
    width: 32px;
    height: 32px;
  }
}

.process {
  position: relative;
  isolation: isolate;
  transition: none;
}
.phase-fade-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  pointer-events: none;
  opacity: 0;
}
.phase-layout {
  transition: opacity 550ms ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .phase-fade-overlay,
  .phase-layout {
    transition: none !important;
  }
}
/* Package D has a muted inactive state and its original active colors. */
.package-card[data-package="D"]:not(.selected) h3 {
  background: #d5d5d5;
  color: #687579;
}
.package-card[data-package="D"].selected h3 {
  background: #0e1618;
  color: #4ce0cf;
}
.package-card[data-package="D"] h3 {
  transition:
    background-color 650ms ease,
    color 650ms ease;
}
.brand-controls button {
  padding: 0;
  line-height: 1;
}
.brand-controls #previous-brand,
.brand-controls #next-brand {
  font-size: 0;
}
.brand-controls #previous-brand::before,
.brand-controls #next-brand::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  grid-area: 1/1;
}
.brand-controls #previous-brand::before {
  transform: translateX(2px) rotate(-135deg);
}
.brand-controls #next-brand::before {
  transform: translateX(-2px) rotate(45deg);
}

/* Preserve each package's original palette in every carousel position. */
.package-card[data-package="A"] {
  --plate-bg: #a38afa;
  --plate-ink: #fff;
}
.package-card[data-package="B"] {
  --plate-bg: #4ce0cf;
  --plate-ink: #002629;
}
.package-card[data-package="C"] {
  --plate-bg: #d5d5d5;
  --plate-ink: #9376ff;
}
.package-card[data-package="D"] {
  --plate-bg: #0e1618;
  --plate-ink: #4ce0cf;
}
.packages .package-card[data-package] h3 {
  background: var(--plate-bg);
  color: var(--plate-ink);
  transition: opacity 650ms ease;
}
.package-card[data-position="left"],
.package-card[data-position="right"] {
  filter: none;
}
.piece {
  overflow: visible;
}
.piece img {
  position: absolute;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
}
.package-card[data-package="A"] .piece img {
  width: 406.96px;
  height: 515.39px;
  left: calc(50% - 206.23px);
  top: -194.02px;
  clip-path: inset(31.824% 39.966% 34.221% 41.315%);
}
.package-card[data-package="B"] .piece img {
  width: 425.31px;
  height: 538.63px;
  left: calc(50% - 213.37px);
  top: -207.87px;
  clip-path: inset(33.023% 40.641% 34.487% 40.978%);
}
.package-card[data-package="C"] .piece img {
  width: 529.46px;
  height: 670.54px;
  left: calc(50% - 267.41px);
  top: -267.5px;
  clip-path: inset(35.419% 40.809% 38.482% 41.821%);
}
.package-card[data-package="D"] .piece img {
  width: 586.3px;
  height: 742.51px;
  left: calc(50% - 294.63px);
  top: -311.78px;
  clip-path: inset(37.949% 41.484% 38.482% 41.99%);
}

/* Fit the cards and navigation together; keep the heading outside this area. */
.packages {
  height: auto;
  min-height: 0;
  display: block;
  padding: 65px 30px 28px;
}
.packages .package-grid {
  height: calc(100svh - 190px);
  min-height: 520px;
  margin: 145px auto 24px;
}
.packages .package-card,
.packages .package-card.selected {
  min-height: 0;
  padding: 85px 28px 36px;
}
.packages .package-card h3 {
  padding: 22px 10px;
  margin-bottom: 30px;
}
.packages .package-card ul {
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.6;
}
.packages .package-card li {
  margin: 9px 0;
}
@media (max-width: 1100px) {
  .packages .package-grid {
    margin-top: 135px;
    min-height: 485px;
  }
  .packages .package-card,
  .packages .package-card.selected {
    padding: 75px 18px 30px;
  }
  .packages .package-card h3 {
    padding: 18px 4px;
    margin-bottom: 25px;
  }
  .packages .package-card li {
    margin: 7px 0;
  }
}
@media (max-width: 650px) {
  .packages {
    padding: 50px 20px 28px;
  }
  .packages .package-grid {
    height: calc(100svh - 155px);
    min-height: 505px;
    margin-top: 130px;
    margin-bottom: 22px;
  }
  .packages .package-card,
  .packages .package-card.selected {
    padding: 65px 12px 30px;
  }
  .packages .package-card h3 {
    margin-bottom: 25px;
  }
}

/* Match each chess circle to its price banner in all carousel states. */
.packages .package-card[data-package] .piece::before {
  background: var(--plate-bg);
}
