/* ==========================================================================
   NETCREW WEB - BOOTSTRAP 5 DARK PREMIUM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bs-body-bg: #0d1117;
    --bs-body-color: #8b949e;
    --bs-font-sans-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-font-monospace: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    
    --bg-main: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    --border-color: #30363d;
    --border-highlight: rgba(243, 128, 32, 0.4);
    
    --nc-orange: #F38020;
    --nc-orange-hover: #e06d10;
    --nc-blue: #58a6ff;
    --nc-green: #3fb950;
    --nc-yellow: #d29922;
    --nc-red: #f85149;
    --nc-coffee: #FFDD00;
    
    --text-title: #f0f6fc;
    --text-body: #8b949e;
    --text-muted: #6e7681;
}

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

code {
    color: var(--nc-orange);
    background: rgba(243, 128, 32, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--bs-font-monospace);
    font-size: 0.9em;
}

/* Background Grid Pattern */
.bg-grid-pattern {
    /* Background removed as requested */
}

/* Navigation Bar */
.navbar-netcrew {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(16px);
}

.nav-link-custom {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--nc-orange);
}

.nav-logo-img {
    height: 30px;
}

/* Buttons */
.btn-nc-primary {
    background-color: var(--nc-orange);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 24px;
    transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

.btn-nc-primary:hover, .btn-nc-primary:focus {
    background-color: var(--nc-orange-hover);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(243, 128, 32, 0.35);
}

.btn-nc-secondary {
    background-color: #21262d;
    color: #c9d1d9;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 24px;
    transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

.btn-nc-secondary:hover, .btn-nc-secondary:focus {
    background-color: #30363d;
    border-color: #8b949e;
    color: #ffffff;
}

.btn-nc-coffee {
    background-color: rgba(243, 128, 32, 0.1);
    color: var(--nc-orange);
    font-weight: 600;
    border: 1px solid rgba(243, 128, 32, 0.3);
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-nc-coffee:hover {
    background-color: rgba(243, 128, 32, 0.2);
    color: var(--nc-orange);
    border-color: var(--nc-orange);
}

.btn-nc-github {
    background-color: #21262d;
    color: #c9d1d9;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-nc-github:hover {
    background-color: #30363d;
    border-color: #8b949e;
    color: #ffffff;
}

/* Badges */
.badge-nc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(243, 128, 32, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--nc-orange);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Hero Typography */
.hero-title {
    color: var(--text-title);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-body);
    line-height: 1.6;
}

.text-nc-orange {
    color: var(--nc-orange);
}

.text-nc-blue {
    color: var(--nc-blue);
}

.text-nc-green {
    color: var(--nc-green);
}

.text-nc-yellow {
    color: var(--nc-yellow);
}

.text-nc-muted {
    color: var(--text-muted);
}

/* Terminal Component */
.terminal-card {
    width: 100%;
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.terminal-header {
    background: #161b22;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: var(--nc-red); }
.dot-yellow { background: var(--nc-yellow); }
.dot-green { background: var(--nc-green); }

.terminal-title {
    font-family: var(--bs-font-monospace);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    font-family: var(--bs-font-monospace);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e6edf3;
}

.terminal-hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

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

.copy-btn {
    background: #21262d;
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #30363d;
    color: #ffffff;
    border-color: #8b949e;
}

/* Feature Cards */
.nc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    height: 100%;
    transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

.nc-card:hover {
    transform: translateY(-2px);
    border-color: #8b949e;
    background: var(--bg-card-hover);
    box-shadow: 0 8px 24px rgba(1, 4, 9, 0.8);
}

.nc-card-icon {
    font-size: 1.8rem;
    color: var(--nc-orange);
    margin-bottom: 18px;
}

.nc-card-title {
    color: var(--text-title);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.nc-card-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Step Cards */
.nc-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    height: 100%;
}

.nc-step-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    user-select: none;
}

.nc-step-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.nc-step-title {
    color: var(--text-title);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.nc-step-desc {
    color: var(--text-body);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.nc-code-tag {
    background: #0d1117;
    border: 1px solid var(--border-color);
    color: var(--nc-green);
    font-family: var(--bs-font-monospace);
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: 6px;
    display: block;
    width: 100%;
    text-align: center;
}

.nc-code-tag-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.nc-code-tag-clickable:hover {
    background: #161b22;
    border-color: var(--nc-green);
    box-shadow: 0 0 10px rgba(63, 185, 80, 0.2);
}

/* Section Header */
.section-header-custom {
    text-align: center;
    margin-bottom: 54px;
}

.section-title-custom {
    color: var(--text-title);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle-custom {
    color: var(--text-body);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}

/* Native FAQ Accordion (Bulletproof) */
.nc-faq-wrapper {
    width: 100%;
}

.nc-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.nc-faq-item:hover {
    border-color: #8b949e;
}

.nc-faq-question {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.nc-faq-question::-webkit-details-marker {
    display: none;
}

.nc-faq-item[open] .nc-faq-question {
    color: var(--nc-orange);
}

.nc-faq-item[open] .nc-faq-chevron {
    transform: rotate(180deg);
    color: var(--nc-orange);
}

.nc-faq-chevron {
    transition: transform 0.25s ease;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nc-faq-answer {
    padding: 0 24px 20px;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Code Snippet */
.nc-code-block {
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: var(--bs-font-monospace);
    font-size: 0.88rem;
    color: var(--nc-blue);
    word-break: break-all;
}

/* Footer */
.footer-nc {
    padding: 32px 0;
    background: #0d1117;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .navbar-toggler {
        padding: 8px 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: all 0.2s ease;
    }
    
    .navbar-toggler:hover, .navbar-toggler:focus {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        outline: none;
    }

    .navbar-collapse {
        background: rgba(22, 27, 34, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 16px;
        margin-top: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        
        display: block !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease, border 0.3s ease;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-color: transparent;
    }
    
    .navbar-collapse.show {
        max-height: 500px;
        opacity: 1;
        padding-top: 16px;
        padding-bottom: 16px;
        border-color: var(--border-color);
    }
    
    .navbar-nav {
        margin-bottom: 8px;
    }
    
    .nav-link-custom {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 4px;
        font-weight: 600;
        border-bottom: none;
        transition: all 0.2s ease;
    }
    
    .nav-link-custom:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--nc-orange);
        transform: translateX(4px);
    }
    
    /* Botones ancho completo en móvil */
    .navbar-collapse .d-flex {
        flex-direction: column;
        gap: 12px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 16px;
        margin-top: 8px;
    }
    
    .navbar-collapse .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .terminal-hero-body {
        flex-direction: column;
        align-items: flex-start;
    }
    .copy-btn {
        width: 100%;
        text-align: center;
    }
}

/* Modal & Disclaimer */
.nc-modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nc-modal-header {
    border-bottom: 1px solid var(--border-color);
}

.nc-modal-footer {
    border-top: 1px solid var(--border-color);
}

.btn-footer-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-footer-link:hover {
    color: var(--nc-orange);
}
