:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.8);
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --correct-color: #28a745;
    --close-color: #ffc107;
    --far-color: #dc3545;
    --day-sky: linear-gradient(135deg, #87CEEB 0%, #98D8E8 50%, #B0E0E6 100%);
    --night-sky: linear-gradient(135deg, #0B1426 0%, #1a1a2e 50%, #16213e 100%);
    --sun-color: #FFD700;
    --moon-color: #F0F8FF;
    --cloud-color: rgba(255, 255, 255, 0.8);
    --star-color: #FFFFFF;
    --outline-primary: rgba(67, 97, 238, 0.2);
    --welcome-text-color: #1a1a2e;
    --welcome-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --loading-bg: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
    --primary: #4895ef;
    --primary-light: #4cc9f0;
    --secondary: #4361ee;
    --dark: #f8f9fa;
    --light: #1a1a2e;
    --gray: #adb5bd;
    --glass: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(26, 26, 46, 0.8);
    --header-bg: rgba(26, 26, 46, 0.95);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --outline-primary: rgba(72, 149, 239, 0.2);
    --welcome-text-color: #f8f9fa;
    --welcome-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    transition: all 0.4s ease;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loading {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.1; }
}

@keyframes sunRise {
    0% { transform: translateY(100px) scale(0.8); opacity: 0; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes cloudFloat {
    0% { transform: translateX(-100px); opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)); opacity: 0; }
}

@keyframes moonGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(240, 248, 255, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 40px rgba(240, 248, 255, 0.6); }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes starFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Welcome Animation */
.welcome-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.welcome-animation.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

/* Day Animation */
#welcome-animation-day {
    background: var(--day-sky);
}

.day-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sun {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: var(--sun-color);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: sunRise 2s ease-out forwards;
    will-change: transform, opacity;
}

.cloud {
    position: absolute;
    background: var(--cloud-color);
    border-radius: 50px;
    opacity: 0;
    will-change: transform, opacity;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--cloud-color);
    border-radius: 50%;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation: cloudFloat 8s ease-in-out infinite;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 60px;
    top: -30px;
    right: 10px;
}

.cloud-2 {
    width: 80px;
    height: 35px;
    top: 35%;
    left: -100px;
    animation: cloudFloat 10s ease-in-out infinite 2s;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 8px;
}

.cloud-2::after {
    width: 50px;
    height: 50px;
    top: -25px;
    right: 8px;
}

.cloud-3 {
    width: 120px;
    height: 45px;
    top: 50%;
    left: -100px;
    animation: cloudFloat 12s ease-in-out infinite 4s;
}

.cloud-3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-3::after {
    width: 70px;
    height: 70px;
    top: -35px;
    right: 15px;
}

/* Night Animation */
#welcome-animation-night {
    background: var(--night-sky);
}

.night-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.moon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 70px;
    height: 70px;
    background: var(--moon-color);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(240, 248, 255, 0.3);
    animation: moonGlow 3s ease-in-out infinite;
    will-change: transform;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--star-color);
    border-radius: 50%;
    animation: starTwinkle 2s ease-in-out infinite, starFloat 8s linear infinite;
    will-change: transform, opacity;
}

.star-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s, 0s;
}

.star-2 {
    top: 25%;
    left: 25%;
    animation-delay: 0.5s, 1s;
}

.star-3 {
    top: 35%;
    left: 15%;
    animation-delay: 1s, 2s;
}

.star-4 {
    top: 20%;
    left: 40%;
    animation-delay: 1.5s, 3s;
}

.star-5 {
    top: 45%;
    left: 30%;
    animation-delay: 2s, 4s;
}

.star-6 {
    top: 30%;
    left: 60%;
    animation-delay: 0.3s, 5s;
}

.star-7 {
    top: 55%;
    left: 20%;
    animation-delay: 0.8s, 6s;
}

.star-8 {
    top: 40%;
    left: 70%;
    animation-delay: 1.2s, 7s;
}

.welcome-content {
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    z-index: 10;
    position: relative;
    will-change: transform, opacity;
}

.logo-animation {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #4361ee, #4895ef, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Fallback para navegadores que no soportan background-clip */
    @supports not (-webkit-background-clip: text) {
        color: #4361ee;
        background: none;
    }
}

.welcome-message-day,
.welcome-message-night {
    font-size: 1.2rem;
    color: var(--welcome-text-color);
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: var(--welcome-text-shadow);
}



