:root {
  --grey: #4c4c4c;
  --prime-gap: 1.5rem;
  --prime-transition: 600ms cubic-bezier(0.22, 1, 0.36, 1);
  --dot-size: 12px;
  --dot-active-width: 32px;
  --dot-pill-radius: 8px;
}

[data-brand="edreams"] {
  --negative-logo: url("/images/merch/logos/ED_prime_white_logo.png") !important;
  --prime-color: #000d29;
  --prime-color2: #ffd534 !important;
  --brand-color: #005dad;
  --brand-color2: #002c52;
  --bg-gradient1: linear-gradient(90deg, #002c52 0%, #000d29 100%);
  --bg-icon-gradient: linear-gradient(180deg, #ffd633 0%, #ffc933 100%);
  --link-color: #005dad;
}

[data-brand="opodo"] {
  --negative-logo: url("/images/merch/logos/OP_prime_white_logo.png") !important;
  --prime-color: #262626 !important;
  --brand-color: #ff6600 !important;
  --brand-color2: #ff944d !important;
  --bg-gradient1: linear-gradient(90deg, #262626 0%, #141414 100%);
  --bg-icon-gradient: linear-gradient(180deg, #ff8d01 0%, #ff6600 100%);
  --link-color: #ff6600;
}


[data-brand="govoyages"] {
    --negative-logo: url("/images/merch/logos/GO_prime_white_logo.png") !important;
  --prime-color: #123300 !important;
  --brand-color:  #123300 !important;
  --brand-color2: #66c431 !important;
  --bg-gradient1: linear-gradient(90deg, #123300 0%, #141414 100%);
  --bg-icon-gradient: linear-gradient(180deg, #66c431 0%, #123300 100%);
  --link-color: #123300;
}
.bg-prime-color2 {
  background-color: var(--prime-color2);
}

.bg-prime-color {
  background-color: var(--prime-color);
}
#sticky-button .bg-prime-color {
  background-color: linear-gradient(
    90deg,  var(--brand-color2) 0%,
    var(--prime-color) 100%) !important;
}
p#hero_pre_h1 {
    font-size: 22px !important;
    width: 80% !important;
}
#footer-lp {
  margin-top: -32px;
}

#hero_disclaimer,
.first_section_disclaimer,
.how_disclaimer {
  font-size: 10px;
  line-height: 130%;
  padding-top: 15px;
}

.odf-logo.odf-logo-negative {
  background-image: var(--negative-logo) !important;
  background-size: contain !important;
}

.content {
  position: relative;
  z-index: 1;
  margin-bottom: 6%;
  margin-top: 12%;
      padding: 0px !important;
}

#first-section {
  border-radius: 32px;
  padding-top: 28px !important;
  position: relative;
}

#content-first-section {
  align-content: center;
  margin: auto;
}

html {
  scroll-behavior: smooth;
}

#hero {
  margin-bottom: -24px;
  max-height: 826px !important;
}

.od-page {
  background: var(--bg-gradient1);
}

#hero_pre_h1 {
  padding: 20px 0px;
}

#hero p {
  font-size: 16px;
  line-height: 130%;
  width: 92%;
}

.carousel-wrapper {
  width: 100%;
  margin: auto -200px auto 0px;
  perspective: 1000px;
  overflow: hidden;
  background: transparent;
  height: 605px;
  position: relative;
}

#partner_logo {
  max-width: 158px;
  filter: brightness(0) invert(1);
}

h1 {
  font-size: 68px !important;
  width: 88%;
  font-weight: 700 !important;
  line-height: 110% !important;
}

h2 {
  font-size: 48px !important;
  font-weight: 600 !important;
}

#customCarousel {
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-item-custom {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: transform 1.6s cubic-bezier(0.5, 2, 0.36, 1),
    filter 1.6s cubic-bezier(0.5, 2, 0.36, 1),
    opacity 0.9s cubic-bezier(0.5, 1.5, 0.36, 1);
  cursor: pointer;
  height: 480px;
  opacity: 0.7;
  z-index: 1;
}

.carousel-item-custom.center {
  transform: scale(1);
  opacity: 1;
  z-index: 3;
  filter: brightness(1.1);
}

.carousel-item-custom.side {
  transform: scale(0.93);
  opacity: 0.6;
  z-index: 2;
}

