/* GBOKIRI web · usa los tokens de gbokiri.css (copiado a /assets/gbokiri.css en el build) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0);
  line-height: 1.6; font-optical-sizing: auto; overflow-wrap: anywhere; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blueprint); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, .disp { font-family: var(--font-display); font-stretch: var(--wide); line-height: 1.06; margin: 0 0 var(--space-3);
  letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-4); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 680; line-height: 1.2; }
p { margin: 0 0 var(--space-3); max-width: 65ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top); }
.hdr .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 2.25rem; height: auto; }
.brand b { font-family: var(--font-display); font-stretch: 122%; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand span { display: block; font-family: var(--font-display); font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.nav { display: none; gap: var(--space-4); }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: .6rem 0; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bronze); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .7rem 1.25rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; border-radius: var(--radius-s); border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.btn:hover { background: var(--bronze-ink); border-color: var(--bronze-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: var(--bronze-light); border-color: var(--bronze-light); color: var(--ink); }
.menu-btn { background: none; border: 1.5px solid var(--ink); border-radius: var(--radius-s); min-width: 2.9rem; min-height: 2.9rem;
  font: 700 .95rem var(--font-display); color: var(--ink); cursor: pointer; }
.install { display: none; }
.install.on { display: inline-flex; }
dialog { border: none; border-radius: var(--radius-l); padding: var(--space-5); max-width: min(32rem, 92vw); background: var(--surface);
  color: var(--ink); box-shadow: 0 20px 60px rgba(43,30,14,.25); }
dialog::backdrop { background: rgba(43,30,14,.45); }
.mnav { display: grid; gap: .25rem; margin: var(--space-4) 0; }
.mnav a { font: 700 1.3rem var(--font-display); font-stretch: 112%; color: var(--ink); text-decoration: none; padding: .6rem 0;
  border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) { .nav { display: flex; } .menu-btn { display: none; } }

/* hero */
.hero { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; color: var(--paper); background: var(--espresso);
  isolation: isolate; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43,30,14,.2) 0%, rgba(43,30,14,.35) 30%, rgba(43,30,14,.82) 58%, rgba(43,30,14,.96) 100%); }
@media (min-width: 900px) { .hero::after { background: linear-gradient(180deg, rgba(43,30,14,.15) 0%, rgba(43,30,14,.1) 30%, rgba(43,30,14,.78) 68%, rgba(43,30,14,.95) 100%); } }
.hero h1 { text-shadow: 0 2px 18px rgba(43,30,14,.55); }
.hero .wrap { padding-block: var(--space-6) var(--space-5); }
.hero h1 { color: var(--paper); max-width: 14ch; }
.hero .lead { font-size: var(--step-1); color: #EFE6D3; max-width: 46ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 44px; margin-bottom: var(--space-4); }
.bars i { width: 7px; background: var(--bronze-light); transform-origin: bottom; animation: rise .9s var(--ease-out) both; }
.bars i:nth-child(1) { height: 55%; } .bars i:nth-child(2) { height: 80%; animation-delay: .08s; } .bars i:nth-child(3) { height: 100%; animation-delay: .16s; }
.bars i:nth-child(4) { height: 72%; animation-delay: .24s; } .bars i:nth-child(5) { height: 48%; animation-delay: .32s; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* secciones */
section.band { padding-block: var(--space-6); }
@media (min-width: 900px) { section.band { padding-block: var(--space-7); } }
section.band + section.band { border-top: 1px solid var(--rule); }
.dark { background: var(--espresso); color: var(--paper); }
.dark h2, .dark h3 { color: var(--paper); }
.dark a { color: var(--bronze-light); }
.dark p { color: #E8DFCC; }
.kicker { font-family: var(--font-display); font-weight: 650; color: var(--bronze-ink); margin-bottom: var(--space-2); font-size: var(--step-0); }
.dark .kicker { color: var(--bronze-light); }
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: var(--space-6); } .split.rev > :first-child { order: 2; } }
.figure { margin: 0; }
.figure img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--rule); }
.figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }
.dark .figure figcaption { color: #CDBFA6; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin: var(--space-5) 0; padding: 0; list-style: none; }
.facts li { border-top: 2px solid var(--bronze); padding-top: .6rem; }
.facts b { display: block; font-family: var(--font-display); font-stretch: 115%; font-weight: 750; font-size: var(--step-3); line-height: 1.05;
  font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: var(--step--1); }
.dark .facts span { color: #CDBFA6; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* selector de plantas: el momento firma (las letras de los brochures) */
.codes { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: var(--space-4) 0 var(--space-3); padding: 0; list-style: none; }
.codes button { background: none; border: none; cursor: pointer; padding: .15rem .1rem; font-family: var(--font-display); font-stretch: 125%;
  font-weight: 800; font-size: clamp(2.6rem, 2rem + 4vw, 5.4rem); line-height: .9; color: color-mix(in oklab, var(--bronze) 45%, var(--paper));
  transition: color var(--dur-ui) var(--ease-out); min-width: 44px; min-height: 44px; }
.codes button:hover, .codes button[aria-pressed="true"] { color: var(--bronze); }
.plan-card { display: grid; gap: var(--space-4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l);
  padding: clamp(1rem, 3vw, 2rem); }
.plan-card h3 { font-size: var(--step-3); margin-bottom: .25rem; }
.plan-card .meta { color: var(--muted); margin-bottom: var(--space-3); }
.plan-card img { border-radius: 6px; background: #fff; max-height: min(70svh, 560px); width: auto; margin-inline: auto; object-fit: contain; }
.plan-card dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 var(--space-4); }
.plan-card dt { font-family: var(--font-display); font-weight: 650; color: var(--muted); font-size: var(--step--1); }
.plan-card dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .plan-card { grid-template-columns: 1fr 1.1fr; align-items: start; } }

.units { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); padding: 0; list-style: none; }
.units a { display: block; text-decoration: none; color: var(--ink); }
.units img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: .6rem; }
.units .c { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; color: var(--bronze); font-size: 1.6rem; margin-right: .4rem; }
.units b { font-family: var(--font-display); font-weight: 700; }
.units small { display: block; color: var(--muted); font-size: var(--step--1); }

