/* Perros Primitivos: minimal homepage (24 Nov 2026). Brand tokens from 5 Brand/brand.md. */
:root {
  --charcoal: #1A1A1A; --black: #111111; --cream: #F9F7F2; --sand: #EEEAE3;
  --amber: #B8700F; --amber-hover: #9C5F0C; --amber-dark: #E0A040;
  --forest: #3F6E50; --forest-dark: #7FB08F; --muted: #6B665F; --alert: #B03A2E;
  --line: rgba(26,26,26,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font: 16px/1.6 'DM Sans', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 72px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.sec { padding: 72px 0; }
.sec--sand { background: var(--sand); }
.sec--dark { background: var(--charcoal); color: var(--cream); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); margin-bottom: 12px; }
.sec--dark .eyebrow, .hero .eyebrow { color: var(--forest-dark); }
.lead { font-size: 18px; color: #4a4744; }
.sec--dark .lead { color: rgba(249,247,242,.78); }
.small { font-size: 14px; color: var(--muted); }
.sec--dark .small, .hero .small { color: #ADA9A3; }

/* buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 28px; font: 700 16px/1.2 'DM Sans', sans-serif; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn--primary { background: var(--amber-hover); color: #fff; }
.btn--primary:hover { background: #8A540A; }
.btn--dark { background: var(--charcoal); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--line); }
.btn:disabled { opacity: .6; cursor: default; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; transition: background .25s; }
.top.is-scrolled { background: rgba(17,17,17,.94); }
.top .logo img { height: 56px; width: auto; }
.top nav { display: flex; align-items: center; gap: 14px; }
.top .lang a { color: var(--cream); opacity: .6; text-decoration: none; font-weight: 700; font-size: 13px; padding: 4px 8px; border-radius: 999px; }
.top .lang a[aria-current] { opacity: 1; background: rgba(249,247,242,.15); }
.top .btn { padding: 9px 18px; font-size: 14px; }

/* hero: the studio shot of Kai fills the width; its dark background carries the text on the left */
.hero { position: relative; background: var(--black); color: var(--cream); min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; top: 0; bottom: 0; right: 0; left: 34%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #111 0%, rgba(17,17,17,.55) 14%, rgba(17,17,17,0) 34%); }
.hero__text { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 120px 20px 72px; }
.hero__text > * { max-width: 520px; }
.hero h1 em { display: block; font-style: normal; color: var(--amber-dark); font-size: .52em; margin-top: .35em; line-height: 1.25; }
.hero__sub { font-size: 19px; color: rgba(249,247,242,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0 18px; }

/* story */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.story img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 60%; }
.story .sig { font-weight: 700; color: var(--forest); margin-top: 8px; }
.places { display: inline-block; font-weight: 700; color: var(--amber-dark); }
.sec .places { color: var(--amber-hover); }

/* offer */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.price { border-radius: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); }
.price b { display: block; font: 800 40px/1.1 'DM Sans', sans-serif; margin: 6px 0; }
.price span { font-size: 14px; color: var(--muted); }
.price--us { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.price--us b { color: var(--amber-dark); }
.price--us span { color: rgba(249,247,242,.7); }
.perks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.perks li { padding-left: 30px; position: relative; }
.perks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--forest); font-weight: 800; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 18px; }
.step p { margin: 0; font-size: 15px; color: #4a4744; }

/* formula */
.bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 28px 0 14px; }
.legend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.legend b { display: block; font-size: 24px; }
.legend span { font-size: 14px; color: rgba(249,247,242,.75); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.proteins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.protein { border: 1px solid rgba(249,247,242,.15); border-radius: 14px; padding: 16px 18px; }
.protein h3 { font-size: 18px; margin: 0 0 4px; }
.protein p { margin: 0; font-size: 14px; color: rgba(249,247,242,.75); }
.protein .pp { color: var(--amber-dark); font-weight: 700; }

/* calculator + form */
.card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.dots { display: flex; gap: 6px; margin-bottom: 18px; }
.dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--line); }
.dots i.on { background: var(--amber); }
.panel { display: none; }
.panel.on { display: block; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #d9d4cc; border-radius: 10px; background: #fff; color: var(--charcoal); }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.zone { font-size: 14px; margin-top: 6px; display: none; }
.zone.on { display: block; }
.zone.ok { color: var(--forest); }
.zone.warn { color: #8a5a10; }
.result { background: var(--sand); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.result .big { font: 800 30px/1.15 'DM Sans', sans-serif; margin: 4px 0; }
.result .price-line { font-size: 18px; font-weight: 700; color: var(--amber-hover); margin-top: 8px; }
.result p { margin: 4px 0; }
/* box builder: bags of each protein per month */
.box { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.box__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.box__row:first-child { border-top: 0; }
.box__row b { display: block; }
.box__row span { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #d9d4cc; background: #fff; color: var(--charcoal); font: 700 20px/1 'DM Sans', sans-serif; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .box__kg { display: inline-block; min-width: 62px; text-align: center; font-weight: 700; font-size: 16px; color: var(--charcoal); }
.box__sum { background: var(--sand); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.box__sum p { margin: 2px 0; }
.box__sum .price-line { font-size: 18px; font-weight: 700; color: var(--amber-hover); margin-top: 6px; }
.field .label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: flex; align-items: center; gap: 8px; border: 1.5px solid #d9d4cc; border-radius: 999px; padding: 8px 16px; font-size: 15px; cursor: pointer; }
.chips input { width: 18px; height: 18px; margin: 0; }
.owner-sum { display: none; background: var(--sand); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
#pp-form.same-owner .owner { display: none; }
#pp-form.same-owner .owner-sum { display: block; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--amber-hover); text-decoration: underline; cursor: pointer; }
.actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.err { display: none; color: var(--alert); font-size: 14px; margin-top: 10px; }
.err.on { display: block; }
.ok-box { display: none; text-align: center; padding: 12px 0; }
.ok-box.on { display: block; }
.ok-box h3 { font-size: 28px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--amber); font-weight: 800; }
details[open] summary::after { content: "−"; }
summary::-webkit-details-marker { display: none; }
details p { margin: 10px 0 0; color: #4a4744; }

/* footer + sticky */
footer { background: var(--black); color: rgba(249,247,242,.6); padding: 36px 20px 96px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 0; }
footer a { color: rgba(249,247,242,.8); text-decoration: none; margin-right: 16px; }
.sticky { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; display: none; }
.sticky .btn { width: 100%; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { order: -1; position: relative; left: 0; width: 100%; height: 58vh; max-height: 520px; flex: none; }
  .hero__media img { object-position: 42% 30%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(17,17,17,0) 60%, #111 100%); }
  .hero__text { padding: 8px 20px 48px; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .top .btn { display: none; }
  .steps, .proteins { grid-template-columns: 1fr; }
  .legend { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .sticky.on { display: block; }
  .sec { padding: 56px 0; }
}
@media (max-width: 540px) {
  .row, .prices { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  .price b { font-size: 34px; }
}

/* 25 Nov 2026: full home page (landing guide) + separate /reserve page */
.top nav .nl { color: var(--cream); opacity: .82; font-weight: 600; font-size: 15px; margin-right: 22px; text-decoration: none; }
.top nav .nl:hover { opacity: 1; }
@media (max-width: 860px) { .top nav .nl { display: none; } }
.ben { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.ben h3, .steps h3 { font-size: 20px; margin: 0 0 8px; }
.ben p, .steps p { margin: 0; font-size: 16px; line-height: 1.55; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 36px 0 32px; }
.steps b { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--amber); color: #fff; font-size: 18px; margin-bottom: 14px; }
.center { text-align: center; }
.cta-final { text-align: center; } .cta-final h2 { margin-bottom: 12px; } .cta-final .btn { margin-top: 18px; } .cta-final .small { margin-top: 12px; opacity: .75; }
@media (max-width: 760px) { .ben, .steps { grid-template-columns: 1fr; gap: 28px; } }

/* 25 Nov: header on scroll (circle only + dark bar), calculator button, protein row */
.top .logo .ci { display: none; }
.top.scrolled { background: rgba(17,17,17,.94); backdrop-filter: blur(6px); }
.top.scrolled .logo .lk { display: none; } .top.scrolled .logo .ci { display: block; height: 48px; width: 48px; }
.top nav .nl--calc { display: inline-flex; border: 1.5px solid var(--cream); border-radius: 999px; padding: 8px 14px; opacity: 1; margin-right: 12px; }
@media (max-width: 860px) { .top nav .nl--calc { display: inline-flex; padding: 7px 11px; font-size: 13px; margin-right: 8px; } }
.prot-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 30px; }
.prot-row div { display: flex; align-items: center; gap: 12px; } .prot-row img { height: 48px; width: auto; }
.prot-row b { font-size: 17px; } .prot-row span { opacity: .7; font-size: 14px; }

/* 25 Nov late: fixed-size logo, words fade on scroll (JS), protein icons in the cards */
.top .logo .lkw { position: relative; display: block; height: 56px; aspect-ratio: 1280 / 360; }
.top .logo .lkw img { position: absolute; inset: 0; height: 100%; width: 100%; }
.protein .pi { display: block; height: 54px; width: auto; margin-bottom: 10px; }

/* protein cards: icon on the right, price per day */
.protein { position: relative; padding-right: 116px !important; }
.protein .pi { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); height: 66px; width: auto; margin: 0; }
.protein .pd { margin-top: 6px; font-size: 14px; opacity: .8; }
@media (max-width: 760px) { .protein { padding-right: 96px !important; } .protein .pi { height: 54px; right: 18px; } }

/* header turns cream on scroll (JS adds .light): dark text */
.top { transition: background .2s; } .top.light { backdrop-filter: blur(6px); box-shadow: 0 1px 0 rgba(26,26,26,.08); }
.top.light nav .nl, .top.light .lang a { color: var(--charcoal, #1A1A1A); }

/* header always transparent; text follows the section behind it */
.top, .top.light { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.top.light nav .nl, .top.light .lang a { color: var(--charcoal, #1A1A1A); }

/* quick quote (26 Nov 2026): home #precio/#price and step 1 of the /reserve form. Amber text on light uses --amber-hover (4.8:1). */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.quote__out { border-left: 1px solid var(--line); padding-left: 32px; }
.quote__lab { font-size: 14px; color: var(--muted); margin: 0; }
.quote__big { font: 800 clamp(28px, 3.6vw, 38px)/1.15 'DM Sans', sans-serif; margin: 2px 0 4px; }
.quote__sub { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.quote__save { font-size: 15px; margin: 0 0 4px; }
.quote__save .q-amt { color: var(--amber-hover); }
.quote__empty { font-size: 17px; color: var(--muted); background: var(--sand); border-radius: 14px; padding: 22px; margin: 0 0 18px; }
.quote__pay { margin: 12px 0 0; }
.quote .hint { font-size: 13.5px; margin-top: 8px; }
.quote .btn { margin-top: 12px; }
.chips--pick label { position: relative; min-height: 44px; }
.chips--pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips--pick label:has(input:checked) { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.chips--pick label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
p.box__sum { font-weight: 700; }
p.box__sum:empty { display: none; }
@media (max-width: 760px) {
  .quote { grid-template-columns: 1fr; gap: 4px; }
  .quote__out { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Language toggle as flags (29 Nov 2026) */
.lang a.flag { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 4px !important; background: transparent !important; text-decoration: none !important; opacity: .45; border-radius: 8px; transition: opacity .15s; }
.lang a.flag:hover { opacity: .85; }
.lang a.flag[aria-current] { opacity: 1; }
.lang a.flag img { display: block; width: 30px; height: 20px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(249,247,242,.3); }
.lang a.flag[aria-current] img { box-shadow: 0 0 0 2px #E0A040; }
