:root {
    --neon: #39FF14;
    --neon-glow: rgba(57, 255, 20, 0.5);
    --neon-border: rgba(57, 255, 20, 0.2);
    --neon-soft: rgba(57, 255, 20, 0.08);
    --bg: #050505;
    --surface: rgba(8, 22, 10, 0.7);
    --surface-solid: #0b1a0d;
    --text: #E8EDE0;
    --text-muted: #7a8a70;
    --neo-out: 8px 8px 24px rgba(0, 0, 0, 0.9), -2px -2px 10px rgba(57, 255, 20, 0.03);
    --neo-in: inset 4px 4px 10px rgba(0, 0, 0, 0.7), inset -3px -3px 8px rgba(57, 255, 20, 0.05);
    --trans: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Variables for dashboard-lunatech */
    --dark-jungle: #050A09;
    --emerald-neon: #39FF14;
    --cyan-electric: #39FF14;
    --card-bg: #081210;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

/* NEUMORFISMO DE ÉLITE */
.neu-pressed {
    background: #060d0b;
    box-shadow: inset 3px 3px 6px #030605, inset -3px -3px 6px rgba(57, 255, 20, 0.03);
    border: 1px solid rgba(57, 255, 20, 0.05);
}

.neu-card {
    background: #081210;
    box-shadow: 5px 5px 12px #020404, -3px -3px 10px rgba(57, 255, 20, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.neu-card:hover {
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.08), 5px 5px 15px #010202;
    transform: translateY(-4px);
}

/* --- ANIMACIONES GLOBALES --- */
@keyframes croak-tremor {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--neon-glow)) sepia(10%) contrast(110%);
    }

    50% {
        transform: scale(1.06) translateY(-10px);
        filter: drop-shadow(0 0 50px var(--neon-glow)) sepia(20%) contrast(130%) hue-rotate(-2deg);
    }
}

.animate-breathe {
    animation: croak-tremor 4s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.wave-bar {
    animation: wave 1.2s ease-in-out infinite;
}

/* --- BACKGROUND EFFECTS --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.12;
}

/* --- CRT EFFECT --- */
@keyframes crtFlicker {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.25;
    }

    100% {
        opacity: 0.3;
    }
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(57, 255, 20, 0.04) 2px, rgba(57, 255, 20, 0.04) 4px),
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 999;
    pointer-events: none;
    animation: crtFlicker 0.15s infinite;
}

/* --- IMMERSIVE TYPOGRAPHY (ALIVE) --- */
@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

.alive-title {
    background: linear-gradient(90deg, #fff, var(--neon), #88ffaa, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineText 6s linear infinite;
}

.biolume {
    color: var(--neon);
    text-shadow: 0 0 15px var(--neon-glow);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.7rem;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050A09; }
::-webkit-scrollbar-thumb { background: #1a3a10; border-radius: 10px; }


/* --- NAVBAR --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--neon-border);
}

#navbar .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-txt {
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 2px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon);
    text-shadow: 0 0 10px var(--neon-glow);
}

.nav-cta {
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid var(--neon-border);
    padding: 8px 22px;
    border-radius: 50px;
    color: var(--neon);
    font-size: 0.65rem;
    font-weight: 900;
    transition: 0.4s;
}

.nav-cta:hover {
    transform: scale(1.05);
    background: var(--neon);
    color: #000;
    box-shadow: 0 0 25px var(--neon-glow);
}

/* --- HERO (TOTAL FIDELIDAD) --- */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px 80px 20px;
    text-align: center;
    overflow: visible;
    position: relative;
    z-index: 10;
    background: transparent;
}

.frog-center {
    width: 100%;
    max-width: 450px;
    animation: croak-tremor 6s ease-in-out infinite;
}

.logo-bottom {
    width: 100%;
    max-width: 650px;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)) sepia(15%) contrast(120%);
    transition: 0.8s var(--trans);
}

.logo-bottom:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 30px var(--neon-glow));
}

