/* ==========================================================================
   MG MUSIC v1.0.x "GÉNESIS" — HOJA DE ESTILOS REMASTERIZADA
   Inspirada en el sistema de diseño nativo OLED de MG Music
   Tokens: Dark OLED (#030712) + Azul Eléctrico (#2196F3) + Cyan (#00F0FF)
   Totalmente responsivo: PC, Tablet y Mobile (<480px)
   ========================================================================== */

:root {
    color-scheme: dark;

    /* Colores Principales */
    --primary-color: #2196F3;
    --primary-hover: #1976D2;
    --primary-glow: rgba(33, 150, 243, 0.4);
    --secondary-color: #00F0FF;
    --secondary-glow: rgba(0, 240, 255, 0.35);

    /* Superficies y Fondos */
    --bg-color: #030712;
    --surface-color: rgba(11, 20, 38, 0.88);
    --surface-card: rgba(13, 27, 42, 0.75);
    --border-card: rgba(33, 150, 243, 0.28);
    --border-card-hover: rgba(0, 240, 255, 0.55);

    /* Textos */
    --text-color: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Tipografía */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Sombras y Radios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.85);
}

/* --- Reset y Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Fondos Ambientales Cósmicos --- */
.star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(33, 150, 243, 0.12) 1.2px, transparent 2px);
    background-size: 40px 40px, 90px 90px;
    animation: bgScroll 80s linear infinite;
    opacity: 0.75;
}

@keyframes bgScroll {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 400px, 0 900px; }
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.35;
}

.orb-blue {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.22), transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-cyan {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.18), transparent 70%);
    bottom: 50px;
    left: -100px;
}

/* --- Barra de Navegación Nativa Sticky --- */
.appbar-native {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.appbar-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.appbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    white-space: nowrap !important;
    flex-shrink: 0;
}

.appbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.45));
    transition: transform 0.25s ease;
}

.appbar-brand:hover .appbar-logo {
    transform: scale(1.06) rotate(-2deg);
}

.appbar-title-block {
    display: flex;
    flex-direction: column;
}

.appbar-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.appbar-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.appbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-btn-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.btn-appbar-flagship {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #1976D2);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-appbar-flagship:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.55);
    filter: brightness(1.1);
}

/* --- Banner de Alerta Informativo: Archivo Histórico --- */
.flagship-banner-alert {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.12), rgba(0, 240, 255, 0.08), rgba(33, 150, 243, 0.12));
    border-bottom: 1px solid var(--border-card);
    padding: 10px 20px;
    position: relative;
    z-index: 900;
}

.flagship-banner-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.flagship-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(33, 150, 243, 0.2);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    white-space: nowrap;
}

.flagship-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 250px;
}

.flagship-text strong {
    color: #FFFFFF;
}

.btn-flagship-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-flagship-link:hover {
    background: rgba(33, 150, 243, 0.25);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
    position: relative;
}

.hero-logo-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 1.5rem;
}

.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05) rotate(1deg);
}

.logo-ambient-ring {
    position: absolute;
    inset: -12px;
    border-radius: 34px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.35), transparent 70%);
    z-index: 1;
    filter: blur(10px);
    pointer-events: none;
}

.version-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: rgba(33, 150, 243, 0.16);
    color: var(--secondary-color);
    border: 1px solid var(--border-card);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.app-name {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
}

.app-tagline {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}

.app-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 1.8rem;
    line-height: 1.65;
}

/* Aviso Fan-Made & Privacidad */
.fan-notice {
    background: linear-gradient(145deg, rgba(13, 27, 42, 0.7), rgba(3, 7, 18, 0.9));
    border: 1px solid var(--border-card);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    max-width: 720px;
    margin: 0 auto 2.2rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.notice-icon {
    font-size: 1.4rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.notice-text strong {
    color: #FFFFFF;
}

/* Botones de Acción */
.download-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 28px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1976D2);
    color: #FFFFFF;
    box-shadow: 0 8px 24px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- Changelog Section --- */
.changelog {
    margin: 3.5rem 0;
}

.section-header-row {
    text-align: center;
    margin-bottom: 2rem;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(33, 150, 243, 0.12);
    color: var(--secondary-color);
    border: 1px solid var(--border-card);
    margin-bottom: 10px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.changelog-content {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.changelog-lead {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.changelog-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.changelog-item:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
    background: rgba(33, 150, 243, 0.04);
}

.ch-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ch-rocket { background: rgba(33, 150, 243, 0.18); color: var(--primary-color); }
.ch-bug { background: rgba(245, 158, 11, 0.18); color: #F59E0B; }
.ch-paint { background: rgba(0, 240, 255, 0.18); color: var(--secondary-color); }

.ch-body h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.ch-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* --- Older Versions Accordion --- */
.older-versions {
    margin: 2.5rem 0;
}

.older-versions-header {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
}

.older-versions-header:hover {
    border-color: var(--border-card-hover);
    background: rgba(33, 150, 243, 0.08);
}

.older-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
}

.older-header-title i {
    color: var(--secondary-color);
}

#older-versions-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

#older-versions-content {
    margin-top: 12px;
}

.version-card {
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.version-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
}

.version-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Galería de Capturas --- */
.screenshots {
    margin: 4rem 0;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn {
    background: rgba(11, 20, 38, 0.9);
    color: var(--secondary-color);
    border: 1px solid var(--border-card);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.gallery-fade-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
}

.gallery {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 12px 6px 24px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
    height: 6px;
}

.gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.gallery::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.screenshot-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    scroll-snap-align: center;
}

.screenshot-item {
    background-color: #000000;
    height: 440px;
    width: auto;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    cursor: zoom-in;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.screenshot-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 16px 36px rgba(0, 240, 255, 0.25);
}

.screenshot-caption {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- About Section --- */
.about {
    margin: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.about-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-card-hover);
}

.about-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(33, 150, 243, 0.15);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.about-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-card p strong {
    color: #FFFFFF;
}

/* Dots Indicator */
.about-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--secondary-color);
    width: 22px;
    border-radius: 4px;
}

