/* =============================================================
   1. Tokens — marca Yupana Dev: tinta, ocre, hueso
   Layout: héroe con el tablero de la yupana a la derecha; secciones alternan hueso y tinta
   ============================================================= */
:root {
  --ink: #12151c;
  --ink-2: #1c2130;
  --ochre: #f2b233;
  --ochre-deep: #8a5a00;
  --bone: #f4f1ea;
  --bone-2: #e9e4d8;
  --slate: #4b5262;
  --mist: #c9ced6;
  --line-dark: rgba(18, 21, 28, .14);
  --line-light: rgba(244, 241, 234, .16);
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bone); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.05; letter-spacing: -.02em; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ochre); color: var(--ink); }

/* 3. Utilities */
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ochre); color: var(--ink); z-index: 99; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--ochre-deep); }
.muted { color: var(--slate); max-width: 56ch; }

/* 4. Components */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.4rem; border-radius: 12px; font-weight: 600; transition: transform .3s var(--ease-out), background .3s var(--ease-out); text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--ochre); color: var(--ink); }
.btn-accent:hover { background: #ffc552; }
.btn-line { border: 1.5px solid var(--bone); color: var(--bone); }
.btn-line-light { border: 1.5px solid var(--bone); color: var(--bone); }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ochre); }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(18, 21, 28, .94); color: var(--bone); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-light); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.mark { display: grid; grid-template-columns: repeat(4, 6px); grid-template-rows: repeat(5, 6px); gap: 2px; }
.mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }
.mark i:nth-child(1) { grid-area: 5 / 1; } .mark i:nth-child(2) { grid-area: 4 / 2; } .mark i:nth-child(3) { grid-area: 5 / 2; }
.mark i:nth-child(4) { grid-area: 3 / 3; } .mark i:nth-child(5) { grid-area: 4 / 3; } .mark i:nth-child(6) { grid-area: 5 / 3; }
.mark i:nth-child(7) { grid-area: 1 / 4; background: var(--bone); } .mark i:nth-child(8) { grid-area: 2 / 4; } .mark i:nth-child(9) { grid-area: 3 / 4; }
.mark i:nth-child(10) { grid-area: 4 / 4; } .mark i:nth-child(11) { grid-area: 5 / 4; }
.nav nav { display: flex; align-items: center; gap: 1.3rem; font-size: .92rem; font-weight: 500; }
.nav nav a:not(.nav-cta) { display: none; color: var(--mist); }
.nav nav a:not(.nav-cta):hover { color: var(--bone); }
.nav-cta { background: var(--ochre); color: var(--ink); padding: .5rem .95rem; border-radius: 10px; font-weight: 600; }

/* 5. Sections */
.hero { background: var(--ink); color: var(--bone); padding-block: clamp(3rem, 8vw, 6rem); }
.hero .eyebrow { color: var(--ochre); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); margin-block: 1rem 1.2rem; max-width: 14ch; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--mist); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.board { display: grid; gap: 1rem; justify-items: start; }
.board-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 16px); width: min(100%, 420px); }
.cell { aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 2px solid #343b4b; transition: background .5s var(--ease-out), border-color .5s var(--ease-out), transform .5s var(--ease-out); }
.cell.on { background: var(--ochre); border-color: var(--ochre); }
.cell.top { background: var(--bone); border-color: var(--bone); }
.board figcaption { font-size: .88rem; color: var(--mist); max-width: 42ch; }
.board figcaption .mono { color: var(--ochre); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2.2rem; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.band { background: var(--ink); color: var(--bone); }
.band .eyebrow { color: var(--ochre); }
.band .muted { color: var(--mist); }

.problems { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.problem { border-top: 3px solid var(--ink); padding-top: 1rem; display: grid; gap: .4rem; }
.problem h3 { font-size: 1.3rem; }
.problem p { color: var(--slate); }

.services { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.service { background: var(--ink-2); border: 1px solid var(--line-light); border-radius: 16px; padding: 1.4rem; display: grid; gap: .5rem; align-content: start; transition: border-color .3s, transform .3s var(--ease-out); }
.service:hover { border-color: var(--ochre); transform: translateY(-3px); }
.service h3 { font-size: 1.35rem; }
.service p:not(.tag) { color: var(--mist); }
.tag { font-size: .78rem; color: var(--ochre); }

.offer { display: grid; gap: 2rem; align-items: start; }
.offer > * { min-width: 0; }
.offer-copy { display: grid; gap: 1rem; justify-items: start; }
.checklist { display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .2rem .9rem; padding: 1.1rem 1.2rem; background: #fff; border-radius: 14px; border: 1px solid var(--line-dark); }
.checklist li::before { content: ""; grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: .25rem; border-radius: 50%; background: var(--ochre); }
.checklist b { font-family: var(--display); font-size: 1.15rem; }
.checklist span { color: var(--slate); }

.projects { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.project { border: 1px solid var(--line-light); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.project h3 { font-size: 1.8rem; }
.project p:not(.tag) { color: var(--mist); }
.project .text-link { margin-top: auto; padding-top: .6rem; color: var(--bone); }

.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .4rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps li::before { content: "Paso " counter(step); font-family: var(--mono); font-size: .8rem; color: var(--ochre-deep); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--slate); }

.about { display: grid; gap: 1.5rem; }
.about > * { min-width: 0; }
.about-copy { display: grid; gap: 1rem; color: var(--mist); font-size: 1.08rem; max-width: 60ch; }

.faq { display: grid; gap: .6rem; max-width: 820px; }
details { background: #fff; border: 1px solid var(--line-dark); border-radius: 14px; padding: 0 1.2rem; }
summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ochre-deep); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 1.1rem; color: var(--slate); }

.contact { background: var(--ochre); color: var(--ink); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.contact-inner { display: grid; gap: .8rem; justify-items: start; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
.contact .btn-accent { background: var(--ink); color: var(--bone); }
.contact .btn-line-light { border-color: var(--ink); color: var(--ink); }
.phone { font-size: 1.05rem; user-select: all; }

.footer { background: var(--ink); color: var(--mist); padding-block: 2rem; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* 8. Responsive */
@media (min-width: 720px) {
  .nav nav a:not(.nav-cta) { display: inline; }
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:last-child { grid-column: 1 / -1; }
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
  .board { justify-items: end; }
  .problems { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offer { grid-template-columns: 6fr 5fr; gap: 4rem; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about { grid-template-columns: 5fr 6fr; gap: 4rem; }
}

/* 9. Reduced motion — the board fills at once */
@media (prefers-reduced-motion: reduce) {
  .cell { transition: none; }
}
