/**
 * MiyobiLab — Estilos Exactos de la Página de Inicio (Home)
 * Reproducción 100% fiel de la estética original, modularizada y optimizada.
 */

:root {
  --bg: #fbfbfd;
  --ink: #17171a;
  --mute: #86868f;
  --rule: rgba(0, 0, 0, 0.07);
  --soft: rgba(0, 0, 0, 0.04);
  --red: #e4003a;
  --red-d: #c70032;
  --pink: #fde8ec;
  --shadow: 0 1px 2px rgba(23, 23, 26, 0.04), 0 14px 44px rgba(23, 23, 26, 0.08);
  --font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --rail: 76px;
}

body.logged-out {
  --rail: 0px;
}

body.logged-out .rail {
  display: none !important;
}

/* Base Home Layout */
#home {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Botón Principal Pill */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: #fff;
  font: 700 16px var(--font);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(228, 0, 58, 0.22);
  transition: all 0.2s ease;
  text-decoration: none;
}

.pill:hover {
  background: var(--red-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(228, 0, 58, 0.3);
}

.pill:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(228, 0, 58, 0.2);
}

/* ==========================================================================
   Hero Anatómico Central
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px clamp(24px, 6vw, 96px) 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 65%);
  z-index: -1;
  pointer-events: none;
}

.hero img {
  display: block;
  width: clamp(220px, 28vw, 360px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 24px;
  flex-shrink: 0;
}

h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(46px, 8.4vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 40px;
  color: var(--ink);
}

h1 .l {
  display: block;
}

h1 .r {
  color: var(--red);
}

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.02em 0.1em;
}

.w > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(112%);
  animation: up 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--d) * 90ms);
}

@keyframes up {
  to { transform: none; }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.lead {
  font-size: clamp(19px, 1.8vw, 24px);
  color: #4a4a52;
  max-width: 42ch;
  margin: 0 0 48px;
  animation: fade 1s 0.7s both;
  line-height: 1.5;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  animation: fade 1s 0.9s both;
}

.hint {
  font-size: 15.5px;
  color: #55555f;
  font-weight: 500;
}

/* ==========================================================================
   Frase Tecleada Dinámica (Statement)
   ========================================================================== */
.stmt {
  padding: 120px clamp(24px, 6vw, 96px) 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stmt p {
  margin: 0;
  max-width: 21em;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: var(--ink);
  min-height: 3.6em;
}

.stmt-cursor {
  display: inline-block;
  width: 3.5px;
  height: 0.92em;
  background: var(--red);
  margin-left: 5px;
  vertical-align: -0.06em;
  border-radius: 2px;
  animation: st-blink 0.85s infinite;
}

@keyframes st-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Secciones genéricas */
.sec {
  padding: 60px clamp(24px, 6vw, 96px) 90px;
}

h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0 0 48px;
  max-width: 14em;
  color: var(--ink);
}

/* ==========================================================================
   Opciones de Aprendizaje (Learning Options)
   ========================================================================== */
.learning-options {
  max-width: 1400px;
  margin: auto;
}

.learning-options h2,
.pricing-section h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.16;
  margin: 0 0 36px;
  color: #202025;
}

.learning-options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.learning-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 350px;
  padding: 30px 26px;
  border: 1px solid #e9e9ec;
  border-radius: 24px;
  background: #fff;
  color: #202025;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.learning-option:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 0, 58, 0.27);
  box-shadow: 0 12px 30px rgba(39, 21, 35, 0.05);
}

.learning-option.featured {
  background: #e4003a;
  color: white;
  border-color: #e4003a;
}

.option-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.learning-option > svg {
  width: 36px;
  height: 36px;
  margin: 32px 0 24px;
  flex-shrink: 0;
}

.learning-option h3 {
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}

.learning-option p {
  font-size: 15px;
  line-height: 1.65;
  color: #6b6973;
  margin: 0 0 28px;
}

.learning-option.featured p {
  color: #fff;
  opacity: 0.85;
}

.option-cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 32, 37, 0.07);
  width: 100%;
}

.featured .option-cta {
  border-color: rgba(255, 255, 255, 0.23);
  color: #fff;
}

/* ==========================================================================
   Sección de Planes (Pricing)
   ========================================================================== */
.pricing-section {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px !important;
}

.pricing-heading {
  max-width: 640px;
}

.pricing-heading h2 {
  margin: 12px 0 16px;
}

.pricing-heading > p,
.plans-note {
  font-size: 15px;
  line-height: 1.7;
  color: #6b6973;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pricing-card {
  border: 1px solid #e9e9ec;
  border-radius: 24px;
  background: white;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pricing-card.recommended {
  border-color: rgba(228, 0, 58, 0.4);
  box-shadow: 0 8px 30px rgba(228, 0, 58, 0.04);
}

.plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-heading h3 {
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 700;
}

.plan-badge {
  background: #fde8ee;
  color: #b00030;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.pricing-card > p {
  font-size: 14px;
  line-height: 1.5;
  color: #6b6973;
  min-height: 21px;
  margin: 6px 0 0;
}

.plan-price {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 16px 0 8px;
  color: var(--ink);
}

.plan-currency {
  font-size: 13px;
  color: #73717a;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  flex: 1;
}

.pricing-card li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #2c2b30;
}

.pricing-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e4003a;
}

.plan-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid #e7e5e8;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #222;
  background: #fff;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}

a.plan-action:hover {
  background: #fde8ee;
  color: #a7002d;
}

.recommended .plan-action {
  background: #fde8ee;
  color: #a7002d;
  border-color: transparent;
}

.plan-action:disabled {
  cursor: default;
  color: #76717a;
  background: #f7f6f8;
}

