/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cinzel Decorative', sans-serif;
}

/* Hacer scroll suave para anclas internas */
html {
  scroll-behavior: smooth;
}

/* HEADER */
.header {
  background: #ffdbedd7;
  border-bottom: 1px solid #ff4da600;
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa logo (izq) y nav (der) */
  padding: 16px 24px;
  gap: 16px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 64px; /* aumentado desde 90px */
  width: auto;
  display: block;
}

/* Responsive: reducir logo en pantallas pequeñas */
@media (max-width: 700px) {
  .logo-container img {
    height: 48px;
  }
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #381825;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Opcional: efecto hover */
.nav a:hover {
  color: #ff4da6;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none; /* visible solo en móvil */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #381825;
  margin: 4px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* estado activo (cruz) */
.nav-toggle.is-active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Responsive: en pantallas pequeñas apilar o compactar */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .logo-container img {
    height: 56px;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
  }

  /* mostrar nav cuando tenga la clase open */
  .nav.open {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    background: transparent;
  }

  .nav-toggle { display: flex; }

  .banner {
    height: 320px;
  }

  .banner-text {
    padding: 18px 28px;
  }

  .banner-text h1 { font-size: 36px; }
  .banner-text p { font-size: 15px; }

  .seccion { padding: 40px 20px; }
  .seccion h2 { font-size: 26px; margin-bottom: 24px; }

  .productos { gap: 20px; }
  .producto { padding: 12px; }
  .producto h3 { font-size: 16px; }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .logo-container img { height: 44px; }

  .nav a {
    font-size: 12px;
    padding: 6px 6px;
  }

  .banner {
    height: 240px;
    background-position: center top;
  }

  .banner-text {
    padding: 14px 18px;
    border-radius: 12px;
  }

  .banner-text h1 { font-size: 28px; }
  .banner-text p { font-size: 13px; }

  .seccion { padding: 28px 14px; }
  .seccion h2 { font-size: 20px; }

  .productos {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .producto img {
    height: 220px;
    object-fit: cover;
  }

  .producto { padding: 10px; border-radius: 12px; }
  .producto h3 { font-size: 15px; }
  .producto span { font-size: 14px; }

  .whatsapp {
    right: 14px;
    bottom: 14px;
    font-size: 22px;
    padding: 12px 14px;
  }
}

/* BANNER */
.banner {
  height: 420px;
  background: url("../img/banner.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text {
  background: rgba(255, 226, 226, 0.925);
  padding: 30px 50px;
  border-radius: 20px;
  text-align: center;
}

.banner-text h1 {
  font-size: 48px;
  color: #ff4da6;
}

.banner-text p {
  font-size: 18px;
  margin-top: 10px;
  color: #444;
}

/* SECCIÓN PRODUCTOS */
.seccion {
  padding: 60px 40px;
}

.seccion h2 {
  text-align: center;
  color: #ff4da6;
  font-size: 32px;
  margin-bottom: 40px;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.producto {
  border: 1px solid #ffd6ec;
  border-radius: 15px;
  text-align: center;
  padding: 15px;
  transition: transform .3s;
}

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

.producto img {
  width: 100%;
  border-radius: 12px;
}

.producto h3 {
  margin: 15px 0 5px;
  color: #ff4da6;
}

.producto span {
  font-weight: bold;
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 26px;
  padding: 14px 16px;
  border-radius: 50%;
  text-decoration: none;
}

/* Evitar que el header tape el contenido anclado */
.banner,
.seccion {
  scroll-margin-top: 90px; /* ajustar según altura real del header */
}
