*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Segoe UI', sans-serif;
  background:#f5efe9;
  color:#444;
}

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#ead7c8;
  padding:15px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 6px 15px rgba(0,0,0,.15);
}

.logo-box{
  display:flex;
  align-items:center;
  gap:15px;
}

.logo-box img{
  width:120px;
  height:120px;
  border-radius:50%;
  background:white;
  padding:8px;
}

.logo-box h1{
  font-size:24px;
  color:#5a3e36;
}

.logo-box span{
  font-size:14px;
  color:#7a5a50;
}

nav a{
  margin-left:20px;
  text-decoration:none;
  color:#5a3e36;
  font-weight:600;
}

/* HERO */
.hero{
  background:white;
  padding:100px 10%;
  text-align:center;
}

.hero h2{
  font-size:34px;
  margin-bottom:15px;
}

.botones{
  margin-top:25px;
}

/* BOTONES */
.btn{
  padding:12px 30px;
  border-radius:30px;
  color:white;
  text-decoration:none;
  font-weight:bold;
  margin:6px;
  display:inline-block;
}

.whatsapp{background:#25d366;}
.facebook{background:#1877f2;}

/* BUSCADOR */
.buscador{
  padding:30px;
  background:#fff;
  text-align:center;
}

.buscador input{
  width:60%;
  padding:14px 20px;
  border-radius:30px;
  border:1px solid #ccc;
  font-size:16px;
}

/* CATÁLOGO */
.catalogo{
  padding:80px 10%;
  background:#fff;
}

.producto{
  background:#fff;
  padding:30px;
  border-radius:25px;
  margin-bottom:60px;
  box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.producto h3{
  margin-bottom:8px;
}

.producto .desc{
  color:#666;
  margin-bottom:10px;
}

.precio{
  font-size:20px;
  color:#7a5a50;
}

.galeria{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:15px;
  margin-top:20px;
}

.galeria img{
  width:100%;
  border-radius:18px;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  transition:transform .3s;
}

.galeria img:hover{
  transform:scale(1.05);
}

/* FAMILIA */
.familia{
  padding:80px 15%;
  background:#fff4eb;
  text-align:center;
}

.familia p{
  margin:15px 0;
}

/* CONTACTO */
.contacto{
  padding:60px;
  background:#fff;
  text-align:center;
}

/* MODAL */
#modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  justify-content:center;
  align-items:center;
  z-index:2000;
}

.modal-contenido{
  background:white;
  display:flex;
  gap:25px;
  padding:25px;
  border-radius:25px;
  max-width:90%;
}

.modal-contenido img{
  max-width:420px;
  border-radius:20px;
}

/* FOOTER */
footer{
  padding:20px;
  text-align:center;
  background:#ead7c8;
}

/* COMUNIDAD */
.comunidad{
  padding:80px 15%;
  background:#fff;
  text-align:left;
}

.comunidad h2{
  text-align:center;
  margin-bottom:40px;
}

.post{
  background:#f9f4ef;
  padding:25px;
  border-radius:20px;
  margin-bottom:25px;
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}

.post h3{
  margin-bottom:10px;
  color:#5a3e36;
}

.comentarios{
  background:#fff4eb;
  padding:25px;
  border-radius:20px;
  margin-top:40px;
}

.comentarios textarea{
  width:100%;
  height:120px;
  padding:15px;
  border-radius:15px;
  border:1px solid #ccc;
  margin-bottom:15px;
}

.comentarios input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #ccc;
  margin-bottom:12px;
}

.comentarios button{
  cursor:pointer;
}

/* AJUSTES PARA CELULAR */
@media (max-width: 768px) {

  .header{
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  nav a{
    margin: 8px;
    display: inline-block;
  }

  .logo-box{
    flex-direction: column;
  }

  .logo-box img{
    width: 90px;
    height: 90px;
  }

  .modal-contenido{
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-contenido img{
    max-width: 100%;
  }

  .buscador input{
    width: 90%;
  }
}
