/* Estilos para YISUSCRAIS.TOP */
/* Estilo distinto: tema oscuro futurista con acentos neón */

:root {
  --bg-main: #050816;
  --bg-elevated: #0b1220;
  --bg-glass: rgba(15, 23, 42, 0.85);
  --accent-green: #22c55e;
  --accent-cyan: #06b6d4;
  --accent-purple: #6366f1;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.6);
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

body.theme-dark {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.18), transparent 55%),
    var(--bg-main);
  min-height: 100vh;
}

/* Enlaces e imágenes */

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

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

/* Cabecera y navegación */

.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.logo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle, #111827, #020617);
  border: 2px solid rgba(34, 211, 238, 0.7);
  padding: 0.25rem;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.main-nav a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(15, 23, 42, 0.5);
  color: var(--text-main);
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  background-color: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
  border-color: var(--accent-cyan);
}

.main-nav a.active {
  background: linear-gradient(to right, var(--accent-green), var(--accent-cyan));
  color: #0f172a;
  border-color: transparent;
}

/* Contenedor principal */

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

/* Paneles y tarjetas */

.panel {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 60%),
              radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.14), transparent 55%),
              var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.glass {
  background-color: var(--bg-glass);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  align-items: center;
}

.hero-text h2 {
  margin-top: 0;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-visual {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.5;
}

.orb-green {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.8), transparent 60%);
  top: 10%;
  left: 12%;
}

.orb-cyan {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.8), transparent 60%);
  bottom: 10%;
  right: 6%;
}

.hero-card {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  max-width: 260px;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin: 0 0 0.2rem 0;
}

.hero-highlight {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-sub {
  margin: 0.45rem 0 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Grid de blogs en inicio */

.grid-panels {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.panel-blog {
  padding: 1.35rem 1.3rem;
}

.panel-blog h3 {
  margin-top: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
}

.panel-blog h4 {
  margin: 0.2rem 0 0.6rem 0;
  font-size: 1.1rem;
}

.panel-blog p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Bloque autores destacado */

.authors-highlight {
  margin-top: 1.6rem;
  padding: 1.4rem 1.3rem;
}

.authors-highlight h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.authors-highlight p {
  color: var(--text-muted);
}

/* Botones */

.btn-primary,
.btn-secondary {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent-green), var(--accent-cyan));
  color: #020617;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Artículos */

.article-content .article-panel {
  padding: 1.6rem 1.45rem;
}

.article-header h1 {
  margin-top: 0;
  font-size: 1.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.article-image figcaption {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.article-content h2 {
  font-size: 1.15rem;
  margin-top: 1.45rem;
}

/* Autores */

.authors-page .page-header {
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.5rem;
}

.author-card {
  padding: 1.45rem 1.4rem;
  margin-bottom: 1.2rem;
}

/* Pie de página */

.main-footer {
  text-align: center;
  padding: 1.7rem 1rem 2.2rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsivo */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
    min-height: 180px;
  }

  .logo-text h1 {
    font-size: 1.05rem;
  }

  .main-header {
    padding-inline: 1rem;
  }

  .panel,
  .article-content .article-panel,
  .authors-page .page-header,
  .author-card {
    padding: 1.1rem;
  }
}
