/* ==========================================================================
   Qubitar.net - Main Stylesheet (Bilingual & Responsive Dark Theme)
   ========================================================================== */

/* Variables de Color y Tipografía */
:root {
    --bg-main: #0a0f1d;
    --bg-alt: #10172a;
    --bg-card: #162036;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-primary: #6366f1; /* Indigo tech */
    --accent-hover: #4f46e5;
    --accent-cyan: #38bdf8;
    --accent-green: #10b981;
    --border-color: #1e293b;
    --border-hover: #334155;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tipografía y Utilidades */
h1, h2, h3 {
    color: #fff;
    font-weight: 800;
}

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

.text-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-decoration 0.2s;
}

.text-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-cyan);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.brand-prompt {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
}

.brand-tld {
    color: var(--accent-primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* Selector de Idioma (i18n Switcher) */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--accent-cyan);
}

.lang-divider {
    color: var(--border-hover);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

/* Terminal Component */
.terminal-card {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.btn-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.btn-circle.red { background-color: #ef4444; }
.btn-circle.yellow { background-color: #f59e0b; }
.btn-circle.green { background-color: #10b981; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment { color: #64748b; }
.prompt { color: var(--accent-cyan); }
.success { color: var(--accent-green); }
.info { color: var(--accent-primary); }

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--text-main);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Secciones Generales */
.section {
    padding: 90px 0;
}

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

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Cards Grid (Servicios) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.card h3 {
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.card-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-list li::before {
    content: "✓ ";
    color: var(--accent-green);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
}

.product-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.product-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

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

.feature-item strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Stack Section */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-tag {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* Footer & Form */
.footer {
    background-color: #060913;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-info p {
    color: var(--text-muted);
    margin: 1.2rem 0;
}

.contact-methods {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-methods a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.contact-form {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form h3 {
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
}

.form-response {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Media Queries / Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .products-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-alt);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }
}
