:root {
    --bg-main: #050816;
    --bg-alt: #0b1020;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.18);
    --accent-2: #22c55e;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --card-bg: rgba(15, 23, 42, 0.9);
    --border-subtle: rgba(148, 163, 184, 0.25);
    --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.6);
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
}

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

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: var(--text-main);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

/* Layout base */

.page-wrapper {
    min-height: 100vh;
    background:
            radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
            radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.14), transparent 60%),
            radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.08), transparent 55%),
            linear-gradient(135deg, #020617, #020617 20%, #030712 60%, #000 100%);
    color: var(--text-main);
}

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 96px 20px 60px;
}

section {
    margin-bottom: 96px;
}

/* Header / Nav */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.92),
            rgba(2, 6, 23, 0.85),
            transparent
    );
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: conic-gradient(
            from 210deg,
            #22c55e,
            #3b82f6,
            #0ea5e9,
            #22c55e
    );
    position: relative;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
    overflow: hidden;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, #0f172a, #020617 65%);
}

.logo-text-main {
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.9rem;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #3b82f6, #22c55e);
    transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 18px;
}

.nav-cta {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-main);
    background: radial-gradient(circle at top left, #1f2937, #020617);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.nav-cta span {
    font-size: 1.1rem;
    transform: translateY(1px);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.9);
    background: radial-gradient(circle at top left, #111827, #020617);
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        inset: 64px 16px auto;
        background: rgba(15, 23, 42, 0.98);
        border-radius: 18px;
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        border: 1px solid rgba(148, 163, 184, 0.4);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
        display: none;
    }
    nav.open {
        display: flex;
    }
    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
    .nav-toggle {
        display: block;
    }
}

/* Labels y títulos de sección */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: radial-gradient(circle at top left, #020617, #020617 40%, #020617);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.section-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 620px;
}

/* Hero (Home) */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-title span {
    background: linear-gradient(120deg, #3b82f6, #22c55e, #0ea5e9);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 520px;
}
