/* ==========================================================================
   SERVICIOS DESTACADOS (CARRUSEL INTERACTIVO & ULTRA-RESPONSIVO)
   ========================================================================== */

.carruselSecundario {
  background: #222222;
  padding: 4rem 1.5rem;
  color: #ffffff;
  border-top: solid 1px rgba(255, 255, 255, 0.164);
}

.carrusel {
  position: relative;
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 10px;
}

.imagenes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.imagenes-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

/* Tarjetas de carrusel */
.image {
  flex: 0 0 calc((100% - 3rem) / 3);
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.image:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image:hover img {
  transform: scale(1.05);
}

.texto {
  padding: 1.5rem;
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.texto h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0;
}

.texto p {
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.5;
  margin: 0;
}

/* Botones de navegación */
.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
  user-select: none;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: #ffffff;
  color: #000000;
  transform: scale(1.08);
}

/* Puntos de navegación */
.puntos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
}

.puntos .punto {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.puntos .punto.active {
  background-color: #ffffff;
  transform: scale(1.3);
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVOS
   ========================================================================== */

/* Tablets (< 992px) */
@media (max-width: 991.98px) {
  .imagenes-track {
    flex-wrap: wrap;
    row-gap: 1.5rem;
  }

  .image {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }

  .image img {
    height: 200px;
  }
}

/* Celulares (< 640px) */
@media (max-width: 639.98px) {
  .carruselSecundario {
    padding: 3rem 1rem;
  }

  .imagenes {
    gap: 0.5rem;
  }

  .image {
    flex: 0 0 100%;
  }

  .image img {
    height: 180px;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .texto {
    padding: 1.25rem;
  }
}