/* ==========================================================================
   7. HOME / HERO SLIDER (hero.css)
   ========================================================================== */
.hero-slider {
   position: relative;
   overflow: hidden;
   background: var(--white);
   height: 600px;
   border-radius: var(--radius-2xl);
   box-shadow: 0 0 50px rgba(16, 185, 129, 0.2);
   border: 1px solid rgba(16, 185, 129, 0.1);
   backdrop-filter: blur(10px);
}

.slider-container {
   width: 100%;
   height: 100%;
   position: relative;
   overflow: hidden;
}

.slider-track {
   display: flex;
   width: 100%;
   height: 100%;
   transition: transform 0.7s var(--transition-bounce);
}

.slide {
   flex: 0 0 100%;
   width: 100%;
   max-width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   box-sizing: border-box;
   overflow: hidden;
}

.hero-grid {
   display: flex;
   flex-direction: row;
   justify-content: center;
   align-items: center;
   gap: var(--space-12);
   padding: 0 var(--space-8);
   width: 100%;
   max-width: 1400px;
   margin: 0 auto;
   box-sizing: border-box;
}

.hero-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   justify-content: center;
   height: 100%;
   min-width: 0;
}

.hero-title {
   font-size: 3.5rem;
   line-height: 1.1;
   color: var(--slate-900);
   font-weight: 800;
   margin-bottom: var(--space-6);
   text-align: center;
   max-width: 600px;
}

.highlight {
   color: var(--emerald-500);
}

.hero-subtitle {
   font-size: 1.25rem;
   color: var(--slate-600);
   margin-bottom: var(--space-10);
   max-width: 550px;
   text-align: center;
   line-height: 1.6;
}

.hero-image-container {
   display: flex;
   justify-content: center;
   align-items: center;
   width: fit-content;
   max-width: 100%;
   min-width: 0;
   height: auto;
   margin: 0 auto;
   overflow: visible;
}

.hero-img {
   display: block;
   max-width: 100%;
   width: auto;
   height: auto;
   max-height: 380px;
   object-fit: contain;
   background-color: transparent;
   border-radius: var(--radius-2xl);
   box-shadow: 15px 15px 40px #e2e8f0, -15px -15px 40px #ffffff;
}

.slider-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: rgba(255, 255, 255, 0.9);
   width: 2.5rem;
   height: 2.5rem;
   border-radius: var(--radius-full);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--emerald-900);
   font-size: 1.2rem;
   box-shadow: var(--shadow-md);
   z-index: 10;
   border: none;
   cursor: pointer;
}

.slider-arrow:hover {
   background: var(--emerald-500);
   color: var(--white);
}

.prev {
   left: var(--space-6);
}

.next {
   right: var(--space-6);
}

.slider-dots {
   position: absolute;
   bottom: var(--space-6);
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: var(--space-2);
}

.dot {
   width: 12px;
   height: 12px;
   background: var(--slate-300);
   border-radius: var(--radius-full);
   cursor: pointer;
   transition: all 0.4s;
}

.dot.active {
   background: var(--emerald-500);
   width: 30px;
   border-radius: var(--radius-md);
}

.careers-grid {
   grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
   gap: 1.5rem;
   padding: 0 1rem;
}

/* === RESPONSIVE HERO MOBILE === */
@media (max-width: 992px) {
   .hero-slider {
      height: auto;
      min-height: auto;
      padding-bottom: 5.5rem;
   }

   /* Espacio para los puntos */
   .hero-grid {
      flex-direction: column;
      gap: var(--space-3);
      padding: var(--space-4);
      width: 100%;
      max-width: 100%;
   }

   .hero-image-container {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
   }

   .hero-img {
      width: 100%;
      height: auto;
      max-height: none;
      max-width: 100%;
      box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.5);
      margin-bottom: 1rem;
   }

   /* Separacion de los puntos */
   .hero-title {
      font-size: 2rem;
      max-width: 100%;
   }

   .hero-subtitle {
      font-size: 1rem;
      max-width: 100%;
      margin-bottom: var(--space-3);
   }
}

@media (max-width: 576px) {
   .hero-grid {
      padding: var(--space-3);
      gap: var(--space-2);
   }

   .hero-title {
      font-size: 1.6rem;
   }

   .hero-subtitle {
      font-size: 0.9rem;
   }

   .hero-img {
      width: 100%;
      height: auto;
      max-height: none;
   }
}