/* ---------- Fuentes propias ---------- */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(/fonts/eb-garamond-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(/fonts/eb-garamond-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400 800;
  src: url(/fonts/eb-garamond-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 400 800;
  src: url(/fonts/eb-garamond-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --night: #121826;
  --night-2: #1b2334;
  --paper: #eef0f2;
  --paper-2: #e2e6ea;
  --ink: #1a2233;
  --ink-2: #4a5568;
  --ink-3: #6b7587;
  --line: #d3d8df;
  --lamp: #f2c46d;
  --lamp-soft: #f7e2b5;
  --seal: #2f4b8f;
  --on-night: #e9ebf0;
  --on-night-2: #a9b1c2;
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--lamp);
  color: var(--night);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* ---------- Cabecera ---------- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  color: var(--on-night);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
}
.brand svg {
  flex: none;
}
.nav {
  display: none;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--on-night-2);
}
.nav a:hover {
  color: var(--on-night);
}
@media (min-width: 820px) {
  .nav {
    display: flex;
  }
}

/* ---------- Portada: la lámpara ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
  padding: 140px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  width: 920px;
  height: 920px;
  right: -260px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 196, 109, 0.32) 0%, rgba(242, 196, 109, 0.12) 34%, rgba(242, 196, 109, 0) 66%);
  pointer-events: none;
}
.hero .ring {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 6%;
  top: 90px;
  border-radius: 50%;
  border: 1px solid rgba(242, 196, 109, 0.35);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero h1 {
  font-size: clamp(44px, 8.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero .lede {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.5;
  color: var(--on-night-2);
  max-width: 34em;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lamp {
  background: var(--lamp);
  color: var(--night);
}
.btn-lamp:hover {
  background: var(--lamp-soft);
}
.btn-line {
  border: 1px solid rgba(233, 235, 240, 0.3);
  color: var(--on-night);
}
.btn-line:hover {
  border-color: var(--on-night);
}
/* ---------- Catálogo ---------- */
.section {
  padding: 88px 0;
}
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 40em;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.01em;
}
.section-head p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
}
.books {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
.book {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  align-items: start;
  align-content: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 40px;
  }
}
@media (min-width: 1000px) {
  .books {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 44px;
  }
  .book {
    grid-template-columns: 1fr;
    gap: 22px;
    border-top: 0;
    padding-top: 0;
  }
  .book .cover {
    width: 72%;
  }
}
.col {
  font-size: 13px;
  font-weight: 600;
  color: var(--seal);
  margin-bottom: 6px;
}
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 1px 1px rgba(18, 24, 38, 0.18), 0 14px 28px -10px rgba(18, 24, 38, 0.45);
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.08) 60%, transparent);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover .fallback {
  position: absolute;
  inset: 0;
  display: none;
  padding: 16px 14px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--on-night);
  font-family: var(--serif);
}
.cover.no-img .fallback {
  display: flex;
}
.cover.no-img img {
  display: none;
}
.fallback .t {
  font-size: 18px;
  line-height: 1.15;
}
.fallback .a {
  font-size: 13px;
  color: var(--lamp);
}
.book h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.12;
}
.book .author {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-3);
}
.book .desc {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}
.editions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.edition {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--seal);
}
.edition:hover {
  border-color: var(--seal);
}
.edition small {
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 6px;
}

/* ---------- Ataraxia ---------- */
.app {
  background: var(--night);
  color: var(--on-night);
  position: relative;
  overflow: hidden;
}
.app::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  left: -260px;
  bottom: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 196, 109, 0.2) 0%, rgba(242, 196, 109, 0) 65%);
}
.app .wrap {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .app .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.app h2 {
  font-size: clamp(38px, 5.4vw, 60px);
}
.app .copy p {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--on-night-2);
  max-width: 32em;
}
.app ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
  color: var(--on-night);
}
.app li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.app li::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--lamp);
}
.app .actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.app .note {
  font-size: 14px;
  color: var(--on-night-2);
}
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 38px;
  padding: 12px;
  background: #0b0f18;
  box-shadow: 0 0 0 1px rgba(233, 235, 240, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.screen {
  height: 100%;
  border-radius: 28px;
  background: #eceeeb;
  color: #1e2a2e;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.screen .d {
  font-size: 12px;
  color: #4b595d;
}
.screen .g {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}
.screen .q {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.15;
}
.screen .q::before {
  content: '“';
  display: block;
  font-style: normal;
  font-size: 38px;
  line-height: 0.6;
  height: 16px;
  color: #6e2f4c;
}
.screen .by {
  font-family: var(--serif);
  font-size: 15px;
  color: #4b595d;
}
.screen .steps {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.screen .step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.screen .step i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #6e7b7e;
}
.screen .step.done i {
  background: #4f5f43;
  border-color: #4f5f43;
}

/* ---------- El sello ---------- */
.about .wrap {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .about .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.about .manifesto {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.about .body {
  display: grid;
  gap: 18px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
}
.voices {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.voices div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.voices b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
}
.voices span {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Pie ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--ink-3);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
.foot .brand {
  color: var(--ink);
  font-size: 18px;
}
.foot a {
  color: var(--ink-2);
}

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