/* ============================================
   TECH PANELS CAROUSEL — Coverflow 3D
   ============================================ */

.tech-panels-section {
  background: linear-gradient(180deg, #0a0f1c 0%, #131a2e 100%);
  padding: 100px 0 120px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.tech-panels-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.tech-panels-heading {
  text-align: center;
  margin-bottom: 60px;
}

.tech-panels-tag {
  display: inline-block;
  color: #2ecc71;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
}

.tech-panels-tag::before,
.tech-panels-tag::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: #2ecc71;
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.7;
}

.tech-panels-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(90deg, #fff 0%, #2ecc71 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

/* CARRUSEL */
.tech-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 480px;
}

.tech-carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 460px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

/* SLIDES */
.tech-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2240 0%, #0d1428 100%);
  border: 1px solid rgba(46, 204, 113, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) translateX(0) rotateY(0deg) scale(0.7);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.7s ease,
    visibility 0.7s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  cursor: pointer;
  z-index: 1;
}

.tech-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tech-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(10, 15, 28, 0.2) 0%,
              rgba(10, 15, 28, 0.85) 70%,
              rgba(10, 15, 28, 0.95) 100%);
  z-index: 1;
}

.tech-slide-icon,
.tech-slide h3,
.tech-slide p {
  position: relative;
  z-index: 2;
}

.tech-slide-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #2ecc71;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.tech-slide h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.tech-slide p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

/* POSICIONES (estado coverflow) */
.tech-slide.is-active {
  transform: translate(-50%, -50%) translateX(0) rotateY(0deg) scale(1);
  opacity: 1;
  visibility: visible;
  z-index: 5;
  border-color: rgba(46, 204, 113, 0.6);
  box-shadow: 0 30px 80px rgba(46, 204, 113, 0.25),
              0 25px 60px rgba(0, 0, 0, 0.55);
}

.tech-slide.is-active .tech-slide-bg {
  opacity: 0.55;
}

.tech-slide.is-prev {
  transform: translate(-50%, -50%) translateX(-320px) rotateY(35deg) scale(0.85);
  opacity: 0.7;
  visibility: visible;
  z-index: 3;
}

.tech-slide.is-next {
  transform: translate(-50%, -50%) translateX(320px) rotateY(-35deg) scale(0.85);
  opacity: 0.7;
  visibility: visible;
  z-index: 3;
}

.tech-slide.is-far-prev {
  transform: translate(-50%, -50%) translateX(-520px) rotateY(45deg) scale(0.7);
  opacity: 0.25;
  visibility: visible;
  z-index: 2;
}

.tech-slide.is-far-next {
  transform: translate(-50%, -50%) translateX(520px) rotateY(-45deg) scale(0.7);
  opacity: 0.25;
  visibility: visible;
  z-index: 2;
}

/* NAV BUTTONS */
.tech-carousel-nav {
  position: relative;
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(46, 204, 113, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #2ecc71;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tech-carousel-nav:hover {
  background: #2ecc71;
  color: #0a0f1c;
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

.tech-carousel-nav:active {
  transform: scale(0.95);
}

/* DOTS */
.tech-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.tech-dot:hover {
  background: rgba(46, 204, 113, 0.5);
  transform: scale(1.2);
}

.tech-dot.is-active {
  background: #2ecc71;
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.6);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .tech-slide { width: 290px; height: 380px; }
  .tech-carousel-viewport { height: 420px; }
  .tech-slide.is-prev   { transform: translate(-50%, -50%) translateX(-240px) rotateY(35deg)  scale(0.82); }
  .tech-slide.is-next   { transform: translate(-50%, -50%) translateX(240px)  rotateY(-35deg) scale(0.82); }
  .tech-slide.is-far-prev { transform: translate(-50%, -50%) translateX(-380px) rotateY(45deg)  scale(0.65); }
  .tech-slide.is-far-next { transform: translate(-50%, -50%) translateX(380px)  rotateY(-45deg) scale(0.65); }
}

@media (max-width: 640px) {
  .tech-panels-section { padding: 60px 0 80px; }
  .tech-slide { width: 240px; height: 340px; padding: 22px; }
  .tech-carousel-viewport { height: 380px; }
  .tech-slide h3 { font-size: 1.2rem; }
  .tech-slide p  { font-size: 0.85rem; }
  .tech-slide.is-prev   { transform: translate(-50%, -50%) translateX(-150px) rotateY(40deg)  scale(0.75); opacity: 0.5; }
  .tech-slide.is-next   { transform: translate(-50%, -50%) translateX(150px)  rotateY(-40deg) scale(0.75); opacity: 0.5; }
  .tech-slide.is-far-prev,
  .tech-slide.is-far-next { opacity: 0; visibility: hidden; }
  .tech-carousel-nav { width: 42px; height: 42px; font-size: 1.1rem; }
}