/* ========== CONFIGURACIÓN BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* ========== HEADER Y MENÚ HAMBURGUESA ========== */
.header {
  background-color: #452A17;
  color: white;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo img {
  height: 45px;
}

.menu-check {
  display: none;
}

.menu-icon {
  cursor: pointer;
  display: block;
  width: 30px;
  height: 20px;
  position: relative;
}

.barras, .barras::before, .barras::after {
  content: "";
  display: block;
  background: #E3A262;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s;
}

.barras {
  top: 50%;
  transform: translateY(-50%);
}

.barras::before {
  top: -8px;
}

.barras::after {
  bottom: -8px;
}

.nav-principal {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #452A17;
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}

.nav-principal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}

.nav-principal a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.menu-check:checked ~ .nav-principal {
  height: 250px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.menu-check:checked ~ .menu-icon .barras {
  background: transparent;
}

.menu-check:checked ~ .menu-icon .barras::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-check:checked ~ .menu-icon .barras::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ========== SECCIÓN HERO ========== */
.hero {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("img/fondo.jpg") no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* ========== BOTONES ========== */
.boton {
  display: inline-block;
  background-color: #E3A262;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.boton:hover {
  background-color: #fff;
  color: #452A17;
}

/* ========== PRODUCTOS ========== */
.productos {
  padding: 60px 5%;
  text-align: center;
}

.contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.producto {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

/* ========== CONTACTO ========== */
.contacto {
  padding: 60px 5%;
  background: #f4f4f4;
}

.contenedor-contacto {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.campo input, .campo textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

/* ========== FOOTER ========== */
.footer {
  background: #452A17;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ========== ESCRITORIO (RESPONSIVE) ========== */
@media (min-width: 768px) {
  .menu-icon {
    display: none;
  }

  .nav-principal {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    overflow: visible;
  }

  .nav-principal ul {
    flex-direction: row;
    padding: 0;
    gap: 30px;
  }

  .nav-principal a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 4rem;
  }
}