* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* GitHub Stats */
.github-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.github-link i {
    font-size: 1.2rem;
}

.github-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.github-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.github-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.github-badge i {
    font-size: 0.9rem;
}

.badge-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

.controls {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-group label {
    font-weight: 500;
    color: #555;
}

.control-group select,
.control-group input[type="range"] {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.control-group select:focus,
.control-group input[type="range"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn.recording {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.piano-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.piano {
    position: relative;
    display: flex;
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.key {
    position: relative;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
    user-select: none;
}

.key.white {
    width: 60px;
    height: 200px;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    margin: 0 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.key.white:hover {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.key.white.active {
    background: linear-gradient(to bottom, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.key.black {
    width: 40px;
    height: 120px;
    background: linear-gradient(to bottom, #2c3e50 0%, #1a252f 100%);
    border: 1px solid #1a252f;
    border-radius: 0 0 6px 6px;
    position: absolute;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.key.black:hover {
    background: linear-gradient(to bottom, #34495e 0%, #2c3e50 100%);
}

.key.black.active {
    background: linear-gradient(to bottom, #1a252f 0%, #0f1419 100%);
    transform: translateY(1px);
}

.key.black[data-note="C#"] { left: 41px; }
.key.black[data-note="D#"] { left: 103px; }
.key.black[data-note="F#"] { left: 227px; }
.key.black[data-note="G#"] { left: 289px; }
.key.black[data-note="A#"] { left: 351px; }
.key.black[data-note="C#2"] { left: 415px; }
.key.black[data-note="D#2"] { left: 477px; }
.key.black[data-note="F#2"] { left: 601px; }
.key.black[data-note="G#2"] { left: 663px; }
.key.black[data-note="A#2"] { left: 725px; }

.note-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.key-label {
    font-size: 10px;
    color: #999;
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.key.black .note-label,
.key.black .key-label {
    color: #fff;
}

.key.black .key-label {
    background: rgba(255,255,255,0.2);
}

.info-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.current-note,
.instructions {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.current-note h3,
.instructions h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

#currentNote {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.instructions li:before {
    content: "♪";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.instructions li:last-child {
    border-bottom: none;
}

.chord-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.chord-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.chords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chord-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.4);
}

.chord-btn:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        justify-content: center;
    }
    
    .piano {
        transform: scale(0.8);
        margin: -20px;
    }
    
    .info-panel {
        grid-template-columns: 1fr;
    }
    
    .chords {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .piano {
        transform: scale(0.6);
        margin: -40px;
    }
    
    .key.white {
        width: 60px;
        height: 200px;
    }
    
    .key.black {
        width: 40px;
        height: 120px;
    }
    
    .key.black[data-note="C#"] { left: 41px; }
    .key.black[data-note="D#"] { left: 103px; }
    .key.black[data-note="F#"] { left: 227px; }
    .key.black[data-note="G#"] { left: 289px; }
    .key.black[data-note="A#"] { left: 351px; }
    .key.black[data-note="C#2"] { left: 415px; }
    .key.black[data-note="D#2"] { left: 477px; }
    .key.black[data-note="F#2"] { left: 601px; }
    .key.black[data-note="G#2"] { left: 663px; }
    .key.black[data-note="A#2"] { left: 725px; }
}

/* Secciones de contenido SEO */
.features-section,
.benefits-section,
.faq-section,
.tips-section {
    margin: 40px 0;
    padding: 40px 0;
}

.features-section h2,
.benefits-section h2,
.faq-section h2,
.tips-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Sección de beneficios */
.benefits-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.benefit-item h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Sección FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.faq-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.faq-answer {
    padding: 20px 25px;
    color: #666;
    line-height: 1.6;
    display: none;
}

.faq-answer p {
    margin: 0;
}

/* Sección de consejos */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border-left: 4px solid #667eea;
}

.tip-card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    margin-top: 60px;
    padding: 40px 0 20px 0;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

.footer-stats {
    margin-top: 15px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.footer-badges {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-badges img {
    height: 28px;
    transition: transform 0.3s ease;
}

.footer-badges img:hover {
    transform: scale(1.05);
}

/* Responsive para secciones SEO */
@media (max-width: 768px) {
    .features-section h2,
    .benefits-section h2,
    .faq-section h2,
    .tips-section h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .benefits-content,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .benefit-item,
    .tip-card {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* GitHub badges responsive */
    .github-badges {
        gap: 10px;
    }
    
    .github-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .badge-text {
        display: none; /* Ocultar texto en móvil para ahorrar espacio */
    }
}

@media (max-width: 480px) {
    .github-badges {
        flex-direction: column;
        gap: 8px;
    }
    
    .github-badge {
        justify-content: center;
        padding: 8px 15px;
    }
}

/* Estilos para la página de Teoría Musical */
.header-content {
    text-align: center;
    position: relative;
}

.back-link {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px 0;
    color: white;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.main-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.intro-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.intro-section p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-box i {
    font-size: 1.5rem;
}

.theory-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.theory-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theory-section h2 i {
    color: #667eea;
}

.theory-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Grid de notas musicales */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.note-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
}

.note-card.white-note {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    color: #2c3e50;
}

.note-card.black-note {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border: 2px solid #1a252f;
    color: white;
}

.note-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.note-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box p {
    color: #666;
    margin: 0;
}

/* Escalas */
.scale-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.scale-notes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.scale-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
}

.scale-description {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.scale-pattern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.scale-pattern h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.pattern-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.interval {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Acordes */
.chords-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.chord-type {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.chord-type h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.chord-example {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.chord-note {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.common-chords {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.common-chords h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.chords-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.chord-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    color: #666;
}

/* Conceptos de ritmo */
.rhythm-concepts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.concept-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.concept-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.concept-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.concept-card li {
    padding: 5px 0;
    color: #666;
}

/* Lectura musical */
.reading-basics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.staff-explanation,
.clef-explanation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.staff-visual {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.staff-line {
    height: 2px;
    background: #333;
    width: 100%;
}

/* Ejercicios */
.exercises {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.exercise-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
}

.exercise-card h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

.exercise-tip {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exercise-tip i {
    font-size: 1.1rem;
}

/* Recursos */
.resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.resource-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.resource-card li:last-child {
    border-bottom: none;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #667eea;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #667eea;
    text-decoration: none;
}

/* Responsive para teoría musical */
@media (max-width: 768px) {
    .back-link {
        position: relative;
        margin-bottom: 20px;
    }
    
    .notes-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .scale-notes {
        gap: 10px;
    }
    
    .scale-note {
        padding: 10px 15px;
        font-size: 1rem;
        min-width: 40px;
    }
    
    .chords-explanation,
    .rhythm-concepts,
    .reading-basics,
    .exercises,
    .resources {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-section,
    .theory-section {
        padding: 20px;
    }
    
    .notes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .scale-notes {
        flex-direction: column;
        align-items: center;
    }
    
    .pattern-display {
        flex-direction: column;
        align-items: center;
    }
    
    .chord-example {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos específicos para la página de Escalas */
.scale-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.scale-type-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.scale-type-card:hover {
    transform: translateY(-5px);
}

.scale-type-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.3rem;
}

.scale-type-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.scale-example {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.scale-example .scale-note {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
    text-align: center;
}

/* Grid de escalas */
.scales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.scale-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.scale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.scale-card.minor {
    border-color: #764ba2;
}

.scale-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
}

.scale-notes-display {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.scale-note-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
    text-align: center;
    transition: transform 0.2s ease;
}

.scale-note-item:hover {
    transform: scale(1.1);
}

.scale-note-item.sharp {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.scale-note-item.flat {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.scale-fingers {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.scale-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #667eea;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #667eea;
}

/* Escalas pentatónicas */
.pentatonic-scales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pentatonic-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pentatonic-card:hover {
    transform: translateY(-5px);
}

.pentatonic-card h3 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.3rem;
}

.pentatonic-card p {
    margin-top: 15px;
    opacity: 0.9;
    font-style: italic;
}

.scale-notes-display.pentatonic {
    justify-content: center;
    gap: 10px;
}

.scale-notes-display.pentatonic .scale-note-item {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Técnica y digitación */
.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.technique-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.technique-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.3rem;
}

.technique-card ul {
    list-style: none;
    padding: 0;
}

.technique-card li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.technique-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.technique-card li:last-child {
    border-bottom: none;
}

.fingering-pattern {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.finger-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.finger-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.finger-note {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #667eea;
}

/* Ejercicios de escalas */
.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.exercise-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
}

.exercise-card h3 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2rem;
}

.exercise-card p {
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.exercise-details {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.exercise-tip {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
}

.exercise-tip i {
    font-size: 1.1rem;
}

/* Progresión de aprendizaje */
.learning-progression {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.progression-step {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border-left: 4px solid #667eea;
    position: relative;
    transition: transform 0.3s ease;
}

.progression-step:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.progression-step h3 {
    color: #2c3e50;
    margin: 20px 0 15px 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.progression-step p {
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.progression-step ul {
    list-style: none;
    padding: 0;
}

.progression-step li {
    padding: 5px 0;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-left: 15px;
}

.progression-step li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Recursos para escalas */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.resource-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.2rem;
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.resource-card li:last-child {
    border-bottom: none;
}

/* Responsive para escalas */
@media (max-width: 768px) {
    .scale-types,
    .scales-grid,
    .pentatonic-scales,
    .technique-grid,
    .exercises-grid,
    .learning-progression,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scale-notes-display {
        gap: 6px;
    }
    
    .scale-note-item {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    .fingering-pattern {
        gap: 10px;
    }
    
    .finger-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .finger-note {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .scale-card,
    .pentatonic-card,
    .technique-card,
    .exercise-card,
    .progression-step,
    .resource-card {
        padding: 20px;
    }
    
    .scale-notes-display {
        flex-direction: column;
        align-items: center;
    }
    
    .fingering-pattern {
        flex-direction: column;
        align-items: center;
    }
    
    .exercise-details {
        flex-direction: column;
        align-items: center;
    }
} 