/* ===================================================================================== */
/* SECCIÓN TECH DARK - CARRUSEL DE TARJETAS ELECTRÓNICAS */
/* ===================================================================================== */

/* Fondo oscuro con patrón tecnológico */
.tech-carousel-section {
  background: linear-gradient(135deg, #0a0e12 0%, #1a1d23 50%, #0a0e12 100%);
  position: relative;
  overflow: hidden;
}

.tech-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: techGridMove 20s linear infinite;
}

/* Contenedor del carrusel con glassmorphism */
.tech-carousel-container {
  background: rgba(26, 29, 35, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Indicadores del carrusel */
.carousel-indicators [data-bs-target] {
  width: 40px;
  height: 4px;
  background-color: rgba(0, 212, 255, 0.3);
  border: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background: linear-gradient(90deg, #00d4ff, #17a2b8);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  width: 50px;
}

/* ===================================================================================== */
/* TÍTULO TECH DARK */
/* ===================================================================================== */
.carousel-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 0;
  padding: 1rem 0;
}

.carousel-title::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #00d4ff 20%, #17a2b8 50%, #00d4ff 80%, transparent 100%);
  border-radius: 3px;
  box-shadow: 
    0 2px 10px rgba(0, 212, 255, 0.4),
    0 0 20px rgba(0, 212, 255, 0.2);
  animation: titleGlowPulse 3s ease-in-out infinite alternate;
}

.carousel-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #17a2b8 20%, #00d4ff 50%, #17a2b8 80%, transparent 100%);
  border-radius: 2px;
  opacity: 0.6;
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.3);
}

.carousel-title-main {
  color: #00d4ff;
  display: block;
  font-weight: 900;
  text-shadow: 
    0 0 20px rgba(0, 212, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.3rem;
  position: relative;
  letter-spacing: 1px;
}

.carousel-title-accent {
  color: #b0c4de;
  display: block;
  font-weight: 600;
  font-size: 0.8em;
  font-style: italic;
  opacity: 0.9;
  text-shadow: 
    0 0 10px rgba(176, 196, 222, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

/* ===================================================================================== */
/* TARJETAS DE CONTENIDO - GLASSMORPHISM DARK */
/* ===================================================================================== */
.tech-card-content {
  background: rgba(26, 29, 35, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.tech-card-content:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tech-card-title {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  font-size: 1.5rem;
}

/* Lista técnica */
.tech-list {
  background: transparent;
}

.tech-list-item {
  background: rgba(10, 14, 18, 0.4) !important;
  border-color: rgba(0, 212, 255, 0.1) !important;
  color: #e0e6ed;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.tech-list-item:hover {
  background: rgba(0, 212, 255, 0.05) !important;
  border-left: 3px solid #00d4ff;
  padding-left: 1.5rem;
}

.tech-success {
  color: #00d4ff !important;
}

.tech-description {
  color: #b0c4de;
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.75rem;
  background: rgba(0, 212, 255, 0.03);
  border-left: 3px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}

/* ===================================================================================== */
/* IMÁGENES CON EFECTO TECH */
/* ===================================================================================== */
.card-image-wrapper {
  position: relative;
  padding: 1rem;
  background: rgba(10, 14, 18, 0.6);
  border-radius: 1rem;
  border: 2px solid rgba(0, 212, 255, 0.2);
  transition: all 0.4s ease;
  overflow: hidden;
}

.card-image-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 212, 255, 0.1) 50%,
    transparent 70%
  );
  animation: imageShine 3s linear infinite;
}

.card-image-wrapper:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.3),
    inset 0 0 20px rgba(0, 212, 255, 0.05);
  transform: scale(1.02);
}

.tech-card-image {
  max-height: 260px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: brightness(1.1) contrast(1.05);
  transition: all 0.4s ease;
}

.card-image-wrapper:hover .tech-card-image {
  filter: brightness(1.2) contrast(1.1);
  transform: scale(1.05);
}

/* ===================================================================================== */
/* CONTROLES DEL CARRUSEL - TECH STYLE */
/* ===================================================================================== */
.tech-carousel-control {
  width: 50px;
  height: 50px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.tech-carousel-control:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.4),
    inset 0 0 10px rgba(0, 212, 255, 0.2);
  opacity: 1;
}

.carousel-control-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===================================================================================== */
/* BOTONES DE CONTROL - TECH DARK */
/* ===================================================================================== */
.tech-control-btn {
  background: rgba(26, 29, 35, 0.8);
  border: 2px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  margin: 0 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tech-control-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: #00d4ff;
  color: #ffffff;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.tech-control-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 0 10px rgba(0, 212, 255, 0.2);
}

/* ===================================================================================== */
/* RESPONSIVE */
/* ===================================================================================== */
@media (max-width: 768px) {
  .carousel-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    padding: 0.8rem 0;
  }
  
  .carousel-title::before {
    width: 50px;
    height: 3px;
  }
  
  .carousel-title::after {
    width: 60px;
    height: 2px;
  }
  
  .tech-card-title {
    font-size: 1.25rem;
  }
  
  .tech-control-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0.25rem;
  }
  
  .tech-carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-icon-wrapper {
    font-size: 1.2rem;
  }
  
  .card-image-wrapper {
    padding: 0.5rem;
  }
}
