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

html {
  scroll-behavior: smooth;
}

body {
  background: #02060d;
  font-family: "Poppins", Arial, sans-serif;
  color: #fff;
}

/* NAV */
.nav {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  padding: 0 48px;
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(2, 6, 13, 0.72), rgba(2, 6, 13, 0));
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  top: auto;
  left: auto;
  width: 180px;
  height: 84px;
  overflow: hidden;
  z-index: 2;
  transform: none;
  justify-content: flex-start;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}

.nav-backdrop,
.mobile-panel-head {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu a,
.nav-btn {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.menu a:hover {
  color: #4b8dff;
}

.menu a span:last-child {
  display: none;
}

.nav-btn {
  position: absolute;
  right: 0;
  padding: 14px 30px;
  border: 1px solid rgba(64, 139, 255, 0.75);
  border-radius: 12px;
  background: rgba(3, 12, 28, 0.35);
  backdrop-filter: blur(12px);
}

.nav-btn:hover {
  background: #256df0;
}

.menu-toggle {
  display: none;
}

@media (min-width: 1101px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    column-gap: 24px;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .nav-panel {
    display: contents;
  }

  .menu {
    grid-column: 2;
    justify-self: center;
    gap: clamp(18px, 1.8vw, 32px);
  }

  .menu a {
    white-space: nowrap;
  }

  .nav-btn {
    position: static;
    grid-column: 3;
    justify-self: end;
  }
}

/* HERO */
.bar-hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: #02060d;
}

.bar-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
}

.bar-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(47, 128, 255, .16), transparent 38%),
    linear-gradient(to bottom, rgba(2, 6, 13, .32), #02060d 94%),
    rgba(2, 6, 13, .42);
  z-index: 1;
}

.bar-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 220px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 6, 13, 0), rgba(2, 6, 13, 0.72), #02060d);
}

.bar-hero-content {
  position: relative;
  z-index: 3;
  width: min(850px, 100%);
}

.bar-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4b8dff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.bar-eyebrow::before {
  display: none;
  content: none;
}

.bar-hero h1 {
  margin: 18px 0 26px;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 500;
}

.bar-hero h1 em {
  color: #4b8dff;
  font-style: italic;
  font-weight: 400;
}

.bar-hero p {
  max-width: 620px;
  margin: 0 auto 34px;
  color: rgba(255,255,255,.68);
  font-size: 17px;
  line-height: 1.7;
}

.bar-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f80ff, #1f5edb);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 18px 45px rgba(31, 94, 219, .28);
}

/* APARTADO ORBITAL */
.bar-apartado {
  position: relative;
  overflow: hidden;
  padding: 90px 24px 130px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(47,128,255,.14), transparent),
    linear-gradient(to bottom, #02060d 0%, #040a18 100%);
}

.bar-apartado::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(75,141,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,141,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.bar-apartado::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(920px, 90vw);
  height: 220px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(75, 141, 255, 0.11), transparent);
  filter: blur(24px);
  pointer-events: none;
}

.bar-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.bar-header {
  max-width: 680px;
  margin: 0 auto 80px;
  text-align: center;
}

.bar-header h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.06em;
  margin-bottom: 20px;
}

.bar-header h2 em {
  color: #4b8dff;
  font-style: italic;
  font-weight: 400;
}

.bar-header p {
  color: rgba(255,255,255,.6);
  font-size: 16px;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

.orbital-stage {
  position: relative;
  min-height: 720px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(75, 141, 255, 0.14);
  pointer-events: none;
}

.ring-1 {
  width: 640px;
  height: 640px;
}

.ring-2 {
  width: 500px;
  height: 500px;
  border-color: rgba(75,141,255,.07);
}

.orbit-card {
  position: absolute;
  width: 255px;
  padding: 20px 22px;
  border: 1px solid rgba(75, 141, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 16, 34, 0.92), rgba(3, 8, 18, 0.86));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}

.orbit-card h4 {
  color: #7eb5ff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.orbit-card p {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.6;
}

.card-lt { top: 82px; left: 2%; }
.card-rt { top: 82px; right: 2%; }
.card-lb { bottom: 145px; left: 0; }
.card-rb { bottom: 145px; right: 0; }
.card-bc { bottom: 34px; left: 50%; transform: translateX(-50%); width: 285px; }

.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(75, 141, 255, 0.34);
  border-radius: 50%;
  background: rgba(7, 16, 34, 0.86);
  color: #4b8dff;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(75,141,255,.14);
}

.node-1 { top: 185px; left: 30%; }
.node-2 { top: 185px; right: 30%; }
.node-3 { bottom: 255px; left: 28%; }
.node-4 { bottom: 255px; right: 28%; }
.node-5 { bottom: 150px; left: 50%; transform: translateX(-50%); }

/* PERSONAJE */
.sonic-signal {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
}