/* --- Social Links & Support --- */
.social-networks {
    margin: 4rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
    position: relative;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.social-btn.whatsapp:hover { background-color: #25D366; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.social-btn.facebook:hover { background-color: #1877F2; box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4); }
.social-btn.github:hover { background-color: #24292e; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); }

.github-disclaimer {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
}

/* Support Card */
.support {
    margin: 4rem 0 5rem;
}

.support-card {
    background: linear-gradient(145deg, rgba(13, 27, 42, 0.8), rgba(3, 7, 18, 0.95));
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: var(--shadow-card);
}

.support-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(33, 150, 243, 0.15);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.support-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.support-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 650px;
}

.text-cyan {
    color: var(--secondary-color);
}

/* --- Footer --- */
.app-footer {
    background: rgba(3, 7, 18, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-legal {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.85rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-nav .dot {
    color: var(--text-muted);
    width: auto;
    height: auto;
    background: none;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.82);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(150deg, rgba(13, 27, 42, 0.95), rgba(3, 7, 18, 0.98));
    border: 1px solid var(--border-card);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(33, 150, 243, 0.15);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.modal-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-option {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    width: 100%;
}

.btn-option:hover:not(.disabled) {
    background: rgba(33, 150, 243, 0.16);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-option i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.btn-option-texts {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #FFFFFF;
}

.option-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.btn-option.disabled {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

.btn-option.disabled i {
    color: var(--text-muted);
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

/* Tooltip Styles */
.btn-option[data-tooltip]::after,
.social-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: #030712;
    border: 1px solid var(--border-card);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.7);
    z-index: 10;
}

.btn-option[data-tooltip]:hover::after,
.social-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 0 35px rgba(33, 150, 243, 0.35);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #FFFFFF;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px 20px;
    color: #FFFFFF;
    font-size: 26px;
    font-weight: bold;
    user-select: none;
    background: rgba(11, 20, 38, 0.75);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.lightbox-next { right: 20px; }
.lightbox-prev { left: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES PARA PANTALLAS GRANDES Y MÓVILES
   ========================================================================== */

/* Pantallas de Escritorio (PC) */
@media (min-width: 1024px) {
    .hero {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 4rem;
        padding: 5rem 0 4rem;
    }

    .hero-logo-wrap {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .main-logo {
        width: 300px;
        height: 300px;
        border-radius: 44px;
        animation: floatLogo 5s ease-in-out infinite;
    }

    .logo-ambient-ring {
        inset: -20px;
        border-radius: 54px;
    }

    .hero-text {
        flex: 1;
    }

    .version-container {
        justify-content: flex-start;
    }

    .fan-notice {
        margin: 0 0 2.2rem 0;
    }

    .download-container {
        justify-content: flex-start;
    }

    .scroll-btn {
        display: flex;
    }

    .gallery-container {
        padding: 0 54px;
    }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Tablets (768px a 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .scroll-btn {
        display: flex;
    }
    .gallery-container {
        padding: 0 50px;
    }
}

/* Móviles (< 768px) */
@media (max-width: 768px) {
    .appbar-inner {
        padding: 10px 14px;
        gap: 8px;
    }

    .nav-btn-link .nav-text {
        display: none;
    }

    .nav-btn-link {
        padding: 8px 10px;
    }

    .btn-appbar-flagship span {
        display: none;
    }

    .btn-appbar-flagship {
        padding: 8px 12px;
    }

    .flagship-banner-alert {
        padding: 10px 14px;
    }

    .flagship-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-flagship-link {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 2.5rem 0 1.5rem;
    }

    .main-logo {
        width: 100px;
        height: 100px;
        border-radius: 22px;
    }

    .app-name {
        font-size: 2.1rem;
    }

    .app-tagline {
        font-size: 1.05rem;
    }

    .fan-notice {
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
    }

    .changelog-content {
        padding: 20px 16px;
    }

    .changelog-grid-items {
        grid-template-columns: 1fr;
    }

    .version-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .version-card .btn {
        width: 100%;
        justify-content: center;
    }

    .about-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 14px;
        scrollbar-width: none;
    }

    .about-grid::-webkit-scrollbar {
        display: none;
    }

    .about-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .support-card {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
    }

    .support-body p {
        margin: 0 auto 16px;
    }

    .screenshot-item {
        height: 380px;
    }

    /* Botón flotante móvil al scrollear */
    .download-container {
        min-height: 54px;
    }

    .btn-primary.floating {
        position: fixed;
        bottom: 22px;
        right: 20px;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(33, 150, 243, 0.7);
        z-index: 999;
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .btn-primary.floating span {
        display: none;
    }

    .btn-primary.floating i {
        font-size: 1.5rem;
        margin: 0;
    }
}

@keyframes popIn {
    from { transform: scale(0) rotate(-45deg); }
    to { transform: scale(1) rotate(0deg); }
}

/* Móviles Pequeños (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .appbar-badge {
        display: none !important;
    }

    .screenshot-item {
        height: 330px;
    }
}
