MÓDULO_TEÓRICO
Master State Modifiers (hover, focus, group-hover)

Micro-interactions Without Leaving HTML
In traditional CSS, making an icon glow when hovering over its parent card required cumbersome nested selectors like .card:hover .card__icon { color: #00f0ff; }.
In Tailwind, state modifiers solve this declaratively and elegantly.
1. Core State Modifiers
hover:bg-slate-800: Swaps background on cursor hover.focus:ring-2 focus:ring-cyan-400: Adds accessible focus ring on keyboard tab.active:scale-95: Snappy tactile spring press on click.
2. The Superpower of group and group-hover:
When you tag a parent container with group, any descendant element can react when the parent receives a hover event!
html<!-- Interactive Card tagged with 'group' --> <div class="group p-6 bg-slate-900/60 border border-slate-800 hover:border-cyan-500/50 rounded-2xl cursor-pointer transition-all duration-300 hover:shadow-xl hover:shadow-cyan-950/40"> <!-- Icon glows and tilts when hovering over THE CARD --> <div class="w-12 h-12 rounded-xl bg-slate-800 text-slate-400 group-hover:bg-cyan-500 group-hover:text-slate-950 group-hover:rotate-6 flex items-center justify-center text-xl transition-all duration-300"> 🚀 </div> <h3 class="text-lg font-bold text-white group-hover:text-cyan-400 transition-colors mt-4"> Quantum Performance </h3> <p class="text-sm text-slate-400 mt-1"> Parallel computing clusters distributed across 14 edge regions. </p> <!-- Arrow slides to the right --> <span class="inline-flex items-center text-xs font-semibold text-cyan-400 mt-4 group-hover:translate-x-1.5 transition-transform duration-200"> View live telemetry → </span> </div>
💡 Why this is a Game Changer
Zero external CSS files were written. Zero arbitrary class names were invented. All motion, state transitions, color shifts, and translation curves are self-documented directly within the component.