.sonic-signal::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(75,141,255,.32), transparent 50%),
    radial-gradient(ellipse, rgba(47,128,255,.18), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

.sonic-groove {
  position: relative;
  display: grid;
  place-items: center;
  animation: sonicGroove 3.9s cubic-bezier(.45,0,.25,1) infinite;
}

.sonic-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 310px;
  height: 310px;
  transform-style: preserve-3d;
}

.sonic-orbit {
  position: absolute;
  border: 1px solid rgba(75,141,255,.27);
  border-radius: 50%;
}

.orbit-back {
  width: 320px;
  height: 320px;
  border-color: rgba(75,141,255,.5);
  box-shadow: 0 0 36px rgba(47,128,255,.3);
  transform: translateZ(-34px);
}

.orbit-mid {
  width: 298px;
  height: 298px;
  border: 6px solid rgba(4,13,34,.72);
  transform: translateZ(-14px);
}

.orbit-front {
  width: 278px;
  height: 278px;
  border-color: rgba(146,194,255,.28);
  transform: translateZ(3px);
}

.sonic-headphones {
  position: absolute;
  inset: -11px;
  z-index: 1;
  transform: translateZ(28px);
}

.headphone-band {
  position: absolute;
  top: -14px;
  left: 15%;
  width: 70%;
  height: 57%;
  border: 6px solid rgba(9,24,56,.96);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.headphone-cup {
  position: absolute;
  top: 52%;
  width: 28px;
  height: 72px;
  border: 1px solid rgba(97,159,255,.5);
  border-radius: 15px;
  background: linear-gradient(135deg, #102857, #040c1c);
  transform: translateY(-50%) translateZ(11px);
}

.headphone-left { left: -4px; }
.headphone-right { right: -4px; }

.sonic-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 268px;
  height: 268px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 29% 17%, rgba(166,202,255,.3), transparent 30%),
    radial-gradient(circle at 50% 53%, rgba(21,68,158,.35), transparent 55%),
    linear-gradient(145deg, #102653 0%, #050e21 54%, #020713 100%);
  box-shadow:
    inset 13px 15px 31px rgba(137,184,255,.14),
    inset -12px -18px 30px rgba(0,0,0,.48),
    0 30px 50px rgba(0,0,0,.4),
    0 0 56px rgba(47,128,255,.36);
  transform: translateZ(33px);
}

.core-rim {
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(93,154,255,.56);
  border-radius: 50%;
}

.core-glass {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(92,152,255,.16);
  border-radius: 50%;
}

.sonic-face {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  transform: translateZ(15px);
}

.sonic-eyes {
  display: flex;
  align-items: center;
  gap: 54px;
  margin-top: -8px;
  margin-bottom: 30px;
}

.sonic-eye {
  display: grid;
  place-items: center;
  width: 40px;
  height: 49px;
  border-radius: 52% 52% 48% 48%;
  background: rgba(10,27,56,.86);
}

.sonic-eye i {
  display: block;
  width: 21px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 29%, #fff 0 18%, transparent 20%),
    radial-gradient(circle, #95c2ff 0 36%, #3987ff 56%, #0c2757 100%);
}

.sonic-smile {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  width: 152px;
  height: 52px;
}

.sonic-smile span {
  width: 4px;
  border-radius: 6px;
  background: linear-gradient(to bottom, rgba(215,231,255,.94), #2f80ff);
  box-shadow: 0 0 7px rgba(47,128,255,.56);
  animation: smileWave 1.85s ease-in-out infinite alternate;
}

.sonic-smile span:nth-child(1), .sonic-smile span:nth-child(21) { height: 6px; }
.sonic-smile span:nth-child(2), .sonic-smile span:nth-child(20) { height: 11px; margin-top: 2px; }
.sonic-smile span:nth-child(3), .sonic-smile span:nth-child(19) { height: 16px; margin-top: 4px; }
.sonic-smile span:nth-child(4), .sonic-smile span:nth-child(18) { height: 20px; margin-top: 7px; }
.sonic-smile span:nth-child(5), .sonic-smile span:nth-child(17) { height: 24px; margin-top: 9px; }
.sonic-smile span:nth-child(6), .sonic-smile span:nth-child(16) { height: 27px; margin-top: 11px; }
.sonic-smile span:nth-child(7), .sonic-smile span:nth-child(15) { height: 30px; margin-top: 13px; }
.sonic-smile span:nth-child(8), .sonic-smile span:nth-child(14) { height: 33px; margin-top: 14px; }
.sonic-smile span:nth-child(9), .sonic-smile span:nth-child(13) { height: 36px; margin-top: 15px; }
.sonic-smile span:nth-child(10), .sonic-smile span:nth-child(12) { height: 38px; margin-top: 16px; }
.sonic-smile span:nth-child(11) { height: 40px; margin-top: 17px; }

.core-reflection {
  position: absolute;
  top: 18px;
  left: 30px;
  width: 42%;
  height: 16%;
  border-radius: 50%;
  background: linear-gradient(100deg, rgba(255,255,255,.27), transparent);
  filter: blur(1px);
}

.sonic-pulse {
  position: absolute;
  width: 305px;
  height: 305px;
  border: 1px solid rgba(76,142,255,.33);
  border-radius: 50%;
  opacity: 0;
  animation: sonicRing 3.2s ease-out infinite;
}

.pulse-two {
  animation-delay: 1.6s;
}

.sonic-shadow {
  width: 110px;
  height: 18px;
  margin-top: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47,128,255,.42), rgba(47,128,255,.04) 63%, transparent 72%);
  filter: blur(4px);
}

/* EDUCACIÓN ANIMADA */
.bar-education {
  position: relative;
  overflow: hidden;
  padding: 135px 24px 120px;
  background:
    radial-gradient(circle at 50% 32%, rgba(75, 141, 255, 0.13), transparent 34%),
    linear-gradient(to bottom, #02060d 0%, #030814 100%);
}

/* Partículas flotantes */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.particle-1 {
  width: 4px;
  height: 4px;
  background: #4b8dff;
  box-shadow: 0 0 12px #4b8dff;
  top: 15%;
  left: 10%;
  animation: floatParticle1 8s ease-in-out infinite;
}

.particle-2 {
  width: 6px;
  height: 6px;
  background: #4b8dff;
  box-shadow: 0 0 16px #4b8dff;
  top: 25%;
  right: 15%;
  animation: floatParticle2 10s ease-in-out infinite;
}

.particle-3 {
  width: 3px;
  height: 3px;
  background: #ff4c5f;
  box-shadow: 0 0 10px #ff4c5f;
  top: 40%;
  left: 5%;
  animation: floatParticle3 7s ease-in-out infinite;
}

.particle-4 {
  width: 5px;
  height: 5px;
  background: #4b8dff;
  box-shadow: 0 0 14px #4b8dff;
  top: 55%;
  right: 8%;
  animation: floatParticle4 9s ease-in-out infinite;
}

.particle-5 {
  width: 3px;
  height: 3px;
  background: #4b8dff;
  box-shadow: 0 0 8px #4b8dff;
  bottom: 30%;
  left: 12%;
  animation: floatParticle5 11s ease-in-out infinite;
}

.particle-6 {
  width: 4px;
  height: 4px;
  background: #4b8dff;
  box-shadow: 0 0 12px #4b8dff;
  bottom: 20%;
  right: 20%;
  animation: floatParticle6 8s ease-in-out infinite;
}

.particle-7 {
  width: 5px;
  height: 5px;
  background: #ff4c5f;
  box-shadow: 0 0 14px #ff4c5f;
  top: 70%;
  left: 25%;
  animation: floatParticle7 9s ease-in-out infinite;
}

.particle-8 {
  width: 3px;
  height: 3px;
  background: #4b8dff;
  box-shadow: 0 0 10px #4b8dff;
  top: 10%;
  right: 30%;
  animation: floatParticle8 12s ease-in-out infinite;
}

.particle-9 {
  width: 6px;
  height: 6px;
  background: #4b8dff;
  box-shadow: 0 0 16px #4b8dff;
  bottom: 45%;
  left: 8%;
  animation: floatParticle9 10s ease-in-out infinite;
}

.particle-10 {
  width: 4px;
  height: 4px;
  background: #ff4c5f;
  box-shadow: 0 0 12px #ff4c5f;
  top: 35%;
  right: 25%;
  animation: floatParticle10 7s ease-in-out infinite;
}

.particle-11 {
  width: 5px;
  height: 5px;
  background: #4b8dff;
  box-shadow: 0 0 14px #4b8dff;
  bottom: 15%;
  right: 12%;
  animation: floatParticle11 9s ease-in-out infinite;
}

.particle-12 {
  width: 3px;
  height: 3px;
  background: #4b8dff;
  box-shadow: 0 0 8px #4b8dff;
  top: 80%;
  left: 18%;
  animation: floatParticle12 11s ease-in-out infinite;
}

/* Líneas de energía */
.energy-line {
  position: absolute;
  width: 2px;
  height: 100%;
  top: 0;
  opacity: 0.15;
}

.energy-left {
  left: 8%;
  background: linear-gradient(to bottom, transparent, #4b8dff, transparent);
  animation: energyPulse 4s ease-in-out infinite;
}

.energy-right {
  right: 8%;
  background: linear-gradient(to bottom, transparent, #4b8dff, transparent);
  animation: energyPulse 4s ease-in-out infinite 2s;
}

.bar-education-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  z-index: 10;
}

/* Pill decorativo */
.quality-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto 54px;
  padding: 12px 24px;
  border: 1px solid rgba(75, 141, 255, 0.38);
  border-radius: 999px;
  color: rgba(222, 238, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  background: rgba(6, 14, 31, 0.7);
  box-shadow: 0 0 32px rgba(75, 141, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.quality-pill.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.quality-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b8dff;
  box-shadow: 0 0 18px #4b8dff;
  animation: pillPulse 2s ease-in-out infinite;
}

/* Título animado */
.animated-title {
  max-width: 1100px;
  margin: 0 auto 72px;
  text-align: center;
  font-size: clamp(54px, 6.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.075em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out 0.2s;
}

.animated-title.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.title-line {
  display: block;
}

.title-highlight {
  display: block;
  color: #4b8dff;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0 40px rgba(75, 141, 255, 0.6);
}

/* Comparación de calidad */
.quality-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 34px;
  align-items: center;
  max-width: 1230px;
  margin: 0 auto 50px;
}

.quality-compare::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(75, 141, 255, 0.55), transparent);
  transform: translateX(-50%);
}

/* Tarjetas de calidad */
.quality-card {
  position: relative;
  min-height: 340px;
  padding: 42px 38px 38px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(75, 141, 255, 0.08), transparent 60%),
    rgba(3, 8, 18, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(75, 141, 255, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-out;
}

.quality-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.quality-bad {
  border-color: rgba(255, 76, 95, 0.25);
  box-shadow:
    inset 0 -2px 0 rgba(255, 76, 95, 0.35),
    0 25px 50px rgba(0, 0, 0, 0.4);
}

.quality-good {
  border-color: rgba(75, 141, 255, 0.35);
  box-shadow:
    inset 0 -2px 0 rgba(75, 141, 255, 0.5),
    0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Efecto glow en tarjetas */
.card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.4;
}

.card-glow-red {
  background: radial-gradient(ellipse at center, rgba(255, 76, 95, 0.3), transparent 50%);
  filter: blur(40px);
  animation: glowPulseRed 3s ease-in-out infinite;
}

.card-glow-blue {
  background: radial-gradient(ellipse at center, rgba(75, 141, 255, 0.4), transparent 50%);
  filter: blur(40px);
  animation: glowPulseBlue 3s ease-in-out infinite;
}

/* Encabezado de tarjeta */
.quality-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.icon-wrapper {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.icon-bad {
  border: 2px solid rgba(255, 76, 95, 0.7);
  color: #ff4c5f;
  box-shadow: 0 0 20px rgba(255, 76, 95, 0.4);
}

.icon-good {
  border: 2px solid rgba(75, 141, 255, 0.7);
  color: #4b8dff;
  box-shadow: 0 0 20px rgba(75, 141, 255, 0.4);
}

.quality-card-head strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.quality-bad .quality-card-head strong {
  color: #ff4c5f;
  text-shadow: 0 0 20px rgba(255, 76, 95, 0.5);
}

.quality-good .quality-card-head strong {
  color: #4b8dff;
  text-shadow: 0 0 20px rgba(75, 141, 255, 0.5);
}

/* Ondas de partículas */
.wave-particles {
  position: relative;
  height: 120px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.particle-wave {
  width: 6px;
  border-radius: 999px;
  position: relative;
}

.particle-wave::before,
.particle-wave::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  opacity: 0.6;
}

/* Ondas caóticas (rojo) */
.wave-chaos .particle-wave {
  background: linear-gradient(to top, rgba(255, 76, 95, 0.3), #ff4c5f);
  box-shadow: 0 0 15px rgba(255, 76, 95, 0.6);
  animation: chaosWave 1.2s ease-in-out infinite;
}

.wave-chaos .particle-wave:nth-child(odd) {
  height: 80px;
  animation-duration: 0.8s;
}

.wave-chaos .particle-wave:nth-child(even) {
  height: 40px;
  animation-duration: 1.4s;
}

.wave-chaos .particle-wave:nth-child(3n) {
  height: 60px;
  animation-duration: 1s;
}

.wave-chaos .particle-wave:nth-child(4n) {
  height: 95px;
  animation-duration: 0.9s;
}

.wave-chaos .particle-wave:nth-child(5n) {
  height: 30px;
  animation-duration: 1.3s;
}

/* Ondas armónicas (azul) */
.wave-harmonic .particle-wave {
  background: linear-gradient(to top, rgba(75, 141, 255, 0.3), #4b8dff);
  box-shadow: 0 0 18px rgba(75, 141, 255, 0.7);
  animation: harmonicWave 2s ease-in-out infinite;
}

.wave-harmonic .particle-wave:nth-child(1) { height: 35px; animation-delay: 0s; }
.wave-harmonic .particle-wave:nth-child(2) { height: 50px; animation-delay: 0.1s; }
.wave-harmonic .particle-wave:nth-child(3) { height: 65px; animation-delay: 0.2s; }
.wave-harmonic .particle-wave:nth-child(4) { height: 80px; animation-delay: 0.3s; }
.wave-harmonic .particle-wave:nth-child(5) { height: 95px; animation-delay: 0.4s; }
.wave-harmonic .particle-wave:nth-child(6) { height: 80px; animation-delay: 0.5s; }
.wave-harmonic .particle-wave:nth-child(7) { height: 65px; animation-delay: 0.6s; }
.wave-harmonic .particle-wave:nth-child(8) { height: 50px; animation-delay: 0.7s; }
.wave-harmonic .particle-wave:nth-child(9) { height: 65px; animation-delay: 0.8s; }
.wave-harmonic .particle-wave:nth-child(10) { height: 80px; animation-delay: 0.9s; }
.wave-harmonic .particle-wave:nth-child(11) { height: 50px; animation-delay: 1s; }
.wave-harmonic .particle-wave:nth-child(12) { height: 35px; animation-delay: 1.1s; }

/* Descripción de tarjeta */
.card-description {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.quality-bad .card-description {
  color: rgba(255, 200, 200, 0.9);
}

.quality-good .card-description {
  color: rgba(200, 225, 255, 0.9);
}

/* Línea inferior decorativa */
.card-footer-line {
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  border-radius: 999px;
}

.quality-bad .card-footer-line {
  background: linear-gradient(90deg, transparent, rgba(255, 76, 95, 0.6), transparent);
  box-shadow: 0 0 20px rgba(255, 76, 95, 0.4);
}

.quality-good .card-footer-line {
  background: linear-gradient(90deg, transparent, rgba(75, 141, 255, 0.6), transparent);
  box-shadow: 0 0 20px rgba(75, 141, 255, 0.4);
}

/* VS Circle animado */
.quality-vs {
  position: relative;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s ease-out 0.4s;
}

.quality-vs.animate-in {
  opacity: 1;
  transform: scale(1);
}

.vs-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(75, 141, 255, 0.5);
}

.vs-ring-1 {
  width: 90px;
  height: 90px;
  animation: vsRingPulse 2s ease-out infinite;
}

.vs-ring-2 {
  width: 70px;
  height: 70px;
  border-color: rgba(75, 141, 255, 0.35);
  animation: vsRingPulse 2s ease-out infinite 0.5s;
}

.vs-ring-3 {
  width: 50px;
  height: 50px;
  border-color: rgba(75, 141, 255, 0.2);
  animation: vsRingPulse 2s ease-out infinite 1s;
}

.vs-text {
  position: relative;
  z-index: 5;
  font-size: 22px;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 20px rgba(75, 141, 255, 0.8);
}

/* Footer de calidad */
.quality-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out 0.6s;
}

.quality-footer.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.footer-icon-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.footer-icon {
  font-size: 22px;
  color: #4b8dff;
  text-shadow: 0 0 15px rgba(75, 141, 255, 0.6);
}

.icon-pulse {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(75, 141, 255, 0.4);
  border-radius: 50%;
  animation: iconPulse 2.5s ease-out infinite;
}

.quality-footer em {
  color: #4b8dff;
  font-style: normal;
  text-shadow: 0 0 15px rgba(75, 141, 255, 0.4);
}

/* Animaciones clave */
@keyframes floatParticle1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(15px, -25px); opacity: 1; }
}

@keyframes floatParticle2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(-20px, -30px); opacity: 1; }
}

@keyframes floatParticle3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(25px, -20px); opacity: 0.9; }
}

