/* ===================== RESET BÁSICO ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== BODY ===================== */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* ===================== HEADER ===================== */
header {
  background-color: #b74a2e; /* Color ladrillo */
  color: white;
  padding: 10px 20px;
}

header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 10px;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

nav a.active {
  text-decoration: underline;
}

nav a:hover {
  text-decoration: underline;
}

/* ===================== MAIN ===================== */
main {
  padding: 30px 15px;
  text-align: center;
}

/* ===================== BOTONES ===================== */
.btn-whatsapp {
  display: inline-block;
  background-color: #b74a2e;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #9e3f26;
  transform: scale(1.05);
}

/* ===================== IMÁGENES UNIFICADAS ===================== */
img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid #7b1e12; /* marco rojo oscuro */
  box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* sombra negra ligera */
  border-radius: 6px;
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

/* ===================== GRID PRODUCTOS Y GALERÍA ===================== */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card img {
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* ===================== ANIMACIONES FADE-IN ===================== */
.animated-img {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== FOOTER ===================== */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.social-links a {
  color: #ccc;
  margin: 0 5px;
  text-decoration: none;
  font-weight: bold;
}

.social-links a:hover {
  color: #fff;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 10000; /* Siempre encima de todo */
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pulse {
  animation: pulseAnimation 1s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ===================== LIGHTBOX ===================== */
#lightboxOverlay {
  position: fixed;
  display: none;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightboxOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* ===================== FORMULARIO CONTACTO ===================== */
.contact-form {
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 14px;
}

.contact-form button {
  cursor: pointer;
}

/* ===================== GRID INICIO ===================== */
.inicio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 imágenes por fila en PC */
  gap: 20px;
  margin-top: 20px;
}

.inicio-grid img {
  width: 100%;
  height: 250px; /* altura más grande que antes */
  object-fit: cover;
  border: 2px solid #7b1e12; /* marco rojo oscuro */
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.inicio-grid img:hover {
  transform: scale(1.05);
}

/* ===================== RESPONSIVE INICIO ===================== */
@media (max-width: 1024px) {
  .inicio-grid {
    grid-template-columns: 1fr; /* 1 imagen por fila en tablet */
  }
  
  .inicio-grid img {
    height: 220px; /* altura un poco más pequeña en tablet */
  }
}

@media (max-width: 768px) {
  .inicio-grid img {
    height: 200px; /* altura más pequeña en celular */
  }
}


/* ===================== GRID GALERÍA ===================== */
.galeria .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 imágenes por fila en PC */
  gap: 20px;
  margin-top: 20px;
}

.galeria .grid img,
.galeria .grid video {
  width: 100%;
  height: 250px; /* altura uniforme */
  object-fit: cover;
  border: 2px solid #7b1e12; /* marco rojo oscuro */
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.galeria .grid img:hover,
.galeria .grid video:hover {
  transform: scale(1.05);
}

/* ===================== RESPONSIVE GALERÍA ===================== */
@media (max-width: 1024px) {
  .galeria .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 por fila en tablet */
  }
}

@media (max-width: 768px) {
  .galeria .grid {
    grid-template-columns: 1fr; /* 1 por fila en celular */
  }

  .galeria .grid img,
  .galeria .grid video {
    height: 200px; /* altura más pequeña en celular */
  }
}

/* ===================== GRID PRODUCTOS ===================== */
.productos-grid {
  display: flex;
  justify-content: center; /* centra los productos horizontalmente */
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}



