/* Estilos cyberpunk para LASMILYUNA.TOP */

* {
  box-sizing: border-box;
}

body.theme-cyberpunk {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000000 100%);
  color: #e5e7eb;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Cabecera */

.site-header {
  background: linear-gradient(90deg, rgba(24,24,27,0.96), rgba(17,24,39,0.96));
  border-bottom: 1px solid rgba(94, 234, 212, 0.3);
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #22d3ee 0, #0f172a 40%, #020617 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 100%;
  max-height: 100%;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.tagline {
  margin: 0;
  font-size: 0.8rem;
  color: #a5b4fc;
}

/* Navegación */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #e5e7eb;
  background: rgba(15,23,42,0.6);
}

.main-nav a:hover {
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.8);
}

.main-nav a.active {
  border-color: rgba(45, 212, 191, 0.9);
  background: radial-gradient(circle at top, #22d3ee, #0f172a);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.9);
}

/* Contenedor principal */

.content {
  max-width: 980px;
  margin: 1.75rem auto 2.75rem auto;
  padding: 0 1rem;
}

/* Tarjetas y efecto glass */

.card {
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}

.glass {
  background: radial-gradient(circle at top left, rgba(59,130,246,0.18), rgba(15,23,42,0.95));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.8),
    0 0 24px rgba(59, 130, 246, 0.4);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.hero-text h2 {
  margin-top: 0;
  font-size: 1.75rem;
  color: #f9fafb;
}

.hero-text p {
  font-size: 0.97rem;
  color: #c7d2fe;
}

.hero-image img {
  border-radius: 16px;
}

.hero-image figcaption {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.4rem;
}

/* Bloques destacados */

.lead-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  margin-bottom: 1.8rem;
}

.lead-item h3 {
  margin-top: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #22d3ee;
}

.lead-item h4 {
  margin: 0.35rem 0 0.8rem 0;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.lead-item p {
  font-size: 0.93rem;
  color: #d1d5db;
}

.context-section h2 {
  margin-top: 0;
  font-size: 1.35rem;
  color: #e5e7eb;
}

.context-section p {
  color: #c7d2fe;
}

.inline-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 600;
  color: #22d3ee;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Botones */

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.8rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: radial-gradient(circle at top, #22d3ee, #4f46e5);
  color: #0b1120;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
}

.btn-primary:hover {
  background: radial-gradient(circle at top, #4ade80, #22d3ee);
}

.btn-secondary {
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  border-color: rgba(129, 140, 248, 0.8);
}

.btn-secondary:hover {
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.8);
}

/* Artículos */

.article-layout {
  margin-top: 1.4rem;
}

.article {
  max-width: 800px;
  margin: 0 auto;
}

.article-header h1 {
  margin-top: 0;
  font-size: 1.6rem;
  color: #f9fafb;
}

.meta {
  font-size: 0.85rem;
  color: #a5b4fc;
}

.article p {
  font-size: 0.97rem;
  color: #e5e7eb;
}

.article h2 {
  font-size: 1.25rem;
  margin-top: 1.6rem;
  color: #e0f2fe;
}

.article-image {
  margin: 1.3rem 0;
}

.article-image img {
  border-radius: 14px;
}

.article-image figcaption {
  font-size: 0.83rem;
  color: #9ca3af;
  margin-top: 0.45rem;
}

/* Autores */

.authors-page .page-intro h1 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #f9fafb;
}

.author-card {
  margin-top: 1.2rem;
}

.author-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #e0f2fe;
}

.author-card p {
  color: #e5e7eb;
}

/* Pie de página */

.site-footer {
  text-align: center;
  padding: 1.7rem 1rem 2.2rem 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  background: radial-gradient(circle at bottom, rgba(30,64,175,0.35), rgba(15,23,42,0.95));
}

/* Responsivo */

@media (max-width: 768px) {
  .site-header {
    padding-inline: 1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .brand-text h1 {
    font-size: 1.1rem;
  }

  .card {
    padding: 1.1rem 1rem;
  }
}
