*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial, sans-serif;
  background:#f8f5ef;
  color:#2d241d;
  padding-bottom:0;
}

/* NAVBAR */

.navbar{
  max-width:1200px;
  margin:auto;
  padding:18px 22px;
  display:grid;
  grid-template-columns:70px 1fr 70px;
  align-items:center;
  position:relative;
  background:#f8f5ef;
}

.logo{
  display:flex;
  justify-content:center;
  align-items:center;
}

.logo img{
  height:95px;
}

.menu-btn{
  width:52px;
  height:52px;
  border:none;
  border-radius:18px;
  background:#f2ece4;
  color:#8b5a3c;
  font-size:24px;
  cursor:pointer;
}

.cart-btn{
  justify-self:end;
  width:56px;
  height:56px;
  border:none;
  border-radius:18px;
  background:#f8f3ec;
  color:#2d241d;
  position:relative;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}

.cart-bag{
  position:absolute;
  left:50%;
  top:50%;
  width:22px;
  height:22px;
  transform:translate(-50%,-40%);
  border:2.5px solid #2d241d;
  border-radius:5px 5px 7px 7px;
}

.cart-bag::before{
  content:"";
  position:absolute;
  left:50%;
  top:-10px;
  width:12px;
  height:10px;
  transform:translateX(-50%);
  border:2.5px solid #2d241d;
  border-bottom:none;
  border-radius:10px 10px 0 0;
}

.cart-count{
  position:absolute;
  top:-7px;
  right:-7px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#8b5a3c;
  color:white;
  font-size:13px;
  font-weight:bold;
  display:flex;
  align-items:center;
  justify-content:center;
}

nav{
  grid-column:1 / 4;
  display:flex;
  justify-content:center;
  gap:30px;
  margin-top:8px;
}

nav a{
  text-decoration:none;
  color:#2d241d;
  font-weight:600;
}

/* HERO */

.hero-banner{
  max-width:1200px;
  height:500px;
  margin:auto;
  background-image:linear-gradient(
    rgba(255,255,255,.12),
    rgba(0,0,0,.08)
  ), url("../images/hero-banner.png");
  background-size:cover;
  background-position:center;
  border-radius:25px;
  display:flex;
  align-items:center;
  padding:70px;
}

.hero-content{
  max-width:440px;
}

.hero-content h1{
  font-size:56px;
  line-height:1.1;
  margin-bottom:18px;
  color:#2d241d;
}

.hero-content p{
  font-size:22px;
  color:#4f453d;
  margin-bottom:24px;
}

.hero-btn{
  display:inline-block;
  background:#17120f;
  color:white;
  text-decoration:none;
  padding:16px 32px;
  border-radius:12px;
  font-weight:bold;
}

.hero-btn:hover{
  background:#000;
}

/* PRODUCTOS */

.section-title{
  max-width:1200px;
  margin:auto;
  padding:35px 22px 10px;
}

.section-title h2{
  font-size:34px;
}

#products{
  max-width:1200px;
  margin:auto;
  padding:20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}

.product-card{
  background:white;
  border-radius:20px;
  padding:20px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  position:relative;
  transition:none !important;
}

.product-image{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:15px;
  margin-bottom:15px;
  backface-visibility:hidden;
}

.product-card h3{
  margin-bottom:10px;
}

.price{
  font-size:20px;
  font-weight:bold;
  margin-bottom:15px;
}

button{
  width:100%;
  border:none;
  padding:12px;
  border-radius:12px;
  background:#8b5a3c;
  color:white;
  font-weight:bold;
  cursor:pointer;
  backface-visibility:hidden;
}

.product-counter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.product-counter button{
  width:45px;
  height:42px;
  padding:0;
  font-size:18px;
}

.product-counter span{
  font-weight:bold;
  font-size:18px;
}

.added-badge{
  position:absolute;
  top:30px;
  right:30px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#8b5a3c;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  backface-visibility:hidden;
}

/* CARRITO */

.cart-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:10;
}

.cart-modal{
  display:none;
  position:fixed;
  top:0;
  right:0;
  width:450px;
  height:100vh;
  background:white;
  z-index:20;
  padding:25px;
  overflow-y:auto;
  box-shadow:-5px 0 20px rgba(0,0,0,.2);
}

.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

#close-cart{
  width:54px;
  height:54px;
  padding:0;
  background:#f3eee7;
  color:#8b5a3c;
  border:1px solid #d8c7b8;
}

.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:16px 0;
  border-bottom:1px solid #eadfd2;
}

.cart-actions{
  display:flex;
  gap:8px;
}

.cart-actions button{
  width:44px;
  height:44px;
  padding:0;
  background:#f3eee7;
  color:#8b5a3c;
  border:1px solid #d8c7b8;
  border-radius:14px;
}

#cart-total{
  margin:22px 0;
}

/* TARJETAS INFO */

.delivery-note{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:20px;
}

.info-card{
  background:#fbf7f1;
  border:1px solid #eadfd2;
  border-radius:16px;
  padding:15px 10px;
  text-align:center;
}

.info-card span{
  display:block;
  font-size:22px;
  margin-bottom:8px;
}

.info-card p{
  font-size:13px;
  font-weight:600;
  color:#8b5a3c;
}

#clear-cart{
  background:#f7e7e5;
  color:#9f3b35;
  border:1px solid #e4b7b2;
  margin-bottom:12px;
  min-height:54px;
  border-radius:16px;
  font-size:16px;
}

#whatsapp-btn{
  background:#25D366;
  min-height:56px;
  border-radius:16px;
  font-size:16px;
}

#whatsapp-btn:disabled{
  background:#b8b8b8;
  cursor:not-allowed;
}

/* BARRA MÓVIL */

.mobile-cart-bar{
  display:none !important;
}

