/* ============================================
   GALLERY.CSS - Shared Success Cases Section
   ============================================ */

.portfolio-gallery-section {
    padding: 100px 40px;
    background: #000;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-gallery-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
    background: linear-gradient(135deg, var(--accent-cyan, #00f0ff), var(--accent-pink, #ff00c8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Michroma', sans-serif;
}

.section-intro {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 60px;
    max-width: 800px;
    font-family: 'Outfit', sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Michroma', sans-serif;
}

.gallery-overlay p {
    color: var(--accent-cyan, #00f0ff);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .portfolio-gallery-section {
        padding: 60px 20px;
    }
    
    .portfolio-gallery-section h2 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PREMIUM CAROUSEL - SWIPER (GLOBAL PARA SERVICIOS)
   ============================================ */
.premium-carousel-section {
  background: linear-gradient(180deg, #050505 0%, #11111a 100%);
  padding: 60px 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  overflow: hidden;
}

.premium-carousel-section .section-content {
  max-width: 1400px;
  margin: 0 auto;
}

.carousel-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-family: 'Michroma', sans-serif;
  background: linear-gradient(135deg, #ffffff, #00f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.carousel-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 40px;
  font-family: 'Outfit', sans-serif;
}

.swiper-premium {
  width: 100%;
  padding-top: 30px;
  padding-bottom: 50px;
}

.premium-slide {
  background-position: center;
  background-size: cover;
  width: 220px !important;
  height: 330px !important;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: filter 0.4s ease;
  /* Efecto cinematográfico */
  filter: brightness(0.4);
}

.swiper-slide-active {
  filter: brightness(1.1);
  z-index: 10;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

.premium-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.premium-slide:hover img {
  transform: scale(1.08);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  backdrop-filter: blur(2px);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  transform: translateY(20px);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.premium-slide:hover .slide-overlay {
  transform: translateY(0);
  opacity: 1;
}

.slide-overlay h3 {
  font-family: 'Michroma', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.slide-overlay p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: #00f0ff;
  margin-bottom: 15px;
}

.btn-slide {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #00f0ff;
  color: #00f0ff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-slide:hover {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Paginación y Botones Swiper */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

.swiper-button-next, .swiper-button-prev {
  color: #00f0ff;
  transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #00f0ff);
}
