/* Estilos para animación en la parte de nosotros */

.icon-box i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-box:hover i {
    transform: translateY(-8px) scale(1.1);
    color: #0d6efd; /* Azul Bootstrap */
}

/* Estilos para animación de las cards en la parte de productos */

.service-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-item .service-icon i {
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon i {
    transform: scale(1.2) rotate(10deg);
}

/* Estilos para animación de los botones del carrusel */

.product-card-img{ height:320px; width:100%; object-fit:cover; }
  .modal-img{ height:380px; object-fit:cover; border-radius:.5rem; }
  .btn-whatsapp{
    background-color:#25D366; border-color:#25D366; color:#fff;
    box-shadow:0 6px 16px rgba(37,211,102,.35);
  }
.btn-whatsapp:hover{ background:#1ebe5d; border-color:#1ebe5d; color:#fff; }

/* Controles visibles en cualquier carrusel dentro de un modal */
.modal .carousel-control-prev,
.modal .carousel-control-next{
  width: auto;        /* más compacto */
  opacity: 1;         /* siempre visibles */
  z-index: 5;         /* por encima de la imagen */
}

.modal .carousel-control-prev-icon,
.modal .carousel-control-next-icon{
  width: 2.8rem;
  height: 2.8rem;
  background-size: 60% 60%;
  background-color: rgba(0,0,0,.7); /* fondo oscuro */
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* Hover: un poco más oscuro */
.modal .carousel-control-prev:hover .carousel-control-prev-icon,
.modal .carousel-control-next:hover .carousel-control-next-icon{
  background-color: rgba(0,0,0,.85);
}

/* Estilos para animación de las cards en la parte de busqueda deproductos */
.product-card { transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.product-card .card-img-top { height: 200px; object-fit: cover; }
.btn-whatsapp{
    background-color:#25D366; border-color:#25D366; color:#fff; 
    box-shadow:0 6px 16px rgba(37,211,102,.35);
}
.btn-whatsapp:hover{ background:#1ebe5d; border-color:#1ebe5d; color:#fff; }
.empty-state{ color:#fff; background:rgba(255,255,255,.12); border:1px dashed rgba(255,255,255,.4); }

/* Fondo con overlay: más oscuro en móvil para mejor legibilidad */
.hero-header{
  position: relative;
  /* si tu fondo se define en el CSS, déjalo; si no, puedes forzarlo aquí:
  background: url("img/mi-hero.jpg") center right/cover no-repeat;
  */
  min-height: 78vh;                 /* ajusta: 70–90vh según prefieras */
  background-size: cover;           /* que cubra */
  background-position: center right;/* encuadre */
}

/* Centrar verticalmente el contenido dentro del hero */
.hero-header > .container{
  min-height: inherit;
  display: flex;
  align-items: center;
}

/* Ajuste para móviles (un poco menos alto) */
@media (max-width: 991.98px){
  .hero-header{ min-height: 65vh; }
}

.hero-header::before{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,18,31,.45), rgba(3,18,31,.20));
  pointer-events: none;
}
.hero-header .container{ position: relative; z-index: 1; }

/* Tipografías con mejor contraste */
.hero-sub{
  color:#d8ecff;
  text-transform: uppercase;
  letter-spacing:.06em;
  font-weight:700;
  border-bottom:4px solid rgba(255,255,255,.30);
  display:inline-block;
  padding-bottom:.25rem;
}
.hero-title{
  color:#ffffff;
  font-weight:800;
  font-size: 4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* Botones de héroe */
.btn-hero{
  border-radius:9999px;
  font-weight:700;
  padding:.85rem 1.6rem;
}
.btn-hero-solid{
  background:#0d6efd;      /* azul Bootstrap */
  color:#fff; border:0;
  box-shadow:0 10px 24px rgba(13,110,253,.35);
}
.btn-hero-solid:hover{ background:#0b5ed7; color:#fff; }

.btn-hero-ghost{
  background:rgba(255,255,255,.10);
  color:#fff;
  border:2px solid rgba(255,255,255,.85);
}
.btn-hero-ghost:hover{
  background:rgba(255,255,255,.18);
  color:#fff; border-color:#fff;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 992px){
  .hero-header::before{
    /* overlay más fuerte para móvil */
    background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.65));
  }
  .hero-title{                /* reduce display-1 en móvil */
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
  }
  .btn-hero{                  /* botones full-width si quieres */
    width:100%;
    padding: .95rem 1.2rem;
  }
}

/* estilos de blog */
.blog-card{ transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover{ transform: translateY(-8px); box-shadow: 0 1.25rem 2rem rgba(0,0,0,.15); }
.blog-card .img-zoom{ overflow: hidden; }
.blog-card .img-zoom img{ transition: transform .6s ease; transform: scale(1); }
.blog-card:hover .img-zoom img{ transform: scale(1.08); }

.btn-whatsapp{ background:#25D366; border-color:#25D366; color:#fff; }
.btn-whatsapp:hover{ background:#1ebe5d; border-color:#1ebe5d; color:#fff; }

/* Mantener proporción de imagen y cubrir sin cortar raro */
.product-media .ratio { --bs-aspect-ratio: 75%; } /* 4:3 */
.product-img{ width:100%; height:100%; object-fit:cover; }

/* Tipografía y espaciados */
.product-title{ font-weight:800; }
.product-desc{ color:#6c757d; }
.product-price{ font-weight:800; color:#0d6efd; font-size:1.25rem; }

/* Botones acomodados */
.product-actions .btn{ min-width: 160px; }
@media (max-width: 575.98px){
  .product-actions{ gap:.5rem !important; }
  .product-actions .btn{ min-width: unset; flex:1; }
}

/* ====== Modal: galería con miniaturas ====== */
.modal-gallery .gallery-main{
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  background: #f8f9fa;
  height: 360px;                /* ajusta si quieres más alto */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.modal-gallery .gallery-main img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;          /* que no recorte el producto */
  transition: transform .25s ease, transform-origin .05s ease;
  cursor: zoom-in;
}

.modal-gallery .thumbs{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.modal-gallery .thumb{
  width: 95px;                  /* tamaño de miniatura */
  height: 70px;
  object-fit: cover;
  border-radius: .375rem;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  transition: transform .15s ease, border-color .15s ease;
}
.modal-gallery .thumb:hover{ transform: translateY(-2px); }
.modal-gallery .thumb.active{ border-color: #0d6efd; }

/* Precio dentro del modal */
.modal-price{
  font-weight: 800;
  color: #0d6efd;
  font-size: 1.25rem;
}

/* Zoom al pasar el mouse (desktop) */
.modal-gallery .gallery-main:hover img{
  transform: scale(1.15);
}

/* Accesibilidad: si el usuario prefiere menos animación */
@media (prefers-reduced-motion: reduce){
  .modal-gallery .gallery-main img{ transition: none; }
}

/* Soporte toque: al tocar, activamos una clase (ver JS) */
.modal-gallery .gallery-main.touch-zoom img{
  transform: scale(1.15);
  cursor: zoom-out;
}

/* Botón flotante de WhatsApp */
.whatsapp-float{
  position: fixed;
  left: 18px;
  bottom: 82px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  z-index: 4000;
  text-decoration: none;
}
.whatsapp-float i{
  font-size: 28px;
  color: #fff;
  line-height: 1;
}
.whatsapp-float:hover{ transform: translateY(-1px); }
@media (max-width: 576px){
  .whatsapp-float{ left: 14px; bottom: 28px; width: 52px; height: 52px; }
  .whatsapp-float i{ font-size: 26px; }
}
