/* Zimula2 V5.7.2 — ajuste quirurgico: mascota central y coach popover */

/* EXPERIENCIA: la mascota se ancla a la grilla, no a los textos */
.experience .split {
  position: relative;
  isolation: isolate;
  min-height: 490px;
}
.experience .split > div:first-child {
  position: static;
  isolation: auto;
  padding-bottom: 0;
}
.experience .steps {
  position: relative;
  z-index: 2;
}
.experience .z7-experience-mascot {
  position: absolute;
  z-index: 4;
  top: auto;
  right: auto;
  left: calc(34% - 44px);
  bottom: -32px;
  width: clamp(125px, 11vw, 156px);
  max-width: none;
  margin: 0;
  pointer-events: none;
}
.experience .z7-experience-mascot img {
  display: block;
  width: 100%;
  height: auto;
}

/* HERO: popover anclado visualmente al borde de la simulacion */
.hero .hero-stage {
  isolation: isolate;
}
.hero .coach {
  z-index: 6;
  left: 43px;
  right: auto;
  bottom: 52px;
  width: min(328px, calc(100% - 70px));
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(177, 222, 255, .76);
  border-radius: 20px;
  background: linear-gradient(130deg, rgba(255, 255, 255, .98), rgba(233, 246, 255, .97));
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 24px 55px rgba(0, 15, 55, .36), 0 0 0 5px rgba(94, 197, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .98);
  animation: none;
  transform: none;
}
.hero .coach::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 37px;
  width: 18px;
  height: 18px;
  border-left: 1px solid rgba(177, 222, 255, .76);
  border-top: 1px solid rgba(177, 222, 255, .76);
  border-radius: 3px 0 0 0;
  background: #f6fbff;
  transform: rotate(45deg);
}
.hero .coach::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 15px;
  top: 14px;
  border-radius: 50%;
  background: #34ccb6;
  box-shadow: 0 0 0 4px rgba(52, 204, 182, .13);
}
.hero .coach img {
  width: 59px;
  height: 59px;
  flex: 0 0 59px;
  object-fit: contain;
  border: 1px solid #d5ecff;
  border-radius: 17px;
  background: linear-gradient(145deg, #e2f8ff, #ebebff);
}
.hero .coach span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hero .coach small {
  font-size: 9px;
  letter-spacing: .11em;
  color: #267bdd;
  font-weight: 900;
}
.hero .coach b {
  margin: 5px 0 4px;
  font-size: 14px;
  color: #102d60;
  font-weight: 900;
}
.hero .coach em {
  font-size: 11px;
  line-height: 1.42;
  color: #597191;
  font-style: normal;
}

/* Pantallas intermedias: el personaje vuelve a su propio espacio */
@media (max-width: 1100px) {
  .experience .split {
    min-height: 0;
  }
  .experience .split > div:first-child {
    position: relative;
    padding-bottom: 0;
  }
  .experience .z7-experience-mascot {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    display: block;
    width: 130px;
    max-width: 38%;
    margin: 18px 0 0 16px;
  }
}
@media (max-width: 900px) {
  .experience .z7-experience-mascot {
    width: 128px;
    max-width: 38%;
    margin-top: 18px;
  }
  .hero .coach {
    left: 26px;
    bottom: 51px;
    width: min(318px, calc(100% - 53px));
  }
}
@media (max-width: 600px) {
  .hero .coach {
    left: 12px;
    bottom: 20px;
    width: min(274px, calc(100% - 28px));
    min-height: 78px;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 16px;
  }
  .hero .coach::before {
    left: 30px;
  }
  .hero .coach img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 12px;
  }
  .hero .coach b {
    font-size: 12px;
    margin: 3px 0;
  }
  .hero .coach small {
    font-size: 8px;
  }
  .hero .coach em {
    font-size: 9px;
  }
  .experience .z7-experience-mascot {
    width: 112px;
    max-width: 35%;
    margin: 16px 0 0 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .coach {
    animation: none;
    transition: none;
  }
}
