:root {
  --color-principal: #1265a6;
  --color-oscuro: #1b1d39;
  --color-gris: #706f6f;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: var(--color-oscuro);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding: 6rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-principal);
  font-size: 2.2rem;
}

.grid-productos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 600px) {
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-productos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.producto {
  display: flex;
  flex-direction: row;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 400px;
  background-color: #fff;
}

.producto:hover {
  transform: scale(1.03);
}

.cuadro-imagen {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}

.producto:hover .cuadro-imagen {
  filter: brightness(1);
}

.cuadro-info {
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-gris) 40%, var(--color-principal) 60%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: white;
}

.nombre-producto {
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  text-align: right;
}

/* FOOTER PEGADO ABAJO */
.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
}

.logo-footer img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-principal);
  font-weight: bold;
}

.footer .direccion,
.footer .contacto,
.footer .redes {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer .redes a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer .redes a:hover {
  color: var(--color-principal);
}

/* WHATSAPP FLOTANTE */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 9999;
  gap: 10px;
}

.whatsapp-label {
  background-color: white;
  color: #25D366;
  padding: 10px 15px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-container:hover .whatsapp-label {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float {
  background-color: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 2rem;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

