/* Swiper Custom Styles for Laravel Project */

/* ============================================
   SWIPER BANNER CONTAINER
   ============================================ */

.swiper-banner {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.swiper-banner .swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-banner .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================
   SLIDE TEXT OVERLAY
   ============================================ */

.swiper-banner .slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 800px;
  padding: 20px;
}

.swiper-banner .slide-text-principal {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 15px 30px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: inline-block;
}

.swiper-banner .slide-text-principal h2 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.swiper-banner .slide-text-secundario {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 25px;
  border-radius: 6px;
  display: inline-block;
}

.swiper-banner .slide-text-secundario p {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Text Animation */
.swiper-banner .slide-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.swiper-banner .swiper-slide-active .slide-text {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #333 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #667eea;
  color: #fff !important;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  font-weight: 900;
}

/* ============================================
   PAGINATION BULLETS
   ============================================ */

.swiper-pagination {
  bottom: 20px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.swiper-pagination-bullet-active {
  background-color: #667eea;
  border-color: #fff;
  transform: scale(1.3);
}

.swiper-pagination-bullet:hover {
  background-color: #fff;
  transform: scale(1.2);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  .swiper-banner {
    height: 400px;
  }
  
  .swiper-banner .slide-text-principal h2 {
    font-size: 2.5rem;
  }
  
  .swiper-banner .slide-text-secundario p {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .swiper-banner {
    height: 350px;
  }
  
  .swiper-banner .slide-text-principal {
    padding: 12px 20px;
  }
  
  .swiper-banner .slide-text-principal h2 {
    font-size: 2rem;
  }
  
  .swiper-banner .slide-text-secundario {
    padding: 8px 15px;
  }
  
  .swiper-banner .slide-text-secundario p {
    font-size: 1rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .swiper-banner {
    height: 300px;
  }
  
  .swiper-banner .slide-text-principal h2 {
    font-size: 1.5rem;
  }
  
  .swiper-banner .slide-text-secundario p {
    font-size: 0.9rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none; /* Hide arrows on mobile, use swipe */
  }
  
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* ============================================
   LOADING STATE
   ============================================ */

.swiper-banner.swiper-loading {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.swiper-banner.swiper-loading::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: swiper-spin 0.8s linear infinite;
}

@keyframes swiper-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   PARTNERS SWIPER (OPTIONAL)
   ============================================ */

.swiper-partners {
  padding: 30px 0;
}

.swiper-partners .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.swiper-partners .swiper-slide img {
  max-width: 150px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.swiper-partners .swiper-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.swiper-button-next:focus,
.swiper-button-prev:focus {
  outline: 3px solid rgba(102, 126, 234, 0.5);
  outline-offset: 3px;
}

.swiper-pagination-bullet:focus {
  outline: 2px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .swiper-banner .slide-text,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination-bullet {
    transition: none;
  }
  
  .swiper-banner .swiper-slide-active .slide-text {
    transform: none;
  }
}