.loading-container {
    width: 300px;
    height: 4px;
    background: var(--loading-bg);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.loading-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4361ee, #4895ef, #4cc9f0);
    animation: loading 2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    will-change: width;
}

/* Welcome Message */
.welcome-message {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 9999;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--header-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
}



.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo i {
    color: var(--primary);
    font-size: 1.2rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--dark);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link i {
    transition: all 0.3s ease;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.nav-link:hover i, 
.nav-link.active i {
    transform: scale(1.1);
}

.dropdown-menu {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Hero Section Minimalista */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(72, 149, 239, 0.02) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--outline-primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid var(--outline-primary);
}

.hero-badge i {
    margin-right: 0.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: cardFloat 6s ease-in-out infinite;
}

.card-2 {
    top: 60%;
    right: 15%;
    animation: cardFloat 8s ease-in-out infinite 2s;
}

.card-3 {
    top: 40%;
    right: 25%;
    animation: cardFloat 7s ease-in-out infinite 4s;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.btn-outline-light {
    border-color: var(--glass-border);
    color: var(--dark);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--glass);
    border-color: var(--primary);
    color: var(--primary);
}

/* Sections */
.section-tools {
    padding: 6rem 0;
    position: relative;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Cards Rediseñadas */
.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.tool-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: var(--outline-primary);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--outline-primary);
}

.tool-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.tool-link:hover {
    color: var(--primary-light);
}

.tool-link:hover i {
    transform: translateX(3px);
}

/* Tuner Card Styles */
.tuner-card {
    position: relative;
    overflow: hidden;
}

.tuner-preview-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1.5rem 0;
}

.tuner-visual-preview {
    height: 80px;
    margin: 20px 0;
    position: relative;
}

.tuner-needle-preview {
    width: 2px;
    height: 60px;
    background-color: var(--primary);
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: transform 0.1s ease;
    z-index: 2;
}

.tuner-needle-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
}

.tuner-scale-preview {
    width: 100%;
    height: 2px;
    background-color: var(--glass-border);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.tuner-note-preview {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    color: var(--dark);
    min-height: 60px;
    transition: all 0.3s ease;
}

.tuner-accuracy-preview {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--far-color), var(--close-color), var(--correct-color));
    border-radius: 3px;
    margin-top: 15px;
    position: relative;
}

.tuner-accuracy-marker {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 16px;
    background-color: var(--dark);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: left 0.3s ease, background-color 0.3s ease;
}

