body[data-page="inicio"] {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: #07101f;
  background-image:
    radial-gradient(circle at 2.45rem 1.075rem, rgba(0, 0, 0, 0.8) 0 0.62rem, rgba(5, 13, 28, 0.95) 0.64rem 0.78rem, rgba(255, 255, 255, 0.08) 0.79rem 0.84rem, transparent 0.86rem),
    radial-gradient(circle at 2.2rem 0.77rem, rgba(255, 255, 255, 0.14) 0 0.12rem, transparent 0.16rem),
    radial-gradient(circle at 2.45rem 1.075rem, rgba(0, 229, 255, 0.055) 0 0.9rem, rgba(0, 229, 255, 0.022) 1rem 1.25rem, transparent 1.42rem),
    linear-gradient(90deg, transparent 0 5.2rem, rgba(255, 115, 125, 0.32) 5.2rem 5.28rem, transparent 5.28rem calc(100% - 5.28rem), rgba(102, 224, 255, 0.34) calc(100% - 5.28rem) calc(100% - 5.2rem), transparent calc(100% - 5.2rem)),
    linear-gradient(rgba(102, 224, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.006) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(69, 247, 201, 0.1), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(102, 224, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #07101f 0%, #0b1830 48%, #07101f 100%);
  background-position:
    left 0 top 0.75rem,
    left 0 top 0.75rem,
    left 0 top 0.75rem,
    center,
    center 0.75rem,
    center,
    center,
    center,
    center;
  background-size:
    100% 4.3rem,
    100% 4.3rem,
    100% 4.3rem,
    100% 100%,
    100% 2.15rem,
    2.15rem 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  background-repeat: repeat-y, repeat-y, repeat-y, no-repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
}

body[data-page="inicio"] .site-header {
  border-bottom-color: rgba(102, 224, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(7, 15, 34, 0.88), rgba(9, 23, 47, 0.78)),
    rgba(4, 10, 23, 0.82);
}

body[data-page="inicio"] main {
  min-height: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.symbol-corners {
  position: fixed;
  inset: 64px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.floating-robot {
  position: fixed;
  top: 36.5%;
  left: clamp(8.8rem, 21.5vw, 22.5rem);
  z-index: 1;
  width: clamp(6rem, 13vw, 10.5rem);
  height: auto;
  pointer-events: none;
  transform: translate3d(0, -50%, 0);
  filter:
    drop-shadow(0 0 8px rgba(0, 229, 255, 0.4))
    drop-shadow(0 0 16px rgba(0, 229, 255, 0.22))
    drop-shadow(0 0 28px rgba(0, 229, 255, 0.12))
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.24));
  animation: robot-float 5.6s ease-in-out infinite;
  will-change: transform;
}

.symbol-cluster {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(20vw, 16rem);
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}

.symbol-cluster-left {
  left: 0;
}

.symbol-cluster-right {
  right: 0;
}

.corner-symbol {
  --size: 4.4rem;
  --opacity: 0.72;
  --rot: 0deg;
  --float-x-a: 0.38rem;
  --float-y-a: -0.52rem;
  --float-r-a: -4deg;
  --float-x-b: -0.28rem;
  --float-y-b: 0.44rem;
  --float-r-b: 3deg;
  --float-x-c: 0.2rem;
  --float-y-c: -0.28rem;
  --float-r-c: -2deg;
  --float-duration: 14s;
  --float-delay: 0s;
  position: absolute;
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  opacity: var(--opacity);
  mix-blend-mode: normal;
  filter: none;
  transform: translate3d(0, 0, 0) rotate(var(--rot));
  transform-origin: center;
  animation: symbol-float var(--float-duration) ease-in-out infinite;
  animation-delay: var(--float-delay);
  will-change: transform;
}

.symbol-cluster-left .corner-symbol:nth-child(1),
.symbol-cluster-right .corner-symbol:nth-child(1) {
  --float-duration: 10.8s;
  --float-delay: -1.2s;
}

.symbol-cluster-left .corner-symbol:nth-child(2),
.symbol-cluster-right .corner-symbol:nth-child(2) {
  --float-duration: 12.6s;
  --float-delay: -4.4s;
  --float-x-a: -0.34rem;
  --float-y-a: -0.38rem;
}

.symbol-cluster-left .corner-symbol:nth-child(3),
.symbol-cluster-right .corner-symbol:nth-child(3) {
  --float-duration: 15.2s;
  --float-delay: -2.7s;
  --float-x-b: 0.36rem;
  --float-y-b: 0.24rem;
}

.symbol-cluster-left .corner-symbol:nth-child(4),
.symbol-cluster-right .corner-symbol:nth-child(4) {
  --float-duration: 11.4s;
  --float-delay: -6.1s;
  --float-r-a: 5deg;
}

.symbol-cluster-left .corner-symbol:nth-child(5),
.symbol-cluster-right .corner-symbol:nth-child(5) {
  --float-duration: 13.7s;
  --float-delay: -3.3s;
  --float-x-c: -0.26rem;
  --float-y-c: -0.34rem;
}

.symbol-cluster-left .corner-symbol:nth-child(6),
.symbol-cluster-right .corner-symbol:nth-child(6) {
  --float-duration: 16.1s;
  --float-delay: -8.5s;
}

.symbol-cluster-left .corner-symbol:nth-child(7),
.symbol-cluster-right .corner-symbol:nth-child(7) {
  --float-duration: 12.1s;
  --float-delay: -5.2s;
  --float-r-b: -4deg;
}

.symbol-cluster-left .corner-symbol:nth-child(8),
.symbol-cluster-right .corner-symbol:nth-child(8) {
  --float-duration: 14.6s;
  --float-delay: -0.9s;
}

.symbol-cluster-left .corner-symbol:nth-child(9),
.symbol-cluster-right .corner-symbol:nth-child(9) {
  --float-duration: 11.9s;
  --float-delay: -7.4s;
  --float-x-a: 0.24rem;
  --float-y-a: -0.3rem;
}

.symbol-cluster-left .corner-symbol:nth-child(10),
.symbol-cluster-right .corner-symbol:nth-child(10) {
  --float-duration: 13.1s;
  --float-delay: -2.1s;
}

.symbol-cluster-left .corner-symbol:nth-child(11),
.symbol-cluster-right .corner-symbol:nth-child(11) {
  --float-duration: 15.8s;
  --float-delay: -6.7s;
}

.symbol-cluster-left .corner-symbol:nth-child(12),
.symbol-cluster-right .corner-symbol:nth-child(12) {
  --float-duration: 10.9s;
  --float-delay: -4.9s;
  --float-r-c: 3deg;
}

.symbol-cluster-left .corner-symbol:nth-child(13),
.symbol-cluster-right .corner-symbol:nth-child(13) {
  --float-duration: 12.8s;
  --float-delay: -1.8s;
}

.symbol-cluster-left .corner-symbol:nth-child(14),
.symbol-cluster-right .corner-symbol:nth-child(14) {
  --float-duration: 14.9s;
  --float-delay: -9.2s;
}

.symbol-l1 {
  --size: clamp(4.8rem, 6.2vw, 6.9rem);
  --rot: -16deg;
  top: 4%;
  left: -10%;
}

.symbol-l2 {
  --size: clamp(2.65rem, 3.2vw, 3.75rem);
  --opacity: 0.58;
  --rot: 12deg;
  top: 12%;
  left: 42%;
}

.symbol-l3 {
  --size: clamp(3.2rem, 4.4vw, 4.9rem);
  --opacity: 0.76;
  --rot: 21deg;
  top: 24%;
  left: 54%;
}

.symbol-l4 {
  --size: clamp(3.8rem, 5vw, 5.7rem);
  --opacity: 0.5;
  --rot: -7deg;
  top: 34%;
  left: 4%;
}

.symbol-l5 {
  --size: clamp(3rem, 4vw, 4.6rem);
  --opacity: 0.66;
  --rot: -23deg;
  top: 49%;
  left: 22%;
}

.symbol-l6 {
  --size: clamp(5rem, 6.8vw, 7.5rem);
  --opacity: 0.84;
  --rot: 10deg;
  bottom: 8%;
  left: -12%;
}

.symbol-l7 {
  --size: clamp(2.7rem, 3.4vw, 3.8rem);
  --opacity: 0.62;
  --rot: 25deg;
  bottom: 4%;
  left: 60%;
}

.symbol-l8 {
  --size: clamp(2.2rem, 2.7vw, 3.05rem);
  --opacity: 0.4;
  --rot: -31deg;
  top: 66%;
  left: 44%;
}

.symbol-l9 {
  --size: clamp(2rem, 2.4vw, 2.9rem);
  --opacity: 0.7;
  --rot: 8deg;
  top: 3%;
  left: 74%;
}

.symbol-l10 {
  --size: clamp(2.25rem, 2.8vw, 3.2rem);
  --opacity: 0.54;
  --rot: -12deg;
  bottom: 28%;
  left: 72%;
}

.symbol-l11 {
  --size: clamp(2.45rem, 2.9vw, 3.35rem);
  --opacity: 0.46;
  --rot: 19deg;
  bottom: 30%;
  left: 18%;
}

.symbol-l12 {
  --size: clamp(3.5rem, 4.6vw, 5.2rem);
  --opacity: 0.56;
  --rot: -5deg;
  top: 21%;
  left: -16%;
}

.symbol-l13 {
  --size: clamp(1.9rem, 2.3vw, 2.55rem);
  --opacity: 0.52;
  --rot: 34deg;
  bottom: 42%;
  left: 6%;
}

.symbol-l14 {
  --size: clamp(2.6rem, 3.1vw, 3.5rem);
  --opacity: 0.48;
  --rot: -18deg;
  bottom: -1%;
  left: 20%;
}

.symbol-r1 {
  --size: clamp(5rem, 6.5vw, 7.25rem);
  --opacity: 0.8;
  --rot: 15deg;
  top: 5%;
  right: -10%;
}

.symbol-r2 {
  --size: clamp(3rem, 3.8vw, 4.2rem);
  --opacity: 0.62;
  --rot: -17deg;
  top: 13%;
  right: 46%;
}

.symbol-r3 {
  --size: clamp(3.9rem, 5.1vw, 5.8rem);
  --opacity: 0.78;
  --rot: -24deg;
  top: 37%;
  right: 8%;
}

.symbol-r4 {
  --size: clamp(2.15rem, 2.65vw, 3rem);
  --opacity: 0.5;
  --rot: 9deg;
  top: 35%;
  right: 62%;
}

.symbol-r5 {
  --size: clamp(3.1rem, 4vw, 4.65rem);
  --opacity: 0.66;
  --rot: 21deg;
  top: 52%;
  right: 30%;
}

.symbol-r6 {
  --size: clamp(5.2rem, 7vw, 7.7rem);
  --opacity: 0.86;
  --rot: -10deg;
  bottom: 7%;
  right: -12%;
}

.symbol-r7 {
  --size: clamp(2.6rem, 3.3vw, 3.75rem);
  --opacity: 0.6;
  --rot: -27deg;
  bottom: 3%;
  right: 58%;
}

.symbol-r8 {
  --size: clamp(2.1rem, 2.7vw, 3.05rem);
  --opacity: 0.42;
  --rot: 31deg;
  top: 71%;
  right: 42%;
}

.symbol-r9 {
  --size: clamp(2rem, 2.45vw, 2.9rem);
  --opacity: 0.7;
  --rot: -8deg;
  top: 2%;
  right: 72%;
}

.symbol-r10 {
  --size: clamp(2.25rem, 2.85vw, 3.2rem);
  --opacity: 0.54;
  --rot: 13deg;
  bottom: 28%;
  right: 68%;
}

.symbol-r11 {
  --size: clamp(2.05rem, 2.45vw, 2.8rem);
  --opacity: 0.46;
  --rot: -20deg;
  bottom: 32%;
  right: 20%;
}

.symbol-r12 {
  --size: clamp(3.4rem, 4.55vw, 5.1rem);
  --opacity: 0.56;
  --rot: 5deg;
  top: 20%;
  right: -12%;
}

.symbol-r13 {
  --size: clamp(1.9rem, 2.35vw, 2.55rem);
  --opacity: 0.52;
  --rot: -34deg;
  bottom: 42%;
  right: 72%;
}

.symbol-r14 {
  --size: clamp(2.55rem, 3.1vw, 3.5rem);
  --opacity: 0.48;
  --rot: 18deg;
  bottom: -1%;
  right: 20%;
}

.hero-home {
  min-height: 0;
  flex: 1 1 auto;
  padding: clamp(1.2rem, 3vh, 2.6rem) 0 2.1rem;
  display: grid;
  align-items: center;
}

.home-base-copy {
  flex: 0 0 auto;
  width: min(94%, 900px);
  margin: 0 auto;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(205, 222, 249, 0.78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.52);
  z-index: 3;
}

body[data-page="inicio"] .site-footer {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.95rem, 2.2vh, 1.4rem);
  width: min(100%, 1180px);
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.hero-copy {
  --hero-brand-width: min(100%, clamp(19.5rem, 33vw, 28.5rem));
  width: 100%;
  max-width: 660px;
  padding: 0;
  position: relative;
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero-copy::before {
  display: none;
}

.hero-logo {
  display: inline-grid;
  justify-content: center;
  justify-items: center;
  gap: 0.08rem;
  width: var(--hero-brand-width);
  margin: 0 0 1.05rem;
  position: relative;
  z-index: 1;
}

.hero-logo-mark {
  display: block;
  justify-self: center;
  align-self: center;
  width: clamp(5.8rem, 9vw, 8.2rem);
  height: clamp(5.8rem, 9vw, 8.2rem);
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(0, 229, 255, 0.42))
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
  animation: brain-logo-glow 4.8s ease-in-out infinite;
}

.hero-logo-text {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  justify-self: center;
  width: max-content;
  min-width: 0;
  margin-inline: auto;
  font-family: var(--font-title);
  max-width: calc(100vw - 2rem);
  font-size: clamp(3.75rem, 6.7vw, 5.3rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
}

.hero-logo-text .app {
  color: var(--app-blue);
  text-shadow:
    0 0 12px rgba(0, 229, 255, 0.92),
    0 0 28px rgba(0, 229, 255, 0.42);
}

.hero-logo-text .rest {
  color: #eef7ff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 22px rgba(187, 247, 208, 0.2);
}

.hero-copy h1 {
  display: grid;
  justify-items: center;
  width: var(--hero-brand-width);
  max-width: min(100%, 760px);
  margin-top: 0;
  margin-bottom: 1.35rem;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-copy h1 .fixed-part {
  display: grid;
  justify-items: center;
  width: 100%;
  font-size: clamp(1.34rem, 1.95vw, 1.7rem);
  font-weight: 650;
  line-height: 1.24;
  color: #eef7ff;
}

.hero-copy h1 .fixed-line {
  display: block;
  white-space: normal;
}

#rotating-word {
  display: block;
  margin-top: 0.16rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  position: static;
  font-size: clamp(2.05rem, 3.75vw, 3.3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(92deg, #52ffcf 0%, #66e0ff 48%, #b59cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(82, 255, 207, 0.18));
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.35rem, 3vw, 2.4rem);
  margin-top: 1.85rem;
  margin-inline: auto;
  width: min(100%, 740px);
  position: relative;
  z-index: 2;
}

.hero-actions::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(0, 229, 255, 0.16), rgba(69, 247, 201, 0.12), rgba(126, 105, 255, 0.14));
  filter: blur(16px);
  opacity: 0.75;
  z-index: -1;
}

.hero-actions .btn {
  min-width: 0;
  min-height: 76px;
  padding: 0.92rem 1.6rem;
  border-radius: 8px;
  border-color: rgba(186, 219, 255, 0.22);
  font-size: clamp(1.16rem, 1.75vw, 1.38rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.hero-actions .btn i {
  font-size: 1.38rem;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #45f7c9, #4eb8ff 56%, #9f8cff);
  color: #041529;
  box-shadow:
    0 18px 34px rgba(41, 184, 255, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.26) inset;
  animation: pulse-primary 3.4s ease-in-out infinite;
}

.hero-actions .btn-ghost {
  background:
    linear-gradient(135deg, #ffe66d 0%, #ffb627 48%, #ff7a45 100%),
    rgba(12, 26, 54, 0.86);
  color: #2b1600;
  border-color: rgba(255, 232, 139, 0.68);
  box-shadow:
    0 16px 30px rgba(255, 166, 38, 0.28),
    0 0 0 1px rgba(255, 249, 199, 0.32) inset;
  animation: pulse-secondary 3.7s ease-in-out infinite;
}

.hero-actions .btn::after {
  content: "";
  position: absolute;
  top: -48%;
  left: -42%;
  width: 30%;
  height: 196%;
  transform: rotate(17deg);
  background: linear-gradient(95deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: left 0.5s ease;
}

.hero-actions .btn:hover {
  transform: translateY(-3px);
}

.hero-actions .btn:hover::after {
  left: 120%;
}

.hero-actions .btn:focus-visible {
  outline: 3px solid rgba(102, 224, 255, 0.72);
  outline-offset: 4px;
}

.hero-actions .btn:active {
  transform: translateY(-1px) scale(0.99);
}

.learning-showcase {
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 3.2rem 0 0;
  justify-self: center;
  display: grid;
  justify-items: center;
  align-items: center;
  transform: none;
}

@media (min-width: 961px) {
  .hero-actions {
    width: min(100%, calc(var(--hero-brand-width) + 6rem));
  }
}

.student-guide {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: center;
  margin-bottom: 0.72rem;
  padding: 0.78rem;
  border: 1px solid rgba(102, 224, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(82, 255, 207, 0.12), rgba(102, 224, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.guide-avatar {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(69, 247, 201, 0.28), rgba(102, 224, 255, 0.18));
  color: #dffaff;
  font-size: 1.45rem;
  box-shadow:
    0 0 0 1px rgba(102, 224, 255, 0.22) inset,
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.student-guide strong {
  display: block;
  color: #f5fbff;
  font-family: var(--font-title);
  font-size: 0.98rem;
  line-height: 1.15;
}

.student-guide span {
  display: block;
  margin-top: 0.14rem;
  color: rgba(210, 228, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.32;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, auto);
  gap: 0.78rem;
  width: min(100%, 1120px);
  margin-inline: auto;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.game-tile {
  --tile-glow: rgba(102, 224, 255, 0.34);
  --tile-glow-soft: rgba(102, 224, 255, 0.1);
  min-height: 84px;
  height: 100%;
  padding: 0.56rem 0.72rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  align-content: center;
  column-gap: 0.68rem;
  row-gap: 0.22rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
  justify-self: center;
}

.game-tile::before {
  content: none;
}

.game-tile::after {
  content: none;
}

.game-tile:hover {
  transform: translateY(-2px);
}

.game-tile i {
  display: inline-grid;
  place-items: center;
  width: 2.22rem;
  height: 2.22rem;
  margin-top: 0.02rem;
  border-radius: 8px;
  background: rgba(102, 224, 255, 0.14);
  color: #82ecff;
  font-size: 1.08rem;
  box-shadow: 0 0 0 1px rgba(102, 224, 255, 0.18) inset;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}


.game-tile h2 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  color: #f4f9ff;
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  line-height: 1.12;
  font-weight: 800;
}

.game-tile p {
  grid-column: 2;
  color: rgba(218, 233, 255, 0.86);
  font-size: clamp(0.9rem, 1.08vw, 0.98rem);
  font-weight: 750;
  line-height: 1.38;
}

.tile-tag {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0.2rem 0.48rem;
  border: 1px solid rgba(82, 255, 207, 0.34);
  border-radius: 999px;
  background: rgba(82, 255, 207, 0.12);
  color: #b9ffe9;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.tile-large {
  --tile-glow: rgba(102, 224, 255, 0.5);
  --tile-glow-soft: rgba(126, 105, 255, 0.18);
  grid-row: auto;
  min-height: 84px;
  background: transparent;
}

.tile-large i {
  width: 2.22rem;
  height: 2.22rem;
  font-size: 1.08rem;
}

.tile-large h2 {
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
}

.tile-large p {
  font-size: clamp(0.9rem, 1.08vw, 0.98rem);
}

.tile-cyan i {
  color: #66e0ff;
}

.tile-cyan {
  --tile-glow: rgba(102, 224, 255, 0.48);
  --tile-glow-soft: rgba(102, 224, 255, 0.16);
}

.tile-green i {
  background: rgba(82, 255, 207, 0.14);
}

.tile-green {
  --tile-glow: rgba(82, 255, 207, 0.46);
  --tile-glow-soft: rgba(82, 255, 207, 0.16);
}

.tile-green i {
  color: #52ffcf;
}

.tile-purple {
  --tile-glow: rgba(181, 156, 255, 0.46);
  --tile-glow-soft: rgba(181, 156, 255, 0.16);
}

.tile-purple i {
  background: rgba(181, 156, 255, 0.14);
  color: #b59cff;
}

.tile-coral {
  --tile-glow: rgba(255, 209, 102, 0.46);
  --tile-glow-soft: rgba(255, 126, 95, 0.16);
}

.tile-coral i {
  background: rgba(255, 126, 95, 0.14);
  color: #ffd166;
}

@keyframes pulse-primary {
  0%,
  100% {
    box-shadow:
      0 18px 34px rgba(41, 184, 255, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.26) inset;
  }
  50% {
    box-shadow:
      0 22px 42px rgba(41, 184, 255, 0.36),
      0 0 0 2px rgba(157, 231, 255, 0.3) inset;
  }
}

@keyframes pulse-secondary {
  0%,
  100% {
    box-shadow:
      0 16px 30px rgba(255, 166, 38, 0.28),
      0 0 0 1px rgba(255, 249, 199, 0.32) inset;
  }
  50% {
    box-shadow:
      0 20px 38px rgba(255, 183, 43, 0.38),
      0 0 0 2px rgba(255, 238, 154, 0.4) inset;
  }
}

@keyframes brain-logo-glow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 10px rgba(0, 229, 255, 0.34))
      drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
  }
  50% {
    filter:
      drop-shadow(0 0 18px rgba(0, 229, 255, 0.56))
      drop-shadow(0 0 28px rgba(82, 255, 207, 0.22))
      drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3));
  }
}

@keyframes symbol-cluster-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  28% {
    transform: translate3d(var(--cluster-x-a), var(--cluster-y-a), 0) rotate(var(--cluster-rotate-a));
  }
  56% {
    transform: translate3d(var(--cluster-x-b), var(--cluster-y-b), 0) rotate(var(--cluster-rotate-b));
  }
  78% {
    transform: translate3d(var(--cluster-x-c), var(--cluster-y-c), 0) rotate(var(--cluster-rotate-c));
  }
}

@keyframes symbol-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--rot));
  }
  30% {
    transform: translate3d(var(--float-x-a), var(--float-y-a), 0) rotate(calc(var(--rot) + var(--float-r-a)));
  }
  62% {
    transform: translate3d(var(--float-x-b), var(--float-y-b), 0) rotate(calc(var(--rot) + var(--float-r-b)));
  }
  82% {
    transform: translate3d(var(--float-x-c), var(--float-y-c), 0) rotate(calc(var(--rot) + var(--float-r-c)));
  }
}

