/* Variables de Color y Tipografía */
:root {
    --bg-main: #0B0F19;
    --bg-card: #131B2E;
    --bg-alt: #0E1422;
    --primary: #3B82F6;
    --accent: #06B6D4;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

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

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.link-tienda {
    color: var(--accent) !important;
    font-weight: 600;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
}

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

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

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

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

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

/* Tarjeta de Código Decorativa */
.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
}

.window-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #EF4444;
}
.window-dots span:nth-child(2) { background: #F59E0B; }
.window-dots span:nth-child(3) { background: #10B981; }

pre {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.c-purple { color: #C084FC; }
.c-green { color: #4ADE80; }
.c-red { color: #F87171; }
.c-cyan { color: #22D3EE; }
.c-yellow { color: #FACC15; }
.c-blue { color: #60A5FA; }

/* Secciones Generales */
.section {
    padding: 5rem 0;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
}

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

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

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-muted);
}

.card-good {
    border-color: rgba(6, 182, 212, 0.4);
    background: linear-gradient(180deg, rgba(19, 27, 46, 1) 0%, rgba(14, 30, 52, 1) 100%);
}

.card-good ul li {
    color: var(--text-main);
}

/* Servicios Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

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

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

.service-card .icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

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

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #131B2E 0%, #0F2544 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* Responsividad para Tabletas y Celulares */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .nav-links {
        display: none; /* Oculta enlaces secundarios en móviles para mantener limpieza */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    .card, .cta-box {
        padding: 1.8rem 1.2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
