* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Jost", sans-serif;
  color: #111111;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.marca a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
}

.menu a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6f6f6f;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a.activo {
  color: #111111;
}

.menu a + a {
  margin-left: 18px;
  padding-left: 18px;
  position: relative;
}

.menu a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: #d8d8d8;
}

.contenedor {
  max-width: 1180px;
  margin: 0 auto;
}

.seccion {
  padding: 24px 36px 56px;
}

.intro-seccion {
  margin-bottom: 18px;
}

.etiqueta {
  margin: 0 0 10px;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a8a8a8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2px;
}

.titulo-about {
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 24px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 12px;
}

p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #333333;
}

.grid-libros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 20px;
}

.tarjeta-libro a {
  display: block;
}

.portada {
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border: 1px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  margin-bottom: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tarjeta-libro a:hover .portada {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.tarjeta-libro h2 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2px;
}

.tarjeta-libro p {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #7a7a7a;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  align-items: start;
  padding-top: 10px;
}

.about-imagen {
  aspect-ratio: 4 / 5;
  background: #f6f6f6;
  border: 1px solid #ededed;
  overflow: hidden;
}

.about-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.about-texto {
  max-width: 680px;
}

.contacto-about {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #ececec;
}

.contacto-about a {
  border-bottom: 1px solid #cccccc;
  padding-bottom: 2px;
}

/* PÁGINA INDIVIDUAL DE LIBRO */

.contenedor-libro {
  padding-bottom: 80px;
}

.libro-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px 0;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.volver-libros {
  transition: color 0.2s ease;
}

.volver-libros:hover {
  color: #111111;
}

.hero-libro {
  padding: 20px 36px 0;
}

.marco-ilustracion {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marco-ilustracion img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.controles-libro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
}

.flecha-libro {
  border: none;
  background: transparent;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #666666;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.flecha-libro:hover {
  color: #111111;
}

.puntos-libro {
  display: flex;
  align-items: center;
  gap: 8px;
}

.punto {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 999px;
  background: #d8d8d8;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.punto.activo {
  width: 26px;
  background: #666666;
}

.texto-libro {
  max-width: 700px;
  margin: 56px auto 0;
  padding: 0 36px;
}

.titulo-libro {
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.nota-libro {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #888888;
  margin-bottom: 28px;
}

.cuerpo-libro p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: #333333;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .cabecera {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
  }

  .seccion {
    padding: 22px 20px 48px;
  }

  .grid-libros {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

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

  .titulo-about {
    font-size: 1.8rem;
  }

  .libro-topbar {
    padding: 16px 20px 0;
  }

  .hero-libro {
    padding: 18px 20px 0;
  }

  .texto-libro {
    padding: 0 20px;
    margin-top: 44px;
  }

  .titulo-libro {
    font-size: 1.65rem;
  }
}

@media (max-width: 560px) {
  .grid-libros {
    grid-template-columns: 1fr;
  }

  .menu a + a {
    margin-left: 14px;
    padding-left: 14px;
  }

  .marco-ilustracion {
    aspect-ratio: 8 / 5;
  }
}