/* centrifugo.generadores.ar — Proyecto Turbina Centrífuga 2026 */

:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-alt: #1a2332;
  --accent: #06b6d4;
  --accent-glow: #22d3ee;
  --accent2: #8b5cf6;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #f8fafc;
  --border: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #1a1a3e 50%, #0a0e17 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav .logo span { color: var(--text-muted); font-weight: 400; }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--gradient-hero);
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-rotor {
  width: 180px;
  height: 180px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-rotor svg {
  animation: spin-slow 8s linear infinite;
  filter: drop-shadow(0 0 30px rgba(6,182,212,0.3));
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: -2px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero .badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent);
  position: relative;
  z-index: 1;
}

/* ===== SECTIONS ===== */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
}

.section-title .num {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(6,182,212,0.3);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== EXPLANATION BOXES ===== */
.explain-box {
  background: var(--bg-card-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.explain-box h4 {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.explain-box p {
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== SPECS TABLE ===== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.specs-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.specs-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.specs-table tr:hover td {
  background: rgba(6,182,212,0.03);
}

.specs-table .val {
  font-weight: 700;
  color: var(--text-bright);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-item.done::before { background: var(--success); }
.timeline-item.active::before {
  background: var(--warning);
  box-shadow: 0 0 10px rgba(245,158,11,0.5);
}
.timeline-item.pending::before { background: var(--border); }

.timeline-item .date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-item h4 {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin: 0.3rem 0;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== IMAGE GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.gallery figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.gallery figure:hover { transform: scale(1.02); }

.gallery img {
  width: 100%;
  display: block;
  cursor: pointer;
}

.gallery figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== STATUS BADGES ===== */
.status {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status.done { background: rgba(16,185,129,0.15); color: var(--success); }
.status.wip { background: rgba(245,158,11,0.15); color: var(--warning); }
.status.next { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.status.error { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ===== FORMULA ===== */
.formula {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent-glow);
  text-align: center;
  margin: 1.5rem 0;
  overflow-x: auto;
}

/* ===== BOM TABLE ===== */
.bom-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.bom-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bom-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.bom-table tr:last-child td {
  font-weight: 700;
  color: var(--accent);
  border-top: 2px solid var(--accent);
}

/* ===== TESTS ===== */
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.test-card .test-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent2);
  font-weight: 700;
}

.test-card h4 {
  font-size: 1rem;
  color: var(--text-bright);
  margin: 0.3rem 0 0.5rem;
}

.test-card .expected {
  font-size: 0.85rem;
  color: var(--success);
  font-style: italic;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

/* ===== CFD RESULTS ===== */
.sim-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.sim-card .sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sim-card h3 {
  font-size: 1.1rem;
  color: var(--text-bright);
}

.sim-card .params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.sim-card .param {
  background: var(--bg-card-alt);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}

.sim-card .param .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-card .param .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--accent-glow);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav ul { display: none; }
  section { padding: 3rem 1.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}

/* ===== SMOOTH SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
