.team-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: teamCardFadeIn 1s cubic-bezier(.5,1.5,.5,1) forwards;
  animation-delay: var(--card-delay, 0s);
}

.team-card.floated {
  animation: teamCardFadeIn 1s cubic-bezier(.5,1.5,.5,1) forwards, teamCardFloat 3.5s ease-in-out infinite alternate;
  animation-delay: var(--card-delay, 0s), 1s;
  opacity: 1;
  transform: translateY(0) scale(1);
}
}

@keyframes teamCardFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-18px) scale(1.03);
  }
}
/* Team card animation */
.team-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: teamCardFadeIn 1s cubic-bezier(.5,1.5,.5,1) forwards;
  animation-delay: var(--card-delay, 0s);
}

@keyframes teamCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#s5 .mars-bg-anim,
#s5 #marsStarsCanvas,
#s5 #marsParticlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
#s5 .mars-info-wrap {
  position: relative;
  z-index: 2;
}
#s5 #marsStarsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}
/* Animación de brillo azul para el botón 'See calculations' */
.glow-btn {
  box-shadow: 0 0 0 0 #0ea5e9, 0 0 24px 8px #0ea5e988, 0 0 48px 16px #7dd3fc88;
  animation: glowBlue 1.2s ease-in-out infinite alternate;
  border-color: #0ea5e9 !important;
}