@keyframes robot-float {
  0%,
  100% {
    transform: translate3d(0, -50%, 0);
  }
  50% {
    transform: translate3d(0, calc(-50% - 10px), 0);
  }
}

@media (max-width: 960px) {
  body[data-page="inicio"] {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero-home {
    padding: 2rem 0 2.7rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .hero-copy {
    max-width: 720px;
    text-align: center;
    transform: none;
  }

  .hero-logo {
    margin-inline: auto;
  }

  .learning-showcase {
    width: min(100%, 760px);
    margin: 0 auto;
    justify-self: center;
    min-height: 0;
    transform: none;
  }

  .floating-robot {
    width: clamp(4.8rem, 18vw, 7.2rem);
    opacity: 0.88;
  }
}

@media (min-width: 961px) and (max-height: 720px) {
  .hero-home {
    padding-top: 0.85rem;
    padding-bottom: 1.75rem;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-logo {
    margin-bottom: 0.72rem;
  }

  .hero-logo-text {
    font-size: clamp(3.15rem, 5.7vw, 4.4rem);
  }

  .hero-copy h1 {
    margin-bottom: 0.95rem;
  }

  .hero-copy h1 .fixed-part {
    font-size: clamp(1.2rem, 1.75vw, 1.5rem);
  }

  #rotating-word {
    font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  }

  .hero-actions {
    margin-top: 1.15rem;
  }

  .hero-actions .btn {
    min-height: 68px;
    padding-block: 0.82rem;
    font-size: 1.08rem;
  }

  .showcase-grid {
    grid-auto-rows: minmax(96px, auto);
    gap: 0.75rem;
  }

  .game-tile {
    min-height: 84px;
    padding: 0.56rem 0.72rem;
    column-gap: 0.68rem;
    row-gap: 0.22rem;
  }

  .student-guide {
    gap: 0.52rem;
    margin-bottom: 0.5rem;
    padding: 0.54rem;
  }

  .guide-avatar {
    width: 2.28rem;
    height: 2.28rem;
    font-size: 1.08rem;
  }

  .student-guide strong {
    font-size: 0.86rem;
  }

  .student-guide span {
    font-size: 0.68rem;
    line-height: 1.22;
  }

  .game-tile i {
    width: 2.22rem;
    height: 2.22rem;
    font-size: 1.08rem;
    margin-bottom: 0;
  }


  .game-tile h2 {
    font-size: 0.98rem;
  }

  .game-tile p {
    font-size: 0.72rem;
    line-height: 1.22;
  }

  .tile-large i {
    width: 2.22rem;
    height: 2.22rem;
    font-size: 1.08rem;
  }

  .tile-large h2 {
    font-size: 0.98rem;
  }

  .tile-tag {
    min-height: 20px;
    padding-inline: 0.38rem;
    font-size: 0.56rem;
  }
}

@media (max-width: 640px) {
  body[data-page="inicio"] {
    height: 100svh;
    min-height: 100svh;
    background-attachment: scroll;
    overflow: hidden;
  }

  body[data-page="inicio"] main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .hero-home {
    flex: 1 1 auto;
    min-height: 0;
    padding: 3.15rem 0 0.55rem;
    align-items: start;
  }

  .symbol-corners {
    top: 66px;
  }

  .symbol-cluster {
    width: 6.4rem;
  }

  .corner-symbol {
    --size: 2.8rem;
    --opacity: 0.34;
  }

  .symbol-cluster .corner-symbol:nth-child(n + 8) {
    display: none;
  }

  .floating-robot {
    top: 1.5rem;
    left: 31%;
    width: clamp(3.6rem, 18vw, 4.8rem);
    z-index: 6;
    opacity: 0.96;
    transform: translate3d(-50%, 0, 0) rotate(-7deg);
    mix-blend-mode: normal;
    filter:
      drop-shadow(0 0 12px rgba(102, 224, 255, 0.28))
      drop-shadow(0 0 24px rgba(82, 255, 207, 0.18))
      drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
    animation: mobile-robot-drift 6.8s ease-in-out infinite;
  }

  .symbol-l1,
  .symbol-r1 {
    --size: 4rem;
    top: 4%;
  }

  .symbol-l2,
  .symbol-r2 {
    --size: 2rem;
    top: 15%;
  }

  .symbol-l3,
  .symbol-r3 {
    --size: 3rem;
    top: 34%;
  }

  .symbol-l4,
  .symbol-r4 {
    display: none;
  }

  .symbol-l5,
  .symbol-r5 {
    --size: 2.5rem;
    top: auto;
    bottom: 24%;
  }

  .symbol-l6,
  .symbol-r6 {
    --size: 4.2rem;
    bottom: 5%;
  }

  .symbol-l7,
  .symbol-r7 {
    --size: 2rem;
    bottom: 2%;
  }

  .symbol-l1,
  .symbol-l3,
  .symbol-l5,
  .symbol-l6 {
    left: 0.15rem;
  }

  .symbol-l2,
  .symbol-l7 {
    left: 2.25rem;
  }

  .symbol-r1,
  .symbol-r3,
  .symbol-r5,
  .symbol-r6 {
    right: 0.15rem;
  }

  .symbol-r2,
  .symbol-r7 {
    right: 2.25rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
    gap: 0.8rem;
  }

  .home-base-copy {
    width: min(96%, 420px);
    font-size: 0.54rem;
    line-height: 1.25;
  }

  .hero-copy {
    --mobile-brand-to-copy-gap: 0.72rem;
    --mobile-fixed-line-gap: 0.18rem;
    --mobile-fixed-to-dynamic-gap: 0.42rem;
    --mobile-copy-to-actions-gap: 2.25rem;
    display: grid;
    row-gap: var(--mobile-brand-to-copy-gap);
    width: min(100%, 22rem);
    margin-inline: auto;
    justify-items: center;
    text-align: center;
    padding: 0;
    isolation: isolate;
    margin-top: clamp(1.4rem, 4.2vw, 2.4rem);
  }

  .hero-logo {
    width: 100%;
    margin-bottom: 0;
    animation: mobile-logo-float 4.8s ease-in-out infinite;
  }

  .hero-logo::before {
    content: "";
    position: absolute;
    inset: 13% 8% 18%;
    z-index: -1;
    border-radius: 999px;
    background:
      radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 62%),
      radial-gradient(circle at 68% 36%, rgba(82, 255, 207, 0.14), transparent 58%);
    filter: blur(12px);
  }

  .hero-logo-mark {
    width: clamp(3.55rem, 15vw, 5.25rem);
    height: clamp(3.55rem, 15vw, 5.25rem);
  }

  .hero-logo-text {
    font-size: clamp(2.15rem, 11.8vw, 3.45rem);
    line-height: 1.04;
  }

  .hero-copy h1 {
    display: grid;
    justify-items: center;
    gap: var(--mobile-fixed-to-dynamic-gap);
    width: 100%;
    margin-bottom: 0;
  }

  .hero-copy h1 .fixed-part {
    display: grid;
    gap: var(--mobile-fixed-line-gap);
    width: 100%;
    justify-items: center;
    text-align: center;
    font-size: clamp(0.98rem, 4.65vw, 1.26rem);
    line-height: 1.28;
  }

  .hero-copy h1 .fixed-line {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  #rotating-word {
    margin-top: 0;
    width: auto;
    max-width: 100%;
    left: auto;
    transform: none;
    justify-self: center;
    text-align: center;
    font-size: clamp(1.8rem, 9.8vw, 2.65rem);
    line-height: 1.06;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: min(100%, 22rem);
    gap: 0.8rem;
    margin-top: var(--mobile-copy-to-actions-gap);
  }

  .hero-actions .btn {
    min-height: 54px;
    padding: 0.62rem 0.95rem;
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .hero-actions .btn i {
    font-size: 1.14rem;
  }

  .learning-showcase {
    width: min(100%, 22.25rem);
    margin: 0 auto 0;
    margin-top: auto;
    padding-bottom: 0.2rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 78px;
    gap: 0.8rem 0.65rem;
    align-items: stretch;
  }

  .game-tile {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 78px;
    padding: 0.48rem 0.54rem;
    column-gap: 0.46rem;
    row-gap: 0.34rem;
    border: 1px solid color-mix(in srgb, var(--tile-glow) 62%, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    background:
      radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--tile-glow) 42%, transparent), transparent 48%),
      linear-gradient(145deg, rgba(10, 24, 50, 0.78), rgba(7, 15, 32, 0.52));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 10px 24px rgba(0, 0, 0, 0.22),
      0 0 20px var(--tile-glow-soft);
    backdrop-filter: none;
    justify-self: stretch;
  }

  .tile-large {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 78px;
    justify-self: stretch;
  }

  .game-tile i {
    width: 2.08rem;
    height: 2.08rem;
    font-size: 1rem;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--tile-glow) 38%, rgba(255, 255, 255, 0.08)), rgba(4, 14, 30, 0.5));
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--tile-glow) 58%, rgba(255, 255, 255, 0.1)) inset,
      0 0 16px var(--tile-glow-soft);
  }


  .tile-large i {
    width: 2.08rem;
    height: 2.08rem;
    font-size: 1rem;
  }

  .student-guide {
    grid-template-columns: auto 1fr;
    padding: 0.64rem;
    margin-bottom: 0.6rem;
  }

  .guide-avatar {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.22rem;
  }

  .student-guide strong {
    font-size: 0.9rem;
  }

  .student-guide span {
    font-size: 0.74rem;
  }

  .game-tile h2 {
    font-size: clamp(0.78rem, 3.45vw, 0.9rem);
    line-height: 1.05;
    display: block;
    min-width: 0;
    overflow: visible;
    text-wrap: balance;
    color: #f8fdff;
    text-shadow:
      0 1px 8px rgba(0, 0, 0, 0.42),
      0 0 12px var(--tile-glow-soft);
  }

  .game-tile p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .tile-tag {
    min-height: 22px;
    font-size: 0.6rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) and (min-aspect-ratio: 3 / 4) and (max-aspect-ratio: 4 / 3) {
  body[data-page="inicio"] {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body[data-page="inicio"] main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero-home {
    padding: 1.6rem 0 1.4rem;
    align-items: start;
  }

  .hero-grid {
    gap: 1rem;
    align-items: start;
  }

  .hero-copy {
    margin-top: 0.35rem;
    max-width: 700px;
    justify-items: center;
    text-align: center;
  }

  .hero-logo {
    margin-inline: auto;
    justify-items: center;
    text-align: center;
  }

  .hero-logo-text {
    width: max-content;
    max-width: calc(100vw - 2rem);
    justify-content: center;
    justify-self: center;
    margin-inline: auto;
    text-align: center;
  }

  .hero-copy h1 {
    margin-bottom: 1rem;
  }

  .hero-actions {
    width: min(100%, 680px);
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .hero-actions .btn {
    min-height: 64px;
    font-size: clamp(1rem, 1.8vw, 1.16rem);
  }

  .learning-showcase {
    width: min(100%, 760px);
    margin-top: auto;
    padding-top: 1.1rem;
    padding-bottom: 0.2rem;
  }

  .showcase-grid {
    width: min(100%, 700px);
    margin-inline: auto;
    gap: 0.42rem;
    grid-auto-rows: minmax(88px, auto);
    justify-items: center;
  }

  .game-tile {
    width: min(100%, 336px);
    min-height: 88px;
    padding: 0.48rem 0.58rem;
  }

  .floating-robot {
    top: 29%;
    left: clamp(8.2rem, 19vw, 17rem);
    width: clamp(5rem, 11vw, 7.8rem);
    opacity: 0.9;
  }
}

@media (max-width: 380px) {
  .hero-home {
    padding-top: 0.62rem;
  }

  .hero-copy {
    --mobile-brand-to-copy-gap: 0.62rem;
    --mobile-fixed-line-gap: 0.14rem;
    --mobile-fixed-to-dynamic-gap: 0.34rem;
    --mobile-copy-to-actions-gap: 2rem;
    padding-inline: 0;
  }

  .hero-logo {
    margin-bottom: 0;
  }

  .hero-logo-text {
    font-size: clamp(1.95rem, 11.5vw, 3rem);
  }

  .hero-actions .btn {
    min-height: 52px;
    font-size: 0.92rem;
  }

  .learning-showcase {
    width: min(100%, 20.5rem);
  }

  .floating-robot {
    top: 1.35rem;
    left: 28%;
    width: clamp(3.2rem, 19vw, 4.2rem);
    z-index: 6;
    opacity: 0.94;
  }
}

@media (max-width: 430px) {
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-tile,
  .tile-large {
    grid-row: auto;
  }

  .game-tile {
    height: 78px;
    min-height: 0;
  }

  .game-tile h2 {
    font-size: clamp(0.74rem, 3.35vw, 0.86rem);
  }
}

@media (max-width: 340px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 76px;
  }

  .game-tile,
  .tile-large {
    height: 76px;
    min-height: 0;
  }
}

@keyframes mobile-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes mobile-robot-drift {
  0%,
  100% {
    transform: translate3d(-50%, 0, 0) rotate(-7deg);
  }
  50% {
    transform: translate3d(calc(-50% + 8px), -8px, 0) rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn,
  .hero-actions .btn::after,
  .game-tile,
  .symbol-cluster,
  .floating-robot,
  .hero-logo,
  .hero-logo-mark,
  .corner-symbol {
    animation: none;
    transition: none;
  }
}
