@font-face { font-family: Inter; font-weight: 200; font-display: swap; src: url(../fonts/Inter-ExtraLight.woff) format("woff"); }
@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(../fonts/Inter-Light.woff) format("woff"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/Inter-Regular.woff) format("woff"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/Inter-Medium.woff) format("woff"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/Inter-SemiBold.woff) format("woff"); }

:root {
  --bg: #F4F4F2;
  --ink: #111111;
  --muted: #555552;
  --soft: #6E6E6A;
  --line: #DCDCD8;
  --card: #FFFFFF;
  --dark: #111111;
  --on-dark: #EDEDEA;
  --on-dark-muted: #BDBDB8;
  --accent: #8C7318;
  --accent-on-dark: #C9AB3C;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: #6B5A12; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.kicker { font-size: 12px; letter-spacing: .3em; font-weight: 500; color: var(--accent); text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* barra superior y cabecera */
.topbar { background: var(--dark); color: var(--on-dark); font-size: 12px; letter-spacing: .08em; text-align: center; padding: 10px 16px; }
.header { border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; padding-bottom: 20px; }
.brand img { width: 260px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 13px; letter-spacing: .06em; }
.nav a { text-decoration: none; padding: 8px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: #fff; background: #000; }
.btn-light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* portada */
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-weight: 300; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.01em; margin: 24px 0; }
.hero p { font-size: 17px; line-height: 1.65; color: #444; max-width: 470px; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img { background: var(--card); aspect-ratio: 1 / 1; max-height: 480px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.hero-img img { width: 100%; height: 100%; object-fit: contain; }

.section { padding-bottom: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 30px; }
.section-head h2 { font-size: 13px; letter-spacing: .3em; font-weight: 500; text-transform: uppercase; }
.grid { display: grid; gap: 20px; }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid-prod { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.tile .ph { background: var(--card); aspect-ratio: 1 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 22px; }
.tile .ph img { width: 100%; height: 100%; object-fit: contain; }
.tile .label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.tile .name { font-size: 15px; font-weight: 500; }
.tile .price { font-size: 15px; }
.tile .price small, .muted { color: var(--soft); font-size: 12px; }

.dark { background: var(--dark); color: var(--on-dark); }
.dark .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.dark .kicker { color: var(--accent-on-dark); }
.dark h2 { font-weight: 300; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; margin: 24px 0; }
.dark p { font-size: 16px; line-height: 1.7; color: var(--on-dark-muted); max-width: 460px; margin: 0 0 32px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 28px; padding: 26px 0; border-top: 1px solid #3A3A38; }
.steps li:last-child { border-bottom: 1px solid #3A3A38; }
.steps .n { font-weight: 200; font-size: 28px; color: var(--accent-on-dark); width: 40px; flex: none; }
.steps b { display: block; font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.steps span { font-size: 14px; color: var(--on-dark-muted); line-height: 1.6; }

.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-top: 60px; padding-bottom: 40px; font-size: 13px; line-height: 1.8; color: #444; }
.footer h3 { font-size: 11px; letter-spacing: .24em; font-weight: 400; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; }
.footer a { display: block; }

/* pack */
.page-head { padding-top: 48px; padding-bottom: 20px; }
.page-head h1 { font-weight: 300; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; margin: 14px 0; }
.page-head p { margin: 0; font-size: 16px; color: #444; max-width: 640px; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); background: var(--card); padding: 10px 14px; }
.pack { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 24px; padding-bottom: 96px; }
.pack-list { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 52px; }
.pack-group h2 { font-size: 13px; letter-spacing: .3em; font-weight: 500; text-transform: uppercase; border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 18px; scroll-margin-top: 16px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.item { background: var(--card); display: flex; flex-direction: column; outline: 1px solid transparent; }
.item.on { outline: 1px solid var(--ink); }
.item .ph { aspect-ratio: 5 / 4; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 16px; }
.item .ph img { width: 100%; height: 100%; object-fit: contain; }
.item .body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.item .nm { font-size: 13.5px; font-weight: 500; line-height: 1.35; min-height: 36px; }
.item .pr { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid #CFCFCA; margin-top: auto; }
.qty button { width: 44px; height: 42px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; font-size: 14px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.summary { flex: 1 1 340px; min-width: 0; background: var(--card); padding: 30px 26px; display: flex; flex-direction: column; gap: 20px; }
.summary h2 { font-size: 13px; letter-spacing: .3em; font-weight: 500; text-transform: uppercase; }
.fields { display: flex; flex-direction: column; gap: 12px; }
.fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.fields input { height: 42px; border: 1px solid #CFCFCA; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border-radius: 0; }
.fields input:invalid.touched { border-color: #B3261E; }
.lines { border-top: 1px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.lines .row, .totals .row { display: flex; justify-content: space-between; gap: 12px; }
.lines .row span:last-child, .totals .row span:last-child { white-space: nowrap; }
.lines .empty { color: var(--soft); }
.totals { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.totals .sub { color: var(--muted); }
.totals .grand { border-top: 1px solid var(--ink); padding-top: 12px; margin-top: 4px; font-size: 20px; font-weight: 500; }
.totals .grand span:first-child { font-size: 11px; letter-spacing: .24em; align-self: center; }
.note { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.error { color: #B3261E; font-size: 13px; margin: 0; min-height: 1em; }

/* páginas de texto */
.text { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.text h1 { font-weight: 300; font-size: 36px; margin-bottom: 24px; }
.text h2 { font-size: 13px; letter-spacing: .24em; font-weight: 500; text-transform: uppercase; margin: 32px 0 10px; }
.text p, .text li { font-size: 15px; line-height: 1.7; color: #333; }

.mbar { display: none; }
@media (max-width: 980px) {
  .mbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--ink); color: var(--bg); padding: 14px 16px; font-size: 13px; text-decoration: none; letter-spacing: .04em; }
  .mbar:hover { color: #fff; }
  body.has-mbar { padding-bottom: 56px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand img { width: 210px; }
  .nav { gap: 2px 18px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .hero-img { padding: 24px; }
  .btn { width: 100%; }
  .grid-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dark .wrap { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .section { padding-bottom: 64px; }
}
