@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --brown-dark: #2c1a0e;
  --brown-mid: #5c3317;
  --brown-light: #8b5e3c;
  --cream: #f5efe6;
  --gold: #c9923f;
  --text: #3b2007;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
}

/* NAV */
nav {
  background: var(--brown-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 2rem;
  height: 80px; /* altura fija */
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.5rem;
}
.logo span { color: #fff; font-size: 0.8rem; display: block; font-family: 'Lato', sans-serif; letter-spacing: 3px; }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { color: var(--cream); text-decoration: none; font-size: 0.9rem; letter-spacing: 1px; transition: color .3s; }
nav ul a:hover { color: var(--gold); }
.cart-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: .5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  font-family: 'Lato', sans-serif;
}
.cart-count {
  background: var(--brown-dark);
  color: #fff;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 60%, var(--brown-light) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; }
.hero-badge {
  background: var(--gold);
  color: #fff;
  padding: .3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: #fff;
  padding: .9rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,146,63,0.4); }
.btn-outline {
  background: transparent;
  color: #fff;
  padding: .9rem 2rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: border-color .2s;
}
.btn-outline:hover { border-color: var(--gold); }

/* ABOUT STRIP */
.strip {
  background: var(--brown-dark);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.strip span { color: var(--gold); margin: 0 1.5rem; }

/* PRODUCTS */
section { padding: 5rem 2rem; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--brown-dark);
  margin-bottom: .5rem;
}
.section-title p { color: var(--brown-light); font-size: 1rem; }
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44,26,14,0.1);
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(44,26,14,0.15); }
.product-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}
.product-img.choc { background: linear-gradient(135deg, #3d1e0a, #7a3b1e); }
.product-img.polvo { background: linear-gradient(135deg, #5c2c0a, #a0622a); }
.product-img.aceite { background: linear-gradient(135deg, #2a1a05, #6b4512); }
.badge-new {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  padding: .2rem .7rem;
  border-radius: 10px;
  letter-spacing: 1px;
}
.product-info { padding: 1.5rem; }
.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: .5rem;
  color: var(--brown-dark);
}
.product-info p { font-size: 0.9rem; color: #7a6a5a; line-height: 1.6; margin-bottom: 1rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.add-btn {
  background: var(--brown-dark);
  color: #fff;
  border: none;
  padding: .5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background .2s;
  font-family: 'Lato', sans-serif;
}
.add-btn:hover { background: var(--gold); }

/* CONTACT */
#contacto { background: var(--brown-dark); }
#contacto .section-title h2 { color: var(--cream); }
#contacto .section-title p { color: rgba(245,239,230,0.6); }
#contacto .section-title::after { background: var(--gold); }
.contact-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,146,63,0.3);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; color: var(--cream); font-size: 0.85rem; margin-bottom: .4rem; letter-spacing: 1px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,146,63,0.3);
  border-radius: 8px;
  color: var(--cream);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
}
.form-group select option { background: var(--brown-dark); }
.form-group textarea { height: 120px; resize: vertical; }
.file-drop {
  border: 2px dashed rgba(201,146,63,0.4);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  color: rgba(245,239,230,0.6);
  font-size: 0.9rem;
  transition: border-color .2s, background .2s;
}
.file-drop:hover { border-color: var(--gold); background: rgba(201,146,63,0.05); }
.file-drop.dragover { border-color: var(--gold); background: rgba(201,146,63,0.1); }
.form-success {
  display: none;
  text-align: center;
  color: var(--gold);
  padding: 1rem;
  font-size: 1.1rem;
}

/* FOOTER */
footer {
  background: #1a0d05;
  color: rgba(245,239,230,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
footer strong { color: var(--gold); }

/* CART SIDEBAR */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity .3s;
}
.cart-overlay.open { display: block; opacity: 1; }
.cart-sidebar {
  position: fixed;
  top: 0; right: -400px;
  width: 380px;
  height: 100%;
  background: var(--cream);
  z-index: 201;
  transition: right .3s;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  background: var(--brown-dark);
  color: #fff;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
.close-cart { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(44,26,14,0.1);
}
.cart-item-icon { font-size: 2rem; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; color: var(--brown-dark); }
.cart-item-info p { font-size: 0.85rem; color: var(--gold); }
.qty-controls { display: flex; align-items: center; gap: .4rem; }
.qty-btn {
  background: var(--brown-dark);
  color: #fff;
  border: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.cart-footer { padding: 1.5rem; border-top: 2px solid var(--gold); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 1rem; }
.cart-empty { text-align: center; color: var(--brown-light); padding: 3rem 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }