body {
    font-family: 'Orbitron', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #08152d, #1a406e), url('assets/img/robot-bg-texture.png');
    background-blend-mode: overlay;
    background-size: cover;
    color: #00aaff;
    overflow-x: hidden;
    line-height: 1.8;
    text-shadow: 0 0 8px #00aaff, 0 0 15px #00aaff;
}
header {
    background: #1a406e;
    text-align: center;
    padding: 2.5em;
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.7);
    border-bottom: 3px solid #00aaff;
    animation: galacticPulse 2.5s infinite alternate;
}
header h1 {
    margin: 0;
    font-size: 3em;
    color: #00aaff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 0 0 20px #00aaff, 0 0 30px #66ccff;
}
.banner {
    max-width: 100%;
    height: auto;
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 30px #00aaff, 0 0 40px #66ccff;
    margin-top: 15px;
    animation: neonGlow 3s infinite alternate;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background: #0a2a4e;
    padding: 1.5em;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.5);
    border-bottom: 2px solid #00aaff;
}
nav ul li {
    margin: 0 25px;
}
nav ul li a {
    color: #00aaff;
    text-decoration: none;
    font-size: 1.3em;
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}
nav ul li a:hover {
    color: #99ddff;
    text-shadow: 0 0 20px #99ddff, 0 0 30px #00aaff;
    transform: scale(1.1);
}
main {
    padding: 50px;
    text-align: center;
    animation: starEntry 1.5s ease-out;
}
h2 {
    color: #00aaff;
    font-size: 2.5em;
    margin-bottom: 25px;
    text-shadow: 0 0 15px #00aaff, 0 0 25px #66ccff;
}
.welcome-image, .module-image {
    max-width: 60%;
    height: auto;
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 20px #00aaff, 0 0 30px #66ccff;
    margin: 25px 0;
    animation: float 4s infinite alternate;
}
video, audio {
    max-width: 100%;
    margin: 25px 0;
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 30px #00aaff;
    animation: pulseMedia 3s infinite alternate;
}
.media-controls {
    margin: 25px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}
