:root{
  --bg:#faf8f2;
  --card:#ffffff;
  --ink:#2a2a2a;
  --muted:#6b6b6b;
  --brand:#1c7c4d;
  --accent:#7fbf77;
  --line:#e6e2da;
  --shadow:0 6px 20px rgba(0,0,0,0.12);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  min-height:100vh;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial;
  display:flex;flex-direction:column;
}

.topbar{
  height:56px; padding:8px 12px;
  display:flex; align-items:center; justify-content:space-between;
  background:var(--bg);
}
.brand{display:flex; align-items:center; gap:8px}
.logo{width:28px;height:28px;object-fit:contain}
.brand-name{font-weight:600; letter-spacing:.3px}

.icon-button{
  border:none; background:#fff; color:var(--ink);
  width:44px; height:44px; border-radius:12px;
  display:grid; place-items:center; box-shadow:var(--shadow);
}
.icon{width:22px;height:22px; fill:var(--ink)}
.cart-button{position:relative}
.cart-count{
  position:absolute; top:-6px; right:-6px;
  background:var(--brand); color:#fff; font-size:12px;
  width:20px; height:20px; border-radius:10px;
  display:grid; place-items:center;
}

/* Segmented tabs */
.segmented{
  padding:8px 8px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.seg-btn{
  min-height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:600;
  color:var(--muted);
}
.seg-btn.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

/* Views container */
.views{flex:1; display:grid; grid-template-columns:1fr; overflow:hidden; padding:8px}
.view{display:none; height:100%;}
.view.active{display:flex; flex-direction:column; gap:8px}

/* Hero mini */
.hero-mini{text-align:center}
.hero-logo{width:48px;height:48px; object-fit:contain; margin:0 auto 4px; display:block}
.hero-mini h1{margin:0; font-size:18px}
.hero-mini p{margin:2px 0 0; color:var(--muted); font-size:13px}

/* Carousel card */
.stage{
  display:flex; align-items:center; justify-content:center;
  gap:8px;
}
.nav-btn{
  width:40px; height:40px; border-radius:12px;
  border:none; background:#fff; box-shadow:var(--shadow);
  font-size:22px; color:var(--ink);
}
.card{
  width: 100%;
  max-width: 520px;
  height: 48vh;
  background:var(--card); border-radius:20px;
  box-shadow:var(--shadow); display:flex; flex-direction:column;
  overflow:hidden;
}
.product-image{
  width:100%; height:60%; object-fit:contain; background:#f2efe7;
}
.info{padding:12px 14px; display:flex; flex-direction:column; gap:8px}
h2{margin:0; font-size:18px}
p{margin:0; color:var(--muted); font-size:14px}
.price-row{display:flex; align-items:center; justify-content:space-between}
.price{font-weight:700; color:var(--brand)}
.actions{display:flex; gap:8px}
.primary, .secondary, .chip{
  min-height:44px; padding:0 16px; border-radius:12px; border:none;
  font-weight:600; letter-spacing:.2px;
}
.primary{background:var(--brand); color:#fff}
.secondary{background:#eef4ef; color:var(--brand)}

/* Chips */
.chips-row{display:flex; gap:8px; overflow:auto; padding:2px 0}
.chips-row.compact .chip{min-height:36px; font-size:13px}
.chip{background:#eef4ef; color:var(--brand); white-space:nowrap}

/* Catalog */
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  overflow:auto;
  flex:1;
}
.catalog-item{
  background:#fff; border-radius:16px; box-shadow:var(--shadow);
  overflow:hidden; display:flex; flex-direction:column;
}
.catalog-item img{
  width:100%; height:110px; object-fit:contain; background:#f2efe7;
}
.catalog-item .ci-body{
  padding:10px; display:flex; flex-direction:column; gap:6px;
}
.catalog-item .ci-title{font-size:15px; margin:0}
.catalog-item .ci-desc{margin:0; font-size:12px; color:var(--muted)}
.catalog-item .ci-row{
  display:flex; align-items:center; justify-content:space-between; margin-top:4px;
}
.catalog-item .ci-price{color:var(--brand); font-weight:700}
.catalog-item .ci-actions{display:flex; gap:6px}

/* Marca (Misión y Visión) */
.mv-block{
  display:flex; gap:12px; align-items:center; background:#fff;
  border-radius:16px; box-shadow:var(--shadow); overflow:hidden;
  padding-right:8px;
}
.mv-image{flex:0 0 36%}
.mv-image img{width:100%; height:100%; max-height:120px; object-fit:contain; background:#f2efe7}
.mv-text h3{margin:8px 0 4px; font-size:16px; padding-right:8px}
.mv-text p{margin:0 0 8px; font-size:13px; color:var(--muted)}

/* Sheets */
.sheet{
  position:fixed; inset:0; background:rgba(0,0,0,.2);
  display:none; align-items:flex-end; justify-content:center; padding:0 8px 8px;
}
.sheet[aria-hidden="false"]{display:flex}
.sheet-content{
  width:100%; max-width:520px; background:#fff; border-radius:16px 16px 12px 12px;
  box-shadow:var(--shadow); max-height:70vh; display:flex; flex-direction:column; overflow:hidden;
}
.sheet-header{display:flex; align-items:center; justify-content:space-between; padding:12px 12px 8px}
.sheet-body{padding:0 12px 12px; overflow:auto}
.sheet-footer{display:flex; align-items:center; justify-content:space-between; padding:8px 12px 12px; border-top:1px solid var(--line)}
.total{font-weight:800; color:var(--brand)}
.cart-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.cart-item{display:flex; align-items:center; justify-content:space-between; background:#f6f6f4; padding:10px; border-radius:12px}

.comment-list{list-style:none; margin:0 0 8px; padding:0; display:flex; flex-direction:column; gap:8px}
.comment-item{background:#f6f6f4; padding:10px; border-radius:12px; color:var(--ink); font-size:14px}
.comment-form{display:flex; flex-direction:column; gap:8px}
.comment-form textarea{
  width:100%; border:1px solid var(--line); border-radius:12px; padding:10px;
  font-family:inherit; font-size:14px; resize:none; background:#fff;
}
button:active{transform:scale(0.98)}

