/* ============ Origen 2400 ============ */
:root {
  --cream: #F4EDE2;
  --paper: #FBF7F0;
  --coffee: #3B2416;
  --coffee-2: #5A3A26;
  --terra: #B5562F;
  --olive: #6B7246;
  --mustard: #C9962E;
  --muted: #7A6A5C;
  --line: rgba(59, 36, 22, .14);
  --error: #B0412A;
  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body: 'Work Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--coffee); font: 400 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--coffee); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
em { font-style: italic; color: var(--terra); }
p { margin: 0; }
.eyebrow { font: 600 .75rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--terra); }
.lead { color: var(--muted); font-size: 1.08rem; }
.note { color: var(--muted); font-size: .85rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn.big { width: 100%; padding: 17px; font-size: 1.02rem; }
.btn-dark { background: var(--coffee); color: var(--paper); }
.btn-dark:hover { background: var(--terra); }
.btn-dark.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn-light { background: var(--paper); color: var(--coffee); }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: var(--coffee); color: var(--coffee); }
.btn-outline:hover { background: var(--coffee); color: var(--paper); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }
.btn-small { padding: 9px 16px; font-size: .85rem; background: var(--coffee); color: var(--paper); }
.btn-small:hover { background: var(--terra); }
.link-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Barra de demostración y navegación ---------- */
.demo-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 8px 16px; background: #0C0B0E; color: #D9D2C4; font-size: .78rem; text-align: center; }
.demo-bar a { color: #E2B34E; font-weight: 600; text-underline-offset: 3px; }
.demo-bar .demo-brand { text-decoration: none; }
.nav-bar { position: sticky; top: 0; z-index: 60; background: rgba(251, 247, 240, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--coffee); }
.logo svg { width: 40px; height: 40px; color: var(--coffee-2); }
.logo span { display: grid; line-height: 1; }
.logo b { font: 600 1.05rem/1 var(--f-body); letter-spacing: .3em; }
.logo i { font: italic 400 1.15rem/1 var(--f-display); color: var(--terra); letter-spacing: .08em; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--coffee); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--terra); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ---------- Secciones ---------- */
section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }
.section-head.split { grid-template-columns: 1fr auto; align-items: end; }
.page-head { padding: 64px 0 28px; }
.page-head.small { padding-bottom: 8px; }
.page-head h1 { margin-top: 14px; font-size: clamp(2.4rem, 5vw, 4rem); }

/* ---------- Inicio ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: center; color: #fff; padding: 0; isolation: isolate; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 18, 10, .78) 0%, rgba(30, 18, 10, .45) 45%, rgba(30, 18, 10, .05) 80%); }
.hero-content { display: grid; gap: 20px; max-width: 640px; margin-left: max(24px, (100% - var(--max)) / 2); padding: 100px 0; }
.hero .eyebrow { color: #F2C9A5; }
.hero em { color: #F2C9A5; }
.hero p { font-size: 1.12rem; color: rgba(255, 255, 255, .88); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.benefits { padding: 0; background: var(--coffee); color: var(--cream); }
.benefits ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefits li { padding: 26px 22px; display: grid; gap: 2px; }
.benefits li + li { border-left: 1px solid rgba(244, 237, 226, .14); }
.benefits b { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
.benefits span { font-size: .88rem; color: rgba(244, 237, 226, .65); }

.origin { background: var(--cream); }
.origin-grid, .roast-grid, .brew { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.origin-media { position: relative; padding-bottom: 60px; }
.origin-media img { border-radius: 20px; }
.origin-inset { position: absolute; right: -24px; bottom: 0; width: 46%; border: 6px solid var(--cream); box-shadow: 0 24px 50px -24px rgba(59, 36, 22, .5); }
.origin-copy, .roast-copy, .brew-copy { display: grid; gap: 20px; align-content: center; }
.origin-copy > p, .roast-copy > p { color: var(--muted); font-size: 1.05rem; }
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stats li { display: grid; gap: 2px; padding-top: 16px; border-top: 2px solid var(--terra); }
.stats b { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; }
.stats span { font-size: .85rem; color: var(--muted); }
.roast-grid { grid-template-columns: .9fr 1.1fr; }
.roast-copy .btn { justify-self: start; }
.roast-img { border-radius: 20px; }
.brew { grid-template-columns: .8fr 1.2fr; }
.brew-img { width: 100%; border-radius: 200px 200px 20px 20px; aspect-ratio: 4 / 5; object-fit: cover; }
.origin-grid > *, .roast-grid > *, .brew > *, .checkout-grid > *, .product > * { min-width: 0; }
.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.methods li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.methods b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.methods span { color: var(--muted); font-size: .92rem; }
.brew-copy .btn { justify-self: start; margin-top: 6px; }
.gift { padding-top: 0; }
.gift-card { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; background: var(--cream); border-radius: 28px; padding: 32px 48px 32px 32px; }
.gift-card img { border-radius: 18px; }
.gift-card > div { display: grid; gap: 16px; }
.gift-card p { color: var(--muted); }
.gift-card .btn { justify-self: start; }

/* ---------- Tarjetas de producto ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(59, 36, 22, .45); }
.card-media { position: relative; display: block; background: #F3EBDD; aspect-ratio: 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--coffee); color: var(--paper); font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 18px 18px 20px; display: grid; gap: 6px; align-content: start; }
.card-body small { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-body h3 { font-size: 1.25rem; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--terra); }
.notes { color: var(--muted); font-size: .88rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.price { font-size: .85rem; color: var(--muted); }
.price b { font-size: 1.1rem; color: var(--coffee); }

/* ---------- Tienda ---------- */
.shop { padding-top: 24px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--coffee); }
.chip[aria-pressed="true"] { background: var(--coffee); color: var(--paper); border-color: var(--coffee); }
.sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.sort select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--coffee); }
.results { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }

