/* --- JUNTEX PROFESSIONAL INTERACTIVE STYLES --- */

/* Custom Font Face - Zalando Sans Bold */
@font-face {
  font-family: 'Zalando Sans';
  src: url('../fonts/ZalandoSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zalando Sans Bold';
  src: url('../fonts/ZalandoSans-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Scroll behavior and resets */
html {
  scroll-behavior: smooth;
  font-family: 'Zalando Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
}

body {
  font-family: 'Zalando Sans', ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  font-size: 18px;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Zalando Sans Bold', ui-sans-serif, system-ui, sans-serif;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Animation Keyframes */
@keyframes slideUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Custom CSS utility classes */
.animate-slideUp {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

.float-hover:hover {
  animation: float 2.5s ease-in-out infinite;
}

/* Hide horizontal scrollbar but keep scrollability */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Backdrop micro-blur fallback support */
.backdrop-blur-xs {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Interactive custom transitions classes */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 250ms;
}

/* Custom Package background graphic styling */
.product-pkg-card {
  position: relative;
  overflow: hidden;
}

.product-pkg-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Floating catalog panel overlay styles */
#floating-catalog-drawer {
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.08));
  border: 1px solid rgba(0, 50, 99, 0.08);
}

/* Desktop Nav Font */
.nav-font-zalando {
  font-family: 'Zalando Sans', sans-serif;
}

/* Swiper Pagination Dots */
.swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: white;
  transform: scale(1.25);
}

/* Skitter Slider Custom Styles */
.skitter-large {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.skitter-large .skitter-outer {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.skitter-large .image_main {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.skitter-large .image_main img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

.skitter-large .container_skitter {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.skitter-large .box_clone {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.skitter-large .box_clone img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

/* Force skitter container to be full width */
.skitter > div {
  width: 100% !important;
  max-width: none !important;
}

.skitter img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Skitter Dots - Clases correctas */
.skitter .info_slide_dots {
  bottom: 15px !important;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  left: 50% !important;
  transform: translateX(-50%);
  position: absolute;
  width: auto !important;
  margin: 0;
}

.skitter .image_number {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.skitter .image_number:hover {
  background: white;
}

.skitter .image_number.image_number_select {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.skitter .info_slide_dots .image_number {
  background-color: white;
}

.skitter .info_slide_dots .image_number.image_number_select {
  background-color: white;
}

/* Soluciones Profesionales - section title */
h3, h3 a, h3 a:hover {
  color: #5e5f5f;
}

h3 {
  font-size: 35px !important;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: 0px;
}

/* Soluciones Profesionales - image swap buttons */
.btn-solucion {
  display: inline-block;
  position: relative;
  width: 106px;
  height: auto;
}

.btn-solucion .img-hover {
  display: none;
}

.btn-solucion:hover .img-normal {
  display: none;
}

.btn-solucion:hover .img-hover {
  display: block;
}

/* Sobrescribir media query que oculta los puntos en pantallas ≤ 1024px */
@media (max-width: 1024px) {
  .skitter .info_slide_dots {
    display: flex !important;
  }
}

/* Video Lightbox */
.vlb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.vlb-overlay.vlb-active {
  display: flex;
}

.vlb-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  animation: vlb-in 0.25s ease;
}

@keyframes vlb-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.vlb-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vlb-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.vlb-close:hover {
  background: rgba(255,255,255,0.15);
}

/* Parallax Video Banner Section */
#banner-video-juntex.parallax-banner {
  position: relative;
  min-height: 580px;
  background-attachment: fixed;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden;
}

#banner-video-juntex .parallax-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

#banner-video-juntex .parallax-banner__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#banner-video-juntex .parallax-banner__card {
  background-color: rgba(18, 29, 49, 0.84) !important;
  border-radius: 10px !important;
  padding: 28px 30px 20px 30px !important;
  max-width: 400px;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px;
  box-sizing: border-box;
  border-top: 2px solid rgba(99, 155, 230, 0.45);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#banner-video-juntex .parallax-banner__top {
  display: flex !important;
  align-items: center !important;
  gap: 18px;
}

#banner-video-juntex .parallax-banner__play {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#banner-video-juntex .parallax-banner__play img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

#banner-video-juntex .parallax-banner__play:hover img {
  transform: scale(1.08);
}

#banner-video-juntex .parallax-banner__text {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding-top: 4px;
}

#banner-video-juntex .parallax-banner__bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#banner-video-juntex .parallax-banner__label {
  color: #c8cdd6 !important;
  font-size: 13px !important;
}

#banner-video-juntex .parallax-banner__btn {
  display: inline-block !important;
  background: transparent !important;
  border: 1px solid #c8cdd6 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  padding: 5px 18px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

#banner-video-juntex .parallax-banner__btn:hover {
  background: #ffffff;
  color: #121d31;
}

/* Family Product Bottom Canvas */
.family-canvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.family-canvas-overlay.family-canvas-open {
  opacity: 1;
}

.family-canvas-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 0 24px;
}

.family-canvas-panel.family-canvas-panel-open {
  transform: translateY(0);
}

.family-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.family-canvas-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  padding: 24px 24px 0;
}

.family-canvas-body .btn-solucion {
  width: 90px;
}

@media (max-width: 480px) {
  .family-canvas-body .btn-solucion {
    width: 72px;
  }
}

#plb-desc p {
    margin-bottom: 0.75em;
}

@media (max-width: 768px) {
  #banner-video-juntex.parallax-banner {
    background-attachment: scroll;
    min-height: 300px;
  }

  #banner-video-juntex .parallax-banner__content {
    padding: 32px 16px;
    justify-content: center;
  }

  #banner-video-juntex .parallax-banner__card {
    max-width: 90%;
  }
}