.list { padding: 0; margin: 0; list-style: none; }
.list li { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.list li b { font-family: var(--font-display); font-weight: 680; }
.dark .list li { border-color: rgba(214,184,120,.25); }
.steps { counter-reset: s; padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-3); }
.steps li::before { content: counter(s); font: 800 2rem/1 var(--font-display); font-stretch: 120%; color: var(--bronze); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }

details { border-bottom: 1px solid var(--rule); padding: .9rem 0; }
summary { cursor: pointer; font-family: var(--font-display); font-weight: 680; font-size: var(--step-1); list-style-position: outside; }
details p { margin-top: .6rem; }

.posts { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); padding: 0; list-style: none; }
.posts a.t { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); text-decoration: none; display: block;
  line-height: 1.25; margin: .35rem 0; }
.posts a.t:hover { text-decoration: underline; }
.cat { font-family: var(--font-display); font-weight: 650; font-size: var(--step--1); color: var(--bronze-ink); text-decoration: none; }
.cats { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: var(--space-4) 0; }
.cats a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .4rem .9rem; border: 1.5px solid var(--rule); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.cats a[aria-current="page"], .cats a:hover { border-color: var(--bronze); background: var(--surface); }
article.post { padding-block: var(--space-6); }
article.post h1 { font-size: var(--step-4); }
article.post .byline { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--space-5); }
article.post h2 { font-size: var(--step-2); margin-top: var(--space-5); }
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: var(--space-4); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule); }

