:root {
  --bg: #f1efea;
  --white: #ffffff;
  --ink: #16181c;
  --muted: #5b5f66;
  --line: #e2ded6;
  --blue: #1767c0;
  --blue-dk: #0f4f97;
  --dark: #1e2126;
  --r: 14px;
  --r-sm: 8px;
  --wrap: 1120px;
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.8em; }
.lead { font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 1.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: var(--r-sm); padding: 12px 22px; font: 600 0.95rem var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--blue-dk); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f7f6f2; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(241,239,234,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1rem var(--head); color: var(--ink); text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 0.95rem; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--blue); }
.cart-count { background: #fff; color: var(--blue); border-radius: 99px; min-width: 20px; padding: 0 6px; font-size: 0.75rem; line-height: 20px; }

/* Sections */
.sec { padding: 88px 0; }
.sec.white { background: var(--white); }
.hero { padding: 64px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-img { border-radius: var(--r); aspect-ratio: 4/4.3; object-fit: cover; width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; font-weight: 500; }
.ticks li::before { content: "✓ "; color: var(--blue); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.num { display: block; font: 700 1.5rem var(--head); color: var(--blue); margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04); }
.product > a img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product h3 a { color: var(--ink); text-decoration: none; }
.price { font: 700 1.6rem var(--head); margin: 0 0 0.4em; font-variant-numeric: tabular-nums; }
.dash { list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.9rem; }
.dash li { padding: 6px 0; border-top: 1px solid var(--line); }
.dash li::before { content: "— "; color: var(--muted); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 16px; }
label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
select, input[type=number] { font: 500 0.95rem var(--body); color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; width: 100%; }
select:focus, input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.product .btn { align-self: flex-start; }

/* PDP */
.pdp-img { border-radius: var(--r); width: 100%; aspect-ratio: 4/4.5; object-fit: cover; }
.two-col > .product { background: none; border: 0; box-shadow: none; }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 24px 0 0; border-radius: var(--r-sm); overflow: hidden; }
.spec th { background: var(--dark); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.spec td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec tr:nth-child(even) td { background: var(--bg); }

/* Calculator */
.calc { display: grid; gap: 14px; background: var(--bg); }
.calc h3 { margin: 0; }
.calc-out { border-top: 1px solid var(--line); padding-top: 14px; }
.calc-n { font: 700 2.2rem var(--head); margin: 0; }
.calc-price { font: 700 1.3rem var(--head); }
.calc-price .muted { font: 400 0.85rem var(--body); }

/* Story */
.story img { border-radius: var(--r); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }
.story { align-items: center; }
.sig { font-weight: 600; font-size: 0.9rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; font-size: 0.95rem; }

/* Footer */
.footer { background: var(--dark); color: #fff; padding: 72px 0 32px; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 40px; border-bottom: 1px solid #343840; }
.footer-cta h2 { margin: 0; flex-basis: 100%; }
.footer-cta p { margin: 0; color: #b9bdc4; }
.footer-small { padding-top: 24px; font-size: 0.78rem; color: #9097a1; }
.footer-small p { margin: 0 0 6px; }
.footer a { color: #cfd6e0; }

/* Cart */
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 50; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,.15); }
.cart[hidden], .cart-backdrop[hidden] { display: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart-head h3 { margin: 0; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; cursor: pointer; padding: 6px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.empty { color: var(--muted); padding: 24px 0; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.line-price { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.delivery { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.delivery legend { font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.delivery label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.cart-totals > div { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 3px 0; font-variant-numeric: tabular-nums; }
.cart-totals .total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); margin: 6px 0 14px; padding-top: 10px; }
.cart-error { color: #b42318; font-size: 0.85rem; margin-top: 10px; }

/* Prose */
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p { color: #33363b; }

@media (max-width: 860px) {
  .hero-in, .two-col, .products, .steps { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 4/3; }
  .sec { padding: 64px 0; }
  .nav-links a { display: none; }
  .opts { grid-template-columns: 1fr; }
}