/* ---------- Producto ---------- */
.product-page { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--terra); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.product-media { position: relative; border-radius: 24px; overflow: hidden; background: #F3EBDD; position: sticky; top: 100px; }
.product-info { display: grid; gap: 18px; }
.product-info h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.price-big { font: 400 2rem/1 var(--f-display); }
.tasting { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tasting li { padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); font-size: .88rem; font-weight: 500; }
.options { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.options legend { font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.options label { cursor: pointer; position: relative; }
.options input { position: absolute; opacity: 0; }
.options span { display: grid; gap: 2px; padding: 12px 20px; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; font-weight: 600; transition: all .2s; }
.options small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.options input:checked + span { border-color: var(--coffee); background: var(--coffee); color: var(--paper); }
.options input:checked + span small { color: rgba(251, 247, 240, .75); }
.options input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.buy { display: flex; gap: 12px; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .9rem; }
.qty.big button { width: 44px; height: 50px; }
.qty.big input { width: 40px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty.big input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.perks li::before { content: '✓'; color: var(--olive); font-weight: 700; margin-right: 8px; }
.specs { margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.specs div { background: #fff; padding: 14px 16px; display: grid; gap: 2px; }
.specs .wide { grid-column: 1 / -1; }
.specs dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.related { padding-top: 0; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; }
.field label { font-size: .9rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 400; font-size: .97rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--coffee); box-shadow: 0 0 0 4px rgba(181, 86, 47, .14); }
.field.invalid input { border-color: var(--error); }
.field-error { display: none; font-size: .8rem; font-weight: 400; color: var(--error); }
.field.invalid .field-error { display: block; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Checkout ---------- */
.checkout { padding-top: 32px; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.checkout-form { display: grid; gap: 22px; }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 26px; margin: 0; display: grid; gap: 16px; background: #fff; }
.checkout-form legend { font: 400 1.35rem/1 var(--f-display); padding: 0 8px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice:has(input:checked) { border-color: var(--coffee); background: var(--cream); }
.choice input { margin-top: 4px; accent-color: var(--terra); width: 18px; height: 18px; flex: none; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); font-size: .85rem; }
.delivery-fields { display: grid; gap: 16px; }
.summary { position: sticky; top: 100px; background: var(--cream); border-radius: 22px; padding: 26px; display: grid; gap: 18px; }
.summary h2 { font-size: 1.6rem; }
.summary-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.summary-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; position: relative; font-size: .9rem; }
.summary-items img { border-radius: 10px; background: #fff; }
.summary-items small { display: block; color: var(--muted); font-size: .8rem; }
.si-qty { position: absolute; left: 42px; top: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--coffee); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.totals { margin: 0; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; }
.totals .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.2rem; }
.totals .total dt, .totals .total dd { color: var(--coffee); font-weight: 700; }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 60px 20px; background: var(--cream); border-radius: 24px; }

/* ---------- Pasarela (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(30, 18, 10, .6); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(420px, 100%); background: var(--paper); border-radius: 24px; padding: 28px; display: grid; gap: 16px; text-align: center; }
.demo-tag { justify-self: center; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8A6A1E; background: #F6E7C1; padding: 6px 12px; border-radius: 999px; }
.test-card { text-align: left; color: #fff; border-radius: 18px; padding: 20px; display: grid; gap: 14px; background: linear-gradient(135deg, var(--coffee), var(--terra)); box-shadow: 0 20px 40px -20px rgba(59, 36, 22, .7); }
.test-card > span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.test-card b { font-size: 1.3rem; letter-spacing: .12em; font-weight: 600; }
.test-card div { display: flex; gap: 24px; font-size: .88rem; opacity: .9; }
.modal-note { font-size: .82rem; color: var(--muted); }

/* ---------- Pedidos ---------- */
.orders { padding-top: 28px; }
.orders .note { margin-bottom: 20px; }
.confirm { display: flex; gap: 18px; align-items: flex-start; background: #EEF0E4; border: 1px solid rgba(107, 114, 70, .35); border-radius: 20px; padding: 22px; margin-bottom: 24px; }
.confirm svg { width: 34px; height: 34px; color: var(--olive); flex: none; }
.confirm h2 { font-size: 1.5rem; margin-bottom: 6px; }
.confirm p { color: var(--muted); }
.order { background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 16px; overflow: hidden; }
.order.is-new { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(107, 114, 70, .15); }
.order header, .order footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.order header { border-bottom: 1px solid var(--line); }
.order header div { display: grid; }
.order header small, .order footer small { color: var(--muted); font-size: .82rem; display: block; }
.order ul { list-style: none; margin: 0; padding: 12px 20px; display: grid; gap: 8px; }
.order li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.order li small { color: var(--muted); }
.order footer { background: var(--cream); font-size: .9rem; }
.status { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.status.ok { background: #E5EBD7; color: #4D5730; }
.status.wait { background: #F6E7C1; color: #8A6A1E; }

/* ---------- Carrito lateral ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(30, 18, 10, .45); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: var(--paper); display: grid; grid-template-rows: auto auto 1fr auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); visibility: hidden; }
.cart.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.6rem; }
.free-ship { margin: 0; padding: 10px 22px; font-size: .85rem; background: #EEF0E4; color: #4D5730; }
.free-ship:empty { display: none; }
.cart-items { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; }
.cart-items li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-items img { border-radius: 12px; background: #F3EBDD; }
.ci-info { display: grid; gap: 4px; }
.ci-info a { font-weight: 600; text-decoration: none; }
.ci-info small { color: var(--muted); font-size: .8rem; }
.ci-info .qty { justify-self: start; margin-top: 4px; }
.cart-items .empty { display: block; text-align: center; color: var(--muted); padding: 40px 0; border: 0; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, 20px); background: var(--coffee); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Volver arriba ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--terra); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 26px -12px rgba(59, 36, 22, .6); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background-color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--coffee); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
footer[data-layout] { background: var(--coffee); color: rgba(244, 237, 226, .75); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; }
.footer-grid .logo { color: var(--cream); }
.footer-grid .logo svg, .footer-grid .logo i { color: #E8A27E; }
.footer-grid p { margin-top: 14px; font-size: .9rem; max-width: 34ch; }
.footer-grid h4 { margin: 0 0 12px; color: var(--cream); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #E8A27E; }
.credit { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(244, 237, 226, .14); font-size: .8rem; text-align: center; }
.credit a { text-decoration: none; }
.credit b { color: #E2B34E; }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cart, .toast, .to-top, .card, .card-media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .origin-grid, .roast-grid, .brew, .checkout-grid, .product { grid-template-columns: 1fr; }
  .origin-inset { right: 12px; }
  .product-media, .summary { position: static; }
  .benefits ul { grid-template-columns: repeat(2, 1fr); }
  .benefits li:nth-child(3) { border-left: 0; }
  .benefits li:nth-child(n+3) { border-top: 1px solid rgba(244, 237, 226, .14); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brew-img { max-width: 420px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav-toggle { display: grid; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1.05rem; }
  .hero-content { margin: 0 16px; padding: 80px 0; }
  .hero::before { background: linear-gradient(180deg, rgba(30, 18, 10, .45), rgba(30, 18, 10, .8)); }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 14px; }
  .card-body h3 { font-size: 1.05rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .section-head.split { grid-template-columns: 1fr; }
  .benefits ul, .stats { grid-template-columns: 1fr; }
  .benefits li + li { border-left: 0; border-top: 1px solid rgba(244, 237, 226, .14); }
  .gift-card { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .row { grid-template-columns: 1fr; }
  .buy { flex-direction: column; }
  .qty.big { justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
