   

.gallery{
  position:absolute;
  width:10%;
  height:20%;
  transform-style:preserve-3d;
  animation:rotate 35s linear infinite;
  margin-left: 10%;
  margin-top: -50px;
}

@keyframes rotate{
  from{
    transform:perspective(1200px) rotateY(0deg);
  }
  
  to{
    transform:perspective(1200px) rotateY(360deg);
  }
}

.gallery span{
  position:absolute;
  width:50%;
  height:50%;
  transform-origin:center;
  transform-style:preserve-3d;
  transform:rotateY(calc(var(--i) * 45deg)) translateZ(120px);
}

/* IMAGE */
.gallery span img{
  position:absolute;
  width:100%;
  height:100%;
  border-radius: 50%;
  object-fit:cover;
}


/*slice  */
 .slider-container {
               width: 100%;
               position: relative;
               background: #000;
               overflow: hidden;
               margin: 0 auto;
          }

          /* Desktop alto */
          @media (min-width: 769px) {
               .slider-container {
               height: 100vh;
               max-width: 1920px;
               }
               }

               /* Móvil con relación 16:9 */
               @media (max-width: 768px) {
               .slider-container {
               aspect-ratio: 16 / 9;
               max-width: 100%;
               }
          }

          /* ===== SLICES (posición absoluta) ===== */
          .slice {
          position: absolute;
          top: -100%;
          height: 100%;
          background-repeat: no-repeat;
          background-position: center; /* el CSS por nth-child lo ajusta por breakpoint */
          background-size: 500% 100%;  /* JS lo reemplaza a 300% en móvil */
          opacity: 0;

          /* Suaviza y evita hairlines por composición */
          -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
          transform: translateZ(0);
          will-change: transform, top;
          z-index: 1;
          }

          .slice.active {
          animation: fall 1.5s ease-out forwards;
          }

          /* ===== DESKTOP: 5 columnas exactas ===== */
          @media (min-width: 769px) {
               .slice {
                    width: calc(100% / 5);
               }

               .slice:nth-child(1) {
                    left: 0;
                    background-position: 0% 0%;
                    animation-delay: 0s;
                    margin-left: 0;                  /* sin solape el primero */
                    z-index: 1;
               }
               .slice:nth-child(2) {
                    left: calc(100% / 5);
                    background-position: 25% 0%;
                    animation-delay: .15s;
                    margin-left: -0.5px;             /* solape antihairline */
                    z-index: 2;                      /* el de la derecha por encima */
               }
               .slice:nth-child(3) {
                    left: calc(100% / 5 * 2);
                    background-position: 50% 0%;
                    animation-delay: .3s;
                    margin-left: -0.5px;
                    z-index: 3;
               }
               .slice:nth-child(4) {
                    left: calc(100% / 5 * 3);
                    background-position: 75% 0%;
                    animation-delay: .45s;
                    margin-left: -0.5px;
                    z-index: 4;
               }
               .slice:nth-child(5) {
                    left: calc(100% / 5 * 4);
                    background-position: 100% 0%;
                    animation-delay: .6s;
                    margin-left: -0.5px;
                    z-index: 5;
               }
          }

          /* ===== MÓVIL: 3 columnas exactas ===== */
          @media (max-width: 768px) {
               .slice {
                    width: calc(100% / 3);
               }

               .slice:nth-child(1) {
                    left: 0;
                    background-position: 0% 0%;
                    animation-delay: 0s;
                    margin-left: 0;
                    z-index: 1;
               }
               .slice:nth-child(2) {
                    left: calc(100% / 3);
                    background-position: 50% 0%;
                    animation-delay: .2s;
                    margin-left: -0.5px;  /* solape */
                    z-index: 2;
               }
               .slice:nth-child(3) {
                    left: calc(100% / 3 * 2);
                    background-position: 100% 0%;
                    animation-delay: .4s;
                    margin-left: -2.0px;  /* solape */
                    z-index: 3;
                     width: calc((100% / 3) + 2.5px); /* 0.5 + 2.0 */
               }

               /* Oculta 4 y 5 en móvil */
               .slice:nth-child(4),
               .slice:nth-child(5) {
               display: none;
               }
          }

          /* ===== Animaciones ===== */
          @keyframes fall {
          0%   { top: -100%; opacity: 0; }
          10%  {              opacity: 1; }
          100% { top: 0%;     opacity: 1; }
          }

          /* ===== Overlay de contenido ===== */
          .content-overlay {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          text-align: center;
          color: white;
          z-index: 10;
          opacity: 0;
          width: 80%;
          max-width: 800px;
          padding: 20px;
          }

          .content-overlay.show {
          animation: fadeInUp 1s ease-out forwards;
          }

          @keyframes fadeInUp {
          0%   { opacity: 0; transform: translate(-50%, -40%); }
          100% { opacity: 1; transform: translate(-50%, -50%); }
          }

          .content-overlay h1 {
          font-size: clamp(2rem, 8vw, 4rem);
          font-weight: bold;
          margin-bottom: 20px;
          text-shadow: 2px 2px 10px rgba(0,0,0,.8);
          letter-spacing: 2px;
          }
          .content-overlay h2 {
          font-size: clamp(1.2rem, 5vw, 2rem);
          font-weight: 300;
          margin-bottom: 15px;
          text-shadow: 2px 2px 8px rgba(0,0,0,.7);
          }
          .content-overlay p {
          font-size: clamp(.9rem, 3vw, 1.2rem);
          line-height: 1.6;
          text-shadow: 1px 1px 5px rgba(0,0,0,.8);
          font-weight: 300;
          }



          /* product our */
