/* ============================
   ANIMACIONES
============================ */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(80px) rotateX(20deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px) rotateY(20deg); }
  to   { opacity: 1; transform: translateX(0) rotateY(0); }
}

body {
  background-color: #F5F4F5;
}

/* ============================
   HERO / CARRUSEL
============================ */
.custom-hero-carousel {
  background: #0d114c;
  border-radius: 35px;
  overflow: hidden;
  position: relative;
  min-height: 350px;
  padding: 40px 0;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.custom-hero-carousel .carousel-indicators {
  bottom: -60px;
  gap: 8px;
}

.carousel-content {
  width: 100%;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.carousel-content h1 {
  color: #fff;
  font-weight: bold;
}

.carousel-content p {
  color: #e3e3e3;
}

.carousel-content img {
  max-height: 230px;
  object-fit: contain;
}

.custom-hero-carousel .carousel-control-prev,
.custom-hero-carousel .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  z-index: 10;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ============================
   UTILIDADES
============================ */
.mt-25 {
  margin-top: 25px;
}

.text-lg {
  font-size: 1.2rem;
}

.text-black-custom {
  color: #000;
}

/* ============================
   CATEGORÍAS
============================ */
#categorias {
  margin-top: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
}

#categorias .btn-primary {
  background-color: #1a2aff;
  border-color: #1a2aff;
  color: #fff;
}

#categorias .btn-primary:hover {
  background-color: #0d114c;
  border-color: #0d114c;
}

/* ============================
   SWIPER PRODUCTOS (AISLADO)
============================ */

.mySwiperProductos {
  position: relative;
  padding: 40px 60px;
}

.mySwiperProductos .swiper-slide {
  display: flex;
  justify-content: center;
}

/* Tarjeta */
.mySwiperProductos .featured-card {
  width: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mySwiperProductos .featured-card img {
  height: 200px;
  object-fit: contain;
}

/* Flechas personalizadas */
.productos-prev,
.productos-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


/* ============================
   PAGINACIÓN CONTROL TOTAL
============================ */

.custom-pagination {
  margin-top: 30px; /* 👈 AHORA SÍ FUNCIONA */
  text-align: center;
  position: relative; /* 👈 ya no es absolute */
}

/* bullets */
.custom-pagination .swiper-pagination-bullet {
  background: #999;
  opacity: 0.5;
}

.custom-pagination .swiper-pagination-bullet-active {
  background: #007AFF;
  opacity: 1;
}



.productos-prev {
  left: 0;
}

.productos-next {
  right: 0;
}

/* Iconos */
.productos-prev::after {
  content: "‹";
  color: #fff;
  font-size: 24px;
}

.productos-next::after {
  content: "›";
  color: #fff;
  font-size: 24px;
}

/* Paginación */
.mySwiperProductos .swiper-pagination {
  margin-top: 15px;
  text-align: center;
}

/* ============================
   SERVICIOS
============================ */
#servicios .card {
  height: 100%;
}

#servicios .card-body {
  display: flex;
  flex-direction: column;
}

#servicios .btn-primary {
  background-color: #1a2aff;
  border-color: #1a2aff;
  color: #fff;
}

#servicios .btn-primary:hover {
  background-color: #0d114c;
  border-color: #0d114c;
}

#servicios .mt-auto {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

#servicios .mt-auto .btn {
  flex: 1;
  white-space: nowrap;
}



/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px) {
  .carousel-content {
    flex-direction: column;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .carousel-content {
    padding: 0 20px;
  }

  .carousel-content img {
    max-height: 160px;
  }

  .productos-prev,
  .productos-next {
    display: none;
  }
}