/* BLOG (31/10) — estilo compartido por blog.html y los artículos.
   Copia el menú, el pie y la paleta V2 de about.html, para que el blog se vea
   como parte de la web y no como otra página. */
:root {
  --dark: #001E37;
  --darker: #001526;
  --teal: #74D1EA;
  --teal-light: #A8E6F7;
  --white: #EAF3F9;
  --gray: #8DA3B4;
  --gray-dim: #1E3040;
  --card: #002B47;
  --orange: #D9620A;
  --orange-hot: #F2751A;
  /* Texto largo: más claro que el gris de la web, que cansa en párrafos largos */
  --read: #C9D8E3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* NAV (igual a about.html) */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 3rem;
  background: rgba(0,30,55,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(116,209,234,0.15);
}
.logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  word-spacing: -0.22em;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
}
.logo .lt { color: var(--teal); }
.logo .lw { color: var(--white); }
nav ul { display: flex; gap: 2.2rem; list-style: none; }
nav ul a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
nav ul a:hover, nav ul a.active { color: var(--teal-light); }
.nav-cta {
  background: var(--orange);
  color: #FFFFFF !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--orange-hot) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(116,209,234,0.35);
  border-radius: 999px;
  margin-left: 1.2rem;
  background-color: rgba(0,30,55,0.75);
  padding: 0.25rem;
}
.lang-option {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--gray);
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.lang-option.active {
  background-color: var(--teal);
  color: var(--dark);
  box-shadow: 0 2px 10px rgba(116,209,234,0.35);
}
.lang-option:not(.active):hover { color: var(--white); }

/* CONTENIDO */
main { max-width: 760px; margin: 0 auto; padding: 9rem 2rem 4rem; }
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 em { font-style: normal; color: var(--teal-light); }
.lead { margin-top: 1rem; color: var(--gray); font-size: 1.1rem; line-height: 1.7; }
.byline { margin-top: 1.4rem; font-size: 0.9rem; color: var(--gray); }
.byline a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(116,209,234,0.4); }
.byline a:hover { color: var(--teal-light); }
.lang-note {
  display: none;
  margin-top: 1.4rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--teal);
  background: rgba(116,209,234,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--teal-light);
  font-size: 0.9rem;
}
html.lang-note-on .lang-note { display: block; }

/* ÍNDICE: tarjetas de los capítulos */
.series { display: grid; gap: 1.1rem; margin-top: 3rem; }
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--gray-dim);
  border-radius: 12px;
  padding: 1.6rem 1.7rem;
  transition: border-color 0.25s, transform 0.25s;
}
.post-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.post-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.post-card h2 { margin-top: 0.6rem; font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.post-card p { margin-top: 0.5rem; color: var(--gray); font-size: 0.97rem; line-height: 1.65; }
.post-more { display: inline-block; margin-top: 0.9rem; color: var(--teal-light); font-weight: 700; font-size: 0.9rem; }

/* ARTÍCULO */
.back { display: inline-block; margin-bottom: 1.6rem; color: var(--teal); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.back:hover { color: var(--teal-light); }
.article-body { margin-top: 2.6rem; }
.article-body p {
  color: var(--read);
  font-size: 1.12rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.article-body p strong { color: var(--white); }
.article-body a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(116,209,234,0.4);
  transition: color 0.2s, border-color 0.2s;
}
.article-body a:hover { color: var(--teal-light); border-bottom-color: var(--teal-light); }
.pending {
  margin-top: 2.6rem;
  padding: 1.4rem 1.6rem;
  border: 1px dashed rgba(116,209,234,0.45);
  border-radius: 12px;
  color: var(--gray);
}
.chapters {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--gray-dim);
}
.chapters a {
  max-width: 48%;
  color: var(--teal-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
}
.chapters a small {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.chapters a:hover { color: var(--white); }
.chapters .next { margin-left: auto; text-align: right; }

/* CTA final */
.back-cta { text-align: center; margin-top: 4rem; }
.back-cta a { color: var(--teal-light); text-decoration: none; font-weight: 700; font-size: 1rem; }
.back-cta a:hover { text-decoration: underline; }

/* FOOTER (igual a about.html) */
footer {
  background: var(--darker);
  border-top: 1px solid var(--gray-dim);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.footer-logo { font-family: 'Space Mono', monospace; font-size: 0.9rem; color: var(--white); }
.footer-logo span { color: var(--teal); }
.footer-legal { font-size: 0.75rem; color: var(--gray); opacity: 0.6; }

/* Mismos cortes que el resto de la web: se compacta hasta 1200 px y por debajo
   de 1000 px pasa a la hamburguesa */
@media (max-width: 1200px) {
  nav { padding-left: 1.8rem; padding-right: 1.8rem; }
  nav ul { gap: 1.4rem; }
  nav ul a { font-size: 0.78rem; letter-spacing: 0.05em; }
  .nav-cta { padding: 0.45rem 0.9rem; }
}
@media (max-width: 1000px) {
  nav { padding: 0.9rem 1.5rem; }
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(0,30,55,0.98);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(116,209,234,0.2);
    gap: 1.2rem;
  }
  .hamburger { display: flex; }
  .lang-switcher { margin-left: auto; margin-right: 1rem; }
}
@media (max-width: 768px) {
  main { padding: 7.5rem 1.5rem 3rem; }
  footer { flex-direction: column; text-align: center; }
  .article-body p { font-size: 1.05rem; }
  .chapters { flex-direction: column; }
  .chapters a { max-width: none; }
}
@media (max-width: 420px) {
  .lang-option { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
}
