@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #0A0A0A;
    --surface: #111113;
    --surface-2: #18181B;
    --primary: #7B61FF;
    --primary-glow: rgba(123, 97, 255, 0.35);
    --accent: #C4B5FD;
    --cyan: #67E8F9;
    --white: #F4F4F5;
    --muted: #71717A;
    --border: rgba(255, 255, 255, 0.06);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --max-w: 1140px;
    --radius: 24px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--muted);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ─── Typography ─── */
.display {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 88px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--white);
}

.h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
}

.h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 26px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--white);
}

.lead {
    font-size: clamp(1.1rem, 2vw, 20px);
    color: var(--muted);
    line-height: 1.6;
    font-weight: 400;
}

.body {
    font-size: 1rem;
    color: var(--muted);
}

.caption {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.text-white {
    color: var(--white) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* ─── Layout ─── */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 10rem 0;
    position: relative;
}

.section--surface {
    background: var(--surface);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-md {
    max-width: 680px;
}

.max-w-lg {
    max-width: 820px;
}

/* ─── Grid ─── */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

@media(min-width:768px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width:992px) {
    .grid--2 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ─── Badge ─── */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(123, 97, 255, 0.25);
    background: rgba(123, 97, 255, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ─── Button ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 40px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 60px var(--primary-glow), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--accent);
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

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

.nav-links {
    display: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover {
    color: var(--white);
}

.nav-links a.active {
    color: var(--white);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

@media(min-width:992px) {
    .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 2rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
    z-index: 99;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--white);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(123, 97, 255, 0.18) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__sub {
    max-width: 640px;
    margin: 2.5rem auto 0;
}

/* 3D Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.orb--1 {
    width: 220px;
    height: 220px;
    top: 15%;
    right: 8%;
    background: radial-gradient(circle at 30% 30%, var(--primary), #3B2A99);
    opacity: 0.5;
    animation: orbit 14s ease-in-out infinite alternate;
}

.orb--2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 6%;
    background: radial-gradient(circle at 30% 30%, var(--cyan), #0E7490);
    opacity: 0.4;
    animation: orbit 10s ease-in-out infinite alternate-reverse;
}

.orb--3 {
    width: 80px;
    height: 80px;
    top: 55%;
    left: 18%;
    background: radial-gradient(circle at 30% 30%, var(--accent), var(--primary));
    opacity: 0.3;
    animation: orbit 8s ease-in-out infinite alternate;
}

@keyframes orbit {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.08);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 97, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(123, 97, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

/* ═══════════════════════════════════════
   PILLARS (Qué hacemos)
   ═══════════════════════════════════════ */
.pillar {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.pillar__num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar+.pillar {
    margin-top: 3rem;
}

/* ═══════════════════════════════════════
   HIGHLIGHT BOX
   ═══════════════════════════════════════ */
.highlight {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--cyan));
    border-radius: 4px 0 0 4px;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    font-size: 1.05rem;
    color: var(--white);
}

.check-list li svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   STATS
   ═══════════════════════════════════════ */
.stat {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}

.stat:hover {
    border-color: rgba(123, 97, 255, 0.2);
    transform: translateY(-6px);
}

.stat__val {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 64px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */
.cta-box {
    background: linear-gradient(160deg, var(--surface) 0%, #151525 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(123, 97, 255, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

/* ═══════════════════════════════════════
   3D FLOATING CARD (decorative)
   ═══════════════════════════════════════ */
.float-card {
    position: relative;
    perspective: 800px;
}

.float-card__inner {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transform: rotateY(-5deg) rotateX(3deg);
    box-shadow:
        20px 20px 60px rgba(0, 0, 0, 0.6),
        -5px -5px 20px rgba(123, 97, 255, 0.05);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.float-card:hover .float-card__inner {
    transform: rotateY(0) rotateX(0);
    box-shadow:
        10px 10px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(123, 97, 255, 0.08);
}

/* ─── Footer ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 3rem;
    text-align: center;
}

.footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--muted);
    transition: all 0.3s var(--ease);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(124, 92, 252, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.footer-email {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 2px;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.footer-email:hover::after {
    width: 100%;
}

.footer-email:hover {
    color: var(--accent);
}

/* ─── Spacing helpers ─── */
.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-6 {
    margin-top: 3rem;
}

.mt-8 {
    margin-top: 4rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

/* ─── Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive fine-tune ─── */
@media(max-width:768px) {
    .section {
        padding: 6rem 0;
    }

    .hero {
        padding: 8rem 0 5rem;
    }

    .cta-box {
        padding: 4rem 1.5rem;
    }

    .highlight {
        padding: 2rem;
    }

    .orb--1 {
        width: 140px;
        height: 140px;
        right: 2%;
    }

    .orb--2 {
        width: 80px;
        height: 80px;
        left: 2%;
    }

    .orb--3 {
        display: none;
    }
}