/* Recurso visual animado del hero (solo visual + animacion) */

/* Evita que el extremo inferior del pole quede recortado (el hero usa overflow: hidden) */
.project-hero-small {
  overflow: visible;
}

.project-hero-small-title-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 991px) {
  .project-hero-small-title-row {
    align-items: center;
  }
}

.project-hero-small .barber-pole-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  flex-shrink: 0;
}

.project-hero-small .barber-pole-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-hero-small .barber-pole {
  width: 60px;
  height: 159px;
  position: relative;
  perspective: 1000px;
  margin: 0;
  transform-origin: center;
}

@media (max-width: 480px) {
  .project-hero-small .barber-pole {
    width: 45px;
    height: 119px;
  }

  .project-hero-small .barber-pole-top {
    width: 45px;
    height: 30px;
    top: -19px;
  }

  .project-hero-small .barber-pole-bottom {
    width: 45px;
    height: 30px;
    bottom: -19px;
  }

  .project-hero-small .barber-pole-base {
    width: 52px;
    height: 15px;
    bottom: -30px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .project-hero-small .barber-pole {
    width: 50px;
    height: 133px;
  }

  .project-hero-small .barber-pole-top {
    width: 50px;
    height: 33px;
    top: -21px;
  }

  .project-hero-small .barber-pole-bottom {
    width: 50px;
    height: 33px;
    bottom: -21px;
  }

  .project-hero-small .barber-pole-base {
    width: 58px;
    height: 17px;
    bottom: -33px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .project-hero-small .barber-pole {
    width: 55px;
    height: 146px;
  }

  .project-hero-small .barber-pole-top {
    width: 55px;
    height: 37px;
    top: -23px;
  }

  .project-hero-small .barber-pole-bottom {
    width: 55px;
    height: 37px;
    bottom: -23px;
  }

  .project-hero-small .barber-pole-base {
    width: 64px;
    height: 18px;
    bottom: -36px;
  }
}

@media (min-width: 1025px) {
  .project-hero-small .barber-pole {
    width: 60px;
    height: 159px;
  }

  .project-hero-small .barber-pole-top {
    width: 60px;
    height: 40px;
    top: -25px;
  }

  .project-hero-small .barber-pole-bottom {
    width: 60px;
    height: 40px;
    bottom: -25px;
  }

  .project-hero-small .barber-pole-base {
    width: 70px;
    height: 20px;
    bottom: -40px;
  }
}

.project-hero-small .barber-pole-glass {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 0 25px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1px);
  overflow: hidden;
  position: relative;
}

.project-hero-small .barber-pole-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  pointer-events: none;
  border-radius: 30px;
}

.project-hero-small .barber-pole-glass::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  pointer-events: none;
}

.project-hero-small .barber-pole-rotating {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  transform: translateZ(0);
}

.project-hero-small .barber-pole-stripe {
  --barber-pole-stripe-loop: calc(48px * 1.4142135623730951);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    #d86e92 0px,
    #d86e92 12px,
    #fff8f6 12px,
    #fff8f6 24px,
    #e7b7c8 24px,
    #e7b7c8 36px,
    #fff8f6 36px,
    #fff8f6 48px
  );
  background-position: 0 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: projectHeroScrollStripes 10s linear infinite;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(0, 0, 0, 0.15);
  will-change: transform;
}

.project-hero-small .barber-pole-top {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #f0f0f0);
  border-radius: 30px 30px 8px 8px;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  border: 3px solid #999;
  z-index: 10;
}

.project-hero-small .barber-pole-bottom {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #f0f0f0);
  border-radius: 8px 8px 30px 30px;
  box-shadow:
    0 -3px 10px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(255, 255, 255, 0.6),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 3px solid #999;
  z-index: 10;
}

.project-hero-small .barber-pole-base {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: linear-gradient(135deg, #666, #888, #aaa);
  border-radius: 35px;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  border: 2px solid #444;
  z-index: 5;
}

@keyframes projectHeroScrollStripes {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, calc(-1 * var(--barber-pole-stripe-loop)), 0);
  }
}
