:root {
    /* Unreal Engine Inspired Color Palette */
    --bg-dark: #0e0e0f;
    --bg-panel: rgba(22, 22, 24, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f5f5f7;
    --text-muted: #9aa0a6;
    
    /* Neons & Accents */
    --accent-blue: #007acc;
    --accent-blue-glow: rgba(0, 122, 204, 0.5);
    --accent-orange: #ff6b00;
    --accent-cyan: #00e5ff;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle background grid pattern for tech feel */
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(14, 14, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text { color: var(--text-main); }
.logo-accent { color: var(--accent-blue); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* Buttons */
button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #0090f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.glow-btn {
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* View Sections */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Landing Page - Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero - Mockup Code */
.hero-visual {
    flex: 1;
}

.mockup-panel {
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-panel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(0,0,0,0.5);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.mockup-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-left: 1rem;
}

.mockup-body {
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
}

.mockup-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #a6accd;
}

/* Features */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 122, 204, 0.2);
    border-color: rgba(0, 122, 204, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Dashboard View */
.dashboard-container {
    max-width: 1400px;
    margin: 6rem auto 2rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 8rem);
}

.dashboard-sidebar {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    display: inline-block;
    margin-top: 0.25rem;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin-bottom: 2rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu li {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.sidebar-menu li:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.sidebar-menu li.active {
    background: rgba(0, 122, 204, 0.15);
    color: var(--accent-blue);
    border-left: 3px solid var(--accent-blue);
}

.dash-header {
    margin-bottom: 2rem;
}

.dash-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.dash-cards {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.highlight-border {
    border: 1px solid rgba(0, 122, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.highlight-border::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent-blue);
}

.card-header, .card-footer {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer {
    border-bottom: none;
    border-top: 1px solid var(--border-glass);
}

.card-body {
    padding: 2rem;
}

.token-field label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.copy-box {
    display: flex;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 0.5rem;
}

.copy-box input {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    width: 100%;
    padding-left: 0.5rem;
    outline: none;
}

.btn-icon {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.btn-icon:hover {
    color: var(--text-main);
}

.token-hint {
    font-size: 0.8rem;
    color: #ff6b00;
    margin-top: 0.5rem;
}

.license-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.full-width {
    width: 100%;
}

.info-card {
    padding: 2rem;
}

.info-card h3 {
    margin-bottom: 1.5rem;
}

.steps-list {
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.steps-list li {
    margin-bottom: 0.75rem;
}

.steps-list code {
    background: rgba(0,0,0,0.4);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* Auth Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    border: none;
}
.close-btn:hover { color: var(--text-main); }
.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.input-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-sans);
    outline: none;
}
.input-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
}
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-switch span {
    color: var(--accent-cyan);
    cursor: pointer;
    font-weight: 600;
}
.auth-switch span:hover { text-decoration: underline; }

.auth-switch span:hover { text-decoration: underline; }

/* Responsive Design (Móviles y Tablets) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .hero {
        flex-direction: column;
        padding: 8rem 1.5rem 2rem;
        text-align: center;
        gap: 3rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .mockup-panel {
        transform: none !important; /* Desactivar 3D en móvil para que encaje bien */
        width: 100%;
        max-width: 100vw;
    }
    .dashboard-container {
        grid-template-columns: 1fr;
        margin-top: 8rem;
        padding: 0 1rem;
    }
    .dash-cards {
        grid-template-columns: 1fr;
    }
    .license-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .card-footer {
        flex-direction: column;
    }
    .features {
        padding: 4rem 1.5rem;
    }
}
