.vv-hero-gallery {
  --hero-media: var(--vv-media, #151020);
  --hero-action: var(--commerce-purple, #5530d9);
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 940px);
  scroll-margin-top: 105px;
  margin: 0 auto;
  padding-bottom: 12px;
  color: var(--commerce-ink, #181428);
}



.vv-hero-gallery-stage {
  --bounce-cards-size: min(200px, 32cqi);
  --bounce-cards-border: clamp(3px, 1cqi, 5px);
  --bounce-cards-radius: clamp(13px, 4.5cqi, 25px);
  position: relative;
  height: calc(var(--bounce-cards-size) * 1.6);
  overflow: clip;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}

.vv-hero-gallery-stage.is-dragging { cursor: grabbing; }

.vv-hero-card {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--hero-drag, 0px));
  z-index: calc(var(--offset) + 3);
  box-sizing: border-box;
  width: var(--bounce-cards-size);
  aspect-ratio: 1;
  translate: -50% -50%;
  transform: translateX(calc(var(--offset) * var(--bounce-cards-size) * .425)) rotate(var(--card-rotation, 0deg));
  padding: 0;
  overflow: hidden;
  border: var(--bounce-cards-border) solid #fff;
  border-radius: var(--bounce-cards-radius);
  background: #fff;
  box-shadow: 0 1px 2px #1814281f, 0 10px 28px -6px #23163752;
  user-select: none;
  cursor: pointer;
  transition: box-shadow .3s ease;
}

.vv-hero-card[data-offset="-2"] { --card-rotation: 10deg; }
.vv-hero-card[data-offset="-1"] { --card-rotation: 5deg; }
.vv-hero-card[data-offset="0"] { --card-rotation: -3deg; }
.vv-hero-card[data-offset="1"] { --card-rotation: -10deg; }
.vv-hero-card[data-offset="2"] { --card-rotation: 2deg; }

.vv-hero-card[data-active] {
  z-index: 6;
  box-shadow: 0 2px 4px #18142824, 0 22px 44px -10px #2316376b;
}

.vv-hero-gallery-stage.is-dragging .vv-hero-card { cursor: grabbing; }

.vv-hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}

.vv-hero-card img[src$="visual-agent-revision-nova.jpg"] { object-position: 88% center; }
.vv-hero-card img[src$="card-radial.webp"] { object-position: center 62%; scale: 1.18; }
.vv-hero-card img[src$="curvas-en-accion.jpg"] { object-position: 37% center; }
.vv-hero-card img[src$="agente-biblioteca.png"] { object-position: 82% top; }

.vv-hero-card-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vv-hero-card-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: clamp(24px, 2.5vw, 34px);
  aspect-ratio: 1;
  border: 1px solid #f6f0ff70;
  border-radius: 50%;
  background: #171020cc;
  color: #fff;
  pointer-events: none;
}

.vv-hero-card-play::before {
  content: "";
  width: 9px;
  height: 10px;
  margin-left: 2px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: currentColor;
}

.vv-hero-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  width: min(90%, 520px);
  height: calc(100% - 20px);
  translate: -50% -50%;
  overflow: hidden;
  border: var(--bounce-cards-border) solid #fff;
  border-radius: var(--bounce-cards-radius);
  background: var(--hero-media);
  box-shadow: 0 12px 28px -8px #23163757;
}

.vv-hero-preview video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--hero-media); }

.vv-hero-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.5vw, 17px);
}

.vv-hero-gallery-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }

.vv-hero-gallery-controls button,
.vv-hero-gallery-dialog button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--vv-line, #dcd4e7);
  border-radius: 999px;
  background: #fff;
  color: var(--commerce-ink, #181428);
  font: 600 12px/1.3 Inter, sans-serif;
}

.vv-hero-gallery-controls button:hover, .vv-hero-gallery-dialog button:hover { background: #ede7f8; }

.vv-hero-gallery-controls .vv-hero-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  font-size: 18px;
}

