/* productHeroCarousel@1: own composition, shared International carousel runtime. */
.pvs-section-template-product-hero-carousel {
  flex: 1 0 auto;
  color: var(--pvs-main-white, #fff);
  background: #000b6f url("/assets/new-design/hero-01.svg") center top / 100% 1100px no-repeat;
}

.pvs-section-template-product-hero-carousel > .intl-flex-stack {
  gap: 0;
}

.pvs-section-template-product-hero-carousel .intl-governed-carousel {
  min-height: 0;
  border-radius: 0;
  background: transparent;
}

.pvs-section-template-product-hero-carousel .intl-hero-slider-track {
  position: relative;
  inset: auto;
  height: auto;
  align-items: stretch;
}

/* Stacked slides (operator, 20/10): the slides share one grid cell, so the track keeps the
   height of the tallest one. The active slide sits in it, the one that leaves (`is-leaving`,
   set by the shared runtime) slides out in front, and the one that arrives (`is-entering`)
   moves in from 30% and shows only where the leaving one no longer covers it. */
.pvs-section-template-product-hero-carousel .intl-hero-slider-track {
  display: grid;
  transform: none;
  transition: none;
  will-change: auto;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  z-index: 0;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide.is-active {
  visibility: visible;
  z-index: 1;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide.is-leaving {
  visibility: visible;
  z-index: 2;
  transform: translate3d(-100%, 0, 0);
  transition: transform 720ms cubic-bezier(.65, 0, .35, 1);
}

.pvs-section-template-product-hero-carousel .intl-hero-slide.is-entering {
  animation: pvs-product-hero-reveal-next 720ms cubic-bezier(.65, 0, .35, 1) both;
}

.pvs-section-template-product-hero-carousel .intl-governed-carousel[data-intl-hero-direction="previous"] .intl-hero-slide.is-leaving {
  transform: translate3d(100%, 0, 0);
}

.pvs-section-template-product-hero-carousel .intl-governed-carousel[data-intl-hero-direction="previous"] .intl-hero-slide.is-entering {
  animation-name: pvs-product-hero-reveal-previous;
}

/* The arc is the section's curve, not part of the photo: while its slide moves, the arc
   moves the opposite way by the same amount (same duration and curve), so it stays in place. */
.pvs-section-template-product-hero-carousel .intl-hero-slide.is-leaving.has-visual-background::after {
  transform: translate3d(100%, 0, 0);
  transition: transform 720ms cubic-bezier(.65, 0, .35, 1);
}

.pvs-section-template-product-hero-carousel .intl-governed-carousel[data-intl-hero-direction="previous"] .intl-hero-slide.is-leaving.has-visual-background::after {
  transform: translate3d(-100%, 0, 0);
}

.pvs-section-template-product-hero-carousel .intl-hero-slide.is-entering.has-visual-background::after {
  animation: pvs-product-hero-arc-next 720ms cubic-bezier(.65, 0, .35, 1) both;
}

.pvs-section-template-product-hero-carousel .intl-governed-carousel[data-intl-hero-direction="previous"] .intl-hero-slide.is-entering.has-visual-background::after {
  animation-name: pvs-product-hero-arc-previous;
}

@keyframes pvs-product-hero-arc-next {
  from { transform: translate3d(-30%, 0, 0); }
  to { transform: none; }
}

@keyframes pvs-product-hero-arc-previous {
  from { transform: translate3d(30%, 0, 0); }
  to { transform: none; }
}

@keyframes pvs-product-hero-reveal-next {
  from { transform: translate3d(30%, 0, 0); clip-path: inset(0 0 0 70%); }
  to { transform: none; clip-path: inset(0); }
}

@keyframes pvs-product-hero-reveal-previous {
  from { transform: translate3d(-30%, 0, 0); clip-path: inset(0 70% 0 0); }
  to { transform: none; clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pvs-section-template-product-hero-carousel .intl-hero-slide.is-leaving {
    visibility: hidden;
    transition: none;
  }
}

.pvs-section-template-product-hero-carousel .intl-hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  height: auto;
  /* Grow continuously from the tablet frame (1024) to desktop (1440). */
  min-height: clamp(560px, calc(560px + (100vw - 1024px) * 0.576923), 800px);
  padding: clamp(48px, calc(48px + (100vw - 1024px) * 0.038462), 64px) var(--pvs-public-canvas-gutter, 50px) clamp(16px, calc(88px - (100vw - 1024px) * 0.173077), 88px);
}

.pvs-section-template-product-hero-carousel .intl-hero-slide > :is(.intl-hero-slide-image, picture, .pvs-product-carousel-motion) {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: clamp(400px, calc(400px + (100vw - 1024px) * 0.769231), 720px);
  object-fit: contain;
  transform: none;
}

.pvs-section-template-product-hero-carousel .pvs-product-carousel-motion {
  --pvs-country-hero-product-scale: 1.5;
  --pvs-country-hero-product-translate-y: 0px;
  place-items: center;
}

.pvs-section-template-product-hero-carousel .pvs-product-carousel-motion :is(video, img[data-pvs-superpos-static]) {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.pvs-section-template-product-hero-carousel .pvs-product-carousel-motion > .pvs-image-crop > video {
  object-position: var(--cms-crop-x) var(--cms-crop-y);
  transform-origin: var(--cms-crop-x) var(--cms-crop-y);
  scale: var(--cms-crop-zoom);
}

.pvs-section-template-product-hero-carousel .pvs-product-carousel-motion > :is(video, .pvs-image-crop, .pvs-country-hero-product-fallback) {
  transform-origin: center;
}

.pvs-section-template-product-hero-carousel .pvs-product-carousel-motion .pvs-country-hero-product-fallback {
  height: 100%;
  place-items: center;
}

.pvs-section-template-product-hero-carousel .pvs-product-carousel-motion .intl-hero-slide-image {
  position: relative;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.pvs-section-template-product-hero-carousel :is(picture, .pvs-carousel-crop) > .intl-hero-slide-image {
  object-fit: contain;
  transform: none;
}

/* 16/10, designers: arrows and indicators exactly as the LATAM hero. The shared
   rules place the arrows at both sides, centered on the hero; these copy its look. */
.pvs-section-template-product-hero-carousel .intl-hero-slider-pause:where(:not(:has(> .pvs-hero-arrow-image))) {
  border-color: color-mix(in srgb, var(--pvs-main-white) 48%, transparent);
  border-radius: 999px;
  background: rgba(5, 7, 26, 0.4);
}

.pvs-section-template-product-hero-carousel .intl-hero-slider-dot::before {
  border-color: color-mix(in srgb, var(--pvs-main-white) 66%, transparent);
  background: transparent;
}

.pvs-section-template-product-hero-carousel .intl-hero-slider-dot.is-active::before {
  background: #f9f9fb;
}

.pvs-section-template-product-hero-carousel .intl-hero-slider-arrow > .pvs-hero-arrow-image {
  display: block;
  width: 1em;
  height: 1em;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide-shade {
  display: none;
}

/* A slide photo reaches the point where the arc meets the sides of the screen (22/10,
   designers: the Chile Hero showed blue corners under a flat photo edge). hero-arc.svg is
   980 units tall and its curve touches x=0 and x=1201 at y=624.5; the arc is drawn 1100 px
   tall from Desktop up and 1300 px in Móvil, so the photo needs 701 px and 829 px (2 px more cover the antialiased edge). Tableta
   (800 px, 510 px needed) already fits. A slide without a photo keeps its height. */
@media (width >= 1024px) {
  .pvs-section-template-product-hero-carousel .intl-hero-slide.has-visual-background {
    min-height: max(clamp(560px, calc(560px + (100vw - 1024px) * 0.576923), 800px), calc(1100px * 624.5 / 980 + 2px));
  }
}

/* The original arc stays above a slide background, below editorial objects.
   Its SVG path and gradient are shared with the unchanged scene asset. A slide can
   hide it from the Inspector («Curva azul sobre la foto», 30/10). */
.pvs-section-template-product-hero-carousel .intl-hero-slide.has-visual-background:not(.pvs-hero-background-arc-hidden)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("/assets/new-design/hero-arc.svg") center top / 100% 1100px no-repeat;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide-content {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: start;
  padding-top: 28px;
}

.pvs-section-template-product-hero-carousel .pvs-hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 32px;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  background: #ffffff16;
  font-size: 18px;
  line-height: 1.4;
}

.pvs-section-template-product-hero-carousel .pvs-hero-slide-badge::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: url("/assets/shared/hero-circle-tick.svg") center / contain no-repeat;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide :is(h1, h2) {
  font-family: var(--font-family, "PVS Country Flags", "Cairo", sans-serif);
  font-size: clamp(38px, 4.75vw, 76px);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: initial;
  max-width: min(100%, 6.7em);
}

.pvs-section-template-product-hero-carousel .intl-hero-slide p {
  margin: 28px 0 0;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.3;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide-content .intl-btn {
  display: inline-flex;
  min-width: 0;
  margin: var(--pvs-content-button-copy-gap, 34px) 10px 0 0;
  border: 1px solid #fff;
  border-radius: 999px;
  line-height: 1.1;
  text-decoration: none;
  background: #fff;
  color: var(--pvs-main-blue-dark, #071177);
}

.pvs-section-template-product-hero-carousel .intl-hero-slide-content .intl-btn-secondary {
  background: transparent;
  color: #fff;
}

.pvs-section-template-product-hero-carousel [data-cms-node-kind="row"][data-cms-node-role="overviewRow"] {
  padding: 64px var(--pvs-public-canvas-gutter, 7.8125vw) 96px;
}

.pvs-section-template-product-hero-carousel [data-cms-node-kind="column"][data-cms-node-role="overviewColumn"] {
  gap: 16px;
  text-align: center;
}

.pvs-section-template-product-hero-carousel .pvs-section-template-role-overviewHeading :is(h1, h2) {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.25vw, 52px);
  font-weight: 700;
  line-height: 1.2;
}

.pvs-section-template-product-hero-carousel .pvs-section-template-role-overviewBody :is(.intl-rich-copy, p) {
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(18px, 1.75vw, 28px);
  line-height: 1.5;
}

.pvs-section-template-product-hero-carousel .pvs-section-template-role-metrics {
  margin-top: 80px;
  width: 100%;
}

.pvs-section-template-product-hero-carousel .intl-flex-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.pvs-section-template-product-hero-carousel .intl-flex-metrics article {
  padding: 0;
  border: 0;
  background: transparent;
}

.pvs-section-template-product-hero-carousel .intl-flex-metrics strong {
  color: #fff;
  font-size: clamp(38px, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1.2;
}

.pvs-section-template-product-hero-carousel .intl-flex-metrics [data-pvs-odometer-size="standard"] {
  --pvs-odometer-size: clamp(38px, 4.5vw, 72px);
}

.pvs-section-template-product-hero-carousel .intl-flex-metrics article > span {
  color: #fff;
  font-size: clamp(18px, 2vw, 32px);
  line-height: 1.3;
}

.pvs-section-template-product-hero-carousel .intl-hero-slide-content .intl-btn:is(:hover, :focus-visible) {
  background: #ffffffdb;
  color: var(--pvs-main-blue-dark, #071177);
}

@media (width < 1024px) {
  .pvs-section-template-product-hero-carousel {
    background-size: 100% 800px;
  }
  .pvs-section-template-product-hero-carousel .intl-hero-slide.has-visual-background::after {
    background-size: 100% 800px;
  }
}

@media (width < 641px) {
  .pvs-section-template-product-hero-carousel {
    --pvs-product-hero-mobile-photo-min-height: calc(1300px * 624.5 / 980 + 2px);
    background-size: 100% 1300px;
  }
  .pvs-section-template-product-hero-carousel .intl-hero-slide.has-visual-background::after {
    background-size: 100% 1300px;
  }
  .pvs-section-template-product-hero-carousel .pvs-product-carousel-motion {
    --pvs-country-hero-product-scale: 1;
    --pvs-country-hero-product-translate-y: -24px;
  }
  .pvs-section-template-product-hero-carousel [data-cms-node-kind="row"][data-cms-node-role="overviewRow"] {
    padding: 48px 24px 64px;
  }
  .pvs-section-template-product-hero-carousel .pvs-section-template-role-metrics {
    margin-top: 32px;
  }
  .pvs-section-template-product-hero-carousel .intl-flex-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .pvs-section-template-product-hero-carousel .intl-hero-slide {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px 96px;
    gap: 28px;
    min-height: 0;
  }
  .pvs-section-template-product-hero-carousel .intl-hero-slide.has-visual-background {
    min-height: var(--pvs-product-hero-mobile-photo-min-height);
  }
  .pvs-section-template-product-hero-carousel .intl-hero-slide > :is(.intl-hero-slide-image, picture, .pvs-product-carousel-motion) {
    grid-column: 1;
    grid-row: 2;
    height: 320px;
  }
  .pvs-section-template-product-hero-carousel .pvs-hero-slide-badge {
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 24px;
  }
  .pvs-section-template-product-hero-carousel .intl-hero-slide-content .intl-btn {
    margin-top: var(--pvs-content-button-copy-gap, 34px);
  }
}
