@import url('https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --fondo: #0e0c0a;
  --papel: #ece4d8;
  --tenue: #a99d8d;
  --linea: #3a322a;
  --pelaje: #7a5233;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--fondo); }

body {
  font-family: 'Ibarra Real Nova', Georgia, serif;
  color: var(--papel);
  background: var(--fondo);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.libro {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 560px);
  gap: 72px;
  justify-content: center;
  align-items: start;
  padding: 72px 32px 96px;
}

.tapa {
  position: sticky;
  top: 48px;
}

.tapa img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04);
}

.versal {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tenue);
}

h1 {
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.01em;
  margin: 18px 0 14px;
}

.subtitulo {
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--papel);
  max-width: 30ch;
}

.autor {
  margin-top: 22px;
}

.artigas {
  margin: 48px 0 36px;
  padding-top: 28px;
  border-top: 1px solid var(--linea);
  font-size: 14px;
  letter-spacing: .14em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--tenue);
}

.texto p {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1em;
}

.texto p:last-child { font-style: italic; }

.compra {
  margin-top: 48px;
  padding: 32px 0 0;
  border-top: 1px solid var(--linea);
}

.compra ul {
  list-style: none;
  margin: 16px 0 28px;
}

.compra li {
  padding: 10px 0;
  border-bottom: 1px solid var(--linea);
}

.compra li span {
  display: block;
  font-size: 15px;
  color: var(--tenue);
}

.precio {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.precio strong {
  font-size: 40px;
  font-weight: 600;
}

.boton {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fondo);
  background: var(--papel);
  padding: 18px 34px;
  transition: background .2s;
}

.boton:hover { background: #fff; }

.nota {
  margin-top: 16px;
  font-size: 15px;
  color: var(--tenue);
}

footer {
  border-top: 1px solid var(--linea);
  padding: 28px 32px 40px;
  text-align: center;
  font-size: 15px;
  color: var(--tenue);
}

footer a { text-decoration: none; border-bottom: 1px solid var(--linea); }

/* Páginas de descarga y aviso */
.aviso {
  max-width: 620px;
  margin: 0 auto;
  padding: 96px 32px;
  text-align: center;
}

.aviso img {
  width: 150px;
  height: auto;
  margin-bottom: 36px;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.8);
}

.aviso h1 { font-size: 40px; }

.aviso p { margin: 12px auto; max-width: 46ch; }

.descargas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin: 36px 0 28px;
}

.descargas .boton { min-width: 320px; text-align: center; }

.descargas .boton.secundario {
  background: transparent;
  color: var(--papel);
  box-shadow: inset 0 0 0 1px var(--papel);
}

@media (max-width: 860px) {
  body { font-size: 18px; }
  .libro {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 22px 72px;
  }
  .tapa { position: static; max-width: 340px; margin: 0 auto; }
  h1 { font-size: 42px; }
  .boton { display: block; text-align: center; }
  .descargas .boton { min-width: 0; width: 100%; }
}
