.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    max-width: 600px;
    padding: 2rem;
    z-index: 10;
    pointer-events: auto;
}

.slide-content .button-white {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 10px 30px !important;
    border: 1px solid #ffffff !important;
    font-weight: 400 !important;
    border-radius: 0px !important; /* Estilo Volvo clásico */
    display: inline-block !important;
    margin-top: 1.5rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.slide-content .button-white:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Position classes - Forced to Top-Left */
.text-left, .text-center, .text-right { 
    left: 8% !important; 
    top: 8% !important; 
    right: auto !important;
    transform: none !important; 
    text-align: left !important; 
}

/* Color classes */
.color-white { color: white; }
.color-black { color: black; }
.color-primary { color: var(--primary-color); }
.color-secondary { color: var(--secondary-color); }

/* Size classes */
.size-sm { font-size: 1rem; }
.size-md { font-size: 1.5rem; }
.size-lg { font-size: 2.2rem; }
.size-xl { font-size: 3.5rem; }

/* CTA button */
.cta-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Slider controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: gray; 
    cursor: pointer;
}

.dot.active {
  opacity: 1;
  box-shadow: 0 0 0 2px white; /* efecto de contorno */
}

/* Hide mobile image by default */
.mobile-image {
    display: none;
}

@media (max-width: 767px) {
  .hero-slider {
    height: 70vh; 
  }

  .slide-content {
    top: 5% !important;
    left: 5% !important;
    width: 90% !important;
    padding: 1rem !important;
  }

  .slide-content h2.title {
    font-size: 1.8rem !important;
  }

  .slide-content .description {
    font-size: 1rem !important;
  }

  .slide-content .button-white {
    padding: 10px 20px !important;
    margin-top: 1rem !important;
  }

  .slider-dots {
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}
