/* Sellmaster Software — versión sobria, editorial, sin marketing */

:root {
  --paper: #faf9f6;
  --ink: #1c1c1a;
  --ink-soft: #58554c;
  --ink-faint: #928e80;
  --rule: #ddd7c8;
  --accent: #7a2a20;
  --gold: #7d6321;
  --texture: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='900'%20height='900'%3E%3Cg%20stroke='%23928e80'%20stroke-width='1'%20fill='none'%20opacity='0.55'%3E%3Cpath%20d='M40%20120%20h90%20v70%20h140'%20transform='rotate(-6%2040%20120)'/%3E%3Ccircle%20cx='40'%20cy='120'%20r='3'%20fill='%23928e80'%20stroke='none'/%3E%3Ccircle%20cx='270'%20cy='190'%20r='3'%20fill='%23928e80'%20stroke='none'/%3E%3C/g%3E%3Cg%20stroke='%23928e80'%20stroke-width='1'%20fill='none'%20opacity='0.5'%3E%3Cpath%20d='M620%2080%20L760%20130%20L690%20240%20Z'%20transform='rotate(8%20690%20150)'/%3E%3Ccircle%20cx='620'%20cy='80'%20r='2.5'%20fill='%23928e80'%20stroke='none'/%3E%3Ccircle%20cx='760'%20cy='130'%20r='2.5'%20fill='%23928e80'%20stroke='none'/%3E%3Ccircle%20cx='690'%20cy='240'%20r='2.5'%20fill='%23928e80'%20stroke='none'/%3E%3C/g%3E%3Cg%20stroke='%23928e80'%20stroke-width='1'%20fill='none'%20opacity='0.45'%3E%3Cpath%20d='M120%20620%20h60%20v-40%20h80%20v60'/%3E%3Crect%20x='178'%20y='578'%20width='6'%20height='6'%20fill='%23928e80'%20stroke='none'/%3E%3C/g%3E%3Cg%20fill='%23928e80'%20opacity='0.4'%3E%3Ccircle%20cx='500'%20cy='560'%20r='2'/%3E%3Ccircle%20cx='560'%20cy='620'%20r='2'/%3E%3Ccircle%20cx='440'%20cy='700'%20r='2'/%3E%3C/g%3E%3Cg%20stroke='%23928e80'%20stroke-width='1'%20fill='none'%20opacity='0.45'%20transform='rotate(-10%20760%20640)'%3E%3Crect%20x='740'%20y='600'%20width='40'%20height='28'%20rx='2'/%3E%3Cpath%20d='M740%20610%20h-14%20M740%20620%20h-14%20M780%20610%20h14%20M780%20620%20h14'/%3E%3C/g%3E%3C/svg%3E");
  --maxw: 700px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--texture);
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

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

a { color: var(--ink); }
a:hover { color: var(--accent); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
}

/* ---------- Masthead ---------- */
.masthead {
  padding: 40px 0 0;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}
.quiet-link {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.quiet-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Sections ---------- */
section {
  padding: 76px 0;
}
.intro { padding-top: 96px; }

h1, h2, h3 { color: var(--gold); }

h1 {
  font-size: clamp(32px, 4.4vw, 42px);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 28px;
  max-width: 15ch;
}
h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 40px;
  max-width: 22ch;
}
p { margin: 0 0 20px; color: var(--ink); }
.intro p { color: var(--ink-soft); }

/* ---------- Divider ---------- */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 auto;
  max-width: var(--maxw);
}

/* ---------- Productos ---------- */
.producto {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.producto:first-of-type { border-top: none; padding-top: 0; }
.producto h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.producto .enlace-sitio {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-faint);
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
}
.producto .enlace-sitio:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.producto .tag {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.producto p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  margin: 0;
}
.datos > div { border-top: 1px solid var(--rule); padding-top: 16px; }
.datos dt {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.datos dd {
  margin: 0;
  font-size: 17px;
}
.datos dd a { text-decoration: none; }
.datos dd a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 56px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--ink-faint);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 30px; max-width: none; }
.legal .updated {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 44px;
}
.legal h2 { font-size: 19px; max-width: none; margin: 40px 0 14px; }
.legal p { color: var(--ink-soft); }
.legal-body { padding: 64px 0 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .intro { padding-top: 64px; }
  .datos { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15140f;
    --ink: #ece9e0;
    --ink-soft: #b9b5a6;
    --ink-faint: #7d7a6d;
    --rule: #322f26;
    --accent: #c1584a;
    --gold: #b0904a;
    --texture: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='900'%20height='900'%3E%3Cg%20stroke='%237d7a6d'%20stroke-width='1'%20fill='none'%20opacity='0.55'%3E%3Cpath%20d='M40%20120%20h90%20v70%20h140'%20transform='rotate(-6%2040%20120)'/%3E%3Ccircle%20cx='40'%20cy='120'%20r='3'%20fill='%237d7a6d'%20stroke='none'/%3E%3Ccircle%20cx='270'%20cy='190'%20r='3'%20fill='%237d7a6d'%20stroke='none'/%3E%3C/g%3E%3Cg%20stroke='%237d7a6d'%20stroke-width='1'%20fill='none'%20opacity='0.5'%3E%3Cpath%20d='M620%2080%20L760%20130%20L690%20240%20Z'%20transform='rotate(8%20690%20150)'/%3E%3Ccircle%20cx='620'%20cy='80'%20r='2.5'%20fill='%237d7a6d'%20stroke='none'/%3E%3Ccircle%20cx='760'%20cy='130'%20r='2.5'%20fill='%237d7a6d'%20stroke='none'/%3E%3Ccircle%20cx='690'%20cy='240'%20r='2.5'%20fill='%237d7a6d'%20stroke='none'/%3E%3C/g%3E%3Cg%20stroke='%237d7a6d'%20stroke-width='1'%20fill='none'%20opacity='0.45'%3E%3Cpath%20d='M120%20620%20h60%20v-40%20h80%20v60'/%3E%3Crect%20x='178'%20y='578'%20width='6'%20height='6'%20fill='%237d7a6d'%20stroke='none'/%3E%3C/g%3E%3Cg%20fill='%237d7a6d'%20opacity='0.4'%3E%3Ccircle%20cx='500'%20cy='560'%20r='2'/%3E%3Ccircle%20cx='560'%20cy='620'%20r='2'/%3E%3Ccircle%20cx='440'%20cy='700'%20r='2'/%3E%3C/g%3E%3Cg%20stroke='%237d7a6d'%20stroke-width='1'%20fill='none'%20opacity='0.45'%20transform='rotate(-10%20760%20640)'%3E%3Crect%20x='740'%20y='600'%20width='40'%20height='28'%20rx='2'/%3E%3Cpath%20d='M740%20610%20h-14%20M740%20620%20h-14%20M780%20610%20h14%20M780%20620%20h14'/%3E%3C/g%3E%3C/svg%3E");
  }
}
