:root {
  --primary: #6d411e;
  --secondary: #e67e22;
  --accent: #3498db;
  --light: #f9f9f9;
  --dark: #2c3e50;
  --success: #27ae60;
  --sale: #e74c3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  background-color: var(--light);
}

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

/* Header */
header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  color: var(--secondary);
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("img/Logo-networkin.jpeg")
      no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p, #productos p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: #d35400;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Secciones generales */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  font-size: 2.2rem;
  position: relative;
}

section h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 15px auto;
  border-radius: 2px;
}

/* Productos destacados */
#productos {
  background-color: white;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.producto {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto-img {
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.producto:hover .producto-img img {
  transform: scale(1.05);
}

.producto-info {
  padding: 1.5rem;
}

.producto-titulo {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.producto-precio {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.precio-actual {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--sale);
}

.precio-anterior {
  text-decoration: line-through;
  color: #999;
  margin-left: 0.8rem;
}

.descuento {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sale);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 10;
}

.btn-comprar {
  display: block;
  width: 100%;
  background: var(--secondary);
  color: white;
  text-align: center;
  padding: 0.8rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-comprar:hover {
  background: #d35400;
}

/* Beneficios */
.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border-top: 5px solid var(--secondary);
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Testimonios */
#testimonios {
  background-color: var(--light);
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.testimonial {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary);
}

.rating {
  color: #f1c40f;
  margin-bottom: 1rem;
}

/* Promociones */
#promociones {
  background: linear-gradient(to right, var(--primary), #3a546b);
  color: white;
}

#promociones h2 {
  color: white;
}

#promociones h2:after {
  background: var(--secondary);
}

.promo-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contador {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.contador-item {
  background: white;
  color: var(--primary);
  padding: 1rem;
  border-radius: 5px;
  min-width: 80px;
}

.contador-numero {
  font-size: 2rem;
  font-weight: bold;
}

/* Formulario de contacto */
#contacto {
  background-color: white;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--light);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#formContacto {
  display: flex;
  flex-direction: column;
}

#formContacto input,
#formContacto textarea,
#formContacto select {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

#formContacto button {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#formContacto button:hover {
  background-color: #d35400;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-section {
  min-width: 250px;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  margin-right: 15px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  nav {
    margin-top: 1rem;
  }

  nav a {
    margin: 0 0.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .contador {
    flex-wrap: wrap;
  }
}
