* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  background: #1a237e;
  color: white;
  padding: 1em 0;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
  background: #3949ab;
}

.carousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fade 36s infinite;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animación principal (cada imagen se muestra 12s) */
@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* Control de tiempos para cada slide (3 imágenes → 12s c/u = 36s total) */
.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 12s;
}

.slide:nth-child(3) {
  animation-delay: 24s;
}

section.content, .about {
  padding: 2em;
  max-width: 900px;
  margin: auto;
}

.about h2, .content h2 {
  color: #1a237e;
  margin-bottom: 10px;
}

.productos-list {
  list-style: disc;
  margin-left: 2em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: auto;
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background: #1a237e;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #3949ab;
}

footer {
  background: #1a237e;
  color: white;
  text-align: center;
  padding: 1.5em;
  margin-top: 2em;
  font-size: 0.9em;
}
