.nova-boxes { max-width: 1300px; margin: 0 auto; padding: clamp(28px, 5vw, 72px) clamp(16px,4vw,52px); scroll-margin-top: 70px; color: #14274b; }
.nova-boxes h2, .nova-boxes h3, .nova-boxes p { margin: 0; }
.nova-boxes-heading h2 { font-size: clamp(2.3rem,6vw,4.5rem); line-height: 1; letter-spacing: -.055em; }
.nova-boxes-heading p { margin-top: 12px; }
.nova-series, .nova-promo-actions, .nova-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.nova-series { margin: 20px 0 12px; }
.nova-boxes button { font: inherit; cursor: pointer; }
.nova-series button, .nova-promo-actions button, .nova-promo-actions a, .nova-dialog button {
  border: 1px solid #9aaed0; border-radius: 999px; background: white; color: #14274b; padding: 8px 14px;
}
.nova-series button[aria-pressed="true"], #nova-play { background: #173b7a; color: white; border-color: #173b7a; }
.nova-boxes :focus-visible { outline: 3px solid #e58b35; outline-offset: 3px; }
.nova-workbench { position: relative; isolation: isolate; overflow: hidden; padding: 12px clamp(7px,3vw,34px) 20px; border-radius: 22px; color: white; background: #152957; }
.nova-scene { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: linear-gradient(0deg,#07152ddd 4%,transparent 72%), var(--scene-backdrop) center 48% / cover no-repeat, radial-gradient(ellipse at 40% 20%,var(--scene-light),var(--scene-shade) 73%); }
.nova-scene img { position: absolute; inset: 0 0 8% auto; width: min(61%,640px); height: 92%; object-fit: cover; object-position: center 48%; opacity: .82; mask-image: linear-gradient(90deg,transparent,black 27%); }
.nova-scene:is([data-scene="6"],[data-scene="7"],[data-scene="8"]) img { object-fit: contain; }
.nova-scenes { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nova-scenes span { padding: 4px 10px; background: #122343dd; border-radius: 12px; text-align: center; }
.nova-scenes button { width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 50%; background: #fff; color: #17345f; font-size: 1.5rem; }
.nova-tray { display: grid; grid-template-columns: repeat(var(--box-count,6), minmax(0,1fr)); justify-content: center; max-width: 850px; gap: 8px; padding-top: clamp(105px,21vw,250px); margin: auto; }
.nova-box { display: grid; justify-items: center; align-content: end; gap: 8px; min-width: 0; padding: 12px 2px 3px; border: 0; color: white; background: transparent; }
.nova-box > span:last-child { padding: 2px 6px; border-radius: 8px; background: #0a1734; font-size: clamp(.68rem,1.5vw,.85rem); text-align: center; }
.nova-box[aria-pressed="true"] > span:last-child { color: #122343; background: #ffe299; }
.nova-carton {
  display: block; width: min(95%,108px); aspect-ratio: var(--ratio); background: var(--pack) var(--pack-position) / var(--pack-size) no-repeat; clip-path: var(--pack-clip,inset(0));
}
.nova-carton[data-packaging="oso"] { --pack: url("../osomania-media/caja-estudio.png"); --ratio: 510 / 717; --pack-size: 347.84% 123.71%; --pack-position: 84.18% 44.71%; --pack-clip: polygon(1% 5.8%,62.5% .4%,98% 8.3%,99.5% 10.4%,98.8% 92.2%,34% 99.2%,31% 99.3%,.5% 87.1%); }
.nova-carton[data-packaging="vintage"] {
  --pack: url("../carmen-media/vintage-caja-lateral.webp");
  --ratio: 979 / 1722;
  --pack-size: 139.43% 118.93%;
  --pack-position: 46.63% 56.44%;
  --pack-clip: polygon(.4% 1.1%,24% .2%,99.7% 1.2%,99.7% 95.6%,25% 99.7%,.4% 95.5%);
}
.nova-carton[data-packaging="moderna"] {
  --pack: url("../carmen-media/moderna-caja-lateral.webp");
  --ratio: 656 / 1152;
  --pack-size: 126.83% 108.77%;
  --pack-position: 56.25% 65.35%;
  --pack-clip: polygon(.3% 1.4%,28% .2%,99.7% 1.3%,99.7% 96%,27.6% 99.7%,.3% 95.4%);
}
.nova-carton[data-packaging="roja"] { --pack:url("../coloniera-media/roja-caja.webp"); --ratio:590 / 1178; --pack-size:173.56% 130.39%; --pack-position:52.07% 50%; }
.nova-carton[data-packaging="azul"] { --pack:url("../coloniera-media/azul-caja.webp"); --ratio:614 / 1220; --pack-size:166.78% 125.90%; --pack-position:52.68% 41.77%; }
@media (max-width:580px) { .nova-tray { grid-template-columns: repeat(auto-fit,minmax(76px,1fr)); } .nova-carton { max-height: 142px; width: auto; } }
.nova-reveal, .nova-promo { margin-top: 14px; padding: clamp(14px,3vw,25px); border-radius: 16px; background: #eef3fb; }
.nova-reveal { display: flex; align-items: center; gap: 20px; }
.nova-reveal[hidden] { display: none; }
.nova-reveal img { width: min(40%,150px); height: 155px; object-fit: contain; }
.nova-reveal a { display:inline-block; margin-top:8px; }
.nova-promo-actions, .nova-answers { margin-top: 12px; }
.nova-promo input:not([hidden]) { width: min(100%,440px); margin-top: 12px; }
.nova-dialog { width: min(90vw,480px); padding: 24px; border: 0; border-radius: 18px; color:#14274b; }
.nova-dialog::backdrop { background:#091a37b8; }
.nova-dialog p, .nova-dialog form { margin-top: 10px; }
.nova-dialog fieldset { display: grid; gap: 7px; margin-top: 12px; }
.nova-dialog :disabled { cursor: default; }
.collection-shelf .card-photo { display: grid; grid-template-rows: auto auto; padding: 0; width: 100%; }
.collection-shelf .card-photo img { box-sizing: border-box; width: 100%; aspect-ratio: 4 / 5; padding: 8%; object-fit: contain; object-position: center; }
.collection-shelf .card-photo::after { display: none; }
.collection-shelf .card-photo .collection-label { position: static; background:#122343; color:white; padding: 12px; min-height: 0; }

/* The scene fills the display while the packaging stays on a separate layer. */
.nova-boxes { max-width: 1440px; }
.nova-workbench {
  min-height: clamp(420px, 46vw, 635px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 20px 25px;
  border-radius: 26px;
}
.nova-scene {
  background: var(--scene-backdrop) center / cover no-repeat,
    radial-gradient(ellipse at 57% 32%,var(--scene-light),var(--scene-shade) 78%);
}
.nova-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#0d1b3338,transparent 30%,transparent 60%,#0d1b337d);
}
.nova-scene img {
  inset: 8% 0 auto;
  width: 100%;
  height: 70%;
  object-fit: contain;
  mask-image: radial-gradient(ellipse at center,black 45%,transparent 85%);
  opacity: 1;
}
.nova-scene[data-scene="0"] img { inset: 0; height: 100%; object-fit: cover; mask-image: none; }
.nova-scenes { position: relative; z-index: 1; }
.nova-tray {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: safe center;
  padding: 35px 8px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  gap: clamp(12px,3vw,42px);
}
.nova-box {
  flex: 0 0 clamp(100px,13vw,176px);
  padding: 12px 6px;
  scroll-snap-align: center;
  perspective: 450px;
}
.nova-carton { width: min(100%,145px); max-height: none; }
.nova-carton:not([data-packaging="oso"]) { width: min(80%,107px); }
.nova-tray:has([data-packaging="oso"]) { position: relative; justify-content: start; scroll-snap-type: none; scrollbar-width: none; }
.nova-tray:has([data-packaging="oso"])::-webkit-scrollbar { display: none; }
.nova-scene:is([data-scene="0"],[data-scene="1"],[data-scene="2"],[data-scene="3"],[data-scene="4"],[data-scene="5"]) img {
  inset: 0; width: 100%; height: 72%; object-fit: cover; object-position: center 46%;
  mask-image: linear-gradient(#000 66%, transparent);
}
.nova-scene:is([data-scene="0"],[data-scene="1"],[data-scene="2"],[data-scene="3"],[data-scene="4"],[data-scene="5"])::after {
  background: linear-gradient(180deg,#0d1b3340,transparent 26%,transparent 58%,var(--scene-shade));
}
.nova-workbench:has(.nova-tray [data-packaging="oso"]) { min-height: clamp(390px,42vw,700px); border-radius: 0; }
.nova-tray:has([data-packaging="oso"]) .nova-carton { width: min(86%,10.5vw,195px); }
.nova-tray:has([data-packaging="oso"]) .nova-box > span:last-child { background: transparent; color: white; text-shadow: 0 1px 5px #07162c; font-weight: 650; }
@media (max-width: 580px) { .nova-tray:has([data-packaging="oso"]) .nova-carton { width: min(80%,78px); } }
.nova-tray:has([data-packaging="oso"]) .nova-box { flex-basis: max(100px, calc((100% - 4 * clamp(12px,3vw,42px)) / 5)); }
.nova-pause { align-self: center; padding: 7px 14px; border: 1px solid #ffffff9c; border-radius: 20px; color: white; background: #122343dd; }
.nova-box:is(.is-shaking,:focus-visible) { z-index: 1; }
.nova-box:is(.is-shaking,:focus-visible) .nova-carton { animation: nova-shake 1.2s ease-in-out; }
@media (hover:hover) {
  .nova-box:hover { z-index: 1; }
  .nova-box:hover .nova-carton { animation: nova-shake 1.2s ease-in-out; }
}
@keyframes nova-shake {
  0%, 100% { transform: none; }
  16% { transform: translate(5px,-5px) rotate(11deg); }
  33% { transform: translate(-5px,-4px) rotate(-10deg); }
  51% { transform: translate(3px,-3px) rotate(7deg); }
  69% { transform: translate(-2px,-2px) rotate(-5deg); }
  85% { transform: translate(1px,-1px) rotate(2deg); }
}
@media (max-width:580px) {
  .nova-workbench { min-height: 440px; }
  .nova-scene[data-scene="0"] img { object-position: center; }
}
body > .header { position: sticky; top: 0; z-index: 20; }
main[id], main section[id] { scroll-margin-top: 105px; }
.nova-boxes { display: flex; flex-direction: column; max-width: none; padding-inline: 0; }
.nova-boxes-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.nova-series, .nova-reveal, .nova-promo { margin-inline: max(4vw,18px); }
.nova-series { order: 1; }
.nova-reveal { order: 2; }
.nova-promo { order: 3; }
.nova-workbench,
.nova-workbench:has(.nova-tray [data-packaging="oso"]) {
  --shelf-inset: clamp(36px,4.5vw,84px);
  min-height: clamp(410px,39vw,690px);
  display: grid;
  grid-template-rows: minmax(145px,1fr) auto;
  border-radius: 0;
  padding: 0 var(--shelf-inset) 34px;
}
.nova-scenes { display: contents; }
.nova-scenes span, .nova-pause { display: none; }
.nova-scenes button {
  position: absolute;
  z-index: 3;
  grid-row: 2 / 3;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: clamp(34px,3.4vw,48px);
  height: clamp(34px,3.4vw,48px);
  padding: 0;
  line-height: 1;
}
#nova-prev { left: max(3px,1vw); }
#nova-next { right: max(3px,1vw); }
.nova-tray { grid-row: 2; padding: 24px 0 8px; scrollbar-width: none; }
.nova-tray::-webkit-scrollbar { display: none; }
.nova-tray:has([data-packaging="oso"]) { overflow: hidden; }
.nova-tray:has([data-packaging="oso"]) .nova-box {
  flex-basis: calc((100% - 4 * clamp(12px,3vw,42px)) / 5);
}
.nova-tray:has([data-packaging="oso"]) .nova-carton { width: min(78%,10.2vw,185px); }
.nova-scene { background: var(--scene-backdrop) center / cover no-repeat, var(--scene-light,#b0d8ed); transition: background-color .55s; }
.nova-scene::after { display: none; }
.nova-scene:is([data-scene="0"],[data-scene="1"],[data-scene="2"],[data-scene="3"],[data-scene="4"],[data-scene="5"]) img {
  height: 62%;
  object-position: center 48%;
  mask-image: linear-gradient(#000 68%,transparent);
}
.nova-tray:has([data-packaging="oso"]) .nova-box > span:last-child {
  color: #14274b;
  text-shadow: 0 0 4px #fff9;
}
@media (max-width:720px) {
  main[id], main section[id] { scroll-margin-top: 150px; }
  .nova-tray:has([data-packaging="oso"]) .nova-carton { width: min(78%,84px); }
  .nova-tray:has([data-packaging="oso"]) .nova-box { flex-basis: calc((100% - 2 * clamp(12px,3vw,42px)) / 3); }
}
@media (min-width: 960px) {
  body > .header { padding: 11px clamp(26px,4vw,72px); gap: 24px; }
  body > .header .brand img { width: clamp(115px,10.5vw,175px); }
  body > .header nav { gap: clamp(14px,2.3vw,34px); font-size: clamp(.83rem,1vw,1rem); }
  .showcase .stage { aspect-ratio: 2.65 / 1; }
  .showcase .hero-copy h1 { font-size: clamp(2.7rem,5.5vw,6rem); }
  .catalog { padding: clamp(32px,4vw,68px) clamp(26px,4vw,72px); }
  .catalog h2 { font-size: clamp(1.8rem,3.2vw,3.3rem); }
  .nova-workbench,
  .nova-workbench:has(.nova-tray [data-packaging="oso"]) { min-height: clamp(400px,38vw,680px); }
}
.nova-tray .nova-carton:not([data-packaging="oso"]) {
  width: min(65%,7.2vw,132px);
}
.nova-workbench .nova-scene img {
  inset: 0;
  width: 100%;
  height: 62%;
  object-fit: cover;
  object-position: center 48%;
  mask-image: linear-gradient(#000 68%,transparent);
}
@media (max-width:720px) {
  .nova-tray .nova-carton:not([data-packaging="oso"]) { width: min(62%,59px); }
}
.nova-tray .nova-carton:is([data-packaging="oso-kraft"],[data-packaging="oso-azul"]) {
  --pack: url("osomania-variantes.webp");
  --ratio: 1;
  --pack-size: 200% 100%;
  width: min(88%,12.5vw,212px);
}
.nova-carton[data-packaging="oso-kraft"] { --pack-position: left center; }
.nova-carton[data-packaging="oso-azul"] { --pack-position: right center; }
.nova-carton:is([data-packaging="minidoll"],[data-packaging="minidoll-dorada"]) {
  --pack: url("minidoll.webp");
  --ratio: 1;
  --pack-size: 200% 100%;
}
.nova-carton[data-packaging="minidoll"] { --pack-position: right center; }
.nova-carton[data-packaging="minidoll-dorada"] { --pack-position: left center; }
.nova-tray .nova-carton:is([data-packaging="minidoll"],[data-packaging="minidoll-dorada"]) { width: min(85%,11vw,180px); }
@media (max-width:720px) {
  .nova-tray .nova-carton:is([data-packaging="oso-kraft"],[data-packaging="oso-azul"]) { width: min(85%,94px); }
  .nova-tray .nova-carton:is([data-packaging="minidoll"],[data-packaging="minidoll-dorada"]) { width: min(80%,86px); }
}
