/* ==========================================================================
   LAPLACE AEROSPACE - ESTILOS INSTITUCIONALES DE ALTO PRESTIGIO
   ========================================================================== */

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-tertiary: #131f37;
  --bg-card: rgba(13, 21, 39, 0.7);
  --bg-card-hover: rgba(19, 31, 55, 0.85);

  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --accent-teal: #00f5d4;
  --accent-glow: rgba(0, 229, 255, 0.35);
  
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.25);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-width: 1200px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Background Flow Canvas */
#flowCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00b4db, #0083b0);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #030816;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 229, 255, 0.55);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(41, 121, 255, 0.3));
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.brand-symbol.small {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.brand-name strong {
  color: var(--accent-cyan);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Header Actions & Language Selector */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

.lang-btn i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.lang-selector.open .lang-btn i {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 16, 30, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 2000;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-selector.open .lang-dropdown {
  display: flex;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-option:hover {
  background: rgba(0, 229, 255, 0.12);
  color: #ffffff;
}

.lang-option.active {
  background: rgba(0, 229, 255, 0.18);
  color: var(--accent-cyan);
  font-weight: 600;
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 100px;
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-cyan); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Visual Terminal in Hero */
.glass-terminal {
  background: rgba(10, 16, 30, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.terminal-header {
  background: rgba(5, 10, 20, 0.9);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
}

.code-comment { color: #64748b; font-style: italic; }
.code-keyword { color: #f43f5e; font-weight: 600; }
.code-num { color: #38bdf8; }
.code-str { color: #34d399; }
.code-func { color: #fbbf24; }

/* Section Basics */
.section {
  padding: 90px 0;
  position: relative;
}

.section-dark {
  background: rgba(5, 8, 16, 0.7);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-badge {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 48px;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 229, 255, 0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-list li i {
  width: 16px;
  height: 16px;
  color: var(--accent-teal);
}

/* Interactive Simulator */
.sim-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(16px);
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.control-group label span {
  color: var(--accent-cyan);
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
}

.sim-buttons {
  display: flex;
  gap: 12px;
}

.sim-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
}

.metric-box.highlight {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.metric-title {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.metric-box.highlight .metric-value {
  color: var(--accent-cyan);
}

.metric-note {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 500;
}

.sim-display {
  display: flex;
  flex-direction: column;
  background: rgba(5, 10, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.legend-color.cyan { background: var(--accent-cyan); }
.legend-color.red { background: #ef4444; }

#simChart {
  width: 100%;
  height: 280px;
  border-radius: 6px;
}

/* Info Cards (Collaboration) */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(41, 121, 255, 0.1);
  border: 1px solid rgba(41, 121, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 22px;
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.trust-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(41, 121, 255, 0.12) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trust-content h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.trust-content p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Paper Cards */
.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.paper-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.paper-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.paper-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.paper-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.paper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  font-size: 0.82rem;
}

.paper-pages {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.paper-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Contact Section */
.contact-container {
  max-width: 1000px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.contact-sub {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

/* Footer */
.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 440px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.link-col h5 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.link-col a, .link-col span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.link-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .sim-container {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
}
