/* P-009: Bitacor presentation page. Colours and type from docs/design/DESIGN.md (VP-014).
   Mobile first; no web fonts, no images other than the page's own files. */

:root {
  --canvas: #f5f5f2;        /* Warm Canvas */
  --surface: #ffffff;       /* Clean Surface */
  --ink: #202124;           /* Graphite Ink */
  --muted: #596273;         /* Muted Slate, darkened to stay >= 4.5:1 on the canvas */
  --border: #e4e5e1;        /* Whisper Border */
  --border-strong: #8a8f98; /* control borders, >= 3:1 on white */
  --amber: #d88918;         /* Bitacor Amber: the single primary accent */
  --amber-hover: #c47b12;
  --amber-text: #9a5b07;    /* amber for text and focus (>= 4.5:1) */
  --amber-soft: #fbf0de;

  --font: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(32 33 36 / 5%), 0 4px 16px rgb(32 33 36 / 5%);

  /* One spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --content: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--amber-text); text-underline-offset: 0.2em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--amber-text); outline-offset: 3px; }

.container { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--s4); }

.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 10; padding: var(--s2) var(--s4); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.skip-link:focus { top: var(--s2); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header__inner { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; }
.brand__mark { display: grid; width: 2.25rem; height: 2.25rem; flex: none; place-items: center; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 1.125rem; font-weight: 750; line-height: 1; }
.brand__text { display: grid; line-height: 1.2; }
.brand__text strong { font-size: 1.0625rem; }
.brand__text small { color: var(--muted); font-size: 0.875rem; }
.header-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--s4); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-link:hover { border-color: var(--ink); }

/* Buttons: one amber primary, one quiet secondary */
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0.75rem 1.375rem; border: 1px solid transparent; border-radius: var(--radius); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.button--primary { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.button--primary:hover { border-color: var(--amber-hover); background: var(--amber-hover); }
.button--secondary { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.button--secondary:hover { border-color: var(--ink); }

/* Hero: text first, then the phone */
.hero { padding-block: var(--s6) var(--s7); }
.hero__inner { display: grid; gap: var(--s6); align-items: center; }
.hero__text { display: grid; gap: var(--s4); max-width: 34rem; }
.eyebrow { color: var(--amber-text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(1.875rem, 1.2rem + 3vw, 2.875rem); }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 32rem; }
.note { color: var(--muted); font-size: 0.875rem; }

.phone { justify-self: center; display: grid; gap: var(--s3); margin: 0; width: min(100%, 300px); }
.phone__screen { overflow: hidden; border: 10px solid var(--ink); border-radius: 36px; background: var(--surface); box-shadow: 0 2px 4px rgb(32 33 36 / 8%), 0 18px 40px rgb(32 33 36 / 14%); aspect-ratio: 750 / 1520; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone figcaption { color: var(--muted); font-size: 0.875rem; text-align: center; }

/* Sections */
.section { padding-block: var(--s7); }
.section--surface { border-block: 1px solid var(--border); background: var(--surface); }
.section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.section__intro { margin-top: var(--s2); color: var(--muted); }

.card { padding: var(--s5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.section--surface .card { background: var(--canvas); box-shadow: none; }
.card h3 { margin-top: var(--s3); font-size: 1.125rem; }
.card p { margin-top: var(--s1); color: var(--muted); }

.icon { display: block; width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 10px; background: var(--amber-soft); color: var(--amber-text); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* "Cómo funciona": numbered steps joined by an arrow on wide screens */
.steps { display: grid; gap: var(--s4); margin: var(--s5) 0 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; }
.step__number { position: absolute; top: var(--s4); right: var(--s4); display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 0.9375rem; font-weight: 700; }

.benefits { display: grid; gap: var(--s4); margin: var(--s5) 0 0; padding: 0; list-style: none; }

/* Access band */
.access { display: grid; gap: var(--s5); padding: var(--s6) var(--s5); border: 1px solid #ecd3a8; border-radius: var(--radius); background: var(--amber-soft); }
.access__text { display: grid; gap: var(--s3); max-width: 40rem; }
.access__text .icon { background: var(--surface); }
.access__text p { color: var(--ink); }
.access__mail a { font-weight: 700; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding-block: var(--s5); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }

@media (min-width: 40rem) {
  .container { padding-inline: var(--s5); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 60rem) {
  .hero { padding-block: var(--s8); }
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s8); }
  .phone { width: 300px; }
  .section { padding-block: var(--s8); }
  .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .access { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s7); }
  .actions--end { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header .header-link, .actions { display: none; }
}
