:root {
  --primary-color: #2571D9;
}

.gradient-bg {
  background: #2571D9;
  background: radial-gradient(circle, rgba(37, 113, 217, 1) 0%, rgba(0, 0, 0, 1) 100%);
  background-attachment: fixed;
}

.bg-win11 {
  background-color: #0b0b0b;
  background-image: radial-gradient(#232323 1px, transparent 1px);
  background-size: 20px 20px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 14px !important;
}

.swiper-button-next,
.swiper-button-prev {
  background: var(--primary-color) !important;
  color: #0b0b0b !important;
  width: 45px !important;
}

.custom-prev,
.custom-next {
  position: relative;
  z-index: 10;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: scale(0.9) !important;
}

button:disabled:hover {
  background-color: rgba(59, 130, 246, 0.2) !important;
  transform: scale(0.9) !important;
}

#menu-toggle span {
  transition: all 0.3s ease;
}

#menu-toggle span.rotate-45 {
  transform: rotate(45deg) translateY(6px);
}

#menu-toggle span.-rotate-45 {
  transform: rotate(-45deg) translateY(-6px);
}

#mobile-menu {
  z-index: 9999;
}

#menu-close {
  display: block;
}

@media (min-width: 768px) {
  #menu-toggle,
  #menu-close,
  #mobile-menu {
    display: none !important;
  }
}

.swiper-slide {
  height: unset !important;
}

.dashboard-slide:hover button {
  transition: 0.9s;
  margin-top: -10px !important;
}

/* ✅ Responsive Portafolio Mobile Fix */
@media (max-width: 640px) {
  /* Alinear botones debajo del titulo en mobile */
  #portfolio .flex.justify-between.items-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  /* Botones mas pequeños en mobile */
  #portfolio [class^="custom-prev-"],
  #portfolio [class^="custom-next-"] {
    width: 36px !important;
    height: 36px !important;
  }
  
  /* Espaciado correcto contador + botones */
  #portfolio .flex.items-center.space-x-4 {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Quitar margen adicional en categorias mobile */
  #portfolio .mb-16 {
    margin-bottom: 48px !important;
  }
  
  /* Padding interno de tarjetas mas chico en mobile */
  #portfolio .p-6 {
    padding: 16px !important;
  }
  
  /* Altura de imagen mas chica en mobile */
  #portfolio .h-48 {
    height: 140px !important;
  }
}
