:root {
  --rojo: #b30000;
  --gris: #1c1c1c;
  --naranja: #ff6600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-attachment: fixed;
  color: white;
}

/* NAV */
nav {
  background: var(--gris);
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav button {
  background: var(--rojo);
  border: none;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

nav button:hover {
  background: var(--naranja);
}

/* SECCIONES */
.section {
  display: none;
  padding: 40px;
  min-height: 100vh;
  text-align: center;
}

.active {
  display: block;
}

/* SLIDER */
.slider {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
}

.slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.active-slide {
  opacity: 1;
  position: relative;
}

/* PRODUCTOS */
.productos {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.card {
  background: var(--gris);
  width: 280px;
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.5s,
    box-shadow 0.5s;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px var(--naranja);
}

.card:hover img {
  transform: scale(1.1);
}

/* CONTACTO */
form {
  max-width: 400px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
}

button {
  background: var(--naranja);
  border: none;
  padding: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: var(--rojo);
}

footer {
  background: var(--gris);
  text-align: center;
  padding: 20px;
}
/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 70px;
  height: 70px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: flotar 2s infinite;
  z-index: 1000;
}

.whatsapp-btn img {
  width: 40px;
}

.whatsapp-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px #25d366;
}

/* Animación suave */
@keyframes flotar {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.carlitos {
  position: absolute;
  top: 10px;
  left: 20px;
}

.carlitos img {
  width: 180px; /* Puedes cambiar el tamaño */
  height: auto;
}
