/* Variables de color estilo HackTheBox */

body {
    background-color: var(--bg-dark);
    font-family: 'Ubuntu', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
}

/* Navegación */
.navbar {
    height: 80px;
    background: #080d16;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-menu li a:hover {
    color: var(--primary);
}

/* Botones */
.btn-primary {
    background: var(--primary);
    color: #000 !important;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Terminal */
.terminal {
    flex: 1;
    min-width: 350px;
    background: #05080f;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.terminal-bar {
    background: #1e293b;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.terminal-bar p {
    margin-left: 10px;
    font-size: 0.8rem;
    font-family: 'Ubuntu Mono', monospace;
    color: #888;
}

.terminal-body {
    padding: 20px;
    font-family: 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.t-green { color: var(--primary); }
.t-blue { color: #5fb3b3; }

.blink {
    animation: blinker 1s linear infinite;
    border-left: 8px solid var(--primary);
}

@keyframes blinker { 50% { opacity: 0; } }

/* Stats */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 12px rgba(159, 239, 0, 0.08), inset 0 0 0 1px rgba(159, 239, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 0 22px rgba(159, 239, 0, 0.18), inset 0 0 0 1px rgba(159, 239, 0, 0.1);
}

.stat-card h2 {
    color: var(--primary);
    font-size: 3rem;
}
/* Botón Login navbar */
.btn-login {
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-left: 20px;
}
.btn-login:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
}

/* ================================
   SECCIÓN CÓMO FUNCIONA
================================ */
.how-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    color: var(--text-white);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-main);
    margin-bottom: 60px;
    font-size: 1rem;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px 30px;
    width: 250px;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(159, 239, 0, 0.1);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
}

.step-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.step-card p {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

.step-connector {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--primary);
    opacity: 0.5;
}

.connector-line {
    width: 30px;
    height: 1px;
    background: var(--primary);
    opacity: 0.4;
}

.connector-arrow {
    font-size: 1rem;
    color: var(--primary);
    margin-left: 4px;
}

/* ================================
   FOOTER
================================ */
.footer {
    background: #05080f;
    border-top: 1px solid var(--border-color);
    padding: 50px 5% 30px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text-white);
}

.footer-logo span { color: var(--primary); }

.footer-desc {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    transition: 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 20px;
    margin-top: 10px;
}

.footer-bottom p {
    color: var(--text-main);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover { text-decoration: underline; }

/* Hamburguesa — oculta en escritorio */
#nav-toggle {
    display: none;
}

/* Botones hero — fila en escritorio */
.hero-btns {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* ================================
   RESPONSIVE — MÓVIL
================================ */
@media (max-width: 768px) {

    /* --- Navbar hamburguesa --- */
    #nav-toggle {
        display: block;
        background: transparent;
        border: 1px solid var(--primary);
        color: var(--primary);
        font-size: 1.4rem;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        line-height: 1;
        order: 3;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #080d16;
        border-bottom: 1px solid var(--border-color);
        padding: 20px 5%;
        gap: 16px;
        z-index: 99;
        box-sizing: border-box;
    }

    .nav-menu.nav-open {
        display: flex;
    }

    .nav-menu li a {
        margin-left: 0;
        font-size: 1rem;
    }

    /* --- Hero layout en columna --- */
    .hero {
        flex-direction: column;
        padding: 60px 5%;
    }

    .hero-content {
        padding-right: 0;
        width: 100%;
    }

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

    .terminal {
        min-width: unset;
        width: 100%;
        margin-top: 30px;
    }

    /* --- Botones hero en columna --- */
    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* --- Sección Cómo funciona --- */
    .steps-grid { flex-direction: column; gap: 20px; }
    .step-connector { transform: rotate(90deg); }
    .step-card { width: 100%; max-width: 350px; }
}
