* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
}

/* LIGHT THEME - Completamente rediseñado */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8eef5;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #cbd5e1;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ff 100%);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .category,
[data-theme="light"] .feature-card {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .achievement {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .faq-section {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .cookie-banner {
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon { 
    font-size: 32px; 
}

.logo-text h1 {
    font-size: 24px;
    background: linear-gradient(to right, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.btn-home {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-home:hover { 
    opacity: 0.8; 
}

.hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

.particle {
    position: absolute;
    font-size: 20px;
    animation: float 15s infinite ease-in-out;
    opacity: 0;
}

@keyframes float {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.8; 
    }
    90% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(-100vh) rotate(360deg); 
        opacity: 0; 
    }
}

.hero h2 {
    font-size: 42px;
    background: linear-gradient(to right, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.live-users {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #60a5fa;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(to right, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.category h3 {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.generator-btn {
    position: relative;
    padding: 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-weight: bold;
}

.generator-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.generator-btn .icon { 
    font-size: 32px; 
    margin-bottom: 8px; 
}

.tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    width: 200px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.generator-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.bg-blue { background: linear-gradient(135deg, #2563eb, #1e40af); }
.bg-green { background: linear-gradient(135deg, #16a34a, #15803d); }
.bg-purple { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.bg-yellow { background: linear-gradient(135deg, #ca8a04, #a16207); }
.bg-red { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.bg-indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.bg-pink { background: linear-gradient(135deg, #db2777, #be185d); }
.bg-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.bg-cyan { background: linear-gradient(135deg, #0891b2, #0e7490); }
.bg-teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.bg-lime { background: linear-gradient(135deg, #65a30d, #4d7c0f); }
.bg-violet { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.bg-rose { background: linear-gradient(135deg, #e11d48, #be123c); }
.bg-amber { background: linear-gradient(135deg, #d97706, #b45309); }
.bg-emerald { background: linear-gradient(135deg, #059669, #047857); }
.bg-sky { background: linear-gradient(135deg, #0284c7, #0369a1); }

.hidden { 
    display: none; 
}

.generator-view {
    max-width: 900px;
    margin: 0 auto;
}

.gen-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gen-icon { 
    font-size: 64px; 
}

.gen-title h2 { 
    font-size: 32px; 
    margin-bottom: 8px; 
}

.gen-title p { 
    color: var(--text-secondary); 
}

.templates {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.template-btn {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.template-btn:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.output-box {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.output-display {
    width: 100%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 100px;
}

.output-display:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
}

.strength-meter {
    margin-top: 16px;
}

.strength-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0;
}

.strength-bar {
    height: 100%;
    transition: width 0.5s, background 0.5s;
    border-radius: 6px;
}

.strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
}

.crack-time {
    font-size: 13px;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 120px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: #2563eb;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn:hover { 
    transform: scale(1.02); 
    opacity: 0.9; 
}

.batch-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.batch-input {
    width: 80px;
    padding: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: white;
    text-align: center;
}

.options-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.option {
    margin-bottom: 20px;
}

.option label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.slider {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    outline: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.checkbox-wrapper:hover { 
    opacity: 0.8; 
}

.checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

select, input[type="text"] {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

select:focus, input:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-generate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-generate:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}

.history-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-header h3 {
    font-size: 18px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.history-password {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: scale(1.2);
}

.favorite { 
    color: #fbbf24; 
}

.achievements {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.achievement {
    min-width: 100px;
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.3s;
}

.achievement.unlocked {
    border: 2px solid #22c55e;
}

.achievement.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.achievement-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 16px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4);
}

.info-box {
    background: rgba(37,99,235,0.2);
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.info-box h4 {
    color: #60a5fa;
    margin-bottom: 8px;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.notification {
    text-align: center;
    color: white;
    font-weight: 500;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.notification.show { 
    opacity: 1; 
}

.comparator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.compare-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.compare-box h4 {
    margin-bottom: 12px;
}

.compare-password {
    font-family: 'Courier New', monospace;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 12px;
    word-break: break-all;
}

footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    text-align: center;
    padding: 32px 20px;
    margin-top: 64px;
}

footer p { 
    color: var(--text-secondary); 
    margin: 8px 0; 
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin: 64px 0 40px;
}

.section-title span {
    background: linear-gradient(to right, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-section {
    background: linear-gradient(135deg, #1e3a8a, var(--bg-secondary));
    border-radius: 16px;
    padding: 48px 40px;
    margin-bottom: 32px;
}

.faq-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-icon {
    font-size: 24px;
    color: #60a5fa;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid #3b82f6;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

.cookie-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.cookie-accept {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.cookie-accept:hover {
    transform: scale(1.05);
}

.cookie-decline {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.cookie-decline:hover {
    opacity: 0.8;
}

.embed-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.embed-code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .grid { 
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    }
    .hero h2 { 
        font-size: 32px; 
    }
    .hero p { 
        font-size: 18px; 
    }
    .gen-header { 
        flex-direction: column; 
        text-align: center; 
    }
    .stats-container { 
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card { 
        padding: 16px 12px; 
    }
    .stat-number { 
        font-size: 28px; 
    }
    .stat-label { 
        font-size: 11px; 
    }
    .security-features { 
        grid-template-columns: 1fr; 
    }
    .info-section { 
        padding: 24px 20px; 
    }
    .faq-section { 
        padding: 32px 20px; 
    }
    .section-title { 
        font-size: 28px; 
    }
    .cookie-content { 
        flex-direction: column; 
        text-align: center; 
    }
    .cookie-buttons { 
        width: 100%; 
        justify-content: center; 
    }
    .comparator { 
        grid-template-columns: 1fr; 
    }
    .achievements { 
        padding: 12px; 
    }
}