/* ============================================================================
   IAmigable — design system · "Sol" direction (theme 3)
   Bold, high-energy: brand yellow + ink, condensed Archivo, hard 2px borders,
   offset shadows, uppercase display headings.
   Governance accessibility floor still holds: large type (18px base), high
   contrast, "letra grande" toggle (--fs-scale), reduced-motion aware, big tap
   targets. Sol is a light, high-contrast theme (no dark-mode variant).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand — Sol: yellow is an ACCENT background; ink carries text/links. */
  --yellow: #ffc933;
  --yellow-soft: #f2b94b;
  --brand: #1a1512;        /* ink — primary UI color (links, buttons, borders) */
  --brand-dark: #000000;
  --brand-tint: #ffc933;   /* yellow accent fills (eyebrow, tint sections) */
  --accent: #ffc933;
  --accent-dark: #f2b94b;

  /* Ink & paper */
  --ink: #1a1512;
  --ink-soft: #5c5248;
  --ink-panel: #2b241e;    /* dark panel (demo box interior) */
  --paper: #fff9ee;        /* warm cream page */
  --paper-2: #ffffff;      /* white cards / alt sections */
  --line: #1a1512;         /* borders are ink, 2px */
  --line-soft: #e7dcc9;

  /* Semantic */
  --ok: #3d7a4e;
  --ok-tint: #6fcf8f;
  --warn: #c2552b;

  /* Type — base 18px is the accessibility floor. */
  --fs-base: 18px;
  --fs-scale: 1;           /* JS "letra grande" toggle bumps this */
  --font: 'Archivo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Layout */
  --wrap: 860px;
  --radius: 14px;
  --gap: 1.1rem;
  --shadow: 6px 6px 0 rgba(26, 21, 18, 0.18);
  --shadow-pop: 8px 8px 0 var(--yellow);
}

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

html {
  font-size: calc(var(--fs-base) * var(--fs-scale));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 800;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 8vw, 4rem); line-height: 0.98; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* Sections — full-bleed bands separated by ink hairlines, Sol style. */
.section {
  padding: 3rem 0;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}
.section--tint { background: var(--yellow); }
.section--paper2 { background: var(--paper-2); }

/* Skip link (a11y) */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05rem;
  font-weight: 800;
  font-size: 1.45rem;
  font-stretch: 110%;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .ia {
  background: var(--yellow);
  color: var(--ink);
  padding: 0.05em 0.22em;
}
.brand .amigable { color: var(--ink); }

/* "Letra grande" toggle */
.a11y-toggle {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.a11y-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--yellow);
}
@media (max-width: 560px) {
  .topbar .topbar-cta { display: none; }   /* hero CTA covers it; avoids overflow */
}

/* ── Trust ribbon (governance: trust layer on every page) ────────────────── */
.trustbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
}
.trustbar strong { color: var(--yellow); font-weight: 800; }

/* ── Hero (yellow block, left-aligned) ───────────────────────────────────── */
.hero {
  padding: 4rem 0;
  background: var(--yellow);
  border-bottom: 2px solid var(--line);
  text-align: left;
}
.hero .wrap { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.hero h1 { max-width: 16ch; text-wrap: pretty; }
.hero .lede {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 34ch;
  margin: 0;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.hero-actions .price-note { margin: 0; font-weight: 600; color: var(--ink); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;               /* comfortable tap target */
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 8px 8px 0 rgba(26,21,18,0.22); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(26,21,18,0.2); }
.btn--accent {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn--accent:hover { transform: translate(-1px, -1px); }
/* Kept for compatibility with other pages */
.btn--brand { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--block { display: flex; width: 100%; }
.btn--wa { background: #6fcf8f; color: #10331d; border-color: var(--ink); }

.price-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}
/* Precio claro: total price must read larger than any per-cuota number. */
.price-total { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.price-cuota { font-size: 0.85rem; color: var(--ink-soft); }

/* ── Cards & lists ───────────────────────────────────────────────────────── */
.card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.card--pop { box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.grid {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2.3rem;
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ── Demo band (tú escribes → la IA te devuelve) ─────────────────────────── */
.demo-band {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--line);
  padding: 3rem 0;
}
.demo-band .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
}
@media (min-width: 720px) {
  .demo-band .wrap { grid-template-columns: 1fr auto 1fr; }
}
.demo-col { display: flex; flex-direction: column; gap: 0.6rem; }
.demo-tag { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.demo-tag--you { color: #b5aa9c; }
.demo-tag--ai { color: var(--yellow); }
.demo-quote {
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.demo-quote--you { background: var(--ink-panel); color: var(--paper); }
.demo-quote--ai { background: var(--paper); color: var(--ink); }
.demo-arrow {
  justify-self: center;
  background: var(--yellow);
  color: var(--ink);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

/* ── Pricing card (dark, yellow offset shadow) ───────────────────────────── */
.pricecard {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pricecard .kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; color: #b5aa9c; text-transform: uppercase; }
.pricecard .amount { font-size: clamp(3rem, 10vw, 4rem); font-weight: 800; line-height: 1; color: var(--paper); }
.pricecard .amount small { font-size: 1.1rem; font-weight: 600; color: #b5aa9c; }
.pricecard .fine { font-size: 0.85rem; color: #b5aa9c; line-height: 1.5; }
.pricecard a { color: var(--paper); }

/* Founder / trust photo placeholder */
.founder-photo {
  width: 96px;
  height: 96px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #efe3ce, #efe3ce 8px, #f9f1e2 8px, #f9f1e2 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
  color: #8a7b6a;
  text-align: center;
}

/* ── Receta (tap-to-copy) card ───────────────────────────────────────────── */
.receta {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.1rem;
  margin-bottom: 1.1rem;
}
.receta__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.receta__title { font-size: 1.2rem; margin: 0; }
.receta__outcome { color: var(--ink-soft); font-size: 0.95rem; margin: 0.15rem 0 0.7rem; }
.receta__prompt {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 10px;
  padding: 0.9rem;
  font-size: 1rem;
  white-space: pre-wrap;
  margin: 0 0 0.8rem;
}
.receta__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.15rem 0.6rem;
  font-weight: 800;
  font-size: 0.78rem;
}
.copy-btn {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
}
.copy-btn.copied { background: var(--ok); border-color: var(--ink); color: #fff; }

/* Category filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.3rem; }
.chip {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faqlist {
  max-width: 760px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
}
details.faq {
  border-bottom: 2px solid var(--ink);
  padding: 0.4rem 1.4rem;
  background: var(--paper-2);
}
.faqlist details.faq:last-child { border-bottom: 0; }
details.faq summary {
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--ink); }
details.faq[open] summary::after { content: "−"; }
details.faq p { font-weight: 500; color: #4a4038; padding-bottom: 0.6rem; margin: 0; }

/* ── Guarantee / anti-scam callouts ──────────────────────────────────────── */
.callout {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.callout--ok { background: var(--yellow); }
.callout h3 { margin-top: 0; }

/* ── Survey ──────────────────────────────────────────────────────────────── */
.survey fieldset {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}
.survey legend { font-weight: 800; padding: 0 0.4rem; text-transform: uppercase; }
.survey label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  cursor: pointer;
}
.survey input[type="radio"] { width: 22px; height: 22px; accent-color: var(--ink); }

/* ── Footer (dark) ───────────────────────────────────────────────────────── */
.footer {
  border-top: 2px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: #b5aa9c;
  background: var(--ink);
  font-size: 0.9rem;
}
.footer a { color: var(--paper); }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer .muted { color: #b5aa9c; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.section-sub { font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Toast for copy confirmation */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}
.toast.show { opacity: 1; }
