/* Sección general */
.banner-cuadros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

/* Cada cuadro */
.cuadro {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.cuadro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Efecto hover: zoom */
.cuadro:hover img {
  transform: scale(1.1);
}

/* Overlay con texto */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 102, 204, 0.6); /* Azul semitransparente */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

/* Hover muestra el overlay y el texto */
.cuadro:hover .overlay {
  opacity: 1;
}

.cuadro:hover .overlay h3 {
  transform: translateY(0);
  opacity: 1;
}
/* Carrusel */
.carousel-item img {
  height: 75vh;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 1.5s ease-in-out;
}
.carousel-item img:hover {
  transform: scale(1.1);
}
.carousel-caption {
  background: rgba(0,0,0,0.5);
  padding: 15px;
  border-radius: 10px;
  animation: fadeInUp 2s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cuadros de categorías */
.banner-cuadros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}
.cuadro {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}
.cuadro img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #111;
  transition: transform 0.6s ease;
}
.cuadro:hover img {
  transform: scale(1.1);
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(220, 53, 69, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.overlay h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}
.cuadro:hover .overlay {
  opacity: 1;
}
.cuadro:hover .overlay h3 {
  transform: translateY(0);
  opacity: 1;
}
/* reset.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}


.carousel-item img {
  height: 75vh;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 1.5s ease-in-out;
}
.carousel-item img:hover {
  transform: scale(1.05);
}

/* Animación de los captions */
.caption-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}
.carousel-item-next .caption-anim,
.carousel-item-prev .caption-anim {
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}
.card-img-top {
  height: 180px;
  object-fit: cover;
}
/* Estilo especial para catálogo tipo e-commerce */
.product-card {
  border: 2px solid #dc3545; /* filo rojo */
  border-radius: 12px;       /* esquinas suaves */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}
.card img {
  width: 100%;        /* la imagen ocupa todo el ancho */
  height: 200px;      /* altura fija para todas las imágenes */
  object-fit: cover;  /* recorta y centra la imagen */
  border-radius: 8px; /* opcional: bordes redondeados */
}
.card-img {
  width: 100%;
  height: 200px;
  background-size: cover;    /* recorta como un marco */
  background-position: center; /* centra la imagen */
  border-radius: 8px 8px 0 0;  /* solo arriba redondeado */
}
/* Control de imágenes dentro de las tarjetas */
.product-card img {
  width: 100%;
  height: 400px;        /* altura fija para todas las imágenes */
  object-fit: cover;    /* recorta la imagen y la centra */
  object-position: center;
  border-bottom: 2px solid red; /* toque elegante con filo rojo */
}

.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .btn-whatsapp:hover {
    transform: scale(1.1);
    background: #20b954;
  }
