/* Fuentes importadas desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather&family=Montserrat:wght@600&family=Inter&family=Open+Sans&display=swap');

/* Tipografía base y colores generales */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #0f1124; /* Oscuro profundo */
  color: #e0e0f0; /* Texto claro */
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Encabezados h1, h2, h3, h4 */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: #87cefa; /* Azul cielo suave */
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 0 6px #00b7eb88;
}

/* Título principal de capítulos */
.capitulo h3 {
  font-size: 1.4em;
  color: #87cefa;
  margin-top: 0;
}

/* Contenedor general para ebook */
.ebook-container {
  max-width: 720px;
  margin: 2em auto;
  padding: 1em 1.2em;
  box-sizing: border-box;
  text-align: center;
}

/* Sección de capítulos */
.capitulo {
  text-align: left;
  margin-top: 2.5em;
  padding: 1.2em;
  background-color: #12142c; /* Fondo oscuro más claro */
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(135, 206, 250, 0.08);
  transition: box-shadow 0.3s ease-in-out;
}
.capitulo:hover {
  box-shadow: 0 0 28px rgba(135, 206, 250, 0.3);
}

/* Párrafos y listas */
p, li {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #ddd; /* Texto ligeramente más claro para lectura */
  line-height: 1.6;
}

/* Listas con estilo suave */
ul {
  margin-left: 1.5rem;
  list-style-type: disc;
  color: #bbb;
}

/* Destacados en strong y em */
strong {
  color: #00b7eb;
}

em {
  font-style: italic;
  color: #73c2fb;
}

/* Código y preformateado */
pre, code {
  background-color: #11142a;
  color: #00ffff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto;
  box-shadow: 0 0 10px #00ffff44;
  margin: 1rem 0;
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(135, 206, 250, 0.2);
  margin: 1em 0;
  transition: transform 0.3s ease;
}
img:hover {
  transform: scale(1.03);
}

/* Navegación y header */
header {
  background-color: #0f1124;
  padding: 1em;
  border-bottom: 1px solid #222;
}

.logo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-nav h1 {
  margin: 0;
  font-size: 1.5em;
  color: #ffffff;
}

/* Menú de navegación */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.menu li {
  margin-left: 1em;
}

.menu a {
  color: #87cefa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
}

/* Responsive: menú en columna en móviles */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    width: 100%;
    margin-top: 1em;
  }

  .menu li {
    margin: 0.5em 0;
    text-align: center;
  }
  
  .ebook-container {
    padding: 1em 0.8em;
    margin: 1.5em 1em;
  }
  
  .capitulo {
    padding: 1em;
  }
  
  .capitulo h3 {
    font-size: 1.25em;
  }
}

/* Footer */
footer {
  background: #0f1124;
  color: #e0e0f0;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
  margin-top: 3em;
}

.footer-info a {
  color: #87cefa;
  text-decoration: none;
  font-weight: bold;
}

.footer-info a:hover {
  color: #ffffff;
}

/* Firma simbólica al final del capítulo */
.firma-simbolica {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: #00b7eb;
  font-size: 1.1rem;
  margin-top: 3rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px #00b7eb99;
  user-select: none;
}

/* Marca armónica decorativa */
.marca-armonica {
  margin-top: 2em;
  text-align: center;
  font-size: 1.2em;
  color: #87cefa;
  font-weight: bold;
  text-shadow: 0 0 8px #00b7ebcc;
  user-select: none;
}
.articulo-blog {
  width: calc(100% - 40px); /* 20px a cada lado en computadoras */
  max-width: 100%;
  margin: 2em auto;
  padding: 1.5em;
  background-color: #12142c;
  border-radius: 12px;
  box-shadow: 0 0 22px rgba(135, 206, 250, 0.1);
  box-sizing: border-box;
}

/* Márgenes adaptados en móviles */
@media (max-width: 768px) {
  .articulo-blog {
    width: calc(100% - 30px); /* 15px a cada lado en móviles */
    padding: 1.2em;
  }
}@media (min-width: 769px) {
  .articulo-blog {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 40px); /* 20px de margen a cada lado */
  }
}

/* Márgenes adaptados en móviles */
@media (max-width: 768px) {
  body > * {
    width: calc(100% - 30px); /* 15px a cada lado */
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Márgenes adaptados en computadoras */
@media (min-width: 769px) {
  body > * {
    width: calc(100% - 40px); /* 20px a cada lado */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}
.logo-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.logo-nav h1 {
  font-family: 'Merriweather', serif;
  font-size: 1.6em;
  color: #ffffff;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4em; /* espacio entre texto y logo */
  text-shadow: 0 0 8px #00b7ebaa;
}
.logo-nav img {
  height: 1.3em; /* Antes era 1em, lo ampliamos un 30% */
  margin-left: 0.5em;
  vertical-align: middle;
}


.logo-inline {
  height: 1em; /* altura igual a las mayúsculas del texto */
  width: auto;
  vertical-align: middle;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(135, 206, 250, 0.25);
  transition: transform 0.3s ease;
}

.logo-inline:hover {
  transform: scale(1.05);
}
.logo-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.menu {
  display: flex;
  justify-content: center; /* centra horizontalmente los elementos */
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  gap: 1.2em;
}
/* Estilo base del menú */
.menu {
  position: relative;
  background: #000;
  color: white;
}

.menu-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

/* Ocultamos el checkbox y el icono por defecto */
.toggle-menu,
.menu-icon {
  display: none;
}

/* Solo en pantallas pequeñas (móvil) */
@media (max-width: 768px) {
  .mobile-menu-container {
    display: block;
  }

  .desktop-menu {
    display: none !important;
  }
}
