        :root {
            --primary-color: #8B4513;
            --secondary-color: #D2691E;
            --accent-color: #FFD700;
            --dark-color: #3E2723;
            --light-color: #F5F5DC;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            touch-action: manipulation;
        }
        
        body {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            color: var(--light-color);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            user-select: none;
        }
        
        header {
            background-color: rgba(30, 30, 46, 0.9);
            padding: 1rem;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .logo h1 {
            font-size: 1.5rem;
            background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .logo-icon {
            font-size: 2rem;
            color: var(--accent-color);
        }
        
        nav ul {
            display: flex;
            list-style: none;
            gap: 1rem;
        }
        
        nav a {
            color: var(--light-color);
            text-decoration: none;
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        
        nav a:hover, nav a.active {
            background-color: var(--primary-color);
            color: var(--accent-color);
        }
        
        .main-container {
            display: flex;
            flex: 1;
            padding: 1rem;
            gap: 1.5rem;
            flex-direction: column;
        }
        
        .violin-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
        }
        
        .violin-body {
            width: 100%;
            max-width: 800px;
            height: 200px;
            background: linear-gradient(145deg, var(--primary-color), var(--dark-color));
            border-radius: 20px 20px 10px 10px;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            touch-action: none;
        }
        
        .violin-neck {
            width: 50px;
            height: 150px;
            background: linear-gradient(to right, #5D4037, #3E2723);
            position: absolute;
            top: -140px;
            border-radius: 8px 8px 0 0;
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
        }
        
        .violin-strings {
            position: absolute;
            width: 90%;
            height: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }
        
        .string {
            width: 3px;
            height: 100%;
            background: linear-gradient(to bottom, #E0E0E0, #BDBDBD);
            position: relative;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: transform 0.1s;
        }
        
        .string:active {
            transform: scale(1.05);
        }
        
        .bow-area {
            width: 100%;
            height: 120px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            margin-top: 1rem;
            touch-action: none;
        }
        
        .bow {
            width: 80%;
            height: 4px;
            background: linear-gradient(to right, #8B4513, #D2691E);
            border-radius: 2px;
            position: absolute;
            transform-origin: left center;
            transition: transform 0.1s;
            box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
            pointer-events: none;
        }
        
        .bow-hair {
            position: absolute;
            width: 100%;
            height: 20px;
            background: linear-gradient(to bottom, #F5F5DC, #D7CCC8);
            opacity: 0.7;
            border-radius: 10px;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .controls {
            background-color: rgba(30, 30, 46, 0.8);
            border-radius: 15px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            box-shadow: var(--shadow);
            width: 100%;
        }
        
        .control-group {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }
        
        .control-group h3 {
            color: var(--accent-color);
            border-bottom: 1px solid var(--secondary-color);
            padding-bottom: 0.5rem;
            font-size: 1.1rem;
        }
        
        .slider-container {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .slider-container label {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
        }
        
        input[type="range"] {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: var(--dark-color);
            outline: none;
            -webkit-appearance: none;
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent-color);
            cursor: pointer;
        }
        
        .buttons {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
        }
        
        button {
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 8px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 100px;
            font-size: 0.9rem;
        }
        
        button:active {
            transform: translateY(2px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        button.record {
            background: linear-gradient(to right, #C62828, #E53935);
        }
        
        button.export {
            background: linear-gradient(to right, #2E7D32, #4CAF50);
        }
        
        .visualizer {
            width: 100%;
            height: 80px;
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        
        .visualizer-bar {
            position: absolute;
            bottom: 0;
            width: 4px;
            background: linear-gradient(to top, var(--accent-color), var(--secondary-color));
            border-radius: 2px 2px 0 0;
            transition: height 0.1s;
        }
        
        .instructions {
            background-color: rgba(30, 30, 46, 0.8);
            border-radius: 15px;
            padding: 1.5rem;
            margin: 1rem;
            box-shadow: var(--shadow);
        }
        
        .instructions h2 {
            color: var(--accent-color);
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }
        
        .instructions ul {
            list-style-position: inside;
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            font-size: 0.9rem;
        }
        
        footer {
            background-color: rgba(20, 20, 35, 0.9);
            padding: 1rem;
            text-align: center;
            margin-top: auto;
            font-size: 0.9rem;
        }
        
        .mode-selector {
            display: flex;
            background-color: var(--dark-color);
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1rem;
            width: 100%;
        }
        
        .mode-btn {
            flex: 1;
            padding: 0.8rem;
            text-align: center;
            background: transparent;
            border: none;
            color: var(--light-color);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        
        .mode-btn.active {
            background-color: var(--primary-color);
            color: var(--accent-color);
        }
        
        .fretboard {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 50px;
            background: linear-gradient(to bottom, #5D4037, #3E2723);
            display: flex;
            justify-content: space-between;
            padding: 0 10%;
        }
        
        .fret {
            width: 2px;
            height: 100%;
            background-color: rgba(255, 215, 0, 0.3);
        }
        
        .note-indicator {
            position: absolute;
            width: 40px;
            height: 40px;
            background-color: var(--accent-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: var(--dark-color);
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 10;
            font-size: 0.8rem;
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        .note-indicator.active {
            opacity: 1;
        }
        
        .touch-help {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .touch-help-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .touch-help-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
        }
        
        .play-area {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }
        
        /* Nuevos estilos para funcionalidades adicionales */
        .recording-indicator {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 20px;
            height: 20px;
            background-color: #C62828;
            border-radius: 50%;
            animation: pulse 1s infinite;
            display: none;
            z-index: 1000;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        
        .metronome-display {
            text-align: center;
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent-color);
            margin: 1rem 0;
        }
        
        .lesson-display {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1rem;
            margin: 1rem 0;
            min-height: 100px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .note-guide {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        
        .progress-bar {
            width: 100%;
            height: 10px;
            background-color: var(--dark-color);
            border-radius: 5px;
            overflow: hidden;
            margin: 1rem 0;
        }
        
        .progress {
            height: 100%;
            background-color: var(--accent-color);
            width: 0%;
            transition: width 0.3s ease;
        }
        
        .song-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .song-item {
            padding: 0.8rem;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .song-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .song-item.active {
            background-color: var(--primary-color);
            color: var(--accent-color);
        }
        
        .export-options {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .export-options button {
            flex: 1;
            min-width: auto;
            padding: 0.5rem;
            font-size: 0.8rem;
        }
        
        .recording-info {
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
        }
        
        .recording-timer {
            font-size: 1.2rem;
            font-weight: bold;
            text-align: center;
            color: var(--accent-color);
        }
        
        @media (min-width: 768px) {
            .main-container {
                flex-direction: row;
            }
            
            .violin-container {
                flex: 3;
            }
            
            .controls {
                flex: 1;
                max-width: 350px;
            }
            
            header {
                padding: 1rem 2rem;
            }
            
            .logo h1 {
                font-size: 1.8rem;
            }
            
            nav a {
                padding: 0.5rem 1rem;
                font-size: 1rem;
            }
            
            .violin-body {
                height: 250px;
            }
            
            .violin-neck {
                height: 180px;
                top: -170px;
            }
            
            .bow-area {
                height: 150px;
            }
        }
        
        @media (max-width: 480px) {
            .buttons button {
                min-width: 80px;
                padding: 0.7rem 0.5rem;
                font-size: 0.8rem;
            }
            
            .mode-btn {
                padding: 0.7rem 0.5rem;
                font-size: 0.8rem;
            }
            
            .control-group h3 {
                font-size: 1rem;
            }
        }