.vv-hero-gallery-controls [data-hero-preview] { background: var(--hero-action); color: #fff; border-color: var(--hero-action); }
.vv-hero-gallery-controls [data-hero-preview]:hover { background: #4324b7; }

.vv-hero-gallery-status {
  margin: 11px 0 0;
  color: var(--commerce-muted, #585269);
  text-align: center;
  font: 550 12px/1.4 Inter, sans-serif;
}

.vv-hero-gallery :focus-visible { outline: 2px solid var(--hero-action); outline-offset: 4px; }

.vv-hero-gallery-dialog {
  width: min(92vw, 1120px);
  max-height: 92dvh;
  padding: clamp(12px, 2.5vw, 24px);
  border: 1px solid var(--vv-line, #dcd4e7);
  border-radius: 22px;
  background: #fff;
  color: var(--commerce-ink, #181428);
}

.vv-hero-gallery-dialog::backdrop { background: #171024b8; }

.vv-hero-gallery-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vv-hero-gallery-dialog h2 { margin: 0; font: 600 clamp(23px, 3vw, 34px)/1.1 Outfit, sans-serif; }
.vv-hero-gallery-dialog button { width: 40px; height: 40px; padding: 0; font-size: 20px; }
.vv-hero-gallery-dialog :is(video,img) { display: block; width: 100%; max-height: 76dvh; object-fit: contain; border-radius: 12px; background: var(--hero-media); }
.vv-hero-gallery [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .vv-hero-card { transition: none; }
}

#hero.vv-home-hero {
  --vv-hero-width: min(92%, 1280px);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(42px, 5vw, 76px) 0 clamp(24px, 3.2vw, 46px) !important;
  background: linear-gradient(174deg, color-mix(in srgb, var(--vv-accent-soft) 65%, var(--vv-paper)), var(--vv-paper) 68%);
}

.vv-home-hero-layout,
.vv-hero-tilt,
.vv-hero-reel {
  --vv-hero-photo-shade: linear-gradient(90deg, #160e2bef 0%, #21133fc9 28%, #22104852 58%, #28165757 100%);
  position: relative;
  width: var(--vv-hero-width);
  margin-inline: auto;
}

.vv-home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(198px, 1fr);
  align-items: end;
  gap: 24px clamp(22px, 3vw, 48px);
}

#hero .vv-hero-headline {
  margin: 0;
  color: var(--vv-ink, #181428);
  font: 400 clamp(50px, 7.65vw, 110px)/.94 var(--vv-body-font, Inter, sans-serif);
  letter-spacing: -.072em;
}

.vv-hero-headline-line {
  display: block;
  overflow: hidden;
  margin: -.10em -.08em;
  padding: .10em .08em;
}

.vv-hero-headline-line > span { display: block; }
.vv-hero-headline-accent { color: var(--vv-accent); }

@supports (background-clip: text) {
  @media (forced-colors: none) {
    .vv-hero-headline-accent {
      background: var(--vv-primary-fill);
      background-clip: text;
      color: transparent;
    }
  }
}

.vv-hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 355px;
  margin-block-end: 6px;
  padding: 5px 0 5px 15px;
  border-inline-start: 1px solid color-mix(in srgb, var(--vv-accent) 24%, transparent);
  color: #524b61;
}

.vv-hero-note p { margin: 0; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.46; }

.vv-hero-apps {
  display: flex;
  flex: none;
  align-items: center;
  padding-left: 2px;
}

.vv-hero-apps span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #ffffff72;
  border-radius: 10px;
  background: var(--vv-primary-fill);
  box-shadow: 0 4px 11px color-mix(in srgb, var(--vv-accent) 24%, transparent);
  color: #fff;
  font: 560 15px/1 var(--vv-body-font, Inter, sans-serif);
  transform: rotate(-8deg);
}

.vv-hero-apps span + span {
  margin-left: -8px;
  background: color-mix(in srgb, var(--vv-primary-end) 20%, var(--vv-surface));
  color: var(--vv-accent-hover);
  transform: rotate(8deg);
}

.vv-hero-reel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.72fr);
  align-items: center;
  gap: clamp(15px, 2vw, 30px);
  margin-top: clamp(28px, 4.1vw, 62px);
  padding: clamp(20px, 3.1vw, 49px);
  border-radius: clamp(22px, 3.9vw, 53px);
  background:
    linear-gradient(0deg, #140d27ed 0%, #1b0d3333 40%, #1b104431 100%),
    var(--vv-hero-photo-shade),
    radial-gradient(ellipse at 83% 9%, #6730d65c, transparent 64%),
    url("assets/estacion-creativa.webp") center 51% / cover no-repeat,
    var(--vv-dark);
  color: #fefaff;
}

.vv-hero-tilt {
  margin-top: clamp(28px, 4.1vw, 62px);
  perspective: 2400px;
}

.vv-hero-reel--photo {
  width: 100%;
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(265px, 39vw, 560px);
  background:
    linear-gradient(90deg, #24103df5 0%, #35166bc9 24%, #542bc16b 40%, transparent 62%),
    url("assets/estacion-creativa.webp") center / cover no-repeat,
    var(--vv-dark);
}

.vv-hero-reel--photo .vv-hero-reel-copy {
  position: relative;
  z-index: 1;
  max-width: min(36%, 425px);
}

@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .vv-hero-reel--photo {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--tilt-scale, 1));
    transform-style: preserve-3d;
    box-shadow: 0 16px 40px rgb(23 10 44 / 0);
    transition: transform .42s cubic-bezier(.22,.68,.28,1), box-shadow .32s ease;
  }

  .vv-hero-tilt.is-tilting .vv-hero-reel--photo {
    --tilt-scale: 1.05;
    box-shadow: var(--tilt-shadow-x, 0px) 22px 38px rgb(23 10 44 / .27);
    transition-duration: .18s, .27s;
  }

  .vv-hero-reel--photo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--tilt-light-x, 50%) var(--tilt-light-y, 50%), rgb(255 255 255 / .2), transparent 58%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }

  .vv-hero-tilt.is-tilting .vv-hero-reel--photo::after { opacity: 1; }
  .vv-hero-reel--photo .vv-hero-reel-copy { transform: translateZ(24px); }
}