/* TOAST */

.toast{
  display:none;
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  background:#2d241d;
  color:white;
  padding:15px 25px;
  border-radius:14px;
  z-index:50;
  font-weight:bold;
  box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* FOOTER */

footer{
  margin-top:10px;
  background:#f2ece4;
  padding:24px 20px 28px;
  text-align:center;
}

.footer-content h3{
  font-size:24px;
  margin-bottom:6px;
}

.footer-content p{
  color:#6d6258;
  font-size:15px;
  margin-bottom:6px;
}

.footer-content small{
  color:#8a7c70;
  font-size:13px;
}

/* MOBILE PRO */

@media(max-width:768px){

  body{
    padding-bottom:0;
  }

  body:has(.mobile-cart-bar[style*="flex"]){
    padding-bottom:78px;
  }

  .navbar{
    grid-template-columns:56px 1fr 56px;
    padding:12px 18px;
    background:#f8f5ef;
  }

  .logo img{
    height:78px;
  }

  .menu-btn{
    width:48px;
    height:48px;
    border-radius:16px;
    font-size:24px;
  }

  .cart-btn{
    width:50px;
    height:50px;
    border-radius:16px;
  }

  .cart-bag{
    width:21px;
    height:21px;
  }

  nav{
    display:none;
    grid-column:1 / 4;
    flex-direction:column;
    background:white;
    padding:15px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
  }

  nav.active{
    display:flex;
  }

  .hero-banner{
    height:320px;
    padding:24px 20px;
    border-radius:0;
    background-position:75% center;
    align-items:flex-start;
  }

  .hero-content{
    max-width:175px;
    padding-top:34px;
  }

  .hero-content h1{
    font-size:33px;
    line-height:1.06;
    color:#2d241d;
    text-shadow:none;
    margin-bottom:12px;
    letter-spacing:-1.5px;
  }

  .hero-btn{
    padding:13px 24px;
    border-radius:10px;
    background:#17120f;
    font-size:15px;
  }

  .section-title{
    padding:28px 22px 8px;
  }

  .section-title h2{
    font-size:26px;
  }

  #products{
    padding:0 18px 20px;
    display:flex;
    flex-direction:column;
    gap:0;
  }

  .product-card{
    display:grid;
    grid-template-columns:110px 1fr 46px;
    align-items:center;
    gap:14px;
    padding:16px 0;
    background:transparent;
    box-shadow:none;
    border-radius:0;
    border-bottom:1px solid #eadfd2;
  }

  .product-image{
    width:110px;
    height:86px;
    border-radius:14px;
    margin:0;
  }

  .product-card h3{
    font-size:17px;
    margin-bottom:6px;
  }

  .price{
    font-size:15px;
    margin:0;
  }

  .product-card > button{
    width:42px;
    height:42px;
    padding:0;
    border-radius:13px;
    font-size:0;
  }

  .product-card > button::after{
    content:"+";
    font-size:24px;
  }

  .product-counter{
    grid-column:3;
    grid-row:1 / 3;
    display:flex;
    flex-direction:column-reverse;
    gap:6px;
  }

  .product-counter button{
    width:42px;
    height:42px;
    border-radius:13px;
    font-size:20px;
  }

  .product-counter span{
    display:none;
  }

  .added-badge{
    top:8px;
    left:84px;
    right:auto;
    width:26px;
    height:26px;
    font-size:12px;
  }

  .cart-modal{
    width:100%;
    padding:22px;
  }

  .delivery-note{
    grid-template-columns:repeat(3,1fr);
    gap:8px;
  }

  .info-card{
    padding:12px 8px;
  }

  .info-card span{
    font-size:18px;
  }

  .info-card p{
    font-size:11px;
  }

  .mobile-cart-bar{
    position:fixed;
    left:50%;
    right:auto;
    bottom:18px;
    transform:translateX(-50%);
    width:calc(100% - 36px);
    max-width:420px;
    z-index:30;
    background:#17120f;
    color:white;
    border:none;
    border-radius:18px;
    padding:16px 20px;
    justify-content:center;
    align-items:center;
    font-size:16px;
    font-weight:700;
    box-shadow:0 14px 35px rgba(0,0,0,.25);
  }

  footer{
    margin-top:8px;
    padding:24px 18px 30px;
  }
}

/* CARRITO MÁS PRO CON FOTO */

.cart-item{
  display:grid;
  grid-template-columns:64px 1fr auto;
  align-items:center;
  gap:12px;
}

.cart-item-image{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:14px;
}

.cart-item-info strong{
  display:block;
  font-size:16px;
  margin-bottom:4px;
}

.cart-item-info p{
  color:#6d6258;
  margin-bottom:4px;
}

.cart-item-info b{
  font-size:18px;
}

/* BADGE DEL PRODUCTO MÁS VISIBLE */

.added-badge{
  z-index:5;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
  color:white !important;
}

/* TARJETAS INFO MÁS PRO */

.info-card{
  background:linear-gradient(180deg,#fffaf4,#f7efe6);
  border:1.5px solid #e0cbb8;
  box-shadow:0 8px 18px rgba(139,90,60,.08);
}

.info-card span{
  background:white;
  width:34px;
  height:34px;
  margin:0 auto 8px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.info-card p{
  color:#7b4d32;
  font-weight:800;
}

/* MÓVIL */

@media(max-width:768px){

  .cart-item{
    grid-template-columns:58px 1fr;
    gap:12px;
  }

  .cart-actions{
    grid-column:1 / 3;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
    margin-top:8px;
  }

  .cart-actions button{
    width:100%;
    height:46px;
  }

  .cart-item-image{
    width:58px;
    height:58px;
  }

  .delivery-note{
    gap:10px;
  }

  .info-card{
    border-radius:18px;
  }
}
