/* =========================
   CONFIGURACIÓN
========================= */

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

:root {
    --background: #08090d;
    --surface: #11131a;
    --surface-hover: #181b24;

    --text: #ffffff;
    --text-secondary: #9ca3af;

    --primary: #7c3aed;
    --primary-light: #a78bfa;

    --border: rgba(255, 255, 255, 0.08);
}


/* =========================
   GENERAL
========================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 70px;

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

    padding: 0 8%;

    background: rgba(8, 9, 13, 0.75);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);

    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    color: var(--text-secondary);

    transition: 0.3s;
}

.navbar nav a:hover {
    color: white;
}


/* =========================
   THEME BUTTON
========================= */

.theme-button {
    background: var(--surface);

    border: 1px solid var(--border);

    color: white;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    cursor: pointer;

    transition: 0.3s;
}

.theme-button:hover {
    background: var(--surface-hover);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 120px 20px;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(124, 58, 237, 0.20),
            transparent 40%
        );
}

.hero-content {
    max-width: 850px;
}

.badge {
    display: inline-block;

    padding: 8px 15px;

    margin-bottom: 25px;

    border-radius: 50px;

    background: rgba(124, 58, 237, 0.12);

    border: 1px solid rgba(124, 58, 237, 0.3);

    color: var(--primary-light);

    font-size: 0.9rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);

    line-height: 1;

    letter-spacing: -4px;

    margin-bottom: 30px;
}

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

.hero p {
    max-width: 600px;

    margin: auto;

    color: var(--text-secondary);

    font-size: 1.2rem;
}


/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 40px;
}

.button {
    display: inline-block;

    padding: 13px 25px;

    border-radius: 10px;

    font-weight: 600;

    cursor: pointer;

    border: none;

    transition: 0.3s;
}

.primary {
    background: var(--primary);

    color: white;
}

.primary:hover {
    background: #6d28d9;

    transform: translateY(-2px);
}

.secondary {
    background: var(--surface);

    border: 1px solid var(--border);
}

.secondary:hover {
    background: var(--surface-hover);
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 120px 8%;

    max-width: 1200px;

    margin: auto;
}

.section-title {
    text-align: center;

    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-light);

    font-size: 0.9rem;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 2.8rem;

    margin-top: 10px;
}

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.card {
    padding: 35px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 18px;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);

    background: var(--surface-hover);

    border-color: rgba(167, 139, 250, 0.3);
}

.card-icon {
    font-size: 2rem;

    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;

    font-size: 1.3rem;
}

.card p {
    color: var(--text-secondary);
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: 100px 20px;
}

.contact-box {
    max-width: 900px;

    margin: auto;

    padding: 80px 30px;

    text-align: center;

    border-radius: 25px;

    background:
        radial-gradient(
            circle at center,
            rgba(124, 58, 237, 0.2),
            transparent 60%
        );

    border: 1px solid var(--border);
}

.contact-box span {
    color: var(--primary-light);
}

.contact-box h2 {
    font-size: 3rem;

    margin: 15px 0;
}

.contact-box p {
    color: var(--text-secondary);

    margin-bottom: 30px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 30px;

    text-align: center;

    color: var(--text-secondary);

    border-top: 1px solid var(--border);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .navbar {
        padding: 0 20px;
    }

    .navbar nav {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;

        max-width: 300px;

        margin-left: auto;
        margin-right: auto;
    }

    .contact-box h2 {
        font-size: 2.2rem;
    }
}


/* =========================
   LIGHT MODE
========================= */

body.light {
    --background: #f5f5f7;
    --surface: #ffffff;
    --surface-hover: #f0f0f3;

    --text: #111111;
    --text-secondary: #666666;

    --border: rgba(0, 0, 0, 0.1);

    --primary: #6d28d9;
    --primary-light: #7c3aed;
}

body.light .navbar {
    background: rgba(245, 245, 247, 0.8);
}

body.light .hero {
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(124, 58, 237, 0.12),
            transparent 40%
        );
}