form.contact { display: grid; gap: var(--space-3); max-width: 36rem; }
label { font-family: var(--font-display); font-weight: 650; display: grid; gap: .35rem; }
input, textarea, select { font: inherit; font-size: 16px; padding: .75rem .85rem; border: 1.5px solid #B9AC96; border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 3px solid var(--blueprint); outline-offset: 1px; }
.hint { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.status { min-height: 1.5em; font-size: var(--step--1); }

.ftr { background: var(--espresso); color: #E8DFCC; padding-block: var(--space-6) calc(var(--space-5) + env(safe-area-inset-bottom)); font-size: var(--step--1); }
.ftr a { color: #F2E7CF; }
.ftr .grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.ftr h2 { font-size: var(--step-0); color: var(--paper); margin-bottom: .6rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.ftr li a { display: inline-block; padding: .35rem 0; }
.ftr .slogan { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: var(--step-2); color: var(--bronze-light); line-height: 1.1; }
.eho { display: flex; gap: .75rem; align-items: center; margin-top: var(--space-4); }
.eho svg { width: 44px; height: 44px; flex: none; }
.legal p, .legal li { max-width: 70ch; }
.legal h2 { font-size: var(--step-2); margin-top: var(--space-5); }

/* aviso de cookies: fijo abajo, no empuja contenido */
.cookies { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 60; max-width: 34rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 1rem 1.1rem;
  box-shadow: 0 10px 40px rgba(43,30,14,.18); font-size: var(--step--1); }
.cookies p { margin-bottom: .75rem; }
.cookies .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookies .btn { min-height: 2.75rem; padding: .5rem 1rem; font-size: .95rem; }
[hidden] { display: none !important; }

/* asistente */
.ast-fab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 55; display: inline-flex; align-items: center;
  gap: .55rem; min-height: 3.25rem; padding: .6rem 1.1rem .6rem .7rem; border-radius: 999px; border: none; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 700 1rem var(--font-display); box-shadow: 0 8px 28px rgba(43,30,14,.3); }
.ast-fab img { width: 2rem; height: 2rem; border-radius: 50%; background: var(--paper); padding: 3px; }
.ast { position: fixed; z-index: 70; inset: auto 0 0 0; height: min(82svh, 640px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-l) var(--radius-l) 0 0; box-shadow: 0 -10px 50px rgba(43,30,14,.25);
  padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 700px) { .ast { inset: auto 1.25rem 1.25rem auto; width: 400px; border-radius: var(--radius-l); } }
.ast header { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--rule); }
.ast header b { font-family: var(--font-display); font-weight: 750; }
.ast header small { display: block; color: var(--muted); font-size: .8rem; }
.ast header button { margin-left: auto; }
.ast .log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: .7rem; align-content: start; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: .65rem .85rem; border-radius: 12px; font-size: .97rem; line-height: 1.45; white-space: pre-line; }
.msg.bot { background: var(--paper); justify-self: start; border-bottom-left-radius: 3px; }
.msg.me { background: var(--ink); color: var(--paper); justify-self: end; border-bottom-right-radius: 3px; }
.msg a { color: inherit; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chips button { border: 1.5px solid var(--rule); background: var(--paper); border-radius: 999px; padding: .45rem .8rem; min-height: 2.5rem;
  font: 600 .88rem var(--font-display); color: var(--ink); cursor: pointer; }
.ast form { display: flex; gap: .5rem; padding: .75rem 1rem 1rem; border-top: 1px solid var(--rule); }
.ast form input { flex: 1; }
.ast .fine { font-size: .74rem; color: var(--muted); padding: 0 1rem .6rem; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .hdr, .ftr, .ast-fab, .cookies { display: none; } }

/* teléfonos: encabezado compacto (Instalar vive en el menú) y héroe que cabe en horizontal */
.menu-btn { white-space: nowrap; padding-inline: .8rem; }
@media (max-width: 600px) { .hdr .install { display: none !important; } .hdr .wrap { gap: var(--space-3); } }
@media (max-width: 380px) { .brand > span > span { display: none; } }
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; } .hero .wrap { padding-block: var(--space-5) var(--space-4); }
  .hero h1 { font-size: var(--step-4); max-width: 20ch; } .bars { display: none; }
}
@media (max-width: 600px) { .ast-fab { padding: .55rem; min-width: 3.25rem; justify-content: center; } .ast-fab span { display: none; } .ast-fab img { width: 2.1rem; height: 2.1rem; } }

/* portfolio */
.pgrid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); padding: 0; list-style: none; margin-top: var(--space-5); }
.pcard a { display: grid; gap: .6rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-l); padding: 1rem; height: 100%; align-content: start; }
.pcard a:hover { border-color: var(--bronze); }
.pcard img { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.pcard h3 { margin: .3rem 0 0; }
.pcard dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 0 0 .5rem; font-size: var(--step--1); }
.pcard dt { font-family: var(--font-display); font-weight: 650; color: var(--muted); }
.pcard dd { margin: 0; }
.pcard .btn { justify-self: start; }
.tag-demo { display: inline-block; font-family: var(--font-display); font-weight: 750; font-size: .85rem; color: #fff; background: #8A2E1E;
  padding: .2rem .6rem; border-radius: 3px; margin: 0; }