.carousel-item-custom.far {
  transform: scale(0.88);
  opacity: 0.5;
  z-index: 1;
}

.carousel-item-inner {
  width: 100%;
  height: 93%;
  min-height: 400px;
  border-radius: 20px;
  background: #eee;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.carousel-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.carousel-caption-custom {
  position: relative;
  z-index: 2;
  padding: 32px 24px 24px 24px;
  color: #fff;
  text-align: left;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  border-radius: 0 0 20px 20px;
}

.carousel-caption-custom h5 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.carousel-caption-custom p {
  font-size: 0.9rem;
  line-height: 1rem;
  margin-bottom: 0;
  opacity: 0.85;
  color: #fff;
}

.category-btn {
  background: #fff;
  color: var(--prime-color);
  border: 2px solid var(--prime-color);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 50rem !important;
  font-size: 1rem;
  padding: 0.55rem 1rem;
  margin: 0px 5px;
  width: fit-content;
}

.category-btn.active,
.category-btn:active {
  background: var(--prime-color) !important;
  color: #fff !important;
  border-color: var(--prime-color) !important;
}

#carouselDots {
  gap: 0.5rem;
  pointer-events: auto;
}

.carousel-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: #e3e8ee;
  border: none;
  outline: none;
  transition: background 0.3s, width 0.3s, height 0.3s, border-radius 0.3s,
    transform 0.3s;
  cursor: pointer;
  margin: 0 2px;
  padding: 0;
  box-sizing: content-box;
}

.carousel-dot.active {
  width: var(--dot-active-width);
  height: var(--dot-size);
  border-radius: var(--dot-pill-radius);
  background: #bfc5ce;
  transform: none;
}

.dots-below {
  bottom: 12px !important;
  position: absolute !important;
}

.how-cards-carousel {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.how-cards-carousel::-webkit-scrollbar {
  display: none;
}

#wallet-mockup {
  position: relative;
  max-width: 476px;
  margin: 0 auto;
  width: 100%;
}

.how-card.active .rounded-circle {
  background: var(--bg-icon-gradient);
  border: 2px solid white !important;
}

.how-card.active p {
  color: var(--prime-color) !important;
}

.how-card .rounded-circle {
  border: 1px solid #cac4c4b5 !important;
  width: 69px;
  height: 69px;
}

.how-card p {
  font-size: 16px !important;
  color: #cac4c4b5 !important;
}

.how-card {
  border: 1px solid #cac4c4b5 !important;
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  min-width: 320px;
  max-width: 427px;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  flex: 0 0 auto;
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  transform: scale(0.97);
  color: #cac4c4b5 !important;
}

.how-card.active,
.how-card:active,
.how-card:focus {
  border: 2px solid var(--prime-color) !important;
  box-shadow: 0 0 0 0.25rem var(--prime-color) !important;
  background-color: #fffffff5;
  color: var(--prime-color) !important;
  transform: scale(1);
}

#how-section .odf-icon {
  font-size: 32px;
}

.how-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

#how-cards-dots {
  gap: 0.5rem;
}

.how-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e3e8ee;
  border: none;
  outline: none;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
  cursor: pointer;
  margin: 0 2px;
  opacity: 1;
  padding: 0;
}

.how-dot.active {
  width: 32px;
  border-radius: 8px;
  background: #bfc5ce;
}

.wallet-coupon {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 46%;
  width: 100%;
  min-width: 450px;
  padding: 0 24px;
  z-index: 2;
  pointer-events: none;
  color: var(--prime-color);
  z-index: 2;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInWallet 0.5s;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

[class^="wallet_coupon_amount"] {
  font-size: 30px;
  font-weight: 500;
}

[class^="wallet_coupon_product"] {
  font-size: 10px;
  font-weight: 500;
  line-height: 0px;
}

[class^="wallet_coupon_code"] {
  color: var(--grey);
  font-size: 12px;
  line-height: 20px;
}

[class^="wallet_coupon_code"] span {
  font-weight: 600;
}

.wallet_coupon_cta {
  color: var(--link-color);
  font-weight: 500;
  font-size: 12px;
}

.wallet-coupon.active {
  display: block;
  opacity: 1;
}

.wallet-coupon-inner {
  background: var(--prime-color);
  color: white;
  border-radius: 7.08px;
  padding: 20px 18px 16px 18px;
  width: 100%;
  max-width: 90%;
  margin: 16px auto 24px auto;
}

@keyframes fadeInWallet {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wallet-coupon-title {
  font-weight: 400;
  font-size: 11px;
  margin-bottom: 0.3rem;
  margin-left: 44px;
  line-height: 0px;
}

.wallet_coupon_value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.wallet_coupon_desc {
  font-size: 11px;
  margin-bottom: 12px;
  margin-top: -12px;
}

.wallet_coupon_title {
  margin-left: 35px;
  font-size: 10px;
  line-height: 0px;
}

.wallet_coupon_code_area {
  background: white;
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  display: inline-flex;
  width: 100%;
  margin-top: 22px;
}

#trustpilot {
  border-radius: 32px 32px 0px 0px;
  position: relative;
  z-index: 6;
}
h2#trustpilot_h2 {
    padding-top: 70px !important;
}
#faq a {
  text-decoration: underline !important;
  color: var(--link-color) !important;
}