.vv-hero-reel-copy > p {
  margin: 0;
  max-width: 21ch;
  color: #f5edff;
  font: 430 clamp(22px, 2.66vw, 40px)/1.03 var(--vv-heading-font, Outfit, sans-serif);
  letter-spacing: -.045em;
}

.vv-hero-reel-copy > .vv-hero-reel-description {
  max-width: 37ch;
  margin-top: clamp(12px, 1.5vw, 20px);
  color: #fff;
  font: 400 clamp(14px, 1.3vw, 18px)/1.5 var(--vv-body-font, Inter, sans-serif);
  letter-spacing: normal;
  text-shadow: 0 1px 5px #180d36b3;
}

.vv-hero-reel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: clamp(17px, 2vw, 28px);
}

.vv-hero-reel-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #f4e9ff70;
  border-radius: 999px;
  color: #fff;
  font: 550 12px/1.25 var(--vv-body-font, Inter, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}

.vv-hero-reel-actions a:first-child { background: #fdfaff; color: #2d1d45; }
.vv-hero-reel-actions a:first-child:hover { background: #e9dafa; }
.vv-hero-reel-actions a:last-child:hover { background: #fff2; }
.vv-hero-reel-actions a:focus-visible { outline: 2px solid #f3dfff; outline-offset: 3px; }
.vv-hero-reel .vv-hero-gallery { min-width: 0; padding-bottom: 0; }
.vv-hero-reel .vv-hero-gallery-stage { --bounce-cards-size: min(196px, 30cqi); }
.vv-hero-reel .vv-hero-gallery-status { color: #f7eeff; }
.vv-hero-reel .vv-hero-gallery :focus-visible { outline-color: #f3dfff; }

@media (max-width: 900px) {
  .vv-home-hero-layout { grid-template-columns: minmax(0, 1fr); }
  #hero .vv-hero-headline { font-size: clamp(39px, 9vw, 80px); }
  .vv-hero-note { max-width: 390px; margin-block-end: 0; }
  .vv-hero-reel {
    --vv-hero-photo-shade: linear-gradient(180deg, #190d32dc 0%, #25174293 40%, #21143a42 68%);
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
  .vv-hero-reel-copy > p { max-width: 27ch; }
  .vv-hero-reel--photo .vv-hero-reel-copy { max-width: 48%; }
}

@media (max-width: 520px) {
  #hero.vv-home-hero { padding-top: 34px !important; }
  #hero .vv-hero-headline { font-size: clamp(30px, 10.2vw, 49px); }
  .vv-home-hero-layout { row-gap: 21px; }
  .vv-hero-note { gap: 11px; padding-left: 11px; }
  .vv-hero-reel { padding: 20px 14px; }
  .vv-hero-reel-copy { padding-inline: 5px; }
  .vv-hero-reel--photo {
    align-items: end;
    background-position: center, 61% center;
    background-image:
      linear-gradient(90deg, #24103df5, #35166bc9 28%, #542bc155 56%, transparent 80%),
      url("assets/estacion-creativa.webp");
  }
  .vv-hero-reel--photo .vv-hero-reel-copy { max-width: 100%; }
  .vv-hero-reel--photo .vv-hero-reel-copy > p { max-width: min(70%, 27ch); }
  .vv-hero-reel .vv-hero-gallery-controls { gap: 4px; }
  .vv-hero-reel .vv-hero-gallery-controls button { min-height: 44px; padding-inline: 9px; }
  .vv-hero-reel .vv-hero-gallery-controls .vv-hero-arrow { flex-basis: 40px; width: 40px; padding: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .vv-hero-headline-line > span {
    animation: vv-hero-line-in .84s cubic-bezier(.2,.76,.22,1) .05s both;
  }
  .vv-hero-headline-line:nth-child(2) > span { animation-delay: .15s; }
  .vv-hero-note { animation: vv-hero-part-in .66s cubic-bezier(.2,.76,.22,1) .30s both; }
  .vv-hero-reel:not(.vv-hero-reel--photo),
  .vv-hero-tilt { animation: vv-hero-part-in .84s cubic-bezier(.2,.76,.22,1) .24s both; }
}
@keyframes vv-hero-line-in {
  from { translate: 0 112%; }
  to { translate: none; }
}
@keyframes vv-hero-part-in {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: none; }
}