:root {
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --blur: blur(20px);
 
  --shift-x: 30vw;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f3ececff;
  perspective: 2000px; /* Increased for better depth on wide screens */
  overflow: hidden;
  color: white;
  width: 100%;
}

.carousel-stage {
  position: relative;
  width: 100vw; /* Occupy full width to allow cards to spread */
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  /* Dynamic width: wider on desktop, narrower on mobile */
  width: clamp(280px, 25vw, 400px);
  height: clamp(380px, 60vh, 500px);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

/* --- 3D TRANSFORM STATES --- */

.carousel-card.active {
  transform: translate3d(0, 0, 250px) rotateY(0deg);
  z-index: 10;
  opacity: 1;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.carousel-card.left {
  transform: translate3d(calc(var(--shift-x) * -1), 0, -150px) rotateY(35deg)
    scale(0.85);
  z-index: 5;
  opacity: 0.5;
}

.carousel-card.right {
  transform: translate3d(var(--shift-x), 0, -150px) rotateY(-35deg) scale(0.85);
  z-index: 5;
  opacity: 0.5;
}

.carousel-card.far-left {
  transform: translate3d(calc(var(--shift-x) * -1.8), 0, -500px) rotateY(45deg)
    scale(0.6);
  z-index: 1;
  opacity: 0.2;
}

.carousel-card.far-right {
  transform: translate3d(calc(var(--shift-x) * 1.8), 0, -500px) rotateY(-45deg)
    scale(0.6);
  z-index: 1;
  opacity: 0.2;
}

.carousel-card.hidden {
  transform: translate3d(0, 0, -1000px) scale(0.1);
  opacity: 0;
}

/* Card Inner Styling */
.card-image {
  height: 60%;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 15px;
}

.expand-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  width: fit-content;
  margin: 0 auto;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.card-footer{
  font-size: 12px;
}
.card-content p {
  font-size: 12px;
  font-style:italic;
  margin-top:4px;
  margin-bottom:4px;
  margin-left:0;
  margin-right:0;
}
.card-header h3 {
  margin: 0;
  font-size: 16px;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Controls */
.carousel-controls {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  padding: 0 20px;
}

.user-badge img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/*Pagination : dots to track cards styling */
.pagination-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  margin: 0 10px;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
  background: #fff;
  width: 18px; /* The "pill" effect when active */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hover effect to show interactivity */
.dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

/* Ensure the control bar grows with the number of dots */
.carousel-controls {
  min-width: fit-content;
  max-width: 90vw;
}

/* Responsive Design */

/* Desktop / Large Screens (Spread them out to 90% of screen) */
@media (min-width: 1200px) {
  :root {
    --shift-x: 32vw;
  }
}
/* Tablets */
@media (max-width: 1024px) {
  :root {
    --shift-x: 35vw;
  }
}
/* Mobile (Keep cards closer so they don't fall off screen) */
@media (max-width: 600px) {
  :root {
    --shift-x: 38vw;
  }

  .carousel-card {
    width: 75vw; /* Almost full width on mobile */
    height: 450px;
  }

  .carousel-card.left {
    transform: translate3d(-45%, 0, -250px) rotateY(45deg) scale(0.8);
  }

  .carousel-card.right {
    transform: translate3d(45%, 0, -250px) rotateY(-45deg) scale(0.8);
  }
  .pagination-indicators {
    gap: 5px;
  }
  .dot {
    width: 4px;
    height: 4px;
  }
  .dot.active {
    width: 12px;
  }
}

/* Bottom Controls */
.carousel-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 15px;
}
