/* cinematic.css */

/* --- TEMA BASE OSCURO --- */
.cinematic-theme {
  background-color: #050505;
  color: #e0e0e0;
  font-family: 'Inter', system-ui, sans-serif;
}

.bg-obsidian {
  background-color: #0a0a0c;
}

.bg-obsidian-deep {
  background-color: #030304;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-dark {
  background-color: #121215;
}

/* --- TIPOGRAFÍA --- */
.title-monumental {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.body-text {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.text-muted {
  color: #a0a0ab;
}

.glow-text {
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.divider {
  height: 2px;
  width: 80px;
  background: #d4af37;
  margin: 1.5rem 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- SECCIONES Y ALTURAS --- */
.cinematic-section {
  min-height: 80vh;
  padding: 8rem 0;
  display: flex;
  align-items: center;
}

.cinematic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a1a24 0%, #050505 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* --- COMPONENTES VISUALES --- */
.glowing-orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.1);
  margin: 0 auto;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* --- TARJETAS GLASSMORPHISM --- */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.3);
}

.ecosystem-card {
  display: block;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all 0.4s ease;
}

.ecosystem-card:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: #d4af37;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

.ecosystem-card h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.ecosystem-card p {
  color: #a0a0ab;
  line-height: 1.6;
}

/* --- BOTONES --- */
.btn-glow {
  background: transparent;
  color: #d4af37;
  border: 1px solid #d4af37;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) inset;
}

.btn-glow:hover {
  background: #d4af37;
  color: #000;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

/* --- ANIMACIONES DE SCROLL (REVEAL) --- */
.reveal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.5, 0, 0, 1), transform 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0) scale(1);
}

.slide-up {
  transform: translateY(60px);
}

.left-reveal {
  transform: translateX(-60px);
}

.right-reveal {
  transform: translateX(60px);
}

.metrics-status-line {
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.metrics-separator {
  margin: 0 0.5rem;
  opacity: 0.6;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-metrics-status="live"] .status-badge {
  color: #7df9c1;
  border-color: rgba(125,249,193,0.35);
  background: rgba(125,249,193,0.08);
}

html[data-metrics-status="fallback"] .status-badge {
  color: #ffd27d;
  border-color: rgba(255,210,125,0.35);
  background: rgba(255,210,125,0.08);
}

.recent-lineages-grid {
  gap: 1.5rem;
}

.lineage-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(10,10,14,0.92);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lineage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 220, 255, 0.28);
  box-shadow: 0 28px 70px rgba(0,0,0,0.34);
}

.lineage-card-content {
  padding: 1.4rem;
}

.lineage-status-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.lineage-status {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
}

.lineage-status.ok {
  color: #7df9c1;
  border-color: rgba(125,249,193,0.28);
  background: rgba(125,249,193,0.07);
}

.lineage-status.warn {
  color: #ffd27d;
  border-color: rgba(255,210,125,0.28);
  background: rgba(255,210,125,0.07);
}

.lineage-name {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.lineage-meta {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.76);
  font-size: 0.95rem;
}

.lineage-meta strong {
  color: rgba(255,255,255,0.96);
}

.lineage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lineage-link {
  text-decoration: none;
  color: #8fdcff;
  font-weight: 600;
  font-size: 0.92rem;
}

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

.lineage-card-loading {
  opacity: 0.82;
}
