/* =========================================================
   SERVICE-SWIPER.CSS  –  Carrusel de Servicios con Swiper
   ========================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&family=Roboto:wght@400&display=swap');

/* ---------- Contenedor principal (desktop) ---------- */
.service-container {
  position: relative;
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

/* Wrapper Swiper */
.service-content-wrapper.swiper {
  position: relative;
  width: 100%;
  height: 650px;
}

/* ---------- Tarjeta (desktop) ---------- */
.service-content {
  display: flex !important;
  flex-direction: row !important;           /* Texto izquierda / imagen derecha */
  align-items: stretch !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 1280px !important;
  height: 650px !important;
  padding: 30px !important;
  border-radius: 15px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  box-sizing: border-box !important;
}

/* ---------- Bloque de texto ---------- */
.service-text {
  width: 50% !important;
  padding-right: 60px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  font-family: 'Nunito', sans-serif !important;
}

.service-text h2 {
  font-size: 26px !important;
  color: #1B568F !important;
  margin-bottom: 15px !important;
}

.service-text p {
  font-size: 16px !important;
  color: #555 !important;
  margin-bottom: 15px !important;
  text-align: justify !important;
}

.service-text ul {
  padding: 0 !important;
  list-style: none !important;
  margin-bottom: 15px !important;
  column-count: 2 !important;
  column-gap: 20px !important;
}

/* Botonera inferior */
.service-buttons-bottom {
  margin-top: 40px !important;
  display: flex !important;
  gap: 15px !important;
}

/* ---------- Botones de acción ---------- */
.btn-contact,
.btn-more {
  display: inline-block !important;
  padding: 12px 18px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: background 0.3s ease !important;
  text-align: center !important;
  background: #1B568F !important;
  color: #fff !important;
}

.btn-contact:hover,
.btn-more:hover {
  background: #133B66 !important;
}

/* ---------- Imagen ---------- */
.service-image {
  width: 50% !important;
  max-width: 640px !important;
  height: 100% !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.service-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ---------- Flechas de navegación (desktop) ---------- */
.nav-button {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  width: 60px !important;
  height: 60px !important;
  cursor: pointer !important;
  z-index: 100 !important;
}

.nav-button img {
  width: 40px !important;
  height: 40px !important;
}

#prev-service { left: -60px !important; }
#next-service { right: -60px !important; }

/* Evita “salto” en hover */
.nav-button:hover {
  transform: translateY(-50%) scale(1.0) !important;
}

/* ---------- Ajusta Swiper slide ---------- */
.swiper-slide { display: flex !important; }

/* =========================================================
   Responsive – Tablet & Móvil
   ========================================================= */

/* Tablet & móvil (<1025 px) */
@media (max-width: 1024px) {
  .service-content-wrapper.swiper { height: auto !important; }

  .service-content {
    flex-direction: column !important;          /* Imagen abajo */
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: 650px !important;               /* Altura uniforme */
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  .service-text {
    width: 100% !important;
    padding-right: 0 !important;
    text-align: center !important;
    flex: 1 1 auto !important;
  }

  .service-text ul { column-count: 1 !important; }

  .service-image {
    width: 100% !important;
    height: 300px !important;
    margin-top: auto !important;
  }

  .service-buttons-bottom {
    flex-direction: column !important;
    margin-top: auto !important;
  }

  #prev-service,
  #next-service {
    display: none !important;                   /* Sin flechas: se usa swipe */
  }
}

/* Móvil (<768 px) */
@media (max-width: 768px) {
  .service-content {
    padding: 15px !important;
    min-height: 650px !important;
  }

  .service-text h2       { font-size: 22px !important; }
  .service-text p,
  .service-text ul       { font-size: 14px !important; }

  .service-text ul       { text-align: left !important; }

  .service-image         { height: 250px !important; }

  .service-buttons-bottom { margin-top: auto !important; }
  .btn-more              { margin-bottom: 20px !important; }

  #prev-service,
  #next-service          { display: none !important; }
}
