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

/* Tipografía editorial */
@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;600;700&display=swap');

body {
  font-family: 'Spectral', serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
  padding: 1em;
}

/* Logo */
.logo {
  display: block;
  margin: 0 auto;
  width: 400px;
  max-width: 100%;
  height: auto;
}

/* Menú */
.menu-espacio {
  height: 40px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1em;
}

/* Contenedor principal */
.contenedor-principal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bloque superior */
.bloque-superior {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.columna-izquierda {
  width: 40%;
  border-right: 1px solid #ccc;
  padding-right: 8px;
  margin-right: 8px;
}

.columna-derecha {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fila-doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
}

.fila-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: none;
}

/* Bloque inferior */
.bloque-inferior {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

/* Notas generales */
.nota {
  background-color: #fff;
  padding: 0.5em;
  border-left: 1px solid #ccc;
  min-height: 100%;
}

.nota:first-child {
  border-left: none;
}

.nota h2,
.nota h3 {
  font-size: 1.2em;
  margin: 0.5em 0;
}

.nota p {
  font-size: 0.95em;
  color: #333;
}

.autor {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.3em;
}

/* Imágenes de notas */
.imagen-nota {
  width: 100%;
  height: auto;
  margin-bottom: 0.5em;
  object-fit: cover;
  border-radius: 4px;
}

/* Página de nota editorial */
.pagina-nota {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 20px;
  margin-top: 2em;
}

.columna-lateral {
  padding: 1em;
  background-color: #f9f9f9;
}

.contenido-nota {
  padding: 2em;
  background-color: #fff;
}

.titulo-nota {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1em;
  line-height: 1.3;
}

.intro-nota {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 2em;
  text-align: justify;
  color: #333;
}

.contenido-nota p {
  font-size: 1.05em;
  line-height: 1.75;
  margin-bottom: 1.5em;
  color: #222;
  text-align: justify;
}

.imagen-nota {
  width: 100%;
  height: auto;
  margin: 2em 0;
  object-fit: cover;
  border-radius: 4px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2em;
  font-size: 0.9em;
  color: #888;
  border-top: 1px solid #ccc;
  padding-top: 1em;
}

/* Responsive */
@media (max-width: 768px) {
  .bloque-superior {
    flex-direction: column;
  }

  .columna-izquierda,
  .columna-derecha {
    width: 100%;
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .fila-doble,
  .fila-triple,
  .bloque-inferior {
    grid-template-columns: 1fr;
  }

  .nota {
    padding: 1em 0;
    border-left: none;
    border-top: 1px solid #ccc;
  }

  .nota:first-child {
    border-top: none;
  }

  .nota h2,
  .nota h3 {
    font-size: 1.1em;
  }

  .titulo-nota {
    font-size: 2em;
  }

  .intro-nota {
    font-size: 1.1em;
  }

  .pagina-nota {
    grid-template-columns: 1fr;
  }

  .columna-lateral {
    display: none;
  }

  .contenido-nota {
    padding: 1em;
  }

.titulo-index {
  font-size: 1.6em;
  font-weight: 700;
  margin-top: 0.5em;
}

.subtitulo-index {
  font-size: 1.1em;
  font-weight: 500;
  color: #444;
  margin-bottom: 0.5em;
}

.subtitulo-nota {
  font-size: 1.6em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1em;
  color: #444;
}

.puntos-clave {
  margin-top: 2em;
  padding-left: 1.2em;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.puntos-clave li {
  margin-bottom: 0.8em;
}
}