.plans-note {
  max-width: none;
  width: 100%;
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.end {
  text-align: center;
  padding: 60px 24px 90px;
}

.end h2 {
  margin: 0 auto 36px;
}

/* ==========================================================================
   Pie de Página (Land Footer)
   ========================================================================== */
.land-footer {
  border-top: 1px solid var(--rule);
  padding: 44px 24px 60px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.land-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.land-footer-brand .land-logo-tag {
  font-weight: 800;
  font-size: 18px;
  color: var(--red);
  letter-spacing: -0.03em;
}

.land-footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule-d, #d4d4d8);
  display: inline-block;
}

.land-footer-tagline {
  font-size: 14px;
  color: var(--mute);
  font-weight: 500;
}

.land-footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.land-footer-nav button {
  border: none;
  background: none;
  padding: 6px 12px;
  font: 500 13.5px var(--font);
  color: var(--mute);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.land-footer-nav button:hover {
  color: var(--ink);
  background: var(--soft);
}

.land-footer-copy {
  font-size: 12.5px;
  color: var(--mute);
  margin-top: 8px;
}

/* ==========================================================================
   Mascota Médica Flotante
   ========================================================================== */
.medical-mascot {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(228, 0, 58, 0.35);
  z-index: 999;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s;
}

.medical-mascot:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 28px rgba(228, 0, 58, 0.45);
}

.medical-mascot svg {
  width: 30px;
  height: 30px;
}

/* ==========================================================================
   Adaptación Responsiva
   ========================================================================== */
@media (max-width: 1100px) {
  .learning-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .learning-option {
    min-height: 300px;
  }
  .pricing-grid {
    gap: 12px;
  }
  .pricing-card {
    padding: 22px;
  }
  .plan-price {
    font-size: 30px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 70px 20px 40px;
    min-height: calc(100svh - 64px);
  }
  .stmt {
    padding: 70px 20px 60px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 24px;
  }
  .learning-option {
    padding: 24px;
  }
  .learning-option h3 {
    font-size: 24px;
  }
  .learning-options-grid {
    gap: 14px;
  }
  .sec {
    padding: 40px 20px 60px;
  }
}

@media (max-width: 480px) {
  .learning-options-grid {
    grid-template-columns: 1fr;
  }
  .learning-option {
    min-height: 270px;
  }
  .learning-option > svg {
    margin: 24px 0 20px;
  }
  .learning-options h2,
  .pricing-section h2 {
    font-size: 28px;
  }
  .pricing-section {
    padding-inline: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-option,
  .pill {
    transition: none !important;
    animation: none !important;
  }
  .w > i {
    transform: none !important;
    animation: none !important;
  }
  .lead,
  .cta {
    animation: none !important;
  }
}

/* Organic cherry footer: homepage only. */
body.miyobilab-home .land-footer {
  --footer-wave-height: clamp(80px, 14vw, 190px);
  border-top: 0;
  padding: calc(var(--footer-wave-height) + 44px) 24px max(60px, env(safe-area-inset-bottom));
  background: transparent;
  color: #fff;
  isolation: isolate;
}
body.miyobilab-home .home-footer-wave {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: calc(var(--footer-wave-height) + 2px);
  background: transparent;
  pointer-events: none;
}
body.miyobilab-home .home-footer-wave path { fill: var(--red, #e4003a); }
body.miyobilab-home .land-footer-brand,
body.miyobilab-home .land-footer-brand .land-logo-tag,
body.miyobilab-home .land-footer-nav button { color: #fff; }
body.miyobilab-home .land-footer-tagline,
body.miyobilab-home .land-footer-copy { color: rgba(255,255,255,.82); }
body.miyobilab-home .land-footer-dot { background: rgba(255,255,255,.65); }
body.miyobilab-home .land-footer-nav button:hover { background: rgba(255,255,255,.12); color: #fff; }
body.miyobilab-home .land-footer-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  body.miyobilab-home .land-footer-brand { flex-wrap: wrap; justify-content: center; }
  body.miyobilab-home .land-footer-tagline { flex-basis: 100%; }
  body.miyobilab-home .land-footer-dot { display: none; }
  body.miyobilab-home .land-footer-nav { gap: 6px 12px; }
}

body.miyobilab-home .land-footer::before {
  content: "";
  position: absolute;
  inset: calc(var(--footer-wave-height) - 1px) 0 0;
  z-index: -1;
  background: var(--red, #e4003a);
  pointer-events: none;
}
/* Account invitation, reusing the homepage illustration. */
body.miyobilab-home .home-account-cta { padding: 88px 20px 0; position: relative; z-index: 3; }
.home-account-cta h2 { color: var(--red); font-size: clamp(32px, 4.5vw, 64px); line-height: 1.12; letter-spacing: -.045em; max-width: 700px; margin-bottom: 30px; }
.home-account-cta > .pill { min-width: min(300px, 100%); min-height: 52px; position: relative; z-index: 2; }
.learning-float-scene { width: min(850px, 100%); height: 320px; margin: 24px auto -100px; position: relative; pointer-events: none; }
.learning-device { width: 185px; height: 245px; position: absolute; left: calc(50% - 92.5px); top: 64px; background: #fff; border: 5px solid var(--red); border-bottom-width: 12px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-5deg); animation: learning-device-float 7s ease-in-out infinite; }
.learning-device-label { font-size: 25px; color: var(--red); font-weight: 800; letter-spacing: -.06em; }
.learning-device-label span { font-size: 11px; color: var(--ink); letter-spacing: 0; vertical-align: super; }
.learning-device img { width: 155px; height: 160px; object-fit: contain; }
.learning-device-line { width: 44px; height: 4px; background: #ffd0da; border-radius: 4px; }
.learning-float { position: absolute; width: 80px; height: 80px; animation: learning-object-float 6s ease-in-out infinite; }
.learning-heart { left: 28%; top: 14px; width: 65px; transform: rotate(-12deg); }
.learning-molecule { right: 12%; top: 10px; animation-delay: -2s; }
.learning-book { left: 7%; top: 88px; width: 95px; height: 95px; animation-delay: -3s; }
.learning-check { right: 6%; top: 155px; width: 115px; animation-delay: -1s; }
.learning-dna { right: 28%; top: 70px; width: 60px; animation-delay: -4s; }
.learning-confetti { position: absolute; width: 12px; height: 12px; background: #ffc2d1; border-radius: 3px; animation: learning-object-float 8s ease-in-out infinite; }
.confetti-one { left: 23%; top: 220px; rotate: 30deg; }.confetti-two { right: 23%; top: 230px; background: #c6baf5; rotate: -25deg; }.confetti-three { left: 13%; top: 25px; background: #a4e0d5; border-radius: 50%; }
@keyframes learning-object-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes learning-device-float { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@media(max-width:600px) {
 body.miyobilab-home .home-account-cta { padding-top: 58px; }
 .learning-float-scene { height: 270px; margin-bottom: -55px; }
 .learning-device { width: 145px; height: 195px; left: calc(50% - 72.5px); top: 62px; border-radius: 24px; }
 .learning-device img { width: 120px; height: 125px; }.learning-device-label { font-size: 22px; }
 .learning-heart { left: 16%; width: 48px; }.learning-molecule { right: 5%; width: 55px; }
 .learning-book { left: 0; top: 98px; width: 55px; height: 65px; }.learning-check { right: 0; top: 175px; width: 64px; }
 .learning-dna { right: 2%; top: 92px; width: 42px; }.confetti-one { left: 10%; top: 220px; }.confetti-two { right: 18%; top: 245px; }
}
@media(prefers-reduced-motion:reduce) { .learning-float,.learning-device,.learning-confetti { animation: none; } }

/* Plans: editorial presentation, existing packages and actions. */
body.miyobilab-home .pricing-section { padding-top: 36px !important; }
.plans-showcase { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 32px; padding: clamp(32px, 5vw, 76px); border-radius: 32px; background: #2b0b18; color: #fff; overflow: hidden; }
.plans-art { width: min(360px,100%); justify-self: center; }
.plans-art svg { display: block; width: 100%; height: auto; }
.plans-showcase .pricing-heading { max-width: 570px; }
.plans-showcase .option-kicker { color: #ffb0c5; font-size: 11px; letter-spacing: .16em; }
body.miyobilab-home .plans-showcase h2 { color: #fff; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; margin: 18px 0 22px; }
.plans-showcase .pricing-heading > p { color: #e7c4d0; font-size: 15px; max-width: 360px; }
.plans-showcase-action { display: inline-flex; gap: 28px; justify-content: space-between; align-items: center; background: #fff; color: #6f1535; text-decoration: none; border-radius: 14px; padding: 15px 22px; margin-top: 20px; font-size: 14px; font-weight: 700; transition: background .18s, transform .18s; }
.plans-showcase-action:hover { background: #ffe4ed; transform: translateY(-2px); }
.plans-showcase-action:focus-visible { outline: 2px solid #ffb0c5; outline-offset: 5px; }
body.miyobilab-home .pricing-grid { gap: 18px; margin-top: 28px; scroll-margin-top: 120px; }
body.miyobilab-home .pricing-card { padding: 30px; border-radius: 24px; box-shadow: none; border-color: #ece6e9; }
body.miyobilab-home .pricing-card.recommended { background: #fff5f8; border-color: #f3c0ce; }
body.miyobilab-home .plan-heading h3 { font-size: 12px; letter-spacing: .08em; }
body.miyobilab-home .plan-badge { background: #ffe1ea; color: #a80032; font-weight: 600; }
body.miyobilab-home .plan-price { font-size: 32px; font-weight: 600; margin-top: 20px; }
body.miyobilab-home .pricing-card ul { margin: 24px 0 30px; padding-top: 20px; border-top: 1px solid #eee5e9; }
body.miyobilab-home .pricing-card li { font-size: 13px; padding-block: 8px; }
body.miyobilab-home .pricing-card li::before { width: 4px; height: 4px; top: 16px; }
body.miyobilab-home a.plan-action { background: var(--red); color: #fff; border-color: transparent; }
body.miyobilab-home a.plan-action:hover { background: #c90034; }
body.miyobilab-home .plan-action:disabled { background: transparent; border: 1px solid #e3d7dd; color: #84727b; }
body.miyobilab-home .plans-note { margin-top: 24px; font-size: 12px; color: #777079; line-height: 1.8; }
@media(max-width:800px) { .plans-showcase { grid-template-columns: 1fr; gap: 10px; text-align: center; padding: 30px 24px 40px; }.plans-art { width: 200px; }.plans-showcase .pricing-heading { justify-self: center; }.plans-showcase .pricing-heading > p { margin-inline: auto; } }
@media(max-width:480px) { .plans-showcase { border-radius: 24px; }.plans-art { width: 165px; } body.miyobilab-home .pricing-card { padding: 26px; } }
@media(prefers-reduced-motion:reduce) { .plans-showcase-action { transition: none; } }

.plans-art{position:relative;isolation:isolate}
.plans-art img{position:relative;z-index:1;display:block;width:100%;height:auto;filter:drop-shadow(0 18px 22px #14040c55)}
.plans-art::before{content:"";position:absolute;inset:12% 0 0;border-radius:50%;background:radial-gradient(ellipse,#e8316340,transparent 68%);z-index:-1}
.plans-art::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#ffc7d5;left:9%;top:23%;box-shadow:265px 34px 0 -1px #ffc7d5,230px 215px 0 -2px #ff839f,8px 170px 0 -1px #ff839f;pointer-events:none}
@media(max-width:800px){.plans-art::after{box-shadow:160px 20px 0 -1px #ffc7d5,135px 125px 0 -2px #ff839f,0 105px 0 -1px #ff839f}}


/* Una única franja de planes, de borde a borde. */
body.miyobilab-home .pricing-section{position:relative;isolation:isolate;max-width:none;width:100%;margin:0;padding:64px max(24px,calc((100% - 1200px)/2)) 64px!important;background:#2b0b18;color:#fff;overflow:hidden}
body.miyobilab-home .plans-showcase{padding:0 24px 48px;border-radius:0;background:transparent;overflow:visible}
body.miyobilab-home .pricing-grid{position:relative;z-index:1;scroll-margin-top:110px}
body.miyobilab-home .pricing-card{background:#fff;color:var(--ink)}
body.miyobilab-home .plans-note{position:relative;z-index:1;color:#d9b7c5;margin-bottom:0}
body.miyobilab-home .plans-note a{color:#ffc1d3!important}
.pricing-section::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 0% 60%,#ba235630,transparent 42%),radial-gradient(ellipse at 100% 100%,#e2345926,transparent 40%);}
.pricing-section::after{content:"";position:absolute;right:-72px;top:48%;width:190px;height:190px;border:1px solid #ffb0c522;border-radius:50%;box-shadow:0 0 0 28px #ffb0c509,0 0 0 60px #ffb0c506;pointer-events:none;z-index:-1}
@media(max-width:800px){body.miyobilab-home .pricing-section{padding:36px 24px 40px!important}body.miyobilab-home .plans-showcase{padding:0 0 32px}}
@media(max-width:480px){body.miyobilab-home .pricing-section{padding-inline:16px!important}.pricing-section::after{right:-140px}}

.plans-particles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.plans-particles i{position:absolute;display:block;width:5px;height:5px;background:#ffe6ef;border-radius:50%;opacity:.45;animation:plan-drift 9s ease-in-out infinite alternate;will-change:transform}
.plans-particles i:nth-child(1){left:4%;top:12%}
.plans-particles i:nth-child(2){left:20%;top:6%;animation-delay:-3s;width:3px;height:3px}
.plans-particles i:nth-child(3){left:45%;top:15%;animation-delay:-6s}
.plans-particles i:nth-child(4){left:76%;top:5%;animation-delay:-2s;width:3px;height:3px}
.plans-particles i:nth-child(5){left:95%;top:29%;animation-delay:-5s}
.plans-particles i:nth-child(6){left:2%;top:49%;animation-delay:-7s}
.plans-particles i:nth-child(7){left:98%;top:68%;animation-delay:-4s;width:3px;height:3px}
.plans-particles i:nth-child(8){left:5%;top:84%;animation-delay:-1s}
.plans-particles i:nth-child(9){left:22%;top:94%;animation-delay:-6s;width:3px;height:3px}
.plans-particles i:nth-child(10){left:54%;top:97%;animation-delay:-3s}
.plans-particles i:nth-child(11){left:83%;top:94%;animation-delay:-8s;width:3px;height:3px}
.plans-particles i:nth-child(12){left:97%;top:88%;animation-delay:-5s}
@keyframes plan-drift{from{transform:translate3d(-6px,8px,0);opacity:.25}to{transform:translate3d(10px,-16px,0);opacity:.6}}
@media(prefers-reduced-motion:reduce){.plans-particles i{animation:none;will-change:auto}}

.plans-art::after{animation:plan-drift 8s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.plans-art::after{animation:none}}

/* Detalles del entorno de la mascota y partículas suaves. */
.plans-particles i{width:6px;height:6px;background:#ffdae6;opacity:.65}
.plans-particles i:nth-child(13){left:12%;top:30%;animation-delay:-4s}
.plans-particles i:nth-child(14){left:34%;top:8%;animation-delay:-7s}
.plans-particles i:nth-child(15){left:60%;top:9%;animation-delay:-2s}
.plans-particles i:nth-child(16){left:88%;top:18%;animation-delay:-5s}
.plans-particles i:nth-child(17){left:8%;top:63%;animation-delay:-8s}
.plans-particles i:nth-child(18){left:92%;top:56%;animation-delay:-1s}
.plans-particles i:nth-child(19){left:38%;top:91%;animation-delay:-6s}
.plans-particles i:nth-child(20){left:68%;top:93%;animation-delay:-3s}
.plans-particles i:nth-child(21){left:2%;top:36%;animation-delay:-5s;width:4px;height:4px}
.plans-particles i:nth-child(22){left:98%;top:12%;animation-delay:-8s;width:4px;height:4px}
.plans-particles i:nth-child(23){left:10%;top:97%;animation-delay:-2s;width:4px;height:4px}
.plans-particles i:nth-child(24){left:90%;top:80%;animation-delay:-6s;width:4px;height:4px}
.plans-art::before{inset:5% -8%;border:1px solid #ffb8cd30;box-shadow:0 0 0 20px #ffb8cd08,0 0 0 42px #ffb8cd05;background:radial-gradient(ellipse,#ed477460,transparent 68%);transform:rotate(-18deg);animation:mascot-glow 6s ease-in-out infinite alternate}
.plans-art img{animation:mascot-float 6s ease-in-out infinite;transform-origin:50% 84%}
@keyframes mascot-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-10px) rotate(1.5deg)}}
@keyframes mascot-glow{from{opacity:.65;transform:rotate(-18deg) scale(.96)}to{opacity:1;transform:rotate(-12deg) scale(1.03)}}
@keyframes plan-drift{from{transform:translate3d(-6px,8px,0);opacity:.4}to{transform:translate3d(10px,-16px,0);opacity:.8}}
@media(prefers-reduced-motion:reduce){.plans-art img,.plans-art::before,.plans-art::after,.plans-particles i{animation:none}}


.learning-float-scene{--mascot-progress:0}
.learning-screen{display:block;width:155px;height:160px;overflow:hidden;position:relative}
.learning-device .learning-mascot{display:block;width:100%;height:100%;object-fit:contain;transform:translateY(calc(100% * (1 - var(--mascot-progress))));opacity:var(--mascot-progress)}
@media(max-width:600px){.learning-screen{width:120px;height:125px}.learning-device .learning-mascot{width:100%;height:100%}}
@media(prefers-reduced-motion:reduce){.learning-device .learning-mascot{transform:none;opacity:1}}

.learning-device .learning-mascot{width:155%;height:auto;max-width:none;position:absolute;left:-27.5%;top:-8%;object-fit:initial}
@media(max-width:600px){.learning-device .learning-mascot{width:155%;height:auto}}

/* El pie conecta con los planes cuando la invitación de cuenta está oculta. */
body.miyobilab-home .home-account-cta[hidden] + .land-footer{background:#2b0b18}
body.miyobilab-home .home-account-cta[hidden] + .land-footer::before{inset:calc(var(--footer-wave-height) - 1px) 0 0}
@media(max-width:600px){
 body.miyobilab-home .land-footer{--footer-wave-height:62px;padding:calc(var(--footer-wave-height) + 24px) 20px max(30px,env(safe-area-inset-bottom));gap:22px}
 body.miyobilab-home .land-footer-brand{display:flex;flex-direction:column;gap:12px}
 body.miyobilab-home .land-footer-brand .land-logo-tag{font-size:22px}
 body.miyobilab-home .land-footer-tagline{font-size:13px;line-height:1.6;max-width:280px}
 body.miyobilab-home .land-footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:360px;gap:4px 10px}
 body.miyobilab-home .land-footer-nav button{font-size:13px;line-height:1.4;min-height:44px;padding:10px 4px}
 body.miyobilab-home .land-footer-nav button:last-child{grid-column:1/-1}
 body.miyobilab-home .land-footer-copy{font-size:11px;line-height:1.6;margin-top:0;max-width:280px}
 body.miyobilab-home .plans-note{font-size:12px;line-height:1.7}
 body.miyobilab-home .pricing-section{padding-bottom:30px!important}
}

.home-subjects{display:flex;justify-content:center;align-items:center;gap:clamp(24px,6vw,88px);border-block:1px solid #ececef;background:#ffffffed;padding:20px 24px;position:relative;z-index:2}
.home-subjects a{display:flex;align-items:center;gap:14px;min-height:48px;color:#77727a;text-decoration:none;font-size:13px;font-weight:700;letter-spacing:.04em;transition:color .18s,transform .18s}
.home-subjects a:hover{color:var(--red);transform:translateY(-2px)}
.home-subjects a:focus-visible{outline:2px solid var(--red);outline-offset:6px;border-radius:6px}
.home-subject-flag{position:relative;overflow:hidden;flex:0 0 48px;width:48px;height:34px;border-radius:5px}
.home-subject-flag img{position:absolute;max-width:none;pointer-events:none}
.home-subject-flag.flag-anatomia img{width:115.05%;height:156.75%;left:-7.52%;top:-26.5%}
.home-subject-flag.flag-bioquimica img,.home-subject-flag.flag-salud-publica img{width:111.77%;height:162.44%;left:-5.88%;top:-29.79%}
@media(max-width:600px){.home-subjects{gap:12px;padding:16px 12px}.home-subjects a{flex:1;min-width:0;flex-direction:column;gap:8px;font-size:11px;letter-spacing:0;text-align:center}.home-subject-flag{flex-basis:34px}}
@media(prefers-reduced-motion:reduce){.home-subjects a{transition:none}}

/* Herramientas como secciones independientes y alternadas. */
body.miyobilab-home .learning-options{max-width:none;margin:0;background:#fff;padding:70px clamp(20px,4vw,76px)}
body.miyobilab-home .learning-options-grid{display:flex;flex-direction:column;gap:0}
body.miyobilab-home .learning-option,body.miyobilab-home .learning-option.featured{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(30px,7vw,100px);row-gap:14px;align-content:center;min-height:280px;padding:36px 0;border:0;border-radius:0;background:transparent;color:var(--ink);box-shadow:none;transform:none;--feature-tint:#fff0f4;--feature-color:var(--red)}
body.miyobilab-home .learning-option:nth-child(2){--feature-tint:#eef9f6;--feature-color:#288a7b}
body.miyobilab-home .learning-option:nth-child(3){--feature-tint:#f3effc;--feature-color:#8260ba}
body.miyobilab-home .learning-option:nth-child(4){--feature-tint:#fff5e8;--feature-color:#ba873c}
body.miyobilab-home .learning-option > svg{grid-column:2;grid-row:1/5;align-self:center;justify-self:center;width:210px;height:210px;margin:0;padding:48px;box-sizing:border-box;border-radius:42%;background:var(--feature-tint);color:var(--feature-color);stroke-width:1.25;transform:rotate(5deg);transition:transform .25s}
body.miyobilab-home .learning-option:nth-child(even)>svg{grid-column:1;transform:rotate(-5deg)}
body.miyobilab-home .learning-option:nth-child(even)>:not(svg){grid-column:2}
body.miyobilab-home .learning-option:nth-child(odd)>:not(svg){grid-column:1}
body.miyobilab-home .learning-option .option-kicker{grid-row:1;color:#8d858b;font-size:11px}
body.miyobilab-home .learning-option h3{grid-row:2;font-size:clamp(28px,3vw,38px);font-weight:800;letter-spacing:-.04em;color:var(--ink);margin:0}
body.miyobilab-home .learning-option p{grid-row:3;font-size:16px;line-height:1.7;color:#777079;opacity:1;margin:0;max-width:560px}
body.miyobilab-home .learning-option .option-cta{grid-row:4;width:fit-content;margin:8px 0 0;border:1px solid #e9e9ee;border-radius:999px;padding:11px 18px;color:var(--red);background:#fff;transition:background .2s,border-color .2s}
body.miyobilab-home .learning-option + .learning-option{border-top:1px solid #eeeef2}
body.miyobilab-home .learning-option:hover .option-cta{background:#fff5f7;border-color:#f3c6d1}
body.miyobilab-home .learning-option:focus-visible{outline:2px solid var(--red);outline-offset:6px;border-radius:12px}
@media(max-width:600px){body.miyobilab-home .learning-options{padding-block:40px}body.miyobilab-home .learning-options-grid{gap:0}body.miyobilab-home .learning-option,body.miyobilab-home .learning-option.featured{grid-template-columns:minmax(0,1fr);padding:28px 0;min-height:0;gap:12px;text-align:center}body.miyobilab-home .learning-option > svg,body.miyobilab-home .learning-option:nth-child(even)>svg{grid-column:1;grid-row:1;width:150px;height:150px;padding:36px;margin-bottom:10px}body.miyobilab-home .learning-option:nth-child(n)>:not(svg){grid-column:1}body.miyobilab-home .learning-option .option-kicker{grid-row:2}body.miyobilab-home .learning-option h3{grid-row:3;font-size:28px}body.miyobilab-home .learning-option p{grid-row:4;font-size:14px;max-width:330px;justify-self:center}body.miyobilab-home .learning-option .option-cta{grid-row:5;justify-self:center}}
@media(prefers-reduced-motion:reduce){body.miyobilab-home .learning-option>svg{transition:none}}


/* Reading mascot: one introduction, then occasional blinking. */
.plans-art:has(.plans-reader){width:min(330px,100%)}
.plans-reader{overflow:visible;filter:drop-shadow(0 18px 22px #14040c45)}
.reader-character{transform-origin:627px 1060px}
.reader-eye-left{transform-origin:561px 555px}
.reader-eye-right{transform-origin:894px 553px}
.reader-closed{opacity:0}
.is-playing .reader-character{animation:reader-welcome 5.8s ease-in-out both}
.is-playing .reader-eye{animation:reader-blink 4.8s 1.8s infinite}
.is-playing .reader-closed{animation:reader-lids 4.8s 1.8s infinite}
.plans-art:not(.is-visible) .reader-character,.plans-art:not(.is-visible) .reader-eye,.plans-art:not(.is-visible) .reader-closed{animation-play-state:paused}
@keyframes reader-welcome{0%{opacity:0;transform:translateY(24px) scale(.94)}12%{opacity:1;transform:translateY(0) scale(1)}28%{transform:rotate(-3deg) translateY(5px)}48%{transform:rotate(2deg) translateY(2px)}66%{transform:rotate(-1.5deg) translateY(4px)}82%{transform:rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes reader-blink{0%,43%,49%,100%{transform:scaleY(1)}45.5%,46.5%{transform:scaleY(.02)}}
@keyframes reader-lids{0%,44%,48%,100%{opacity:0}45.5%,46.5%{opacity:1}}
@media(max-width:800px){.plans-art:has(.plans-reader){width:240px;max-width:100%}}
@media(prefers-reduced-motion:reduce){.is-playing .reader-character,.is-playing .reader-eye,.is-playing .reader-closed{animation:none}}

/* Expression sequence stays settled on the book after the introduction. */
.reader-mouth{transform-origin:732px 628px}
.reader-smile{opacity:0}
.reader-brow-left{transform-origin:538px 340px}
.reader-brow-right{transform-origin:878px 338px}
.is-playing .reader-mouth{animation:reader-mouth-close 5.8s ease-in-out both}
.is-playing .reader-smile{animation:reader-smile-show 5.8s ease-in-out both}
.is-playing .reader-brow-left{animation:reader-brow-left 5.8s ease-in-out both}
.is-playing .reader-brow-right{animation:reader-brow-right 5.8s ease-in-out both}
.is-playing .reader-gaze{animation:reader-look-down 5.8s ease-in-out both}
.plans-art:not(.is-visible) .reader-mouth,.plans-art:not(.is-visible) .reader-smile,.plans-art:not(.is-visible) .reader-brow-left,.plans-art:not(.is-visible) .reader-brow-right,.plans-art:not(.is-visible) .reader-gaze{animation-play-state:paused}
@keyframes reader-mouth-close{0%,18%{opacity:1;transform:scaleY(1)}30%,100%{opacity:0;transform:scaleY(.05)}}
@keyframes reader-smile-show{0%,23%{opacity:0}31%,100%{opacity:1}}
@keyframes reader-brow-left{0%,18%{transform:none}30%{transform:translateY(-7px) rotate(-4deg)}47%{transform:translateY(4px) rotate(5deg)}64%,100%{transform:translateY(3px) rotate(2deg)}}
@keyframes reader-brow-right{0%,18%{transform:none}30%{transform:translateY(-7px) rotate(4deg)}47%{transform:translateY(4px) rotate(-5deg)}64%,100%{transform:translateY(3px) rotate(-2deg)}}
@keyframes reader-look-down{0%,38%{transform:none}60%,100%{transform:translate(-3px,10px)}}
@media(prefers-reduced-motion:reduce){.is-playing .reader-mouth,.is-playing .reader-smile,.is-playing .reader-brow-left,.is-playing .reader-brow-right,.is-playing .reader-gaze{animation:none}}

/* Transparent learning illustrations, shared frame and restrained accents. */
body.miyobilab-home .learning-option:nth-child(n) .learning-art{position:relative;isolation:isolate;grid-column:2;grid-row:1 / 5;align-self:center;justify-self:center;width:clamp(220px,22vw,300px);height:clamp(220px,22vw,300px);display:grid;place-items:center;pointer-events:none}
body.miyobilab-home .learning-option:nth-child(even) .learning-art{grid-column:1}
/* Discrete illustration backdrops, contained inside each frame. */
body.miyobilab-home .learning-art::before{content:"";position:absolute;inset:8%;z-index:-1;background:#fff2f4;border-radius:42% 58% 54% 46%;transform:rotate(-10deg)}
body.miyobilab-home .learning-art::after{content:"";position:absolute;inset:2%;z-index:-1;border:1px solid #f5dce2;border-radius:50%;transform:rotate(12deg) scaleX(.94)}
body.miyobilab-home .learning-option:nth-child(even) .learning-art::before{border-radius:58% 42% 46% 54%;transform:rotate(10deg)}
body.miyobilab-home .learning-art img{display:block;width:88%;height:88%;max-width:100%;max-height:100%;min-width:0;object-fit:contain;animation:learning-art-float 7s ease-in-out infinite}
.art-quiz img{animation-delay:-1.5s}.art-clinical img{animation-delay:-3s}.art-flashcards img{animation-delay:-4.5s}
.learning-art:not(.art-visible) img{animation-play-state:paused}
@keyframes learning-art-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
@media(max-width:600px){body.miyobilab-home .learning-option:nth-child(n) .learning-art{grid-column:1;grid-row:1;width:190px;height:190px;margin-bottom:8px}body.miyobilab-home .learning-option:nth-child(n)>:not(.learning-art){grid-column:1}}
@media(prefers-reduced-motion:reduce){.learning-art img{animation:none}}

/* Full silhouette with an automatic reveal and a closing-eye sequence. */
.tablet-neuron{position:absolute;display:block;width:92%;aspect-ratio:1;left:4%;top:3%;transform:translateY(105%);opacity:0;transition:transform .85s cubic-bezier(.22,1,.36,1),opacity .65s ease}
.neuron-ready .tablet-neuron{transform:translateY(0);opacity:1}
.learning-device .tablet-neuron img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-width:none}
.tablet-neuron .neuron-closed{opacity:0}
.neuron-ready .tablet-neuron .neuron-open{opacity:1;animation:none}
.neuron-ready .tablet-neuron .neuron-closed{animation:neuron-eyes-close 3.2s .8s ease-in-out infinite}
.learning-float-scene:not(.neuron-visible) .tablet-neuron img{animation-play-state:paused}
@keyframes neuron-eyes-close{0%,39%,46%,100%{opacity:0}41%,43%{opacity:1}}
@media(prefers-reduced-motion:reduce){.tablet-neuron{transform:none;opacity:1;transition:none}.learning-device .tablet-neuron img{animation:none}.tablet-neuron .neuron-open{opacity:1}.tablet-neuron .neuron-closed{opacity:0}}

/* Continuous white surface from subjects to pricing. */
.home-learning-surface{position:relative;background:#fff}
.home-learning-surface .home-subjects{background:#fff}

/* Six subjects share a responsive strip. */
.home-subjects{flex-wrap:wrap;column-gap:clamp(18px,3vw,42px);row-gap:18px}
.home-subject-flag.flag-fisiologia img,.home-subject-flag.flag-biologia-molecular img,.home-subject-flag.flag-histologia img{width:334%;height:152%;top:-26%;left:-9.4%}
.home-subject-flag.flag-biologia-molecular img{left:-117%}
.home-subject-flag.flag-histologia img{left:-226%}
@media(max-width:600px){.home-subjects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.home-subjects a{width:100%;line-height:1.4}}

/* Prevent elastic scrolling past the page boundary, including Safari. */
html.miyobilab-home-root,body.miyobilab-home{overscroll-behavior-y:none}

/* Social links reuse the existing channel icons and verified URL configuration. */
.home-footer-social{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;width:100%;height:auto;margin:0;padding:0;background:none}
 .home-footer-social a,.home-footer-social button{display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #ffe9df55;border-radius:50%;background:#ffe9df18;color:#ffe9df;text-decoration:none;box-shadow:none;transition:background .2s,transform .2s}
.home-footer-social svg{width:22px;height:22px;stroke-width:1.8}
.home-footer-social button:disabled{opacity:1;cursor:default}
.home-footer-social a:hover{background:#ffe9df30;transform:translateY(-2px)}
.home-footer-social a:focus-visible{outline:2px solid #ffe9df;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.home-footer-social a,.home-footer-social button{transition:none}}

/* Equal outer alignment for the alternating learning rows. */
body.miyobilab-home .learning-options,body.miyobilab-home .learning-options-grid,body.miyobilab-home .learning-option{width:100%;box-sizing:border-box}
@media(min-width:601px){body.miyobilab-home .learning-option:nth-child(odd) .learning-art{justify-self:end}body.miyobilab-home .learning-option:nth-child(even) .learning-art{justify-self:start}body.miyobilab-home .learning-option:nth-child(even)>:not(.learning-art){justify-self:end;text-align:right}}

@media(min-width:601px){body.miyobilab-home .learning-options-grid{max-width:1120px;margin-inline:auto}body.miyobilab-home .learning-option{column-gap:clamp(28px,4vw,60px)}body.miyobilab-home .learning-option:nth-child(n) .learning-art{justify-self:center}body.miyobilab-home .learning-option:nth-child(even)>:not(.learning-art){justify-self:start;text-align:left}}

.land-footer .home-footer-social :is(a,button){display:grid;place-items:center;flex:0 0 46px;width:46px;min-width:46px;max-width:46px;height:46px;min-height:46px;padding:0;line-height:1;overflow:hidden;opacity:1;filter:none}
.land-footer .home-footer-social svg{position:static;display:block;flex:none;width:22px!important;height:22px!important;max-width:22px;max-height:22px;margin:0;transform:none;fill:none;stroke:currentColor;stroke-width:1.8}

/* Personal learning: shared typography, white space and quiet cherry accents. */
body.miyobilab-home #personal-home{display:block;position:relative;width:100%;max-width:1120px;margin:32px auto 56px;padding:28px clamp(20px,3vw,40px);background:#fff;border:0;border-radius:0;text-align:left;box-sizing:border-box}
body.miyobilab-home #personal-home[hidden]{display:none!important}
body.miyobilab-home #personal-home>h2{font-size:clamp(28px,3vw,40px);font-weight:800;line-height:1.18;letter-spacing:-.045em;margin:0 0 30px;color:var(--ink)}
body.miyobilab-home .personal-grid{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:0;align-items:stretch}
body.miyobilab-home .personal-card{min-width:0;gap:14px;padding:24px 28px;border:0;border-left:1px solid #eee7e9;border-radius:0;background:transparent;color:var(--ink);transition:background .2s}
body.miyobilab-home #continue-lesson{border:0;border-radius:22px;background:#fff3f5;margin-right:24px}
body.miyobilab-home .personal-card[href]:hover{background:#fff8f9}
body.miyobilab-home .personal-kicker{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--red)}
body.miyobilab-home .personal-card h3{font-size:clamp(20px,2vw,26px);font-weight:700;line-height:1.3;letter-spacing:-.035em;margin:0}
body.miyobilab-home .personal-meta{font-size:14px;line-height:1.6;color:#86868f}
body.miyobilab-home .review-count{font-size:40px;letter-spacing:-.05em;font-weight:800;line-height:1}
body.miyobilab-home .fundamentals-card strong{font-size:20px;line-height:1.4;letter-spacing:-.025em}
body.miyobilab-home .personal-action{align-self:flex-start;margin-top:auto;padding:10px 16px;border:1px solid #efdce1;border-radius:100px;font-size:13px;font-weight:600;color:var(--red);text-decoration:none;line-height:1.2}
body.miyobilab-home .personal-home progress{height:6px;margin:4px 0 12px;accent-color:var(--red)}
body.miyobilab-home .personal-systems{margin-top:28px;padding-top:20px;border-top:1px solid #f0ecee}
body.miyobilab-home .personal-systems summary{font-size:13px;color:#86868f;padding:8px 0}
body.miyobilab-home .system-progress-item{border-color:#f0ecee;border-radius:16px;padding:16px}
body.miyobilab-home #personal-home>[data-learning-status]:empty{display:none}
@media(max-width:760px){body.miyobilab-home .personal-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px}body.miyobilab-home #continue-lesson{grid-column:1/-1;margin-right:0;padding:24px}body.miyobilab-home .personal-card{padding:8px 18px;border:0}body.miyobilab-home .fundamentals-card{border-left:1px solid #eee7e9}body.miyobilab-home .system-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.miyobilab-home #personal-home{margin:24px auto 36px;padding:20px}body.miyobilab-home .personal-meta{font-size:13px}body.miyobilab-home .fundamentals-card strong{font-size:18px}}
@media(max-width:360px){body.miyobilab-home .personal-card{padding-inline:10px}body.miyobilab-home .personal-action{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){body.miyobilab-home .personal-card{transition:none}}

/* The window owns home scrolling. hidden on only one axis creates a nested
   scroll container; overscroll:none then traps mouse-wheel input there. */
html.miyobilab-home-root{overflow-y:auto!important;height:auto!important;}
html.miyobilab-home-root body.miyobilab-home{overflow:visible!important;overflow-x:clip!important;height:auto!important;max-height:none!important;}

/* Full-width feedback band with the supplied construction mascot. */
body.miyobilab-home .home-feedback{position:relative;isolation:isolate;width:100%;max-width:none;margin:0;padding:54px max(24px,calc((100% - 1120px)/2));background:#fff0db;overflow:hidden;text-align:left;box-sizing:border-box}
.home-feedback-inner{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(28px,5vw,72px);position:relative;z-index:1}
.home-feedback-art{position:relative;width:100%;max-width:400px;justify-self:center;aspect-ratio:1}
.feedback-nebi{position:relative;width:100%;height:100%;background:url('/images/nebi-feedback-sprite.png') left center/200% 100% no-repeat;animation:feedback-breathe 7.5s ease-in-out infinite;animation-play-state:paused;transform-origin:50% 84%}
.feedback-eye{position:absolute;inset:0;pointer-events:none;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}
.feedback-eye-left{mask-image:radial-gradient(ellipse 8.6% 8.8% at 40.4% 51%,#000 86%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 8.6% 8.8% at 40.4% 51%,#000 86%,transparent 100%);clip-path:inset(39% 0 61% 0);animation:feedback-blink-left 4.8s linear infinite;animation-play-state:paused}
.feedback-eye-right{mask-image:radial-gradient(ellipse 8.6% 8.7% at 67.7% 47.3%,#000 86%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 8.6% 8.7% at 67.7% 47.3%,#000 86%,transparent 100%);clip-path:inset(36% 0 64% 0);animation:feedback-blink-right 4.8s linear infinite;animation-play-state:paused}
.feedback-eye i{position:absolute;inset:0;background:url('/images/nebi-feedback-sprite.png') right center/200% 100% no-repeat;transform:translate(-2.3%,-.1%)}
.home-feedback.is-visible .feedback-nebi,.home-feedback.is-visible .feedback-eye,.home-feedback.is-visible .feedback-spark{animation-play-state:running}
.feedback-orbit{position:absolute;inset:12% 6%;border:1px solid #dcb47c66;border-radius:46% 54% 48% 52%;transform:rotate(-14deg);box-shadow:0 0 0 24px #e7c08a12,0 0 0 52px #e7c08a0b}
.feedback-spark{position:absolute;width:7px;height:7px;background:#d5a24d;border-radius:50%;animation:feedback-drift 5s ease-in-out infinite alternate;animation-play-state:paused}
.feedback-spark.spark-one{left:4%;top:30%}.feedback-spark.spark-two{right:2%;top:16%;width:10px;height:10px;animation-delay:-2s;background:#dca0a0}.feedback-spark.spark-three{right:4%;bottom:16%;width:6px;height:6px;animation-delay:-3s}
body.miyobilab-home .home-feedback .personal-kicker{font-size:10px;font-weight:700;letter-spacing:.12em;color:#9b5727}
body.miyobilab-home .home-feedback-copy h2{margin:14px 0 20px;font-size:clamp(30px,3.7vw,48px);font-weight:800;line-height:1.12;letter-spacing:-.045em;color:#39231f}
body.miyobilab-home .home-feedback-copy p{margin:0;max-width:510px;font-size:16px;line-height:1.75;color:#735b52}
body.miyobilab-home .home-feedback-note{display:block;margin-top:18px;max-width:400px;font-size:12px;line-height:1.7;color:#826b5e}
body.miyobilab-home .home-feedback-action{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:50px;margin-top:26px;padding:15px 24px;border:0;border-radius:100px;background:var(--red);color:#fff;font-family:inherit;font-size:14px;font-weight:700;line-height:1.3;cursor:pointer;box-shadow:0 7px 18px #b3002920;transition:transform .2s}
.home-feedback-action svg{width:19px;height:19px;flex-shrink:0}
.home-feedback-action:hover{transform:translateY(-2px)}.home-feedback-action:focus-visible{outline:3px solid #9f002c;outline-offset:4px}
@keyframes feedback-blink-left{0%,44%,51%,100%{clip-path:inset(39% 0 61% 0)}46%,48%{clip-path:inset(39% 0 37% 0)}}
@keyframes feedback-blink-right{0%,44%,51%,100%{clip-path:inset(36% 0 64% 0)}46%,48%{clip-path:inset(36% 0 40% 0)}}
@keyframes feedback-breathe{
  0%,100%{transform:translate(0,0) rotate(-1deg) scale(1)}
  22%{transform:translate(2px,-8px) rotate(1.4deg) scale(1.012)}
  42%{transform:translate(0,-4px) rotate(-1.8deg) scale(1.006)}
  54%{transform:translate(2px,-7px) rotate(2deg) scale(1.012)}
  66%{transform:translate(0,-5px) rotate(-1.5deg) scale(1.008)}
  80%{transform:translate(-2px,-9px) rotate(.8deg) scale(1.012)}
}
@keyframes feedback-drift{to{transform:translateY(-9px);opacity:.5}}
@media(max-width:700px){body.miyobilab-home .home-feedback{padding:36px 24px 44px}.home-feedback-inner{grid-template-columns:minmax(0,1fr);gap:12px}.home-feedback-art{max-width:245px}.home-feedback-copy{text-align:center}.home-feedback-copy p,.home-feedback-note{margin-left:auto!important;margin-right:auto!important}body.miyobilab-home .home-feedback-copy h2{font-size:clamp(29px,7vw,38px)}body.miyobilab-home .home-feedback-copy p{font-size:14px}.home-feedback-action{max-width:100%}}
@media(prefers-reduced-motion:reduce){.feedback-nebi,.feedback-eye,.feedback-spark{animation:none!important}.feedback-eye{visibility:hidden}.home-feedback-action{transition:none}.home-feedback-action:hover{transform:none}}

body.miyobilab-home #learning-options-title{width:100%;max-width:none;text-align:center;margin-inline:auto;box-sizing:border-box}
/* Supplied illustrations include their own soft circular composition. */
body.miyobilab-home .learning-art::before,body.miyobilab-home .learning-art::after{display:none}
body.miyobilab-home .learning-art img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;filter:none}
body.miyobilab-home .learning-option:nth-child(n) .learning-art{width:clamp(250px,25vw,330px);height:clamp(250px,25vw,330px)}
@media(max-width:600px){body.miyobilab-home .learning-option:nth-child(n) .learning-art{width:min(250px,75vw);height:min(250px,75vw);margin:0 auto 12px}}
