/* Estilos futuristas y responsivos para FUTURAMA.TOP */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.theme-futurama {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.12), transparent 55%),
    #020617;
  color: #e5e7eb;
}

/* Layout helper */

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-shell {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, #22d3ee 0, #6366f1 40%, #a855f7 70%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.8),
    0 0 0 1px rgba(148, 163, 184, 0.8);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.78rem;
  color: #cbd5f5;
}

/* Nav */

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.main-nav a:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

.main-nav a.active {
  background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7);
  color: #020617;
  border-color: transparent;
}

/* Chip */

.chip-space {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.8);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.chip-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bfdbfe;
}

/* Hero */

.hero-wrap {
  padding: 2.4rem 0 1.6rem 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: center;
}

.card-panel {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.96));
  border-radius: 24px;
  padding: 1.8rem 1.9rem;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.6);
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #38bdf8;
  margin: 0 0 0.5rem 0;
}

.hero-left h1 {
  margin: 0 0 0.9rem 0;
  font-size: 1.9rem;
  color: #f9fafb;
}

.hero-left p {
  font-size: 0.98rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-figure {
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.6);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-topic {
  font-size: 0.8rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #bfdbfe;
}

/* Buttons */

.btn {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7);
  color: #020617;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(59, 130, 246, 0.7);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Timeline */

.timeline-section {
  padding: 1.4rem 0 1.8rem 0;
}

.section-title {
  font-size: 1.3rem;
  margin: 0 0 0.8rem 0;
  color: #f9fafb;
}

.timeline-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.timeline-strip::-webkit-scrollbar {
  height: 6px;
}

.timeline-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.timeline-card {
  min-width: 220px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
  border-radius: 20px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.timeline-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
  color: #bfdbfe;
}

.timeline-card p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Mosaic */

.mosaic-section {
  padding: 1.5rem 0 2.2rem 0;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

.mosaic-meta {
  font-size: 0.83rem;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}

.mosaic-item h2 {
  margin-top: 0;
  font-size: 1.35rem;
  color: #f9fafb;
}

.mosaic-item p {
  font-size: 0.94rem;
  color: #e5e7eb;
}

/* Info note */

.info-note-section {
  padding-bottom: 2.6rem;
}

.info-note h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.info-note p {
  font-size: 0.95rem;
}

/* Article layout */

.article-shell {
  padding-top: 2.2rem;
  padding-bottom: 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

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

.article-meta {
  font-size: 0.85rem;
  color: #9ca3af;
}

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

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

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

.article-figure img {
  border-radius: 20px;
  display: block;
  width: 100%;
  height: auto;
}

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

.article-keypoints h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.article-keypoints ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0 0;
}

.article-keypoints li {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* Authors */

.authors-shell {
  padding-top: 2.2rem;
  padding-bottom: 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.authors-intro h1 {
  margin-top: 0;
  font-size: 1.6rem;
}

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

.author-card p {
  font-size: 0.96rem;
}

.authors-note h2 {
  margin-top: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 1);
  background: #020617;
  color: #9ca3af;
}

.footer-inner {
  padding: 1.4rem 1.25rem 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
  }
  .mosaic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .chip-space {
    justify-self: flex-start;
  }
}

@media (max-width: 640px) {
  .card-panel {
    padding: 1.4rem 1.3rem;
  }
  .hero-left h1 {
    font-size: 1.5rem;
  }
  .header-inner {
    grid-template-columns: 1fr;
  }
  .main-nav {
    justify-content: flex-start;
  }
}
