/* ==========================================================================
   MG MUSIC v1.2.x "HOTFIX & COLOR DINÁMICO" — HOJA DE ESTILOS REMASTERIZADA
   Inspirada en el sistema de diseño nativo OLED de MG Music
   Soporte Completo: Modo Oscuro (OLED) & Modo Claro + Comparativas de Pantalla
   Totalmente responsivo: PC, Tablet y Mobile (<480px)
   ========================================================================== */

:root {
    color-scheme: dark;
    --bg: #030712;
    --bg-2: #0B1426;
    --surface: rgba(13, 27, 42, 0.75);
    --surface-2: rgba(255, 255, 255, 0.05);
    --border: rgba(33, 150, 243, 0.28);
    --border-2: rgba(0, 240, 255, 0.45);
    --text: #FFFFFF;
    --muted: #CBD5E1;
    --muted-2: #94A3B8;
    --blue: #2196F3;
    --blue-2: #1976D2;
    --cyan: #00F0FF;
    --amber: #F59E0B;
    --glow: rgba(33, 150, 243, 0.35);
    --shadow: rgba(0, 0, 0, 0.75);
    --radius: 18px;
    --btn-from: #2196F3;
    --btn-to: #1565C0;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #F0F4FA;
    --bg-2: #E2E8F0;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-2: rgba(10, 18, 40, 0.05);
    --border: rgba(33, 150, 243, 0.3);
    --border-2: rgba(33, 150, 243, 0.6);
    --text: #0F172A;
    --muted: #334155;
    --muted-2: #64748B;
    --glow: rgba(33, 150, 243, 0.16);
    --shadow: rgba(15, 23, 42, 0.12);
    --btn-from: #2196F3;
    --btn-to: #1976D2;
}

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

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

body {
    background:
        radial-gradient(1100px 750px at 15% 10%, rgba(33, 150, 243, 0.16), transparent 55%),
        radial-gradient(900px 650px at 85% 22%, rgba(0, 240, 255, 0.12), transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    font-family: var(--font-body);
}

html[data-theme="light"] body {
    background:
        radial-gradient(1000px 700px at 15% 10%, rgba(33, 150, 243, 0.14), transparent 60%),
        radial-gradient(900px 650px at 85% 22%, rgba(0, 240, 255, 0.1), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
}

.grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.95), transparent 75%);
    opacity: 0.4;
    z-index: 0;
}

html[data-theme="light"] .grid {
    opacity: 0.18;
}

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

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

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

/* --- Barra de Navegación 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%;
}

html[data-theme="light"] .appbar-native {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.appbar-inner {
    max-width: 1140px;
    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);
    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: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.appbar-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--amber);
    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(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-btn-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .nav-btn-link:hover {
    background: rgba(15, 23, 42, 0.06);
}

.btn-appbar-flagship {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 14px var(--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(245, 158, 11, 0.12), rgba(33, 150, 243, 0.1), rgba(245, 158, 11, 0.12));
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    padding: 10px 20px;
    position: relative;
    z-index: 900;
}

.flagship-banner-inner {
    max-width: 1140px;
    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(245, 158, 11, 0.2);
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    white-space: nowrap;
}

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

.flagship-text strong {
    color: var(--text);
}

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

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

/* --- Contenedor Principal & Cards --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.card {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.card:hover {
    border-color: var(--border-2);
}

.section {
    margin-top: 24px;
    padding: 28px 24px;
}

.section-badge-wrap {
    margin-bottom: 16px;
}

.section-badge-wrap h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-top: 8px;
}

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

/* --- Hero Section --- */
.hero {
    padding: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 36px;
    align-items: center;
    padding: 36px 30px;
}

.hero-info-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.hero-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
}

.hero-app-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.hero-app-version {
    font-size: 0.88rem;
    color: var(--amber);
    font-weight: 700;
}

.badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid var(--border);
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--amber);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* Nota de Transparencia de Bug */
.lead-apology {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--amber);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

.lead-apology i {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.lead-apology strong {
    color: var(--text);
}

.text-amber {
    color: var(--amber);
}

.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

html[data-theme="light"] .pill {
    border-color: rgba(15, 23, 42, 0.08);
}

.text-pink { color: #EC4899; }
.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue); }

.fan-notice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

html[data-theme="light"] .fan-notice {
    background: rgba(10, 18, 40, 0.03);
}

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

html[data-theme="light"] .notice-icon {
    color: var(--blue);
}

