/* Reset de estilos básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Contenedor central */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* CABECERA */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #555;
}

/* SECCIÓN HERO */
.hero {
  background-image: url('img/hero.png'); /* Reemplaza con la imagen de fondo deseada */
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}
.hero-content .btn {
  text-decoration: none;
  padding: 10px 20px;
  background-color: #fff;
  color: #333;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.hero-content .btn:hover {
  background-color: #f5f5f5;
}

/* SECCIÓN DE PRODUCTOS */
.products {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.products h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.product-item {
  background: #fff;
  padding: 20px;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.3s;
}
.product-item img {
  width: 100%;
  height: auto;
}
.product-item:hover {
  transform: translateY(-5px);
}
.product-item h3 {
  margin: 15px 0;
  font-size: 20px;
}
.product-item p {
  font-size: 14px;
  color: #777;
}
.price {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin-top: 10px;
}

/* PIE DE PÁGINA */
footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
footer p {
  font-size: 14px;
}

/* Responsividad */
@media(max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .header-container {
    flex-direction: column;
  }
  nav ul {
    margin-top: 10px;
  }
}