@keyframes glowBlue {
  0% { box-shadow: 0 0 0 0 #0ea5e9, 0 0 24px 8px #0ea5e988, 0 0 48px 16px #7dd3fc88; }
  100% { box-shadow: 0 0 0 8px #0ea5e9, 0 0 32px 16px #0ea5e9cc, 0 0 64px 24px #7dd3fcaa; }
}
/* Centrar y animar el título de Collection Simulation */
.sim-wrap #sim-title {
  text-align: center;
  animation: floatTitle 3s ease-in-out infinite alternate;
  margin-bottom: 12px;
}

@keyframes floatTitle {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

/* Centrar el texto del footer en la simulación */
.sim-wrap footer {
  opacity: .7;
  font-size: 13px;
  text-align: center;
  width: 100%;
  margin-top: 18px;
}
.canvas-bg-rover {
  position: relative;
  width: 960px;
  height: 520px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px #0ea5e988, 0 0 80px #7dd3fc44;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1b2436 0%, #0a0f1b 80%, #070b14 100%);
  border: 2px solid #7dd3fc55;
  animation: panelGlow 4s ease-in-out infinite alternate;
}

@keyframes panelGlow {
  0% { box-shadow: 0 8px 32px #0ea5e988, 0 0 80px #7dd3fc44; }
  100% { box-shadow: 0 16px 64px #0ea5e9cc, 0 0 120px #7dd3fc88; }
}
.marsrover-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0006;
}
#simCanvas {
  position: relative;
  z-index: 2;
}
.space-stars {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.hero-wrap, .hero-glow, .mars-globe, .title, .subtitle, .how-works-btn, .how-works-expl, .hero-buttons {
  position: relative;
  z-index: 2;
}
/* Mars Info Slide */
#s5 {
  position: relative;
  background: radial-gradient(1200px 800px at 60% 0%, #1b2436 0%, #0a0f1b 80%, #070b14 100%);
  overflow: hidden;
}

#s5 .mars-bg-anim {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 20%, #7dd3fc33 0%, #0ea5e900 80%);
  animation: marsBgAnim 6s ease-in-out infinite alternate;
}

@keyframes marsBgAnim {
  0% { opacity: 0.7; filter: blur(0px); }
  50% { opacity: 1; filter: blur(8px); }
  100% { opacity: 0.7; filter: blur(0px); }
}
.mars-info-wrap {
  display: grid;
  gap: 24px;
  place-items: center;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.mars-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.mars-fact-card {
  background: #0b1322;
  border: 1px solid #23314a;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 32px #0006;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.mars-fact-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 48px #0ea5e988;
}
.mars-fact-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  box-shadow: 0 0 24px #7dd3fc88;
}
.mars-explore-link {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(90deg, #0ea5e9 60%, #7dd3fc 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px #0004;
  margin-top: 18px;
  transition: background .2s, box-shadow .2s;
}
.mars-explore-link:hover {
  background: linear-gradient(90deg, #7dd3fc 0%, #0ea5e9 100%);
  box-shadow: 0 8px 32px #0ea5e988;
}
/* Mars Trash Cleanup — Clean Mars + MARS-LOOP Chamber CSS */
:root { --bg:#0a0f1b; --fg:#e6edf7; --accent:#7dd3fc; --btn:#1f2937; --ok:#22c55e; --warn:#f59e0b; --card:#0c1425; --muted:#9fb1c9; }
* { box-sizing:border-box; }
html,body {
  margin:0; height:100%;
  background: #000 !important;
  color:var(--fg);
  font-family: 'Montserrat', 'Roboto', 'Inter', 'Segoe UI', Arial, system-ui;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.slide { min-height:100dvh; display:none; place-items:center; padding:24px; }
.show { display:grid; }

.hero-wrap {
  display: grid;
  gap: 32px;
  place-items: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  position: relative;
  padding-top: 32px;
}
.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 320px;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 20%, #7dd3fc55 0%, #0ea5e900 80%);
  filter: blur(32px) brightness(1.2);
  z-index: 0;
}
.title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e6edf7;
  font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, system-ui;
  text-shadow: 0 2px 24px #0ea5e955, 0 0 8px #fff2;
  margin-bottom: 0;
}
  .title {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #e6edf7;
    font-family: 'Montserrat', 'Roboto', 'Inter', 'Orbitron', 'Segoe UI', Arial, system-ui;
    text-shadow: 0 2px 32px #0ea5e9cc, 0 0 16px #7dd3fc88, 0 0 8px #fff2;
    margin-bottom: 0;
    background: linear-gradient(90deg, #7dd3fc 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
  }
.how-works-btn {
  background: linear-gradient(90deg, #7dd3fc 0%, #0ea5e9 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 1.1em;
  font-weight: 600;
  box-shadow: 0 4px 16px #0ea5e988;
  cursor: pointer;
  margin-top: 18px;
  transition: background .2s, box-shadow .2s;
}
.how-works-btn:hover {
  background: linear-gradient(90deg, #0ea5e9 0%, #7dd3fc 100%);
  box-shadow: 0 8px 32px #7dd3fc88;
}
.how-works-expl {
  max-width: 700px;
  width: 100%;
  min-width: 320px;
  position: static;
  margin: 4px auto 0 auto;
  background: rgba(12,20,37,0.97);
  color: #e6edf7;
  border-radius: 12px;
  box-shadow: 0 8px 32px #0ea5e988;
  padding: 18px 22px;
  font-size: 1.08em;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity .5s, transform .5s;
}
.how-works-expl.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.subtitle {
  opacity: .92;
  max-width: 70ch;
  font-size: 1.25em;
  color: #e6edf7;
  text-shadow: 0 1px 8px #0ea5e955;
}
.main-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  background: #0b1322;
  border-radius: 14px;
  box-shadow: 0 4px 24px #0008;
  overflow: hidden;
  padding: 0 24px;
}
  .main-tabs {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
    background: linear-gradient(90deg, #0b1322 80%, #0ea5e922 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px #0ea5e988, 0 0 40px #7dd3fc44;
    overflow: hidden;
    padding: 0 32px;
    border: 2px solid #7dd3fc33;
  }
.tab-btn {
  flex: 1;
  padding: 16px 0;
  margin: 0 8px;
  background: none;
  border: none;
  color: #e6edf7;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  position: relative;
  transition: background .25s cubic-bezier(.4,2,.3,1), color .2s, transform .18s cubic-bezier(.4,2,.3,1), box-shadow .18s;
  box-shadow: 0 2px 8px #0002;
}
  .tab-btn {
    flex: 1;
    padding: 18px 0;
    margin: 0 10px;
    background: none;
    border: none;
    color: #e6edf7;
    font-size: 1.15em;
    font-weight: 700;
    font-family: 'Montserrat', 'Roboto', 'Inter', 'Segoe UI', Arial, system-ui;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    transition: background .25s cubic-bezier(.4,2,.3,1), color .2s, transform .18s cubic-bezier(.4,2,.3,1), box-shadow .18s;
    box-shadow: 0 2px 12px #0ea5e944;
    letter-spacing: 0.5px;
  }
  .tab-btn:last-child {
    border-right: none;
  }
  .tab-btn:hover, .tab-btn.active {
    background: linear-gradient(90deg, #0ea5e9 0%, #7dd3fc 100%);
    color: #fff;
    transform: translateY(-4px) scale(1.09);
    box-shadow: 0 12px 32px #0ea5e988, 0 0 40px #7dd3fc44;
    text-shadow: 0 2px 16px #7dd3fc88;
  }
  .tab-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px #0ea5e988;
  }
.tab-btn:last-child {
  border-right: none;
}
.tab-btn:hover, .tab-btn.active {
  background: linear-gradient(90deg, #0ea5e9 0%, #7dd3fc 100%);
  color: #fff;
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 8px 24px #0ea5e988;
}
.tab-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px #0ea5e988;
}

.mars {
  width:min(70vw, 520px); aspect-ratio:1/1; border-radius:50%;
  background:#000 center/cover no-repeat;
  box-shadow: 0 0 80px #f97316aa, 0 0 120px #7dd3fc44, 0 0 180px #fff2, inset 0 0 80px #0006;
  animation: spin 18s linear infinite, floatMars 3.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px #7dd3fc88) brightness(1.15) saturate(1.2);
}

@keyframes spin { from{ transform:rotate(0deg); } to{ transform:rotate(360deg);} }
@keyframes floatMars {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  50%  { transform: translateY(-32px) scale(1.04) rotate(2deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.row { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
button {
  appearance:none; border:1px solid #2a3342; background:linear-gradient(#1b2331,#141b26);
  color:var(--fg); padding:12px 18px; border-radius:12px; cursor:pointer; transition:.2s transform,.2s border-color,.2s box-shadow;
}
button:hover { transform:translateY(-1px); border-color:#3b465a; box-shadow:0 4px 16px #0008; }
.primary { background:linear-gradient(180deg, #0ea5e9, #0369a1); border:0; }
.ghost { background:#0b1320; }

.sim-wrap { display:grid; gap:16px; width:min(100%, 980px); margin-inline:auto; }
.canvas-wrap { background:#030712; border:1px solid #1f2a3a; border-radius:16px; padding:12px; }
#simCanvas { width:100%; height:520px; display:block; background:transparent; border-radius:12px; }
.panel { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.panel .left, .panel .right { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.stat { padding:8px 12px; border:1px solid #273247; border-radius:10px; background:#0d1422; }
input[type="number"] { width:110px; }
.badge { font-size:12px; padding:4px 8px; border-radius:999px; background:#0f172a; border:1px solid #243049; opacity:.9; }
.control { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid #273247; border-radius:10px; background:#0d1422; }
.control input[type="range"]{ width:180px; }

.card { width:min(100%, 980px); border:2px solid #7dd3fc55; border-radius:20px; padding:24px; background:linear-gradient(120deg, #0c1425 80%, #0ea5e922 100%); box-shadow:0 16px 48px #0ea5e988, 0 0 80px #7dd3fc44; margin-inline:auto; transition:box-shadow .3s; }
.card:hover { box-shadow:0 24px 64px #0ea5e9cc, 0 0 120px #7dd3fc88; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.kpi { border:1px solid #23314a; background:#0b1322; border-radius:12px; padding:14px; }
.kpi { border:2px solid #7dd3fc33; background:linear-gradient(120deg, #0b1322 80%, #0ea5e922 100%); border-radius:16px; padding:18px; box-shadow:0 4px 24px #0ea5e988; transition:box-shadow .2s; }
.kpi b { display:block; font-size:22px; margin-top:6px; color:#7dd3fc; text-shadow:0 2px 12px #0ea5e988; }
.kpi:hover { box-shadow:0 8px 32px #0ea5e988, 0 0 40px #7dd3fc44; border-color:#0ea5e9; }
.badge { font-size:13px; padding:6px 12px; border-radius:999px; background:linear-gradient(90deg,#0ea5e9 60%,#7dd3fc 100%); color:#fff; border:0; opacity:.95; box-shadow:0 2px 8px #0ea5e988; font-weight:600; letter-spacing:0.3px; }
.panel {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #0c1425 80%, #0ea5e922 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px #0ea5e988, 0 0 40px #7dd3fc44;
  border: 2px solid #7dd3fc33;
  padding: 32px 32px 24px 32px;
  max-width: 900px;
  margin: 0 auto 24px auto;
}
.panel .left, .panel .right {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.sim-wrap {
  display: grid;
  gap: 32px;
  width: min(100%, 1100px);
  margin-inline: auto;
  background: radial-gradient(ellipse 90% 70% at 50% 40%, #1b2436 0%, #0a0f1b 80%, #070b14 100%);
  border-radius: 32px;
  box-shadow: 0 12px 48px #0ea5e988, 0 0 120px #7dd3fc44;
  border: 3px solid #7dd3fc44;
  padding: 40px 0 40px 0;
}
.kpi b { display:block; font-size:20px; margin-top:6px; color:#e2f1ff; }
.ok { color:var(--ok); } .warn { color:var(--warn); }
.muted { color: var(--muted); }

.clean-mars { width:min(70vw,520px); aspect-ratio:1/1; border-radius:50%;
  background:#000 center/cover no-repeat;
  box-shadow: 0 0 70px #22c55e77, inset 0 0 90px #0008;
  animation: spin 30s linear infinite;
}

.subgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
small.muted{opacity:.7}

/* Inside the Chamber slide */
.chamber-wrap { width:min(100%, 980px); display:grid; gap:18px; margin-inline:auto; }
.stage { border:1px solid #223049; background:#0b1322; border-radius:14px; padding:14px; }
.stage h4{ margin:0 0 6px; font-weight:700; }
.bar{ height:10px; background:#0f172a; border-radius:999px; overflow:hidden; border:1px solid #1f2a3a; }
.bar > span{ display:block; height:100%; width:0%; background:linear-gradient(90deg,#0ea5e9,#22d3ee); transition: width .9s ease; }
.stage .line{ display:flex; justify-content:space-between; font-size:13px; color:#c8d6ea; margin-top:6px;}
.notes{ font-size:13px; color:#c8d6ea; }
.pill{ display:inline-block; padding:2px 8px; border-radius:999px; border:1px solid #254; background:#0c1f16; color:#9ff3c8; font-size:12px; }
.idea-card{ border:1px solid #23314a; background:#0b1322; border-radius:12px; padding:12px; }
.idea-card h5{ margin:0 0 6px; }
footer{opacity:.7; font-size:13px}