.scroll-hint {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 6px;
    animation: bounce 2.5s infinite;
    margin: 40px 0;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* --- SECTIONS --- */
section {
    padding: 140px 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 20;
    padding: 40px 20px;
    background: radial-gradient(circle, rgba(5, 5, 5, 0.9) 0%, transparent 80%);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

/* --- ORGANIC CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: rgba(10, 20, 10, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    padding: 50px;
    border: 1px solid rgba(57, 255, 20, 0.1);
    box-shadow: var(--neo-out);
    transition: 0.5s var(--trans);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--neon);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--neon-soft);
}

.card-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(57, 255, 20, 0.06);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    border: 1px solid var(--neon-border);
    transition: 0.4s;
}

.service-card:hover .card-icon-wrap {
    transform: rotate(-10deg) scale(1.1);
    background: var(--neon);
    box-shadow: 0 0 20px var(--neon-glow);
}

.service-card:hover .card-icon {
    color: #000;
    filter: none;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--neon);
    filter: drop-shadow(0 0 10px var(--neon-glow));
    transition: 0.4s;
}

.service-card h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.9;
    font-weight: 300;
}

.service-card p strong {
    color: var(--neon);
    font-weight: 600;
    text-shadow: 0 0 5px var(--neon-soft);
}

.card-step {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: 'Roboto Mono';
    font-size: 0.8rem;
    color: var(--neon);
    opacity: 0.2;
    font-weight: 700;
}

/* --- CTA BOX --- */
.cta-box {
    background: radial-gradient(circle at top right, #1a3a1a, #050505);
    border-radius: 50px;
    padding: 100px 50px;
    text-align: center;
    border: 1px solid var(--neon-border);
    box-shadow: var(--neo-out);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--neon);
    color: #000;
    padding: 22px 55px;
    border-radius: 18px;
    font-weight: 900;
    font-size: 1rem;
    font-family: 'Outfit';
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--neon-glow);
    transform: translateY(-5px) scale(1.05);
}

footer {
    padding: 100px 0;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.9);
    border: 1.5px solid rgba(57, 255, 20, 0.3);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    flex-shrink: 0;
    padding: 0;
}

.menu-toggle:active {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--neon);
    transform: scale(1.08);
}

.menu-toggle i {
    font-size: 1.1rem;
    color: var(--neon);
    line-height: 1;
}

.mobile-logo {
    display: none;
}

.mobile-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.3));
}

.nav-cta-alt {
    background: transparent;
    border: 1px solid var(--neon-border);
    padding: 8px 22px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    transition: 0.4s;
    text-decoration: none;
}

.nav-cta-alt:hover {
    border-color: var(--neon);
    color: var(--neon);
    box-shadow: 0 0 15px var(--neon-soft);
}

.nav-links a {
    text-decoration: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    color: var(--neon);
    padding: 22px 55px;
    border-radius: 18px;
    font-weight: 900;
    font-size: 1rem;
    font-family: 'Outfit';
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--neon);
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(57, 255, 20, 0.05);
    box-shadow: 0 0 40px var(--neon-glow);
    transform: translateY(-5px) scale(1.05);
}

.btn-primary {
    text-decoration: none;
}

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    .hero {
        padding: 100px 16px 60px;
        height: auto;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .logo-wrap {
        display: none;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
    }

    #navbar .container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(25px);
        padding: 30px 0;
        border-bottom: 1px solid var(--neon-border);
        gap: 20px;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    .frog-center {
        max-width: 260px !important;
    }

    .logo-bottom {
        max-width: 85vw !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 16px 18px;
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .cta-box {
        padding: 50px 20px;
        border-radius: 25px;
    }

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
        padding: 20px 10px;
    }

    .container {
        padding: 0 16px;
    }

    footer {
        padding: 60px 16px;
    }

    .orb {
        opacity: 0.05;
        max-width: 300px;
        max-height: 300px;
    }

    .scroll-hint {
        font-size: 0.45rem;
        letter-spacing: 4px;
    }

    .biolume {
        font-size: 0.6rem;
        letter-spacing: 0.3em;
    }
}
