/* Tiendas ara Content Hub — Guía de uso (V1)
   Sistema visual: blanco, Helvetica, acentos naranja ara. Sin frameworks. */

:root {
  --bg: #ffffff;
  --bg-subtle: #FAF8F5;
  --ink: #201C1A;
  --ink-muted: #6E6862;
  --ink-faint: #948E88;
  --border: #E9E4DE;
  --border-strong: #D8D2CA;
  --orange: #F5821F;
  --orange-dark: #D6690D;
  --orange-tint: #FDEEDD;
  --blue: #2C6E8E;
  --blue-tint: #E7F0F4;
  --green: #2E7D5B;
  --green-tint: #E7F3EE;
  --shadow: 0 1px 2px rgba(32, 28, 26, 0.04), 0 8px 24px rgba(32, 28, 26, 0.06);
  --radius: 14px;
  --content-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-dark);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-brand img {
  height: 26px;
  width: auto;
}

.topbar-brand span {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}

.topbar-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-nav a:hover {
  background: var(--orange-tint);
  color: var(--orange-dark);
}

.topbar-nav a.active {
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-weight: 600;
}

.topbar-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.topbar-cta:hover {
  background: var(--orange-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.15s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav-toggle span::after {
  position: absolute;
  top: 5px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-tint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero p.lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.hero-url {
  font-size: 13px;
  color: var(--ink-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Content sections ---------- */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 100px;
}

section.guide-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

section.guide-section:first-of-type {
  border-top: none;
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.section-kicker.num::before {
  content: attr(data-num) " — ";
}

h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 10px;
}

section.guide-section > p,
.section-body > p {
  font-size: 16px;
  color: var(--ink);
  max-width: 660px;
  margin: 0 0 16px;
}

section.guide-section ul,
section.guide-section ol {
  font-size: 16px;
  padding-left: 22px;
  max-width: 660px;
}

section.guide-section li {
  margin-bottom: 8px;
}

section.guide-section li::marker {
  color: var(--orange-dark);
}

strong {
  font-weight: 600;
}

/* ---------- Screenshots ---------- */

figure.shot {
  margin: 28px 0;
}

figure.shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

figure.shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

figure.shot.tight img {
  width: auto;
  max-width: 420px;
  margin: 0 auto;
}

.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 640px) {
  .shot-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Callouts ---------- */

.callout {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
  border-left: 3px solid var(--ink-faint);
  background: var(--bg-subtle);
  font-size: 14.5px;
}

.callout p {
  margin: 0;
  max-width: none !important;
}

.callout p + p {
  margin-top: 8px;
}

.callout-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.callout.important {
  border-left-color: var(--orange);
  background: var(--orange-tint);
}
.callout.important .callout-label {
  color: var(--orange-dark);
}

.callout.tip {
  border-left-color: var(--blue);
  background: var(--blue-tint);
}
.callout.tip .callout-label {
  color: var(--blue);
}

.callout.try {
  border-left-color: var(--green);
  background: var(--green-tint);
}
.callout.try .callout-label {
  color: var(--green);
}

/* ---------- Nomenclature block ---------- */

.nomenclature-pattern {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  background: var(--ink);
  color: #F4EFE9;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 18px 0;
}

.nomenclature-example {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 12px 0 20px;
}

.nomenclature-example .seg {
  color: var(--orange-dark);
  font-weight: 700;
}

table.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}

table.field-table th,
table.field-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

table.field-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------- Collapsible (native details) ---------- */

details.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  color: var(--orange-dark);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
}

details.faq[open] summary::after {
  content: "–";
}

details.faq p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- Step list ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: 660px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  font-size: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 60px;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 13px;
}

.footer-attribution img {
  height: 14px;
  width: auto;
  opacity: 0.7;
}

.footer-meta {
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- Mobile ---------- */

@media (max-width: 780px) {
  .topbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 16px 16px;
    display: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .topbar-nav.open {
    display: flex;
  }

  .topbar-nav a {
    padding: 10px 8px;
    width: 100%;
  }

  .topbar-cta span.label-full {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p.lede {
    font-size: 16px;
  }

  h2 {
    font-size: 22px;
  }
}
