/* lessons.css - burbujas de leccion: circulo de color con icono ilustrado y animaciones suaves. Va despues de course.css. */
.lesson-bubble { background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--c, #3776ab) 72%, #fff), var(--c, #3776ab) 62%, color-mix(in srgb, var(--c, #3776ab) 82%, #000)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), 0 6px 14px color-mix(in srgb, var(--c, #3776ab) 35%, transparent); }
.lesson-bubble::before { inset: 8px; background: none; border: 2px solid rgba(255, 255, 255, .28); }
.lesson-bubble .li { position: relative; width: 52px; height: 52px; color: #fff; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); transform-origin: 50% 60%; }
.side-lesson .lesson-bubble::before { inset: 6px; }
.side-lesson .lesson-bubble .li { width: 42px; height: 42px; }
.lesson-hero-icon .lesson-bubble::before { inset: 10px; }
.lesson-hero-icon .lesson-bubble .li { width: 62px; height: 62px; }
@media (max-width: 720px) { .lesson-bubble::before { inset: 7px; } .lesson-bubble .li { width: 44px; height: 44px; } }

/* animaciones: el icono "respira" muy poco y se anima al pasar el raton; solo transform/opacity */
@keyframes li-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes li-pop { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.18) rotate(-7deg); } 70% { transform: scale(1.08) rotate(4deg); } 100% { transform: scale(1.1) rotate(0); } }
@keyframes li-rise { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
.lesson-bubble .li { animation: li-breathe 5s ease-in-out infinite; }
.lesson-node:nth-child(3n) .lesson-bubble .li { animation-delay: -1.6s; }
.lesson-node:nth-child(3n+1) .lesson-bubble .li { animation-delay: -3.2s; }
.lesson-node:hover .lesson-bubble .li, .lesson-node:focus-visible .lesson-bubble .li { animation: li-pop .6s ease-out forwards; }
.lesson-node .lesson-bubble { animation: li-rise .45s ease-out backwards; }
.lesson-hero-icon .lesson-bubble .li { animation: li-breathe 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .lesson-bubble .li, .lesson-node .lesson-bubble, .lesson-node:hover .lesson-bubble .li { animation: none; }
}
html[data-theme="dark"] .lesson-bubble { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), 0 6px 16px rgba(0, 0, 0, .45); }