.notice-text strong {
    color: var(--text);
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.toggle {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

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

.toggle i {
    color: var(--cyan);
}

html[data-theme="light"] .toggle i {
    color: var(--blue);
}

.btn {
    appearance: none;
    border: 0;
    background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
    color: #FFFFFF !important;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--glow);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
}

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

.btn-secondary {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text) !important;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: var(--cyan);
    color: var(--cyan) !important;
}

/* Columna de Previsualización Hero */
.preview-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview {
    position: relative;
    border-radius: 24px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    max-width: 260px;
    transition: all 0.3s ease;
}

html[data-theme="light"] .preview {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

.preview-caption-tag {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(3, 7, 18, 0.9);
    border: 1px solid var(--border);
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .preview-caption-tag {
    background: #FFFFFF;
    color: var(--blue);
}

/* --- Grids de Novedades y Hotfix --- */
.news-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

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

.news-card {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
}

html[data-theme="light"] .news-card {
    border-color: rgba(15, 23, 42, 0.08);
}

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

.news-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.icon-blue { background: rgba(33, 150, 243, 0.18); color: var(--blue); }
.icon-cyan { background: rgba(0, 240, 255, 0.18); color: var(--cyan); }
.icon-pink { background: rgba(236, 72, 153, 0.18); color: #EC4899; }
.icon-green { background: rgba(16, 185, 129, 0.18); color: #10B981; }
.icon-amber { background: rgba(245, 158, 11, 0.18); color: #F59E0B; }
.icon-purple { background: rgba(168, 85, 247, 0.18); color: #C084FC; }

.news-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-list li {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 6px var(--blue);
}

.news-list li strong {
    color: var(--text);
}

.news-thanks {
    margin-top: 24px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted-2);
    font-style: italic;
}

/* --- Comparativas de la Nueva Etapa --- */
.compare-context {
    font-size: 0.92rem;
    color: var(--muted-2);
    margin-bottom: 20px;
}

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

.compare-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}

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

.compare-card h4 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.compare-card h4 i {
    color: var(--cyan);
}

html[data-theme="light"] .compare-card h4 i {
    color: var(--blue);
}

.badge-update {
    background: rgba(33, 150, 243, 0.2);
    color: var(--cyan);
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

html[data-theme="light"] .badge-update {
    color: var(--blue);
}

.badge-new {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.before-after {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 220px;
}

.before-after img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.compare-caption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* --- Redes Sociales & Soporte --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

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

.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); }
.social-btn.tiktok:hover { background-color: #FE2C55; box-shadow: 0 6px 20px rgba(254, 44, 85, 0.4); }

.github-disclaimer {
    font-size: 0.82rem;
    color: var(--muted-2);
    text-align: center;
    margin-top: 14px;
}

.support-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

html[data-theme="light"] .support-icon {
    color: var(--blue);
}

.support-text h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.support-text p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

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

html[data-theme="light"] .app-footer {
    background: #FFFFFF;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

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

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

.footer-legal {
    font-size: 0.82rem;
    color: var(--muted-2);
    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(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

html[data-theme="light"] .footer-nav a:hover {
    color: var(--blue);
}

.footer-nav .dot {
    color: var(--muted-2);
}

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

/* --- 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: var(--surface);
    border: 1px solid var(--border);
    padding: 30px 24px;
    border-radius: var(--radius);
    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.85);
    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: 9999px;
    background: rgba(33, 150, 243, 0.15);
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

html[data-theme="light"] .modal-badge {
    color: var(--blue);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-description {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 20px;
}

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

.btn-option {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
}

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

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

html[data-theme="light"] .btn-option i {
    color: var(--blue);
}

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

.option-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

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

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

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--muted-2);
    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: var(--text);
    background: var(--surface-2);
}

/* --- 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 var(--glow);
    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(--cyan);
}

.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);
    border-radius: 8px;
    transition: all 0.25s ease;
}

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

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

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

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

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES PC & MOBILE
   ========================================================================== */

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 24px 20px;
    }

    .hero-brand {
        justify-content: center;
    }

    .badge {
        align-self: center;
    }

    .pill-row {
        justify-content: center;
    }

    .fan-notice {
        text-align: left;
    }

    .preview-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 18px 14px 44px;
    }

    .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;
    }

    .section {
        padding: 22px 16px;
    }

    .support-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .compare-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .appbar-badge {
        display: none !important;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .section-badge-wrap h3 {
        font-size: 1.45rem;
    }

    .compare-grid {
        grid-template-columns: 1fr;
    }
}
