/* ==========================================================================
   Formato 1:1: carrusel de publicación con avance automático y flechas.
   ========================================================================== */

.art-c {
  background: var(--bg);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  background-image: linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size: 12.5% 12.5%;
}

.art-c {
  container-type: inline-size;
}

.car-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform .55s cubic-bezier(.65,0,.25,1);
}

.slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
}

.slide svg {
  width: 56cqw;
  height: auto;
  overflow: visible;
}

.sl-word {
  font-weight: 850;
  font-stretch: 112%;
  font-size: 9cqw;
  letter-spacing: -.02em;
  line-height: 1;
  color: #000000;
}

.slide.on .sl-word {
  animation: stIn .45s .25s both;
}

.sl-marca .aa {
  font-family: inherit;
  font-weight: 850;
  font-size: 50px;
  fill: #000000;
  letter-spacing: -2px;
}

.sl-marca .sw {
  transform-box: fill-box;
  transform-origin: center;
}

.sl-marca.on .sw {
  animation: swPop .45s cubic-bezier(.2,1.5,.4,1) both;
}

.sl-marca.on .sw2 {
  animation-delay: .12s;
}

.sl-marca.on .sw3 {
  animation-delay: .24s;
}

@keyframes swPop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.sl-ads .wave {
  fill: none;
  stroke: #019EB5;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .15;
}

.sl-ads.on .wave {
  animation: wavePulse 1.2s ease-out infinite;
}

.sl-ads.on .w2 {
  animation-delay: .2s;
}

.sl-ads.on .w3 {
  animation-delay: .4s;
}

@keyframes wavePulse {
  0% {
    opacity: .15;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: .15;
  }
}

.sl-ads .mega {
  transform-box: fill-box;
  transform-origin: 30% 50%;
}

.sl-ads.on .mega {
  animation: megaShake 1.2s ease-in-out infinite;
}

@keyframes megaShake {
  0%, 100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-4deg);
  }
  20% {
    transform: rotate(3deg);
  }
  30% {
    transform: rotate(0);
  }
}

.sl-post .heart {
  fill: none;
  stroke: #000000;
  stroke-width: 2.4;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
}

.sl-post.on .heart {
  animation: heartLike .5s .8s cubic-bezier(.2,1.6,.4,1) forwards;
}

@keyframes heartLike {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(.7);
  }
  100% {
    transform: scale(1);
    fill: #E0245E;
    stroke: #E0245E;
  }
}

.sl-post .pic-sun {
  transform-box: fill-box;
  transform-origin: center;
}

.sl-post.on .pic-sun {
  animation: stIn .6s .3s both;
}

.car-count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: .2rem .55rem;
  border-radius: 99px;
  background: rgba(0,0,0,.75);
  color: #FFFFFF;
  font-size: max(11px,3.6cqw);
  font-weight: 600;
}

.car-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: max(34px,10cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  background: #FFFFFF;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s,background .2s;
}

.car-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  height: 26%;
  border-top: 2.5px solid #000000;
  border-right: 2.5px solid #000000;
}

.car-next {
  right: 10px;
}

.car-prev {
  left: 10px;
}

.car-next::before {
  transform: translate(-65%,-50%) rotate(45deg);
}

.car-prev::before {
  transform: translate(-35%,-50%) rotate(-135deg);
}

.car-btn:hover {
  background: #019EB5;
  transform: translateY(-50%) scale(1.08);
}

.car-btn:focus-visible {
  outline: 3px solid #019EB5;
  outline-offset: 2px;
}

.car-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.car-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  transition: background .3s,transform .3s;
}

.car-dots i.on {
  background: #019EB5;
  transform: scale(1.2);
}

.art-c .fmt {
  z-index: 4;
}
