/* ================================================= */
/* COLORES — MODO OSCURO PERMANENTE */
/* ================================================= */

:root {
  --bg: #111111;
  --text: #e6e6e6;
  --muted: #a0a0a0;
  --accent: #d16b6b;
  --border: #2a2a2a;
}

/* ================================================= */
/* LAYOUT GENERAL */
/* ================================================= */

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.2px;
  background-color: var(--bg);
  color: var(--text);
  max-width: 980px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin: 70px 0 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
}

main {
  margin-top: 30px;
  margin-bottom: 60px;
}

/* ================================================= */
/* NAVEGACIÓN */
/* ================================================= */

.main-nav {
  margin-top: 10px;
}

.main-nav a {
  padding: 4px 6px;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* ================================================= */
/* TIPOGRAFÍA */
/* ================================================= */

.site-title {
  font-size: 3.4rem;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.2;
}

.site-title a {
  text-decoration: none;
  color: var(--text);
}

.site-title a:hover {
  text-decoration: none;
}

main h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 18px;
  font-weight: 500;
}

h2 {
  font-size: 1.5rem;
  margin-top: 45px;
  margin-bottom: 14px;
  font-weight: 500;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

@media (max-width: 600px) {

  .site-title {
    font-size: 2.5rem;
  }

  main h1 {
    font-size: 2.1rem;
  }

}

/* ================================================= */
/* LINKS */
/* ================================================= */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ================================================= */
/* CATÁLOGO DE LIBROS */
/* ================================================= */

.book-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.book-item {
  text-align: center;
}

.book-item img {
  width: 100%;
  border: 1px solid var(--border);
  background-color: #1a1a1a;
  transition: opacity 0.2s ease;
}

.book-item img:hover {
  opacity: 0.85;
}

.book-title {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================================================= */
/* PÁGINA INDIVIDUAL DE LIBRO — ESTILO LINDY PRESS */
/* ================================================= */

.book-page {
  margin-top: 30px;
}

.book-meta {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  margin-top: 30px;
  align-items: start;
}

/* Portada */

.book-cover {
  text-align: left;
}

.book-cover img {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* Texto libro */

.book-info {
  text-align: left;
  max-width: 640px;
}

.book-description {
  line-height: 1.8;
  font-size: 1.02rem;
}

.book-description p {
  margin-bottom: 1.4em;
}

/* Responsive libro */

@media (max-width: 800px) {

  .book-meta {
    grid-template-columns: 1fr;
  }

  .book-cover {
    text-align: center;
    margin-bottom: 30px;
  }

  .book-cover img {
    margin: 0 auto;
  }

}

/* Botón compra */

.buy-link {
  margin-top: 20px;
}

.buy-link a {
  color: var(--accent);
}

/* ================================================= */
/* TEXTO / BLOG / STORIES */
/* ================================================= */

.text-page {
  max-width: 680px;
  text-align: left;
}

.text-content {
  font-size: 1.05rem;
  line-height: 1.9;
  letter-spacing: 0.2px;
  margin-top: 25px;
  text-align: left;
}

.text-content p {
  margin-bottom: 1.6em;
}

.text-content p:first-of-type {
  font-size: 1.08rem;
  letter-spacing: 0.3px;
}

.text-content h2 {
  margin-top: 50px;
}

.text-content hr {
  border: none;
  border-top: 1px solid var(--border);
}

.text-content a {
  color: var(--accent);
  text-decoration: underline;
}

.text-content a:hover {
  text-decoration: none;
}

/* ================================================= */
/* ABOUT */
/* ================================================= */

.about-content {
  text-align: left;
}

.about-content ul {
  margin-top: 20px;
  padding-left: 20px;
}

.about-content li {
  margin-bottom: 6px;
}

.about-content p {
  margin-bottom: 1.4em;
}

/* ================================================= */
/* INTRODUCCIÓN SECCIÓN */
/* ================================================= */

.section-intro {
  text-align: left;
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 620px;
}

.section-intro p {
  margin-bottom: 0.8em;
}

/* ================================================= */
/* FOOTER */
/* ================================================= */

.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.3px;
}

/* ================================================= */
/* ESPACIADO EDITORIAL */
/* ================================================= */

p {
  margin-bottom: 1.6em;
}

h1 {
  margin-top: 40px;
}

h2 {
  margin-top: 50px;
}

h3 {
  margin-top: 35px;
}

/* ================================================= */
/* SELECCIÓN TEXTO */
/* ================================================= */

::selection {
  background: #444;
  color: #fff;
}

/* ================================================= */
/* RESPONSIVE GENERAL */
/* ================================================= */

@media (max-width: 900px) {

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {

  body {
    padding: 0 15px;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

}