.tuner-strings-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.tuner-string-preview {
    background-color: var(--glass);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.tuner-string-preview:hover {
    background-color: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.tuner-string-note {
    font-weight: bold;
    margin-left: 5px;
    color: var(--primary);
}

.tuner-status-preview {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    margin-top: 15px;
    min-height: 40px;
}

.tuner-in-tune {
    animation: pulse 0.5s ease-in-out;
    color: var(--correct-color);
}

/* Footer Minimalista */
.footer-minimal {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-description {
    color: var(--gray);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

/* Dark Mode Toggle */
#darkModeToggle {
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#darkModeToggle:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid var(--glass-border);
    background-color: var(--card-bg);
    color: var(--dark);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 12px;
    font-weight: 500;
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    color: white;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 15px;
    color: var(--gray);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--primary-light);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .navbar-collapse {
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
        border: 1px solid var(--glass-border);
    }
    
    .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .dropdown-menu {
        box-shadow: none;
        margin: 0;
        background: rgba(67, 97, 238, 0.05);
        border: 1px solid var(--glass-border);
    }
    
    .tuner-note-preview {
        font-size: 2rem;
    }
    
    .logo-animation {
        font-size: 2.8rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mejoras para animaciones en tablets */
    .floating-card {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .sun {
        width: 70px;
        height: 70px;
    }
    
    .moon {
        width: 60px;
        height: 60px;
    }
    
    .cloud-1 {
        width: 90px;
        height: 35px;
    }
    
    .cloud-2 {
        width: 70px;
        height: 30px;
    }
    
    .cloud-3 {
        width: 110px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .logo-animation {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .tool-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .tuner-note-preview {
        font-size: 1.8rem;
        min-height: 50px;
    }
    
    .tuner-string-preview {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .welcome-message-day,
    .welcome-message-night {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .sun {
        width: 60px;
        height: 60px;
        top: 10%;
        right: 10%;
    }
    
    .moon {
        width: 50px;
        height: 50px;
        top: 8%;
        right: 8%;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Optimizaciones para animaciones en móviles */
    .floating-card {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .card-1 {
        top: 15%;
        left: 5%;
    }
    
    .card-2 {
        top: 70%;
        right: 5%;
    }
    
    .card-3 {
        top: 45%;
        right: 10%;
    }
    
    /* Mejoras para el header móvil */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        padding: 0.4rem;
        font-size: 1.1rem;
    }
    
    /* Optimizaciones para el modal en móviles */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    /* Mejoras para el tuner en móviles */
    .tuner-visual-preview {
        height: 60px;
        margin: 15px 0;
    }
    
    .tuner-needle-preview {
        height: 45px;
    }
    
    .tuner-strings-preview {
        gap: 6px;
        margin-top: 10px;
    }
    
    .tuner-accuracy-preview {
        height: 5px;
        margin-top: 10px;
    }
    
    .tuner-accuracy-marker {
        height: 14px;
        top: -4px;
    }
    
    /* Optimizaciones para las nubes en móviles */
    .cloud-1 {
        width: 80px;
        height: 30px;
        top: 15%;
    }
    
    .cloud-2 {
        width: 60px;
        height: 25px;
        top: 30%;
    }
    
    .cloud-3 {
        width: 100px;
        height: 35px;
        top: 45%;
    }
    
    /* Mejoras para las estrellas en móviles */
    .star {
        width: 2px;
        height: 2px;
    }
    
    /* Optimizaciones para el loading bar */
    .loading-container {
        width: 250px;
        height: 3px;
    }
    
    /* Mejoras para el welcome message */
    .welcome-message {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-animation {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .tuner-strings-preview {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tuner-string-preview {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 60px;
        text-align: center;
    }
    
    .tuner-string-preview:first-child {
        margin-left: 0;
    }
    
    .tuner-string-preview:last-child {
        margin-right: 0;
    }
    
    .logo-animation {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .welcome-message-day,
    .welcome-message-night {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .sun {
        width: 50px;
        height: 50px;
        top: 8%;
        right: 8%;
    }
    
    .moon {
        width: 40px;
        height: 40px;
        top: 6%;
        right: 6%;
    }
    
    .cloud-1 {
        width: 70px;
        height: 25px;
        top: 12%;
    }
    
    .cloud-2 {
        width: 50px;
        height: 20px;
        top: 25%;
    }
    
    .cloud-3 {
        width: 80px;
        height: 30px;
        top: 40%;
    }
    
    .floating-card {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .card-1 {
        top: 12%;
        left: 3%;
    }
    
    .card-2 {
        top: 75%;
        right: 3%;
    }
    
    .card-3 {
        top: 50%;
        right: 8%;
    }
    
    /* Optimizaciones para el header en móviles pequeños */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        padding: 0.3rem;
        font-size: 1rem;
    }
    
    /* Mejoras para las cards en móviles pequeños */
    .tool-card {
        padding: 1.2rem;
        margin: 0 0.3rem;
        border-radius: 12px;
    }
    
    .tool-header {
        margin-bottom: 1rem;
    }
    
    .tool-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-right: 0.8rem;
    }
    
    .tool-title {
        font-size: 1.1rem;
    }
    
    .tool-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Optimizaciones para el footer en móviles pequeños */
    .footer-minimal {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
    
    /* Mejoras para el modal en móviles pequeños */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 0.8rem;
    }
    
    .modal-body {
        padding: 1.2rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-submit {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Optimizaciones para el tuner en móviles pequeños */
    .tuner-note-preview {
        font-size: 1.6rem;
        min-height: 45px;
    }
    
    .tuner-visual-preview {
        height: 50px;
        margin: 12px 0;
    }
    
    .tuner-needle-preview {
        height: 40px;
    }
    
    .tuner-needle-preview::before {
        width: 10px;
        height: 10px;
        left: -4px;
    }
    
    .tuner-accuracy-preview {
        height: 4px;
        margin-top: 8px;
    }
    
    .tuner-accuracy-marker {
        height: 12px;
        top: -4px;
    }
    
    .tuner-status-preview {
        font-size: 0.8rem;
        margin-top: 10px;
        min-height: 35px;
    }
    
    /* Optimizaciones para el loading bar en móviles pequeños */
    .loading-container {
        width: 200px;
        height: 3px;
    }
    
    /* Mejoras para el welcome message en móviles pequeños */
    .welcome-message {
        top: 5px;
        right: 5px;
        left: 5px;
        padding: 10px 15px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    /* Optimizaciones para las animaciones en móviles pequeños */
    @keyframes cardFloat {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-10px) rotate(1deg); }
    }
    
    @keyframes sunRise {
        0% { 
            transform: translateY(80px) scale(0.7);
            opacity: 0;
        }
        50% {
            transform: translateY(-15px) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateY(0) scale(0.9);
            opacity: 1;
        }
    }
    
    @keyframes moonGlow {
        0%, 100% { 
            transform: scale(0.9);
            box-shadow: 0 0 15px rgba(240, 248, 255, 0.3);
        }
        50% { 
            transform: scale(1);
            box-shadow: 0 0 25px rgba(240, 248, 255, 0.5);
        }
    }
    
    @keyframes starTwinkle {
        0%, 100% { 
            opacity: 0.2;
            transform: scale(0.8);
        }
        50% { 
            opacity: 0.8;
            transform: scale(1.1);
        }
    }
    
    @keyframes starFloat {
        0% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-8px) rotate(180deg); }
        100% { transform: translateY(0px) rotate(360deg); }
    }
}

/* Optimizaciones específicas para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .tool-card:hover {
        transform: none;
    }
    
    .tool-card:active {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
    }
    
    .btn-primary:active,
    .btn-outline-primary:active {
        transform: translateY(-2px);
    }
    
    .nav-link:hover {
        background: none;
    }
    
    .nav-link:active {
        background: rgba(67, 97, 238, 0.1);
    }
    
    .dropdown-item:hover {
        background: none;
    }
    
    .dropdown-item:active {
        background: rgba(67, 97, 238, 0.1);
    }
    
    .tuner-string-preview:hover {
        transform: none;
    }
    
    .tuner-string-preview:active {
        transform: translateY(-1px);
        background-color: rgba(67, 97, 238, 0.15);
    }
}

/* Optimizaciones para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .floating-card {
        border-width: 0.5px;
    }
    
    .tool-card {
        border-width: 0.5px;
    }
    
    .navbar {
        border-bottom-width: 0.5px;
    }
}

/* Optimizaciones para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .hero-actions .btn {
        width: auto;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .logo-animation {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .welcome-message-day,
    .welcome-message-night {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .sun {
        width: 40px;
        height: 40px;
        top: 5%;
        right: 5%;
    }
    
    .moon {
        width: 35px;
        height: 35px;
        top: 4%;
        right: 4%;
    }
    
    .floating-card {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-tools {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .tools-grid {
        gap: 1rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
    
    .tool-header {
        margin-bottom: 0.8rem;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.6rem;
    }
    
    .tool-title {
        font-size: 1rem;
    }
    
    .tool-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
}



/* Mejoras para animaciones en dispositivos con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .welcome-animation,
    .sun,
    .moon,
    .cloud,
    .star,
    .welcome-content,
    .loading-bar {
        animation-duration: 0.1s !important;
        animation-delay: 0s !important;
        transition-duration: 0.1s !important;
    }
    
    .cloud {
        animation: none !important;
        opacity: 0.3 !important;
    }
    
    .star {
        animation: none !important;
        opacity: 0.5 !important;
    }
}



/* Responsive para animaciones */
@media (max-width: 768px) {
    .welcome-content {
        max-width: 90vw;
        padding: 0 1rem;
    }
    
    .logo-animation {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .welcome-message-day,
    .welcome-message-night {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .loading-container {
        width: 250px;
        max-width: 80vw;
    }
}

@media (max-width: 480px) {
    .logo-animation {
        font-size: 2rem;
    }
    
    .welcome-message-day,
    .welcome-message-night {
        font-size: 0.9rem;
    }
    
    .loading-container {
        width: 200px;
    }
    
    .sun {
        width: 60px;
        height: 60px;
        top: 10%;
        right: 10%;
    }
    
    .moon {
        width: 50px;
        height: 50px;
        top: 8%;
        right: 8%;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .welcome-animation {
        padding: 1rem 0;
    }
    
    .welcome-content {
        transform: translateY(10px);
    }
    
    .logo-animation {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .welcome-message-day,
    .welcome-message-night {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .loading-container {
        width: 200px;
    }
}