@keyframes floatParticle4 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(-15px, -35px); opacity: 1; }
}

@keyframes floatParticle5 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(20px, -25px); opacity: 0.8; }
}

@keyframes floatParticle6 {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  50% { transform: translate(-25px, -30px); opacity: 1; }
}

@keyframes floatParticle7 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(15px, -20px); opacity: 0.9; }
}

@keyframes floatParticle8 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(-20px, -25px); opacity: 0.8; }
}

@keyframes floatParticle9 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(25px, -30px); opacity: 1; }
}

@keyframes floatParticle10 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(-15px, -35px); opacity: 0.9; }
}

@keyframes floatParticle11 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(20px, -25px); opacity: 0.8; }
}

@keyframes floatParticle12 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50% { transform: translate(-25px, -20px); opacity: 1; }
}

@keyframes energyPulse {
  0%, 100% { opacity: 0.1; transform: scaleY(0.8); }
  50% { opacity: 0.25; transform: scaleY(1); }
}

@keyframes pillPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes glowPulseRed {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

@keyframes glowPulseBlue {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

@keyframes chaosWave {
  0%, 100% {
    transform: scaleY(1) translateX(0);
    opacity: 1;
  }
  25% {
    transform: scaleY(0.5) translateX(-3px);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1.2) translateX(2px);
    opacity: 0.9;
  }
  75% {
    transform: scaleY(0.7) translateX(-2px);
    opacity: 0.7;
  }
}

@keyframes harmonicWave {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.85);
    opacity: 0.8;
  }
}