.media-controls button, .media-controls select {
    padding: 12px 25px;
    margin: 0 10px;
    background: #0a2a4e;
    color: #00aaff;
    border: 2px solid #00aaff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-shadow: 0 0 5px #00aaff;
}
.media-controls button:hover, .media-controls select:hover {
    background: #00aaff;
    color: #0a2a4e;
    box-shadow: 0 0 20px #00aaff;
    transform: scale(1.1);
}
#counter, #fibonacci, #doWhileResult, #rhythmDisplay {
    font-size: 1.7em;
    margin: 15px 0;
    color: #66ccff;
    text-shadow: 0 0 10px #66ccff;
    animation: blink 1.5s infinite;
}
.galactic-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 25px;
    animation: gridShift 5s infinite alternate;
}
.galactic-box {
    background: #0a2a4e;
    padding: 25px;
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 20px #00aaff;
    transition: all 0.5s ease;
    animation: rotateBox 6s infinite linear;
}
.galactic-box:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 0 40px #00aaff;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00aaff;
    text-shadow: 0 0 5px #00aaff;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #00aaff;
    border-radius: 10px;
    background: rgba(10, 42, 78, 0.8);
    color: #00aaff;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 10px rgba(0, 170, 255, 0.3);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #99ddff;
    box-shadow: 0 0 15px #99ddff, inset 0 0 15px rgba(153, 221, 255, 0.5);
    outline: none;
}
.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.btn-group input[type="submit"], .btn-group input[type="reset"] {
    padding: 15px 30px;
    background: #0a2a4e;
    color: #00aaff;
    border: 2px solid #00aaff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-shadow: 0 0 5px #00aaff;
}
.btn-group input[type="submit"]:hover, .btn-group input[type="reset"]:hover {
    background: #00aaff;
    color: #0a2a4e;
    box-shadow: 0 0 25px #00aaff;
    transform: scale(1.1);
}
.registro-data {
    margin-top: 25px;
    padding: 20px;
    background: rgba(10, 42, 78, 0.9);
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 25px #00aaff;
    animation: fadeInData 2s ease-out;
}
.data-box {
    padding: 20px;
    background: rgba(10, 42, 78, 0.9);
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 25px #00aaff;
}
.emoji {
    font-size: 2.5em;
    text-align: center;
    margin: 15px 0;
    color: #00aaff;
    text-shadow: 0 0 15px #00aaff, 0 0 25px #66ccff;
    animation: spin 3s infinite linear;
}
.canto-display {
    margin-top: 20px;
    padding: 15px;
    background: rgba(10, 42, 78, 0.9);
    border: 2px solid #00aaff;
    border-radius: 10px;
    box-shadow: 0 0 20px #00aaff;
    display: none;
    animation: fadeInData 1.5s ease-out;
}
.canto-display button {
    padding: 10px 20px;
    background: #0a2a4e;
    color: #00aaff;
    border: 2px solid #00aaff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-shadow: 0 0 5px #00aaff;
}
.canto-display button:hover {
    background: #00aaff;
    color: #0a2a4e;
    box-shadow: 0 0 15px #00aaff;
    transform: scale(1.05);
}
.orbital-pattern {
    margin-top: 20px;
    padding: 15px;
    background: rgba(10, 42, 78, 0.9);
    border: 2px solid #00aaff;
    border-radius: 10px;
    box-shadow: 0 0 20px #00aaff;
    animation: fadeInData 1.5s ease-out;
}
.orbital-pattern button {
    padding: 10px 20px;
    background: #0a2a4e;
    color: #00aaff;
    border: 2px solid #00aaff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-shadow: 0 0 5px #00aaff;
}
.orbital-pattern button:hover {
    background: #00aaff;
    color: #0a2a4e;
    box-shadow: 0 0 15px #00aaff;
    transform: scale(1.05);
}
#patternCanvas {
    margin-top: 10px;
}
.stellar-rhythm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.rhythm-block {
    background: rgba(10, 42, 78, 0.9);
    padding: 20px;
    border: 2px solid #00aaff;
    border-radius: 10px;
    box-shadow: 0 0 15px #00aaff;
    text-align: center;
    animation: fadeInData 1.5s ease-out;
}
.rhythm-block button {
    padding: 10px 20px;
    background: #0a2a4e;
    color: #00aaff;
    border: 2px solid #00aaff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-shadow: 0 0 5px #00aaff;
}
.rhythm-block button:hover {
    background: #00aaff;
    color: #0a2a4e;
    box-shadow: 0 0 15px #00aaff;
    transform: scale(1.05);
}
.intro {
    grid-column: span 2;
}
.image-block {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}
@keyframes galacticPulse {
    0% { transform: scale(1); box-shadow: 0 6px 20px rgba(0, 170, 255, 0.7); }
    100% { transform: scale(1.03); box-shadow: 0 8px 30px rgba(0, 170, 255, 0.9); }
}
@keyframes neonGlow {
    0% { box-shadow: 0 0 30px #00aaff, 0 0 40px #66ccff; }
    100% { box-shadow: 0 0 50px #00aaff, 0 0 60px #66ccff; }
}
@keyframes starEntry {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}
@keyframes pulseMedia {
    0% { box-shadow: 0 0 30px #00aaff; }
    100% { box-shadow: 0 0 50px #00aaff; }
}
@keyframes blink {
    50% { opacity: 0.5; }
}
@keyframes gridShift {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}
@keyframes rotateBox {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInData {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 600px) {
    nav ul { flex-direction: column; text-align: center; }
    nav ul li { margin: 12px 0; }
    .galactic-layout { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; }
    .btn-group input { width: 100%; margin: 8px 0; }
    .media-controls { flex-direction: column; }
    .media-controls button, .media-controls select { width: 100%; margin: 8px 0; }
    .welcome-image, .module-image { max-width: 100%; }
    .stellar-rhythm-grid { grid-template-columns: 1fr; }
    .intro { grid-column: span 1; }
    .image-block { flex-direction: column; }
}
body {
    font-family: 'Orbitron', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #08152d, #1a406e), url('assets/img/robot-bg-texture.png');
    background-blend-mode: overlay;
    background-size: cover;
    color: #00aaff;
    overflow-x: hidden;
    line-height: 1.8;
    text-shadow: 0 0 8px #00aaff, 0 0 15px #00aaff;
}
header {
    background: #1a406e;
    text-align: center;
    padding: 2.5em;
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.7);
    border-bottom: 3px solid #00aaff;
    animation: galacticPulse 2.5s infinite alternate;
}
header h1 {
    margin: 0;
    font-size: 3em;
    color: #00aaff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 0 0 20px #00aaff, 0 0 30px #66ccff;
}
.banner {
    max-width: 100%;
    height: auto;
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 30px #00aaff, 0 0 40px #66ccff;
    margin-top: 15px;
    animation: neonGlow 3s infinite alternate;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background: #0a2a4e;
    padding: 1.5em;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.5);
    border-bottom: 2px solid #00aaff;
}
nav ul li {
    margin: 0 25px;
}
nav ul li a {
    color: #00aaff;
    text-decoration: none;
    font-size: 1.3em;
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}
nav ul li a:hover {
    color: #99ddff;
    text-shadow: 0 0 20px #99ddff, 0 0 30px #00aaff;
    transform: scale(1.1);
}
main {
    padding: 50px;
    text-align: center;
    animation: starEntry 1.5s ease-out;
}
h2 {
    color: #00aaff;
    font-size: 2.5em;
    margin-bottom: 25px;
    text-shadow: 0 0 15px #00aaff, 0 0 25px #66ccff;
}
.galactic-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 25px;
    animation: gridShift 5s infinite alternate;
}
.galactic-box {
    background: #0a2a4e;
    padding: 25px;
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 20px #00aaff;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    color: #00aaff;
    font-size: 1.5em;
    text-align: center;
    animation: rotateBox 6s infinite linear;
}
.galactic-box:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: 0 0 40px #00aaff;
}
.control-panel {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}
.control-panel button {
    padding: 12px 25px;
    background: #0a2a4e;
    color: #00aaff;
    border: 2px solid #00aaff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-shadow: 0 0 5px #00aaff;
}
.control-panel button:hover {
    background: #00aaff;
    color: #0a2a4e;
    box-shadow: 0 0 20px #00aaff;
    transform: scale(1.1);
}
.explanation {
    grid-column: span 3;
    background: rgba(10, 42, 78, 0.95);
    padding: 15px;
    margin-top: 20px;
}
.explanation h3 {
    color: #99ddff;
    margin-bottom: 10px;
}
.explanation ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    color: #00aaff;
}
.explanation li {
    margin-bottom: 8px;
}
.image-block {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}
.module-image {
    max-width: 45%;
    height: auto;
    border: 3px solid #00aaff;
    border-radius: 15px;
    box-shadow: 0 0 20px #00aaff, 0 0 30px #66ccff;
    margin: 25px 0;
    animation: float 4s infinite alternate;
}
@keyframes galacticPulse {
    0% { transform: scale(1); box-shadow: 0 6px 20px rgba(0, 170, 255, 0.7); }
    100% { transform: scale(1.03); box-shadow: 0 8px 30px rgba(0, 170, 255, 0.9); }
}
@keyframes neonGlow {
    0% { box-shadow: 0 0 30px #00aaff, 0 0 40px #66ccff; }
    100% { box-shadow: 0 0 50px #00aaff, 0 0 60px #66ccff; }
}
@keyframes starEntry {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}
@keyframes gridShift {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}
@keyframes rotateBox {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 900px) {
    .galactic-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .explanation {
        grid-column: span 2;
    }
    .image-block {
        flex-direction: column;
    }
    .module-image {
        max-width: 80%;
    }
}
@media (max-width: 600px) {
    .galactic-layout {
        grid-template-columns: 1fr;
    }
    .explanation {
        grid-column: span 1;
    }
    nav ul { flex-direction: column; text-align: center; }
    nav ul li { margin: 12px 0; }
    .control-panel { flex-direction: column; }
    .control-panel button { width: 100%; margin: 8px 0; }
    .module-image { max-width: 100%; }
}
body {
    font-family: 'Orbitron', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e), url('assets/img/music-bg-texture.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    color: #00cc99;
    overflow-x: hidden;
    line-height: 1.8;
    text-shadow: 0 0 8px #00cc99, 0 0 15px #00cc99;
}
header {
    background: #16213e;
    text-align: center;
    padding: 2.5em;
    box-shadow: 0 6px 20px rgba(0, 204, 153, 0.7);
    border-bottom: 3px solid #00cc99;
    animation: pulse 2.5s infinite alternate;
}
header h1 {
    margin: 0;
    font-size: 3em;
    color: #00cc99;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 0 0 20px #00cc99, 0 0 30px #66ffcc;
}
.banner {
    max-width: 100%;
    height: auto;
    border: 3px solid #00cc99;
    border-radius: 15px;
    box-shadow: 0 0 30px #00cc99, 0 0 40px #66ffcc;
    margin-top: 15px;
    animation: glow 3s infinite alternate;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background: #0a1a2e;
    padding: 1.5em;
    box-shadow: 0 4px 15px rgba(0, 204, 153, 0.5);
    border-bottom: 2px solid #00cc99;
}
nav ul li {
    margin: 0 25px;
}
nav ul li a {
    color: #00cc99;
    text-decoration: none;
    font-size: 1.3em;
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}
nav ul li a:hover {
    color: #66ffcc;
    text-shadow: 0 0 20px #66ffcc, 0 0 30px #00cc99;
    transform: scale(1.1);
}
nav ul li .active {
    color: #66ffcc;
    font-weight: bold;
}
main {
    padding: 50px;
    text-align: center;
    animation: entry 1.5s ease-out;
}
h2 {
    color: #00cc99;
    font-size: 2.5em;
    margin-bottom: 25px;
    text-shadow: 0 0 15px #00cc99, 0 0 25px #66ffcc;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #00cc99;
    text-shadow: 0 0 5px #00cc99;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #00cc99;
    border-radius: 5px;
    background: #0a1a2e;
    color: #00cc99;
    font-family: inherit;
}
.btn-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.btn-group input[type="submit"], .btn-group input[type="reset"] {
    padding: 10px 20px;
    background: #0a1a2e;
    color: #00cc99;
    border: 2px solid #00cc99;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-group input[type="submit"]:hover, .btn-group input[type="reset"]:hover {
    background: #00cc99;
    color: #0a1a2e;
    box-shadow: 0 0 15px #00cc99;
}
#formEstelarMensaje {
    margin-top: 10px;
    font-weight: bold;
}
.canto-display {
    margin-top: 20px;
    padding: 15px;
    background: #0a1a2e;
    border: 2px solid #00cc99;
    border-radius: 5px;
    display: none;
}
.canto-display button {
    padding: 10px 20px;
    background: #0a1a2e;
    color: #00cc99;
    border: 2px solid #00cc99;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.canto-display button:hover {
    background: #00cc99;
    color: #0a1a2e;
    box-shadow: 0 0 15px #00cc99;
}
.module-image {
    max-width: 45%;
    height: auto;
    border: 2px solid #00cc99;
    border-radius: 5px;
    box-shadow: 0 0 15px #00cc99;
    margin: 15px 0;
    animation: float 4s infinite alternate;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 6px 20px rgba(0, 204, 153, 0.7); }
    100% { transform: scale(1.03); box-shadow: 0 8px 30px rgba(0, 204, 153, 0.9); }
}
@keyframes glow {
    0% { box-shadow: 0 0 30px #00cc99, 0 0 40px #66ffcc; }
    100% { box-shadow: 0 0 50px #00cc99, 0 0 60px #66ffcc; }
}
@keyframes entry {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}
@media (max-width: 600px) {
    nav ul { flex-direction: column; text-align: center; }
    nav ul li { margin: 10px 0; }
    .form-group { max-width: 100%; }
    .module-image { max-width: 100%; }
    .btn-group { flex-direction: column; }
    .btn-group input { width: 100%; margin: 5px 0; }
}