:root {
    --dark-bg: #1a1d24;
    --primary-text: #e0e0e0;
    --violet-accent: #8a4fff;
    --green-accent: #39ff14;
    --card-bg: #2c303a;
    --border-color: #4f5461;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--primary-text);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at top left, rgba(138, 79, 255, 0.15), transparent 30%),
        radial-gradient(circle at bottom right, rgba(57, 255, 20, 0.15), transparent 40%);
    background-attachment: fixed;
    background-size: 100% 100%;
}

a {
    color: var(--violet-accent);
    text-decoration: none;
}

ul {
    list-style: none;
}

header {
    background-color: rgba(26, 29, 36, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-accent);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.7);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
    border-radius: 15px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--green-accent);
}

main {
    padding-top: 80px; /* Adjust for fixed header */
}

section {
    padding: 3rem 5%;
    text-align: center;
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.6); /* Green glow */
    animation: float 4s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--violet-accent), var(--green-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #a0a0a0;
}

.cta-button {
    background-color: var(--green-accent);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(57, 255, 20,.8);
}

.features h2, .demo h2, .install h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--violet-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--green-accent);
}

.feature-card i {
    font-size: 2rem;
    color: var(--green-accent);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.demo-window {
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: left;
    font-family: 'Roboto Mono', monospace;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* max-width and margin: 0 auto; removed as handled by parent/flexbox */
}

.demo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start; /* Alinea los elementos en la parte superior */
    margin-top: 2rem;
}

.demo-item {
    flex: 1; /* Permite que los elementos crezcan y se encojan */
    min-width: 300px; /* Ancho mínimo para cada demo */
    max-width: 48%; /* Ocupa casi la mitad del ancho disponible */
    margin-bottom: 1rem; /* Espacio entre elementos en vertical */
    display: flex;
    flex-direction: column;
}

.demo-item .demo-header {
    font-weight: bold;
}

/* Media Query para pantallas más pequeñas (móviles) */
@media screen and (max-width: 768px) {
    .demo-grid {
        flex-direction: column; /* Apilar verticalmente en móviles */
        align-items: center;
    }

    .demo-item {
        max-width: 90%; /* Ocupar casi todo el ancho disponible */
        min-width: unset; /* Eliminar el ancho mínimo */
    }
}

.demo-header {
    background-color: #333;
    padding: 0.5rem 1rem;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    color: #ccc;
}

.demo-body {
    padding: 1.5rem;
}

.demo-body .prompt {
    color: var(--violet-accent);
    font-weight: 700;
}

.demo-body .command {
    color: var(--green-accent);
}

.demo-body .explanation {
    color: #a0a0a0;
}

.demo-body .cursor {
    background-color: var(--green-accent);
    animation: blink 1s infinite;
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

pre {
    background-color: #282c34;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    overflow-x: auto;
}

code {
    font-family: 'Roboto Mono', monospace;
}

.download-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
}

.download-button i {
    margin-right: 0.5rem;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.step p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--violet-accent);
}

footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #a0a0a0;
}

/* Estilos para el menú de hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Media Queries para Responsividad */
@media screen and (max-width: 768px) {
    nav ul {
        position: absolute;
        right: 0;
        top: 70px; /* Altura del header */
        background-color: rgba(26, 29, 36, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.5s ease-in-out;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    nav ul.nav-active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line2 {
        opacity: 0;
    }
    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .features h2, .demo h2, .install h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 5%;
    }
}