@keyframes vsRingPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* DIAGNÓSTICO */
.bar-diagnosis {
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
  background: #02060d;
}

.diagnosis-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  z-index: 10;
  text-align: center;
}

.diagnosis-progress {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 42px 0;
}

.diagnosis-progress span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(75,141,255,.3);
  border-radius: 50%;
  color: rgba(255,255,255,.6);
}

.diagnosis-progress span.is-active {
  background: #2f80ff;
  color: white;
  box-shadow: 0 0 28px rgba(47,128,255,.35);
}

.question-card {
  display: none;
  max-width: 860px;
  margin: 0 auto;
}

.question-card.is-active {
  display: block;
}

.question-card small {
  color: rgba(255,255,255,.48);
}

.question-card h3 {
  margin: 14px 0 28px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.option-grid button {
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(75,141,255,.22);
  border-radius: 16px;
  background: rgba(5,12,27,.78);
  color: white;
  font: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-grid button:hover,
.option-grid button.is-selected {
  border-color: #4b8dff;
  background: rgba(47,128,255,.14);
  box-shadow: 0 0 20px rgba(75, 141, 255, 0.2);
}

.range-box,
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(75,141,255,.2);
  border-radius: 22px;
  background: rgba(5,12,27,.78);
}

.range-box input {
  width: 100%;
  margin-bottom: 24px;
}

.range-box strong {
  color: #7eb5ff;
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(75,141,255,.2);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: white;
  font: inherit;
  outline: none;
}

.contact-form input:focus {
  border-color: #4b8dff;
  background: rgba(255,255,255,.06);
}

.diagnosis-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.diagnosis-actions button {
  padding: 15px 24px;
  border: 1px solid rgba(75,141,255,.35);
  border-radius: 999px;
  background: rgba(5,12,27,.8);
  color: white;
  font: inherit;
  cursor: pointer;
}

#nextQuestion {
  background: linear-gradient(135deg, #2f80ff, #1f5edb);
}

/* PRODUCTOS PARA BARES */
.bar-products {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 96px;
  padding: 30px 0 120px;
  background:
    linear-gradient(to bottom, #02060d 0%, #040a18 100%);
}

.bar-products-head {
  max-width: 980px;
  margin: 0 auto 44px;
  padding: 0 24px;
  text-align: center;
}

.bar-products-kicker {
  display: inline-block;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4b8dff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
}

.bar-products-kicker::before {
  display: none;
  content: none;
}

.bar-products h2 {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -.07em;
  font-weight: 500;
}

.bar-products h2 em {
  display: block;
  color: #4b8dff;
  font-style: italic;
  font-weight: 400;
}

.product-marquee {
  --product-gap: 18px;
  --product-card-width: clamp(235px, 22vw, 310px);
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 10px 0 14px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.product-track {
  align-items: stretch;
  display: flex;
  width: max-content;
  gap: var(--product-gap);
  animation: productMarquee 46s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.product-marquee:hover .product-track {
  animation-play-state: paused;
}

.product-card {
  display: grid;
  flex: 0 0 var(--product-card-width);
  grid-template-rows: 258px minmax(138px, auto);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75,141,255,.16);
  border-radius: 24px;
  background: rgba(5,12,27,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.product-card::before {
  content: "";
  grid-area: 1 / 1 / 2 / 2;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(226,235,250,.92));
}

.product-card img {
  display: block;
  grid-area: 1 / 1 / 2 / 2;
  place-self: center;
  width: auto;
  height: auto;
  max-width: calc(100% - 54px);
  max-height: calc(100% - 54px);
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

.product-card div {
  display: grid;
  grid-area: 2 / 1 / 3 / 2;
  align-content: start;
  gap: 14px;
  justify-items: center;
  min-height: 138px;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(75,141,255,.12);
  background:
    linear-gradient(180deg, rgba(5,12,27,.98), rgba(2,6,13,.98));
  z-index: 1;
}

.product-card span {
  display: none;
  color: #9ec6ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.product-card h3 {
  display: block;
  min-height: 44px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 500;
}

.product-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f80ff, #1f5edb);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(31,94,219,.26);
  transition: transform .24s ease, box-shadow .24s ease;
}

.product-card a:hover,
.product-card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(31,94,219,.38);
}

@keyframes productMarquee {
  to {
    transform: translate3d(calc(-50% - 9px), 0, 0);
  }
}

@media (max-width: 640px) {
  .product-marquee {
    --product-card-width: min(252px, calc(100vw - 48px));
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 426px;
    padding: 10px 18px 18px;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .product-marquee::-webkit-scrollbar {
    display: none;
  }

  .product-track {
    width: max-content;
    min-width: 100%;
    padding-right: 18px;
    animation: none;
    transform: none;
    will-change: auto;
  }

  .product-card {
    grid-template-rows: 260px minmax(146px, auto);
    scroll-snap-align: center;
  }

  .product-card img {
    max-width: calc(100% - 44px);
    max-height: calc(100% - 52px);
  }

  .product-card div {
    min-height: 146px;
    padding: 18px 18px 22px;
  }

  .product-card[aria-hidden="true"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-track {
    animation: none;
  }
}

/* ANIMACIONES */
@keyframes smileWave {
  to {
    transform: scaleY(.68);
    opacity: .68;
  }
}

@keyframes sonicGroove {
  0%, 100% { transform: translate3d(0, 2px, 0) rotate(0deg); }
  12% { transform: translate3d(-5px, -6px, 0) rotate(-4.8deg); }
  22% { transform: translate3d(-7px, 0, 0) rotate(-6.2deg); }
  32% { transform: translate3d(-3px, -8px, 0) rotate(-2.4deg); }
  46% { transform: translate3d(5px, -6px, 0) rotate(4.8deg); }
  56% { transform: translate3d(7px, 0, 0) rotate(6.2deg); }
  66% { transform: translate3d(3px, -8px, 0) rotate(2.4deg); }
  82% { transform: translate3d(-3px, -4px, 0) rotate(-2.6deg); }
}

@keyframes sonicRing {
  0% { opacity: 0; transform: translateZ(-5px) scale(.84); }
  20% { opacity: .38; }
  100% { opacity: 0; transform: translateZ(-5px) scale(1.52); }
}

/* FOOTER */
.sg-footer {
  position: relative;
  overflow: hidden;
  padding: 90px 24px 28px;
  background: linear-gradient(to bottom, #02060d, #030814);
  border-top: 1px solid rgba(75,141,255,.14);
}

.footer-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: min(760px, 90vw);
  height: 260px;
  margin: 0 auto;
  background: radial-gradient(ellipse, rgba(75,141,255,.18), transparent 68%);
  filter: blur(34px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
}

.footer-brand img {
  display: block;
  width: min(330px, 72vw);
  height: 112px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 24px;
}

.footer-brand h2 {
  max-width: 640px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 500;
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 520px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  margin-bottom: 30px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #2f80ff, #1f5edb);
  box-shadow: 0 18px 45px rgba(31,94,219,.25);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px;
  align-self: end;
}

.footer-links span {
  display: block;
  margin-bottom: 18px;
  color: #4b8dff;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-bottom: 13px;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.42);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav {
    height: 78px;
    padding: 0 18px;
    justify-content: space-between;
    background: rgba(2, 6, 13, 0.82);
  }

  .logo {
    position: relative;
    top: auto;
    left: auto;
    width: clamp(180px, 52vw, 220px);
    height: 66px;
    transform: none;
  }

  .logo img {
    width: 100%;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 50px;
    height: 50px;
    padding: 0 13px;
    border: 1px solid rgba(75, 141, 255, 0.4);
    border-radius: 15px;
    background: rgba(14, 25, 47, 0.6);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: white;
  }

  .nav.is-open .menu-toggle span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .nav.is-open .menu-toggle span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(0, 2, 8, 0.74);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
  }

  .nav.is-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .nav-panel {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    border-radius: 28px 28px 0 0;
    background: #030812;
    opacity: 0;
    visibility: hidden;
    transform: translateY(104%);
  }

  .nav.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-panel-head {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu a {
    display: flex;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 28px;
  }

  .menu a span:last-child {
    display: none;
  }

  .menu a svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.42;
  }

  .nav-btn {
    display: none;
  }

  .orbital-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .orbital-ring,
  .orbit-node {
    display: none;
  }

  .sonic-signal {
    order: -1;
    margin-bottom: 16px;
  }

  .orbit-card {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: 460px;
  }

  .card-bc {
    transform: none;
  }

  .sonic-stage { width: 250px; height: 250px; }
  .sonic-core { width: 216px; height: 216px; }
  .orbit-back { width: 260px; height: 260px; }
  .orbit-mid { width: 242px; height: 242px; }
  .orbit-front { width: 224px; height: 224px; }
  .headphone-cup { width: 22px; height: 56px; }
  .sonic-pulse { width: 246px; height: 246px; }
  .sonic-eyes { gap: 44px; margin-bottom: 24px; }
  .sonic-eye { width: 33px; height: 40px; }
  .sonic-smile { width: 125px; height: 44px; }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-progress {
    gap: 14px;
  }

  .quality-compare {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quality-compare::before {
    display: none;
  }

  .quality-vs {
    margin: 0 auto;
  }

  .animated-title {
    font-size: 42px;
  }

  .wave-particles {
    height: 100px;
  }

  .particle-wave {
    width: 4px;
  }
}

@media (max-width: 800px) {
  .footer-inner,
  .footer-links,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 44px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 540px) {
  .bar-hero h1 {
    font-size: 44px;
  }

  .bar-apartado,
  .bar-education,
  .bar-diagnosis {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bar-education {
    padding-top: 72px !important;
    padding-bottom: 42px !important;
  }

  .animated-title {
    margin-bottom: 38px !important;
  }

  .quality-compare {
    gap: 18px;
    margin-bottom: 22px;
  }

  .diagnosis-progress span {
    width: 36px;
    height: 36px;
  }

  .quality-card {
    min-height: 280px;
    padding: 32px 24px;
  }

  .quality-card-head {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }

  .card-description {
    font-size: 16px;
  }

  .quality-footer {
    opacity: 1;
    transform: none;
    font-size: 16px;
    flex-direction: column;
    gap: 10px;
  }
}

/* FIX PILL + HERO EDUCATION */
.quality-pill {
  width: auto !important;
  max-width: max-content !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  padding: 12px 28px !important;
}

.quality-pill .pill-text {
  display: inline-block !important;
  white-space: nowrap !important;
}

.animated-title {
  margin-top: 0 !important;
  max-width: 1180px !important;
  font-size: clamp(48px, 6vw, 86px) !important;
  line-height: 1.02 !important;
}

.bar-education {
  padding-top: 110px !important;
}

@media (max-width: 620px) {
  .quality-pill {
    white-space: normal !important;
    text-align: center !important;
    max-width: 92vw !important;
    letter-spacing: 0.12em !important;
    line-height: 1.4 !important;
  }

  .quality-pill .pill-text {
    white-space: normal !important;
  }

  .animated-title {
    font-size: 42px !important;
  }
}

/* FIX DEFINITIVO PILL QUALITY */
.quality-pill,
.quality-pill.animate-in {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.quality-pill .pill-text {
  display: inline !important;
  white-space: nowrap !important;
}

.quality-pill span:first-child,
.quality-pill span:last-child {
  flex: 0 0 8px !important;
  width: 8px !important;
  height: 8px !important;
  animation: none !important;
}

@media (max-width: 620px) {
  .quality-pill {
    min-width: 0 !important;
    max-width: 92vw !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }

  .quality-pill .pill-text {
    white-space: normal !important;
  }
}

.quality-pill {
  display: none !important;
}

.quality-pill-static {
  display: block !important;
  width: fit-content;
  margin: 0 auto 54px !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4b8dff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  white-space: nowrap;
  animation: none !important;
  transform: none !important;
}

.quality-pill-static span {
  display: none;
}

/* ANIMACIÓN ENTRE PREGUNTAS */
.question-card {
  display: none;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  filter: blur(8px);
}

.question-card.is-active {
  display: block;
  animation: questionEnter .46s cubic-bezier(.22, 1, .36, 1) forwards;
}

.question-card.is-leaving {
  display: block;
  animation: questionLeave .28s ease forwards;
}

@keyframes questionEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes questionLeave {
  to {
    opacity: 0;
    transform: translateY(-14px) scale(.985);
    filter: blur(8px);
  }
}

.diagnosis-progress span {
  transition: .28s ease;
}

.diagnosis-progress span.is-active {
  transform: scale(1.08);
}

@media (min-width: 1101px) {
  .menu a span:last-child,
  .menu a svg {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .menu a span:last-child {
    display: block !important;
    color: #4b8dff !important;
  }

  .menu a svg {
    display: block !important;
    color: #4b8dff !important;
  }
}

.logo::before {
  content: "";
  position: absolute;
  inset: 14px -10px 12px -10px;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(2, 6, 13, 0.72), rgba(2, 6, 13, 0.22) 58%, transparent 74%);
  pointer-events: none;
}

.logo img {
  z-index: 1;
}

/* Fade unificado entre hero y primera seccion */
.bar-hero {
  z-index: 2;
}

.bar-hero::after {
  height: 360px !important;
  z-index: 2 !important;
  background:
    linear-gradient(to bottom, rgba(2,6,13,0) 0%, rgba(2,6,13,.62) 44%, #02060d 86%, #02060d 100%) !important;
}

.bar-hero-content,
.bar-hero-btn {
  position: relative;
  z-index: 4;
}

.bar-apartado {
  position: relative;
  z-index: 1;
  margin-top: -80px;
  padding-top: 120px;
  background:
    linear-gradient(to bottom, rgba(2,6,13,0) 0%, #02060d 76px, #02060d 100%),
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(47,128,255,.14), transparent),
    linear-gradient(to bottom, #02060d 0%, #040a18 100%);
}

@media (max-width: 540px) {
  .bar-education {
    padding-top: 72px !important;
    padding-bottom: 42px !important;
  }

  .quality-compare {
    margin-bottom: 22px !important;
  }

  .quality-footer,
  .quality-footer.animate-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .sg-footer {
    padding-top: 48px;
  }
}
