/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 */

/* 1. Contenedor Principal */
.homeslider-container {
  margin-bottom: 50px;
  position: relative;
  
  /* ESTO FUERZA EL ANCHO TOTAL */
  width: 100vw; 
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  height: 700px; 
  max-height: 80vh; 
  overflow: hidden;
}

.homeslider {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.homeslider li {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

/* 2. Ajuste de la Imagen (Crucial para monitores grandes) */
.homeslider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción sin deformar */
  object-position: center;
}

/* 3. Textos y Captions */
.homeslider .caption,
.homeslider .caption1 {
  display: inline-block;
  position: absolute;
  z-index: 2;
  font-size: 1.2em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px 20px;
  margin: 0;
  max-width: 70%;
}

#titulo-slider-dfd {
  background: rgba(0, 0, 0, .7);
  padding: 15px 25px;
  font-size: 2.5em; /* Más grande para pantallas de 32" */
  margin: 0;
  font-weight: bold;
}

/* Posiciones de los Captions */
.homeslider .caption.top-left      { top: 10%; left: 5%; transform: none; }
.homeslider .caption.top-center    { top: 10%; left: 50%; transform: translateX(-50%); }
.homeslider .caption.top-right     { top: 10%; right: 5%; transform: none; }
.homeslider .caption.middle-left   { top: 50%; left: 5%; transform: translateY(-50%); }
.homeslider .caption.middle-center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.homeslider .caption.middle-right  { top: 50%; right: 5%; transform: translateY(-50%); }
.homeslider .caption.bottom-left   { bottom: 10%; left: 5%; transform: none; }
.homeslider .caption.bottom-center { bottom: 10%; left: 50%; transform: translateX(-50%); }
.homeslider .caption.bottom-right  { bottom: 10%; right: 5%; transform: none; }

/* 4. Navegación (Flechas) */
.homeslider_nav {
  position: absolute;
  top: 50%;
  opacity: 0.7;
  z-index: 100;
  text-indent: -9999px;
  height: 50px;
  width: 50px;
  background: rgba(0, 0, 0, 0.5);
  margin-top: -25px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.homeslider_nav.prev { left: 20px; }
.homeslider_nav.next { right: 20px; }

.homeslider_nav::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translate(-30%, -50%) rotate(45deg);
}

.homeslider_nav.next::after {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.homeslider_nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* 5. Ajustes para Móviles (Responsive) */
@media (max-width: 767px) {
  .homeslider-container {
    margin-bottom: 20px;
    height: 450px; /* Altura más cómoda para móviles */
    max-height: none;
  }

  .homeslider .caption {
    width: 90%;
    max-width: 90%;
    left: 5% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 10px;
  }

  #titulo-slider-dfd {
    font-size: 1.4em;
    background: none;
  }

  .homeslider .caption1 {
    font-size: 0.9em;
    margin-top: 15px;
  }

  .homeslider_nav {
    width: 35px;
    height: 35px;
  }
}

/* 6. Ajuste extra para Pantallas 4K o monitores muy anchos */
@media (min-width: 2000px) {
  #titulo-slider-dfd {
    font-size: 3.5em;
  }
  .homeslider-container {
    height: 850px;
  }
}