/* Custom Styles para ControlaTuFabrica */

:root {
  --primary: #007BFF;
  --primary-dark: #0056b3;
  --primary-light: #E6F2FF;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: linear-gradient(to bottom right, white, rgba(239, 246, 255, 0.3), white);
  font-family: system-ui, -apple-system, sans-serif;
}

::selection {
  background-color: rgba(0, 123, 255, 0.2);
  color: #001933;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.5s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Botones */
.btn-primary {
  background: linear-gradient(to right, #007BFF, #0062CC);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: all 300ms;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.3), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  background: white;
  color: #007BFF;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #007BFF;
  transition: all 300ms;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-secondary:hover {
  background: #E6F2FF;
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:active {
  transform: scale(0.95);
}

/* Card effects */
.card-hover {
  transition: all 300ms;
}

.card-hover:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

/* Backgrounds */
.bg-gradient-mesh {
  background: radial-gradient(at 0% 0%, rgba(0, 123, 255, 0.08) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(0, 86, 179, 0.08) 0px, transparent 50%);
}

/* Shadows */
.shadow-glow {
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.shadow-soft {
  box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-soft-lg {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Nav underline effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #007BFF, #0062CC);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Premium Swiper Carousel Styles */
.swiper-container-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mySwiper {
  width: 100%;
  padding: 60px 0 !important;
  position: relative;
}

.swiper-slide {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(0.85);
  opacity: 0.5;
  width: 900px;
  max-width: 90vw;
}

.swiper-slide-active {
  transform: scale(1) !important;
  opacity: 1 !important;
  z-index: 10;
}

.swiper-slide-prev,
.swiper-slide-next {
  transform: scale(0.9);
  opacity: 0.7;
}

.slide-content {
  width: 100%;
  max-width: 900px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.swiper-slide-active .slide-content {
  box-shadow: 0 30px 60px -12px rgba(0, 123, 255, 0.25);
}

.slide-image-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fcfcfd 100%);
}

.slide-image-container img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.swiper-slide-active .slide-image-container img {
  transform: scale(1.02);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.swiper-slide-active .slide-overlay {
  opacity: 0.7;
}

.slide-info {
  padding: 2rem;
  position: relative;
}

.slide-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #007BFF;
  background: #E6F2FF;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.slide-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-description {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.slide-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  color: #2d3748;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.swiper-slide-active .tag:hover {
  background: #007BFF;
  color: white;
  border-color: #007BFF;
  transform: translateY(-2px);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  width: 56px !important;
  height: 56px !important;
  background: white !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #007BFF !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #007BFF !important;
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3) !important;
  transform: scale(1.1);
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
  color: white !important;
}

.swiper-button-disabled {
  opacity: 0.4 !important;
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: 20px !important;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #cbd5e0 !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  background: #007BFF !important;
  width: 32px !important;
  border-radius: 6px !important;
}

/* Progress Bar */
.swiper-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  z-index: 20;
}

.swiper-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007BFF 0%, #0056b3 100%);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .mySwiper {
    padding: 40px 0 !important;
  }

  .slide-content {
    max-width: 100%;
  }

  .slide-image-container {
    min-height: 300px;
    max-height: 500px;
  }

  .slide-image-container img {
    max-height: 500px;
  }

  .slide-info {
    padding: 1.5rem;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .slide-description {
    font-size: 0.875rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px !important;
  }

  .swiper-slide {
    transform: scale(0.9);
  }

  .swiper-slide-active {
    transform: scale(1) !important;
  }
}

@media (max-width: 640px) {
  .slide-image-container {
    min-height: 250px;
    max-height: 400px;
  }

  .slide-image-container img {
    max-height: 400px;
  }

  .slide-tags {
    gap: 0.375rem;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }
}