.odf-collapse-title-box {
  padding: 0 40px 0 0px !important;
}

.odf-logo.odf-logo-s {
  width: 130px !important;
  height: 18px !important;
}

#sticky-text {
  font-size: 15px;
}

.prime-module {
  max-width: 1320px;
}

/* Carrusel Base */
.prime-carousel {
  position: relative;
  width: 100%;
}

.prime-carousel-viewport {
  overflow: hidden;
  position: relative;
  background: var(--bs-body);
  padding: 1rem 0;
}

.prime-carousel-track {
  position: relative;
  will-change: transform;

  gap: var(--prime-gap);
  align-items: center;
  transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.prime-slide {
  flex: 0 0 calc(100% / 1.9);
  max-width: 300px;
  position: relative;
  cursor: pointer;
  transition: transform 1.6s cubic-bezier(0.5, 2, 0.36, 1),
    filter 1.6s cubic-bezier(0.5, 2, 0.36, 1),
    opacity 0.9s cubic-bezier(0.5, 1.5, 0.36, 1);

  opacity: 0;
  transform: scale(0.8);
  filter: brightness(0.5);
  pointer-events: none;
  height: 440px;
}

.prime-slide.is-next {
  opacity: 0.7;
  transform: scale(0.9);
  filter: brightness(0.8);
  z-index: 2;
  pointer-events: auto;
}

.prime-slide.is-center {
  opacity: 1;
  transform: scale(1.05);
  filter: brightness(1);
  z-index: 3;
  pointer-events: auto;
}

.card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  background: none;
}

.bg-cover {
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 1rem;
  min-height: 400px;
}

.carousel-caption-custom {
  padding: 24px;
  color: #fff;
  text-align: left;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 40%, transparent 100%);
  border-radius: 0 0 1rem 1rem;
}

.prime-indicators .indicator {
  --size: var(--dot-size);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--bs-gray-400);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, width 0.3s, height 0.3s, border-radius 0.3s,
    transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  box-sizing: content-box;
}

.prime-indicators .indicator.active {
  width: 24px;
  /* mantenerse proporcional, se puede ajustar si se quiere igualar a --dot-active-width */
  height: var(--size);
  border-radius: 50rem;
  background: var(--bs-dark);
}

#how_frame {
  max-width: 503px;
}

.prime-carousel-viewport.grabbing {
  cursor: grabbing;
}

.prime-carousel-viewport:not(.grabbing) {
  cursor: grab;
}

