/* ========================================= */
/* SCYPHER - CSS COMPLETO CON DARK MODE */
/* Versión: 2.0 - Dark Mode por Defecto */
/* ========================================= */

/* CSS Variables - DARK MODE POR DEFECTO */
:root {
    /* DARK MODE - Paleta Profesional */
    /* Fondos - Jerarquía Sofisticada */
    --bg-primary: #0f1115;        /* Carbón profundo, no negro puro */
    --bg-secondary: #1a1d23;      /* Gris oscuro con calidez sutil */
    --bg-alt: #252831;            /* Gris medio con tono cálido */
    --bg-card: #1e2127;           /* Cards con profundidad */

    /* Texto - Legibilidad Premium */
    --text-primary: #f8f9fa;      /* Blanco limpio, no agresivo */
    --text-secondary: #cbd5e0;    /* Gris azulado suave */
    --text-muted: #a0aec0;        /* Gris neutro para texto secundario */

    /* Acentos - Púrpura Profesional */
    --accent-color: #7c3aed;      /* Púrpura rico, elegante */
    --primary-color: #7c3aed;     /* Consistencia con accent */
    --secondary-color: #8b5cf6;   /* Púrpura claro para highlights */
    --accent-light: #a78bfa;      /* Púrpura suave para iconos */
    --accent-hover: #6d28d9;      /* Más oscuro en hover */

    /* Estados y Colores Funcionales */
    --success-color: #10b981;     /* Verde esmeralda */
    --warning-color: #f59e0b;     /* Ámbar de advertencia */
    --error-color: #ef4444;       /* Rojo limpio */

    /* Bordes - Sutiles pero Definidos */
    --border-color: #374151;      /* Visible pero no agresivo */
    --border-light: #4b5563;      /* Bordes más claros */
    --border-accent: #7c3aed;     /* Bordes de acento */

    /* Sombras - Profundidad sin Ruido */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* Gradientes Sofisticados */
    --gradient-hero: linear-gradient(135deg, #0f1115 0%, #1a1d23 100%);
    --gradient-card: linear-gradient(135deg, #1e2127 0%, #252831 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);

    /* Transiciones */
    --transition: all 0.3s ease;
}

/* LIGHT MODE - Activado con data-theme="light" */
:root[data-theme="light"] {
    /* Modo Claro - Colores Originales Mejorados */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-alt: #f3f4f6;
    --bg-card: #ffffff;

    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    --accent-color: #7c3aed;      /* Consistencia con dark mode */
    --primary-color: #1a1f36;
    --secondary-color: #2d3561;
    --accent-light: #8b5cf6;
    --accent-hover: #6d28d9;

    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-accent: #7c3aed;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

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

/* ========================================= */
/* NAVIGATION CON THEME SWITCH */
/* ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

/* Light mode navbar background */
:root[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

/* THEME TOGGLE - Nuevo Componente */
.nav-theme {
    display: flex;
    align-items: center;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.theme-option {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
}

.theme-option.active {
    color: var(--accent-color);
    background: rgba(124, 58, 237, 0.1);
}

.theme-separator {
    color: var(--border-color);
    font-weight: 300;
}

.lang-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-select:hover,
.lang-select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ========================================= */
/* SECTIONS */
/* ========================================= */

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ========================================= */
/* HERO SECTION */
/* ========================================= */

.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 1.25rem;
}

/* ========================================= */
/* BUTTONS */
/* ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
    background: #0ea271;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    font-size: 1.125rem;
}

/* ========================================= */
/* HOW IT WORKS SECTION - REDESIGNED */
/* ========================================= */

.process-explanation {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.process-flow {
    background: var(--gradient-card);
    border-radius: 1rem;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.process-flow-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.flow-step {
    margin: 1.5rem 0;
}

.flow-input {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.flow-label {
    background: var(--bg-card);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.flow-label:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.flow-plus {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.flow-process {
    display: flex;
    justify-content: center;
}

.flow-label-highlight {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.flow-output {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.flow-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin: 1rem 0;
    font-weight: bold;
}

.decrypt-info {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.decrypt-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.decrypt-info strong {
    color: var(--text-primary);
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.advantage-card {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.advantage-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Tech Details */
.tech-details {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.tech-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.tech-list li:hover {
    color: var(--text-primary);
    background: var(--bg-alt);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.5rem;
}

.tech-list li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ========================================= */
/* DOWNLOAD SECTION */
/* ========================================= */

.download-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.download-box {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.download-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.download-box h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.download-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
}

.download-info h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.download-steps {
    list-style: decimal;
    list-style-position: inside;
    color: var(--text-secondary);
}

.download-steps li {
    padding: 0.5rem 0;
}

/* Enhanced Download Note with OS Instructions */
.download-note {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.download-note h5 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.os-item {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.os-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.os-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.os-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.os-command {
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    word-break: break-all;
    font-weight: 500;
}

/* Blockchain transparency section */
.blockchain-transparency {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.blockchain-transparency h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.transparency-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.75rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.transparency-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.transparency-list li:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.github-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.github-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.github-icon {
    font-size: 1.25rem;
}

/* ========================================= */
/* PROGRESS BAR STYLES (MANTENIENDO EXISTENTES) */
/* ========================================= */

.download-progress-container {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 2px solid var(--accent-color);
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-icon {
    font-size: 1.5rem;
    min-width: 1.5rem;
}

.progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.progress-bar-container {
    position: relative;
    background: var(--bg-alt);
    border-radius: 0.5rem;
    height: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 0.5rem;
    transition: width 0.5s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.step-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--success-color);
    transform: scale(1.1);
}

.step-dot.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 6px;
    font-weight: bold;
}

.download-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 0.75rem;
    border: 2px solid var(--success-color);
}

.success-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.success-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.download-error {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: 0.75rem;
    border: 2px solid var(--error-color);
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1rem;
    font-weight: 600;
    color: var(--error-color);
    line-height: 1.4;
    word-wrap: break-word;
}

.download-status.loading {
    display: block !important;
    background: transparent;
    color: inherit;
    border: none;
    padding: 0;
}

.download-status.success {
    display: block !important;
    background: transparent;
    color: inherit;
    border: none;
    padding: 0;
}

.download-status.error {
    display: block !important;
    background: transparent;
    color: inherit;
    border: none;
    padding: 0;
}

/* ========================================= */
/* DONATE SECTION (MANTENIENDO FUNCIONALIDAD) */
/* ========================================= */

.donate-container {
    max-width: 600px;
    margin: 0 auto;
}

.donate-box {
    background: var(--gradient-card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.donate-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.token-safe-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-icon {
    font-size: 1.5rem;
}

.donate-info {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.wallet-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.wallet-status.connected {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.2);
}

.wallet-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.status-icon {
    font-size: 1.25rem;
}

.wallet-status.connected .status-icon {
    color: var(--success-color);
}

.wallet-status.error .status-icon {
    color: var(--error-color);
}

.donation-amount {
    margin-bottom: 2rem;
}

.donation-amount label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 1rem;
    background: var(--bg-alt);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.amount-btn:hover,
.amount-btn.active {
    border-color: var(--accent-color);
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

.custom-amount {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
    background: var(--bg-card);
    color: var(--text-primary);
}

.custom-amount:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.donation-address {
    background: var(--bg-alt);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.donation-address label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.donation-address code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    word-break: break-all;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    display: block;
    color: var(--text-primary);
}

.donation-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: none;
}

.donation-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.donation-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.donation-status.info {
    display: block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Donation buttons specific centering */
#connectWalletBtn,
#donateBtn {
    width: 100%;
    margin-bottom: 1rem;
}

/* ========================================= */
/* FOOTER */
/* ========================================= */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-right: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }

    .theme-option {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .download-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .github-links {
        flex-direction: column;
        align-items: center;
    }

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

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

    .os-instructions {
        grid-template-columns: 1fr;
    }

    .flow-input {
        flex-direction: column;
        gap: 0.75rem;
    }

    .flow-plus {
        transform: rotate(90deg);
    }

    .download-progress-container {
        padding: 1rem;
    }

    .progress-info {
        gap: 0.75rem;
    }

    .progress-text {
        font-size: 0.9rem;
    }

    .progress-bar-container {
        height: 0.75rem;
        margin-bottom: 1rem;
    }

    .progress-percentage {
        font-size: 0.625rem;
        right: 0.25rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }

    .step-dot {
        width: 8px;
        height: 8px;
    }

    .success-icon, .error-icon {
        font-size: 2rem;
    }

    .download-success, .download-error {
        padding: 1.5rem;
    }

    .download-note {
        margin: 1rem 0;
        padding: 1rem;
    }

    .blockchain-transparency {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .transparency-list {
        gap: 0.5rem;
    }

    .transparency-list li {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .advantage-card {
        padding: 2rem;
    }

    .process-flow {
        padding: 1.5rem;
    }

    .tech-details {
        padding: 1.5rem;
    }

    .donate-box {
        padding: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ========================================= */
/* SMOOTH TRANSITIONS FOR THEME SWITCHING */
/* ========================================= */

/* Ensure all elements transition smoothly */
*,
*::before,
*::after {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease !important;
}

/* Preserve intentional transitions for interactions */
.btn,
.nav-link,
.card,
.amount-btn {
    transition: all 0.3s ease !important;
}

/* ========================================= */
/* ACCESSIBILITY IMPROVEMENTS */
/* ========================================= */

/* Focus states for keyboard navigation */
.theme-toggle:focus,
.nav-link:focus,
.btn:focus,
.lang-select:focus,
.custom-amount:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #6b7280;
        --text-secondary: #e5e7eb;
    }

    :root[data-theme="light"] {
        --border-color: #374151;
        --text-secondary: #374151;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================= */
/* PRINT STYLES */
/* ========================================= */

@media print {
    .navbar,
    .theme-toggle,
    .download-btn,
    .btn,
    .footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .section {
        padding: 1rem 0 !important;
    }
}

/* Nueva estructura de download container */
.download-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.download-left,
.download-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Process Info - Ahora en el lado izquierdo */
.download-process-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.download-process-info:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.download-process-info h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-process-info h4::before {
    content: "⚙️";
    font-size: 1.25rem;
}

.download-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.download-steps li {
    counter-increment: step-counter;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

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

.download-steps li::before {
    content: counter(step-counter);
    background: var(--gradient-accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.download-steps li:hover {
    color: var(--text-primary);
    background: var(--bg-alt);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.5rem;
}

/* Download Box Adjustments */
.download-box {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
}

.download-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.download-box h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.download-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Right Side Adjustments */
.download-right .download-note {
    margin: 0;
}

.download-note {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: var(--transition);
}

.download-note:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.download-note h5 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.download-note p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* OS Instructions Grid */
.os-instructions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.os-item {
    background: var(--bg-alt);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.os-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.os-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}

.os-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.os-command {
    background: var(--bg-card);
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    word-break: break-all;
    font-weight: 500;
}

/* Balance visual indicator */
.download-left::before,
.download-right::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
    opacity: 0.3;
}

.download-left::before {
    right: -1.5rem;
}

.download-right::before {
    left: -1.5rem;
}

/* ========================================= */
/* RESPONSIVE ADJUSTMENTS */
/* ========================================= */

@media (max-width: 768px) {
    .download-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-left::before,
    .download-right::before {
        display: none;
    }

    .download-process-info {
        padding: 1.5rem;
    }

    .download-box {
        padding: 2rem;
    }

    .download-note {
        padding: 1.5rem;
    }

    .download-steps li {
        padding: 0.5rem 0;
    }

    .download-process-info h4 {
        font-size: 1.1rem;
    }

    .download-note h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .download-process-info,
    .download-box,
    .download-note {
        padding: 1rem;
    }

    .download-steps li::before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .os-item {
        padding: 1rem;
    }

    .os-command {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* Prevenir overflow horizontal en toda la página */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Asegurar que ningún elemento se salga del viewport */
* {
    box-sizing: border-box;
}

/* Containers responsivos */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Prevenir que elementos con position fixed/absolute causen overflow */
.navbar {
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
}

/* Asegurar que las grids no se salgan */
.download-container,
.advantages-grid,
.cards-grid {
    width: 100%;
    max-width: 100%;
}

/* Fix para elementos que pueden causar overflow */
.hero-title,
.section-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Code elements que pueden ser largos */
code,
.os-command,
.donation-address code {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

/* Prevenir que las imágenes/iconos causen overflow */
img,
.feature-icon,
.advantage-icon,
.os-icon {
    max-width: 100%;
    height: auto;
}

/* Fix específico para mobile menu */
.nav-menu {
    max-width: 100vw;
    overflow-x: hidden;
}

.nav-menu.active {
    width: 100%;
    max-width: 100vw;
}

/* Asegurar que los botones no se salgan */
.btn,
.btn-large {
    max-width: 100%;
    word-wrap: break-word;
}

/* Fix para progress bars */
.progress-bar-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ========================================= */
/* RESPONSIVE IMPROVEMENTS ESPECÍFICOS */
/* ========================================= */

/* Tablets y móviles grandes */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .download-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    /* Asegurar que las grids se colapsen correctamente */
    .download-container,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Títulos más pequeños para evitar overflow */
    .hero-title {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    /* Nav menu ajustes */
    .nav-menu {
        left: 0;
        width: 100%;
        padding: 1rem 10px;
    }

    /* Cards con menos padding */
    .download-box,
    .donate-box,
    .advantage-card {
        padding: 1.5rem;
    }

    .download-process-info,
    .download-note {
        padding: 1.25rem;
    }
}

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

    .hero-title {
        font-size: 1.8rem;
        padding: 0 5px;
    }

    .section-title {
        font-size: 1.6rem;
        padding: 0 5px;
    }

    /* Reducir padding en elementos pequeños */
    .download-box,
    .donate-box,
    .advantage-card,
    .download-process-info,
    .download-note {
        padding: 1rem;
    }

    /* Theme toggle más pequeño */
    .theme-toggle {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .theme-option {
        font-size: 0.75rem;
        padding: 0.125rem 0.25rem;
    }

    /* Botones más pequeños */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra pequeños (320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 5px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    /* Elementos muy compactos */
    .download-box,
    .donate-box,
    .advantage-card,
    .download-process-info,
    .download-note {
        padding: 0.75rem;
    }
}

/* ========================================= */
/* UTILITIES PARA PREVENIR OVERFLOW */
/* ========================================= */

/* Clase utilitaria para textos largos */
.text-responsive {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Clase utilitaria para contenedores */
.container-safe {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Debugging - remover después de confirmar que funciona */
/*
.debug-overflow * {
    outline: 1px solid red !important;
}
*/

/* ========================================= */
/* FINAL SAFEGUARDS */
/* ========================================= */

/* Último recurso: asegurar que nada se salga */
section,
.section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Prevenir que elementos position absolute causen problemas */
*[style*="position: absolute"],
*[style*="position: fixed"] {
    max-width: 100vw;
}

/* Asegurar que pseudo-elements no causen overflow */
*::before,
*::after {
    max-width: 100%;
}

@media (max-width: 768px) {

    /* Menú móvil - SIMPLE Y FUNCIONAL */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 2rem;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Botón cerrar SIMPLE en la parte superior */
    .close-menu-btn {
        width: 100%;
        padding: 1rem;
        background: var(--accent-color);
        color: white;
        border: none;
        border-radius: 0.75rem;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 1rem;
        box-shadow: var(--shadow-md);
    }

    .close-menu-btn:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    /* Theme toggle */
    .nav-theme {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .theme-toggle {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 1.5rem;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .theme-toggle:hover {
        border-color: var(--accent-color);
        box-shadow: var(--shadow-md);
    }

    .theme-option {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        transition: all 0.3s ease;
    }

    .theme-option.active {
        color: var(--accent-color);
        font-weight: 600;
    }

    /* Links del menú */
    .nav-menu .nav-link {
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
        border-radius: 0.75rem;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        transition: all 0.3s ease;
        text-decoration: none;
        color: var(--text-primary);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    /* Language selector */
    .nav-lang {
        order: 99;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .lang-select {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 0.75rem;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        color: var(--text-primary);
        min-width: 120px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .lang-select:hover,
    .lang-select:focus {
        border-color: var(--accent-color);
        outline: none;
        box-shadow: var(--shadow-md);
    }

    /* Hamburger toggle */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .nav-toggle:hover {
        background: rgba(124, 58, 237, 0.1);
    }

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Animación del hamburger */
    .nav-menu.active ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: var(--accent-color);
    }

    .nav-menu.active ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-menu.active ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: var(--accent-color);
    }

    /* Backdrop */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: -1;
    }

    /* Navbar adjustments */
    .navbar .container {
        padding: 1rem 15px;
        min-height: 80px;
/* SCYPHER - CSS COMPLETO CON DARK MODE */
/* Versión: 2.0 - Dark Mode por Defecto */
/* ========================================= */

    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 1.5rem 0.75rem;
        gap: 1.5rem;
    }

    .close-menu-btn {
        font-size: 1rem;
        padding: 0.875rem;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
        max-width: 280px;
    }

    .theme-toggle {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .lang-select {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .navbar .container {
        min-height: 70px;
        padding: 0.75rem 10px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* OCULTAR botón cerrar menú en escritorio */
.close-menu-btn {
    display: none !important; /* Oculto por defecto en escritorio */
}

/* MOSTRAR solo en móviles */
@media (max-width: 768px) {
    .close-menu-btn {
        display: block !important; /* Visible solo en móvil */
    }
}

/* ========================================= */
/* DONATION ADDRESS ENHANCED STYLES */
/* ========================================= */

/* Container para la nueva estructura de dirección */
.donation-address-container {
    background: var(--bg-alt);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.donation-address-container:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.donation-address-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Grupo de input con botones - CENTRADO */
.address-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Dirección actualizada - SIN SCROLL, TAMAÑO PERFECTO */
.donation-address-code {
    width: 100%;
    max-width: 750px; /* Más ancho para la dirección completa */
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem; /* Tamaño optimizado */
    background: var(--bg-card);
    padding: 1rem 1.5rem; /* Más padding horizontal */
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    word-break: keep-all; /* Evitar quiebre de palabras */
    white-space: nowrap; /* Forzar una sola línea */
    overflow: hidden; /* Sin scroll */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    user-select: all; /* Facilita la selección manual */
    text-align: center;
}

.donation-address-code:hover {
    border-color: var(--accent-light);
    background: var(--bg-primary);
}

/* Contenedor de botones de acción - CENTRADO */
.address-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-shrink: 0;
}

/* Botones de acción base - SIN DOBLE RECUADRO */
.address-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    position: relative;
    overflow: hidden;
    outline: none !important; /* Quitar outline predeterminado */
    box-shadow: none !important; /* Quitar box-shadow predeterminado */
}

.address-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.address-action-btn:focus {
    /* Focus personalizado más sutil */
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2) !important;
}

/* Botón de copiar */
.copy-btn {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.copy-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Estado de éxito del botón copiar */
.copy-btn.success {
    background: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: white !important;
    transform: scale(1.05);
}

.copy-btn.success .btn-icon {
    animation: successPulse 0.6s ease;
}

/* Botón de QR */
.qr-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.qr-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Iconos y texto de botones */
.address-action-btn .btn-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.address-action-btn .btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.address-action-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* ========================================= */
/* QR MODAL STYLES */
/* ========================================= */

/* Modal overlay */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal.show {
    opacity: 1;
    visibility: visible;
}

.qr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

/* Modal content */
.qr-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-color);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.qr-modal.show .qr-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal header */
.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.qr-modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.qr-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.qr-close-btn:hover {
    background: var(--bg-alt);
    color: var(--text-primary);
}

/* Modal body */
.qr-modal-body {
    padding: 1.5rem;
    text-align: center;
}

.qr-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.qr-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

.qr-instructions {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.qr-address {
    background: var(--bg-alt);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.qr-address small {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: var(--text-muted);
    word-break: break-all;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Modal footer */
.qr-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.copy-from-qr-btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* ========================================= */
/* ANIMATIONS */
/* ========================================= */

/* Animación de éxito */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Animación de entrada del modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */

@media (max-width: 768px) {
    .address-input-group {
        gap: 1rem;
    }

    .donation-address-code {
        width: 100%;
        max-width: none;
        font-size: 0.8rem;
        padding: 0.875rem;
    }

    .address-buttons {
        width: auto;
        justify-content: center;
    }

    .address-action-btn {
        flex: 0;
        min-width: 90px;
        max-width: 120px;
    }

    .qr-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .qr-image-container {
        padding: 1rem;
    }

    .qr-image {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .donation-address-container {
        padding: 1rem;
    }

    .address-action-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .address-action-btn .btn-text {
        display: none; /* Solo mostrar iconos en móviles muy pequeños */
    }

    .qr-modal-header {
        padding: 1rem;
    }

    .qr-modal-header h3 {
        font-size: 1.1rem;
    }

    .qr-modal-body {
        padding: 1rem;
    }

    .qr-address small {
        font-size: 0.7rem;
    }
}

/* ========================================= */
/* ACCESSIBILITY IMPROVEMENTS */
/* ========================================= */

/* Focus states para keyboard navigation - SIN DOBLE RECUADRO */
.address-action-btn:focus {
    /* Focus personalizado más sutil */
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2) !important;
    outline: none !important;
}

.qr-close-btn:focus {
    background: var(--bg-alt);
    color: var(--text-primary);
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .address-action-btn {
        border-width: 3px;
    }

    .qr-modal-content {
        border-width: 3px;
    }
}

/* ========================================= */
/* NAVIGATION PROFESIONAL - SIN RECUADROS FEOS */
/* ========================================= */

/* Nav links - EFECTO PROFESIONAL */
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    text-decoration: none;

    /* ELIMINAR TODOS LOS OUTLINES Y RECUADROS */
    outline: none !important;
    border: none !important;
    box-shadow: none !important;

    /* Efecto de fondo suave */
    background: transparent;
}

/* Hover effect - MUY PROFESIONAL */
.nav-link:hover {
    color: var(--accent-color);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

/* Active state - ELEGANTE */
.nav-link.active {
    color: var(--accent-color);
    background: rgba(124, 58, 237, 0.15);
    font-weight: 600;
}

/* Underline effect - PERFECTAMENTE CENTRADO */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.125rem; /* Más cerca del texto */
    left: 1.25rem; /* Alineado con el padding del texto */
    right: 1.25rem; /* Alineado con el padding del texto */
    width: auto; /* Automático entre left y right */
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    transform: scaleX(0); /* Empieza invisible */
    transform-origin: center; /* Se expande desde el centro */
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1); /* Se expande al 100% */
}

/* Focus state - ACCESIBLE PERO ELEGANTE */
.nav-link:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3) !important;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-color);
}

/* Active/pressed state - SIN RECUADROS FEOS */
.nav-link:active {
    transform: translateY(0);
    background: rgba(124, 58, 237, 0.2);
}

/* ========================================= */
/* MOBILE MENU IMPROVEMENTS */
/* ========================================= */

/* Mobile menu links - MÁS PROFESIONALES */
@media (max-width: 768px) {
    .nav-menu .nav-link {
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
        border-radius: 0.75rem;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        transition: all 0.3s ease;
        text-decoration: none;
        color: var(--text-primary);
        margin: 0.25rem 0;

        /* SIN RECUADROS EN MÓVIL TAMBIÉN */
        outline: none !important;
        box-shadow: none !important;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    }

    .nav-menu .nav-link:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    }

    .nav-menu .nav-link:focus {
        outline: none !important;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
    }

    /* Remove underline effect on mobile */
    .nav-menu .nav-link::after {
        display: none;
    }
}

/* ========================================= */
/* GENERAL BUTTON FOCUS IMPROVEMENTS */
/* ========================================= */

/* Aplicar a todos los botones del sitio */
button,
.btn,
input[type="button"],
input[type="submit"],
.nav-toggle {
    outline: none !important;
}

/* Focus personalizado para botones principales */
.btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3) !important;
}

/* Nav toggle (hamburger) - SIN RECUADROS */
.nav-toggle {
    outline: none !important;
    border: none !important;
    background: none !important;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(124, 58, 237, 0.1) !important;
}

.nav-toggle:focus {
    outline: none !important;
    background: rgba(124, 58, 237, 0.15) !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.3) !important;
}

.nav-toggle:active {
    background: rgba(124, 58, 237, 0.2) !important;
}

/* ========================================= */
/* ACCESSIBILITY MANTAINED */
/* ========================================= */

/* High contrast mode - MEJORES COLORES */
@media (prefers-contrast: high) {
    .nav-link:focus {
        box-shadow: 0 0 0 3px #7c3aed !important;
        background: rgba(124, 58, 237, 0.2);
    }

    .nav-link.active {
        background: rgba(124, 58, 237, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-link::after {
        transition: none !important;
    }
}

/* ========================================= */
/* THEME TOGGLE IMPROVEMENTS */
/* ========================================= */

/* Theme toggle también sin recuadros feos */
.theme-toggle:focus {
    outline: none !important;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}

.theme-toggle:active {
    transform: scale(0.98);
}

/* Language select sin recuadros */
.lang-select:focus {
    outline: none !important;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}
