
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #7e22ce;
    --accent: #06b6d4;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--primary));
}

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

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

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

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    font-family: 'Oxanium', cursive;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 12px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn:hover {
    color: var(--accent);
}

.register-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    background: rgba(2, 6, 23, 0.4);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Oxanium', cursive;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #94a3b8;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--light);
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Commands Section */
.commands {
    padding: 60px 0;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.category-btn:hover, .category-btn.active {
    background: var(--gradient);
    border-color: transparent;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.command-card {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.command-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.command-name {
    font-family: 'Oxanium', cursive;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}

.command-category {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.command-description {
    color: #94a3b8;
    margin-bottom: 15px;
    font-size: 14px;
}

.command-usage {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary);
}

.command-example {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #cbd5e1;
    border-left: 3px solid var(--secondary);
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--gradient);
}

/* Footer */
footer {
    background: rgba(2, 6, 23, 0.7);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Oxanium', cursive;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-buttons {
        display: none;
    }
}

/* Backdrop y modal */
.auth-backdrop {
position: fixed; inset: 0;
background: rgba(2,6,23,0.6);
backdrop-filter: blur(6px);
display: none;
align-items: center;
justify-content: center;
z-index: 2000;
}
.auth-backdrop.show { display: flex; }

.auth-modal {
width: min(560px, 92vw);
background: rgba(30,41,59,0.9);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 14px;
padding: 24px;
position: relative;
box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.auth-close {
position: absolute; top: 10px; right: 12px;
background: transparent; border: 0; color: var(--light);
font-size: 28px; cursor: pointer; line-height: 1;
opacity: .8;
}
.auth-close:hover { opacity: 1; }

.auth-title {
font-family: 'Oxanium', cursive;
margin: 0 0 14px 0;
}

.auth-tabs {
display: flex; gap: 8px; margin-bottom: 16px;
}
.auth-tab {
flex: 1;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.06);
color: var(--light);
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
transition: all .2s;
}
.auth-tab.active {
background: var(--gradient);
border-color: transparent;
}

.auth-form.hidden { display: none; }

.field { margin-bottom: 12px; }
.field label {
display: block; margin-bottom: 6px; font-size: 14px; color: #cbd5e1;
}
.field input {
width: 100%;
background: rgba(2,6,23,0.5);
border: 1px solid rgba(255,255,255,0.08);
color: var(--light);
padding: 12px 14px;
border-radius: 8px;
outline: none;
}
.field input:focus { border-color: rgba(6,182,212,0.6); }

.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.auth-submit {
width: 100%;
margin-top: 8px;
}

.auth-alert {
background: rgba(220,38,38,0.15);
border: 1px solid rgba(220,38,38,0.4);
color: #fecaca;
padding: 10px 12px;
border-radius: 8px;
margin-bottom: 12px;
font-size: 14px;
}

@media (max-width: 520px) {
.grid-2 { grid-template-columns: 1fr; }
}
/* NSFW age gate */
.hidden { display: none !important; }

.nsfw-modal {
  position: fixed; inset: 0;
  background: rgba(2,6,23,0.8);
  display: grid; place-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}
.nsfw-modal__box {
  width: min(520px, 92vw);
  background: linear-gradient(180deg, #0b1220, #0a0f1a);
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  color: #e5e7eb;
}
.nsfw-modal__box h3 {
  margin: 0 0 10px;
  font-family: 'Oxanium', sans-serif;
  font-size: 22px;
}
.nsfw-modal__box p { margin: 0 0 16px; color: #cbd5e1; }

.nsfw-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color:#b6c2d1; }

.nsfw-modal__actions { display: flex; justify-content: flex-end; gap: 10px; }

.btn-primary, .btn-secondary {
  cursor: pointer; border-radius: 8px; padding: 10px 16px; font-weight: 600; border: 1px solid transparent;
}
.btn-primary { background: var(--gradient, linear-gradient(90deg,#2563eb,#7c3aed)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.25); }
.btn-secondary { background: #0f172a; color: #e5e7eb; border-color: rgba(148,163,184,.25); }
.btn-secondary:hover { background: #111827; }
.primary-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}