/* Quantum Linux — mismos colores y estilo que los videos */
:root {
  --bg: #F4F1FF;
  --ink: #221B45;
  --muted: #6E6890;
  --line: #E2DCFB;
  --card: #FFFFFF;
  --cyan: #2FC4F0;
  --indigo: #6A5CFF;
  --violet: #B14DFF;
  --grad: linear-gradient(90deg, var(--cyan), var(--indigo) 50%, var(--violet));
  --radius: 28px;
  --shadow: 0 30px 80px -30px rgba(70, 50, 180, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal; line-height: 1;
  font-size: 1.25em; display: inline-block; vertical-align: middle;
  font-variation-settings: "FILL" 1, "wght" 500;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  user-select: none;
}

/* Fondo con manchas de color que se mueven lento (como Backdrop de los videos) */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%;
  filter: blur(90px); opacity: .5; animation: drift 26s ease-in-out infinite alternate;
}
.blobs span:nth-child(1) { background: #B9A8FF; top: -20vmax; left: -15vmax; }
.blobs span:nth-child(2) { background: #A8E6FF; top: 10vmax; right: -20vmax; animation-delay: -9s; }
.blobs span:nth-child(3) { background: #E3B8FF; bottom: -25vmax; left: 20vmax; animation-delay: -16s; }
@keyframes drift {
  to { transform: translate(6vmax, 4vmax) scale(1.08); }
}

/* Barra de navegación */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: 1180px; margin: 14px auto 0; padding: 10px 12px 10px 20px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 40px -20px rgba(70, 50, 180, .3);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.links a:hover { background: rgba(106, 92, 255, .1); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 22px; padding: 8px; border-radius: 50%; cursor: pointer; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn-grad { color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(106, 92, 255, .7); }
.btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn.big { padding: 18px 34px; font-size: 18px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tiny { font-size: 13px; color: var(--muted); }
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: #fff; background: var(--grad);
}

/* Portada */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 90px 24px 60px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.03em; margin: 22px 0 18px; font-weight: 900; }
.motto { font-size: 22px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 14px; }
.cta.center { justify-content: center; }

/* Letras que aparecen una a una con rebote (como Line.qml) */
.kinetic .w { display: inline-block; white-space: nowrap; }
.kinetic .ch { display: inline-block; opacity: 0; transform: translateY(.45em) scale(.6); animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.kinetic .g { background: var(--grad); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes pop { to { opacity: 1; transform: none; } }

.hero-shot { position: relative; }
.monitor {
  border-radius: 22px; padding: 10px; background: #0D0B14;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  overflow: hidden;
}
.monitor img { border-radius: 14px; }
.hero-shot .monitor { animation: float 7s ease-in-out infinite; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
@keyframes float { 50% { translate: 0 -12px; } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 15px;
  border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(70, 50, 180, .45);
  animation: float 6s ease-in-out infinite;
}
.float-chip .ms { color: var(--indigo); }
.c1 { top: -18px; left: 8%; animation-delay: -1s; }
.c2 { bottom: 14%; left: -26px; animation-delay: -3s; }
.c3 { bottom: -16px; right: 10%; animation-delay: -5s; }

/* Secciones */
.section { max-width: 1180px; margin: 0 auto; padding: 90px 24px; }
.section h2 { font-size: clamp(34px, 4.2vw, 56px); letter-spacing: -.025em; text-align: center; margin: 0 0 10px; font-weight: 900; }
.sub { text-align: center; color: var(--muted); font-size: 19px; margin: 0 0 46px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon {
  font-size: 34px; width: 66px; height: 66px; display: grid; place-items: center;
  color: #fff; background: var(--grad); border-radius: 20px; margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }

/* Galería */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab {
  font: inherit; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--indigo); }
.tab.active { color: #fff; background: var(--grad); border-color: transparent; }
.gallery { max-width: 1060px; margin: 0 auto; }
.gallery img { transition: opacity .25s, transform .35s; }
.gallery img.swap { opacity: 0; transform: scale(.985); }
.caption { text-align: center; color: var(--muted); margin-top: 18px; }

/* Comparación */
.table-wrap { overflow-x: auto; margin-top: 36px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; font-size: 17px; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare td:first-child { font-weight: 700; }
.compare .q { background: rgba(106, 92, 255, .06); font-weight: 700; }
.compare thead .q { color: var(--indigo); }
.ok { color: #22B573; margin-right: 8px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 46px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--grad); font-weight: 800; font-size: 20px; }
.step h3 { margin: 16px 0 6px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }

.download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 34px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, #221B45, #3B2C9A 60%, #6A2FB8);
  box-shadow: var(--shadow);
}
.dl-info { display: flex; align-items: center; gap: 20px; }
.dl-info h3 { margin: 0; font-size: 26px; }
.dl-info p { margin: 4px 0 0; opacity: .8; }
.download .tiny { color: #D6D1F2; flex-basis: 100%; margin: 0; text-align: right; }
.download .tiny:empty { display: none; }

.reqs { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.reqs h3 { margin: 0 0 14px; }
.reqs ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.reqs li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.reqs li .ms { color: var(--indigo); }

/* Preguntas */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 6px 26px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "add"; font-family: "Material Symbols Rounded"; font-size: 24px; color: var(--indigo); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

.community { text-align: center; }

.footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding: 40px 24px 50px; color: var(--muted); font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Celulares y tablets */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; text-align: center; }
  .lead { margin: 0 auto; }
  .cta { justify-content: center; }
  .hero-shot .monitor { transform: none; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .reqs ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { margin: 10px 16px 0; gap: 10px; }
  .brand { font-size: 17px; white-space: nowrap; }
  .brand img { width: 30px; height: 30px; }
  .links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 10px;
    display: none; box-shadow: var(--shadow);
  }
  .links.open { display: flex; }
  .nav > .btn-sm { margin-left: auto; }
  .menu-toggle { display: block; }
  .hero, .section { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .cards, .steps, .reqs ul { grid-template-columns: 1fr; }
  .float-chip { font-size: 13px; padding: 9px 14px; }
  .c2 { left: -6px; }
  .compare { font-size: 15px; }
  .compare th, .compare td { padding: 14px; }
  .download { padding: 26px; }
  .download .btn { width: 100%; justify-content: center; }
  .download .tiny { text-align: center; }
}

/* Sin animaciones si la persona las desactivó */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .kinetic .ch { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Celulares angostos: el botón de arriba tapaba el nombre (la portada ya tiene «Descargar») */
@media (max-width: 440px) {
  .nav > .btn-sm { display: none; }
  .menu-toggle { margin-left: auto; }
}
