/* =========================
   HOME BASE
========================= */

.home-page{
  width:100%;
  box-sizing:border-box;
}

/* =========================
   BANNER
========================= */

.home-banner{
  width:100%;
  overflow:hidden;
}

.home-banner-img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* =========================
   PROMO
========================= */

.home-promo{
  width:100%;
  display:flex;
  justify-content:center;
  margin:20px 0;
}

.home-promo-text{
  width:96%;
  max-width:1800px;
  min-height:65px;
  margin:0;
  display:flex;
  align-items:center;
  background:#0aa64f;
  color:#fff;
  font-size:28px;
  padding:14px 32px;
  border-radius:20px;
  box-sizing:border-box;
}

/* =========================
   PRODUCTS GRID
========================= */

.home-products-grid{
  max-width:1600px;
  margin:18px auto 40px;
  padding:0 32px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:40px;
  box-sizing:border-box;
}

.home-no-products{
  grid-column:1 / -1;
  text-align:center;
  padding:48px 16px;
  color:#888;
  font-size:16px;
}

/* =========================
   CONTACT
========================= */

.home-contact{
  margin:40px 0 70px;
}

.home-contact-wrap{
  max-width:1600px;
  margin:0 auto;
  padding:0 32px;
  box-sizing:border-box;
}

.home-contact-box{
  background:linear-gradient(135deg, #0b78c6, #095a94);
  border-radius:22px;
  padding:40px;
  color:#ffffff;
}

.home-contact-title{
  margin-bottom:20px;
  font-size:38px;
  font-weight:600;
  letter-spacing:-0.5px;
  text-align:center;
}

.home-contact-grid{
  display:grid;
  grid-template-columns:380px 1fr;
  gap:32px;
}

.home-contact-map{
  width:100%;
  height:240px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,0.15);
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.home-contact-map-frame{
  width:100%;
  height:100%;
  border:0;
  filter:grayscale(20%) contrast(1.1);
}

.home-contact-info{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:32px;
}

.home-contact-info > div{
  background:rgba(255,255,255,0.08);
  padding:18px;
  border-radius:14px;
  transition:all 0.3s ease;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  min-height:160px;
}

.home-contact-info > div:hover{
  background:rgba(255,255,255,0.15);
  transform:translateY(-3px);
}

.home-contact-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:8px;
}

.home-contact-head img{
  width:28px;
  height:28px;
  background:rgba(255,255,255,0.15);
  padding:6px;
  border-radius:10px;
}

.home-contact-label{
  font-weight:600;
}

.home-contact-text{
  font-size:14px;
  line-height:1.5;
  opacity:0.95;
  text-align:center;
}

.home-contact-mail{
  font-weight:800;
  margin-top:6px;
  word-break:break-word;
  text-align:center;
}

.home-contact-social{
  display:flex;
  gap:10px;
  margin-top:14px;
  justify-content:center;
}

.home-contact-social img{
  width:30px;
  height:30px;
  border-radius:50%;
  background:rgba(255,255,255,0.18);
  transition:transform 0.3s ease, background 0.3s ease;
  cursor:pointer;
}

.home-contact-social img:hover{
  transform:scale(1.15);
  background:rgba(255,255,255,0.3);
}

/* =========================
   SECCION PROMOCIONES
========================= */

.home-promo-section{
  margin:20px 0 48px;
}

.home-promo-header{
  display:flex;
  justify-content:center;
  margin-bottom:28px;
}

.home-promo-swiper-wrap{
  max-width:1600px;
  margin:0 auto;
  padding:0 56px;
  position:relative;
  box-sizing:border-box;
}

.home-promo-swiper{
  padding-top:6px;
  padding-bottom:48px !important;
  overflow:hidden;
}

.home-promo-swiper .swiper-slide{
  height:auto;
  display:flex;
}

.home-promo-swiper .producto-card{
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:visible;
  box-sizing:border-box;
}

.home-promo-swiper .producto-top{
  box-sizing:border-box;
  flex-shrink:0;
}

.home-promo-swiper .producto-bottom{
  flex:1;
  display:flex;
  flex-direction:column;
  border-radius:0 0 19px 19px;
  overflow:hidden;
}

.home-promo-swiper .producto-card__acciones{
  margin-top:auto;
}

.home-promo-swiper .producto-nombre{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.7em;
}

.home-promo-prev,
.home-promo-next{
  width:44px;
  height:44px;
  background:#ffffff;
  border-radius:50%;
  box-shadow:0 2px 10px rgba(0, 0, 0, 0.12);
  color:#0b78c6;
  top:45%;
  transform:translateY(-50%);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  z-index:10;
}

.home-promo-prev:hover,
.home-promo-next:hover{
  background:#0b78c6;
  color:#ffffff;
  box-shadow:0 4px 18px rgba(11, 120, 198, 0.35);
  transform:translateY(-50%) scale(1.12);
}

.home-promo-prev::after,
.home-promo-next::after{
  font-size:18px;
  font-weight:900;
}

.home-promo-pagination{
  bottom:0 !important;
  pointer-events:none;
}

.home-promo-pagination .swiper-pagination-bullet{
  width:10px;
  height:10px;
  background:#d1d5db;
  opacity:1;
  transition:background 0.25s ease, transform 0.25s ease;
}

.home-promo-pagination .swiper-pagination-bullet-active{
  background:#0aa64f;
  transform:scale(1.25);
}

/* =========================
   TABLET
   768px - 1024px
========================= */

@media (min-width:768px) and (max-width:1024px){

  .home-banner-img{
    height:300px;
  }

  .home-promo-text{
    font-size:22px;
    padding:14px 24px;
    border-radius:18px;
  }

  .home-products-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:28px;
    padding:0 24px;
  }

  .home-contact-wrap{
    padding:0 24px;
  }

  .home-contact-box{
    padding:32px 24px;
  }

  .home-contact-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .home-contact-map{
    height:260px;
  }

  .home-contact-info{
    grid-template-columns:repeat(2, 1fr);
    gap:24px;
  }

  .home-contact-title{
    font-size:30px;
  }

  .home-promo-swiper-wrap{
    padding:0 44px;
  }
}

/* =========================
   MOBILE
   0px - 767px
========================= */

@media (max-width:767px){

  .home-banner-img{
    height:200px;
  }

  .home-promo-text{
    font-size:18px;
    padding:14px 16px;
    border-radius:14px;
    text-align:center;
    justify-content:center;
  }

  .home-products-grid{
    grid-template-columns:1fr;
    gap:20px;
    padding:0 16px;
  }

  .home-contact-wrap{
    padding:0 16px;
  }

  .home-contact-box{
    padding:22px 16px;
    border-radius:18px;
  }

  .home-contact-title{
    font-size:24px;
  }

  .home-contact-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .home-contact-info{
    grid-template-columns:1fr;
    gap:18px;
  }

  .home-contact-map{
    height:220px;
  }

  .home-contact-info > div{
    min-height:140px;
  }

  .home-promo-swiper-wrap{
    padding:0 36px;
  }
}

/* =========================
   MOBILE PEQUEÑO
   0px - 480px
========================= */

@media (max-width:480px){
  .home-promo-swiper-wrap{
    padding:0 32px;
  }
}
