/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* =========================
   BASE
========================= */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fffdf9;
  color: #333;
  scroll-behavior: smooth;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

section {
  padding: 60px 20px;
  scroll-margin-top: 100px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background-color: white;
  color: #4a2c00;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 5px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  justify-content: center;
  padding: 0 60px;
}

.logo img {
  height: 150px;
}

.nav-links {
  display: flex;
  gap: 100px;
}

.nav-links.left {
  justify-content: flex-end;
}

.nav-links.right {
  justify-content: flex-start;
}

.nav-links a {
  color: #4a2c00;
  font-size: larger;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  color: #c23b22;
}

/* =========================
   HERO
========================= */
.hero{
    position:relative;
    height:75vh;
    overflow:hidden;
}

.slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:opacity .8s ease;
}

.slide.active{
    opacity:1;
    z-index:2;
}

.hero-content{
    background:rgba(0,0,0,.55);
    padding:25px;
    border-radius:10px;
    color:white;
    text-align:center;
}

.hero-btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 20px;
    background:#c23b22;
    color:white;
    text-decoration:none;
    border-radius:5px;
}

.hero-btn:hover{
    background:#b99892;
}

.dots{
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:5;
}

.dot{
    width:12px;
    height:12px;
    border:2px solid white;
    border-radius:50%;
    cursor:pointer;
}

.dot.active{
    background:white;
}

.slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;
    transition:opacity .8s ease;
}

.slide.active{
    opacity:1;
    visibility:visible;
}

/* Caja del texto */
.hero-content{
    background:rgba(0,0,0,.55);
    padding:25px;
    border-radius:10px;
    text-align:center;
    color:white;

    /* Estado inicial */
    opacity:0;
    transform:translateY(-60px);
    transition:all .7s ease;
}

/* Cuando el slide aparece */
.slide.active .hero-content{
    opacity:1;
    transform:translateY(0);
}

.slide::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
}

.hero-content{
    position:relative;
    z-index:2;
}
/* =========================
   NOSOTROS
========================= */
.nosotros-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nosotros-texto {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
}

.nosotros-galeria {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.nosotros-galeria img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

/* =========================
   PRODUCTOS
========================= */
.productos {
  background: #f5f5f5;
  text-align: center;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.producto-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.producto-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

.btn-wsp {
  display: inline-block;
  background: #c23b22;
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: auto;
}

.btn-wsp:hover {
  color: #b99892;
}

.categoria-productos{
    width:100%;
    margin:70px 0 35px;
    text-align:center;
    position:relative;
}

.categoria-productos h3{
    display:inline-block;
    padding:0 30px;
    background:#fff;
    color:#8B4513;
    font-size:2rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:2px;
    position:relative;
    z-index:2;
}

.categoria-productos::before{
    content:"";
    position:absolute;
    top:50%;
    left:0;
    width:100%;
    height:2px;
    background:#d8c3a5;
    z-index:1;
}
/* =========================
   CONTACTO
========================= */
.contacto {
  text-align: center;
  background: #fff4ec;
}

.contacto a {
  display: inline-block;
  margin-top: 15px;
  background: #c23b22;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

  /* ---------- VENTAJAS ---------- */

.ventajas{

    background:#faf7f2;
    padding:80px 10%;
    text-align:center;

}

.ventajas h2{

    font-size:2rem;
    color:#7a1d1d;
    margin-bottom:15px;

}

.ventajas-subtitulo{

    max-width:700px;
    margin:auto;
    margin-bottom:50px;
    color:#555;
    line-height:1.6;

}

.ventajas-grid{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
    margin-top:50px;
}

.ventaja{
    flex:1 1 230px;
    max-width:260px;
}

.ventaja{

    background:white;
    padding:35px 25px;
    border-radius:15px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.3s;

}

.ventaja:hover{

    transform:translateY(-8px);

}

.ventaja span{

    font-size:45px;

}

.ventaja h3{

    margin:20px 0 10px;
    color:#7a1d1d;

}

.ventaja p{

    color:#666;
    line-height:1.6;

}
/* =========================
   FOOTER
========================= */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  overflow: hidden;
}

.footer-contenido {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.seguinos img {
  width: 40px;
  display: inline-block;
  margin: 10px auto;
}

.ubicacion iframe {
  width: 100%;
  height: 180px;
  border-radius: 10px;
}

/* =========================
   BOTÓN WHATSAPP
========================= */

.whatsapp-float{

    position:fixed;
    right:25px;
    bottom:25px;

    width:65px;
    height:65px;

    background:#25D366;
    color:white;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:34px;

    text-decoration:none;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

    z-index:9999;

    transition:.3s;

}

.whatsapp-float:hover{

    transform:scale(1.12);

    background:#1ebe5d;

}

.whatsapp-float i{

    line-height:1;

}

/* =========================
   MENU MOBILE
========================= */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-mobile {
  display: none;
}

.nav-mobile a {
  color: #4a2c00;
  font-weight: 800;
  text-decoration: none;
}

.nav-mobile a:hover {
  color: #c23b22;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .logo {
    padding: 0;
  }

  .logo img {
    height: 80px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 200;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    gap: 15px;
    text-align: center;
  }

  .nav-mobile.active {
    display: flex;
  }

  /* HERO */
  .hero {
    height: 60vh;
    padding: 20px;
  }

  /* NOSOTROS */
  .nosotros-container {
    flex-direction: column;
  }

  .nosotros-galeria img {
    height: 140px;
  }

  /* PRODUCTOS */
  .productos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .producto-card img {
    height: auto;        
    max-height: 250px;   
    object-fit: contain; 
  }

  .btn-wsp {
    width: 100%;
    text-align: center;
  }

.ventajas-grid{
    flex-direction: column;
    align-items: center;
}

.ventaja{
    max-width: 100%;
}
  /* FOOTER */
  .footer-contenido {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  footer a {
    font-size: 90%;
  }

  .ubicacion iframe {
    width: 80%;
  }
}