@media (max-width: 991px) {
  #hero {
    min-height: 640px !important;
  }

  #faq {
    padding: 0px 16px;
  }

  .prime-carousel-viewport {
    padding: 1rem !important;
  }

  .prime-slide {
    flex: 0 0 calc(100% / 1.5) !important;
  }

  .bg-cover,
  .prime-slide {
    min-height: 270px !important;
    max-height: 270px;
  }

  .category-btn {
    padding: 0.4rem 0.6rem !important;
    font-size: 11px !important;
    line-height: 13px !important;
    margin: 0px 4px 15px 0px !important;
  }

  .how-card p {
    font-size: 13px !important;
    line-height: 16px;
  }

  .odf-logo.odf-logo-s {
    margin-top: 5px;
    width: 100px !important;
  }

  .carousel-caption-custom h5 {
    font-size: 1rem;
  }

  .carousel-caption-custom p {
    font-size: 0.8rem;
    line-height: 0.8rem;
  }

  #partner_logo {
    max-width: 127px;
  }

  p#first_section_disclaimer {
    line-height: 10px !important;
    padding-bottom: 14px !important;
    font-size: 9px !important;
  }

  h1,
  h2,
  h3,
  #hero p {
    text-align: left !important;
    width: 100% !important;
    font-size: 15px;
  }

  #hero_disclaimer,
  #hero p {
    width: 95%;
  }

  h1#hero_h1 {
    font-size: 33px !important;
    line-height: 35px !important;
  }

  h2 {
    line-height: 30px !important;
    font-size: 26px !important;
  }

  #first-section {
    padding: 0px 0px !important;
  }

  .content {
    padding: 0px 23px !important;
  }

  .carousel-item-custom {
    flex: 0 0 85% !important;
    max-width: 85vw !important;
    height: 350px !important;
  }

  .carousel-item-inner {
    height: 93% !important;
    min-height: 350px !important;
  }

  .carousel-item-custom.center {
    filter: brightness(1.1);
    opacity: 1;
    z-index: 3;
    transform: scale(1);
  }

  .carousel-item-custom.side {
    filter: brightness(0.8);
    opacity: 0.6;
    z-index: 2;
    transform: scale(0.93);
  }

  .carousel-item-custom.far {
    filter: brightness(0.7);
    opacity: 0.5;
    z-index: 1;
    transform: scale(0.88);
  }

  .carousel-item-inner img {
    height: 100% !important;
    min-width: 258px;
  }

  #sticky-button .prisma-btn {
    min-width: 311px !important;
    font-size: 14px;
  }

  #hero .prisma-btn {
    font-size: 14px !important;
  }

  .container-fluid.py-5 {
    padding: 1.5rem 0.5rem !important;
    border-radius: 0;
  }

  .odf-collapse-arrow {
    font-size: 25px;
    right: 2px;
  }

  .carousel-wrapper {
    max-width: 95vw;
    height: 410px !important;
    padding-top: 10px;
    margin: auto 0px auto 0px;
  }

  .wallet_coupon_code_area {
    margin-top: 20px;
  }

  #how_frame {
    max-width: 310px;
  }

  #wallet-mockup {
    width: 100%;
  }

  .wallet-coupon {
    width: 100%;
    padding: 0 11px;
    top: 44%;
    max-width: 304px;
    left: auto;
    min-width: 400px;
  }

  .wallet-coupon-inner {
    padding: 10px 10px 10px 10px;
    margin-bottom: 11px;
    width: 62%;
    max-width: 320px;
  }

  #content-first-section {
    padding: 30px 10px 0px 21px;
    width: 100%;
  }

  .wallet_coupon_title {
    line-height: 4px;
    font-size: 7px;
    margin-top: -6px;
    margin-left: 21px;
  }

  [class^="wallet_coupon_code"] {
    font-size: 9px;
    padding-top: 3px;
    line-height: 9px;
  }

  [class^="wallet_coupon_product"] {
    font-size: 7px;
    font-weight: 500;
    padding-top: 0px;
  }

  [class^="wallet_coupon_amount"] {
    font-size: 25px !important;
    line-height: 28px;
  }

  .wallet_coupon_cta {
    font-size: 9px;
    padding-top: 2px;
    line-height: 9px;
  }

  .how-card {
    max-width: 278px;
    min-width: 260px;
    margin-left: 26px;
    margin-right: -15px;
    padding: 1rem 1rem;
    max-height: 179px;
  }

  .how-cards-carousel {
    gap: 0rem;
  }

  .how-card .rounded-circle {
    width: 54px;
    height: 54px;
  }

  #how-section .odf-icon {
    font-size: 24px;
  }

  #how_h2,
  #how_p,
  .how_disclaimer {
    padding-left: 6px;
  }
}

@media (min-width: 1200px) {
  #first-section .container {
    max-width: 1200px !important;
    margin-right: 0;
    padding-right: 0px;
  }
}

@media (min-width: 1400px) {
  #first-section .container {
    max-width: 1320px !important;
    margin-right: auto;
  }
}

@media (min-width: 1600px) {
  video .object-fit-fill {
    object-fit: cover !important;
  }

  #hero {
    max-height: 900px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prime-carousel-track,
  .prime-slide {
    transition: none;
  }
}
