:root {
    --col-bg: #030b16;
    --col-bg-alt: #051121;
    --col-primary: #00f2ff;
    /* Azul Agua Neón */
    --col-secondary: #4facfe;
    --col-accent: #7f00ff;
    --col-text: #ffffff;
    --col-text-muted: #a0aab5;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
}

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

body {
    background-color: var(--col-bg);
    color: var(--col-text);
    font-family: 'Space Grotesk', sans-serif;
    /* Tech feel */
    overflow-x: hidden;
    line-height: 1.6;
}

/* Tipografía de cuerpo más legible */
p,
li,
input,
textarea {
    font-family: 'Outfit', sans-serif;
}

#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 11, 22, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--col-text);
    margin: 3px 0;
    transition: 0.4s;
}

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

.nav-logo-img {
    height: 50px;
    /* Ajustar altura para navbar */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* ... rest of nav links styles ... */

/* Hero Logo Animation Split */
.hero-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 450px;
    /* Ancho fijo para estabilidad */
}

.hero-icon-spin {
    width: 300px;
    /* Ajustar tamaño relativo */
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.4));
    animation: galaxySpin 60s linear infinite;
    margin-bottom: 20px;
    /* Espaciado positivo para separar del texto */
    z-index: 2;
}

.hero-text-static {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.2));
    z-index: 1;
}

@keyframes galaxySpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--col-text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--col-primary);
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--col-primary);
    border-radius: 50px;
    color: var(--col-primary) !important;
}

.btn-nav:hover {
    background: var(--col-primary);
    color: var(--col-bg) !important;
    box-shadow: 0 0 20px var(--col-primary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--col-primary), var(--col-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--col-text-muted);
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--col-primary), var(--col-secondary));
    color: var(--col-bg);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-right: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--col-text);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--col-text);
    background: rgba(255, 255, 255, 0.05);
}

/* Animated Orb */
.floating-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--col-primary) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseOrb 8s infinite alternate;
}

@keyframes pulseOrb {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Section Common */
.section {
    padding: 8rem 10%;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--col-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

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

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--col-primary);
}

.icon-glow {
    font-size: 2.5rem;
    color: var(--col-primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.4));
}

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

.glass-card p {
    color: var(--col-text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.service-item:hover {
    background: linear-gradient(145deg, rgba(0, 242, 255, 0.1), rgba(255, 255, 255, 0.01));
}

.service-icon {
    font-size: 2.5rem;
    color: var(--col-secondary);
    margin-bottom: 1.5rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.project-img {
    height: 200px;
    width: 100%;
    transition: transform 0.5s;
}

.placeholder-gradient-1 {
    background: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
}

.placeholder-gradient-2 {
    background: linear-gradient(45deg, #00b09b, #96c93d);
}

.placeholder-gradient-3 {
    background: linear-gradient(45deg, #8E2DE2, #4A00E0);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--col-text-muted);
    font-size: 0.9rem;
}

/* Contact */
.contact-section {
    display: flex;
    justify-content: center;
}

.glass-form-container {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

.glass-form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--col-primary);
}

.w-100 {
    width: 100%;
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--col-text-muted);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--col-primary);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--col-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnim 1s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SIDERAL PACK STYLES ========== */

/* Cursor Cometa */
.cursor-glow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.8), transparent);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, opacity 0.3s;
    opacity: 0;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Cursor Trail Particles */
.cursor-trail {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.8), rgba(0, 242, 255, 0.2));
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
    transition: opacity 0.1s linear;
}

/* Tech Carousel */
.tech-carousel-container {
    background: var(--col-bg-alt);
    padding: 3rem 0;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.tech-track {
    display: flex;
    gap: 4rem;
    animation: scrollTech 30s linear infinite;
    width: max-content;
}

.tech-item {
    font-size: 3rem;
    color: var(--col-primary);
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

.tech-item:hover {
    opacity: 1;
    transform: scale(1.2);
}

@keyframes scrollTech {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--col-bg) 0%, var(--col-bg-alt) 100%);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--col-primary);
}

.stat-item h3 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--col-primary), var(--col-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--col-text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.team-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 242, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.team-card:hover::before {
    opacity: 1;
    animation: glitchSweep 0.6s ease-in-out;
}

.team-card:hover {
    border-color: var(--col-primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    transform: translateY(-10px);
}

@keyframes glitchSweep {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.team-avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--col-primary), var(--col-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--col-bg);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

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

.team-card p {
    color: var(--col-text-muted);
    font-size: 0.9rem;
}

/* Project Card as Link */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.2);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

/* ========== END SIDERAL PACK ========== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        background: var(--col-bg-alt);
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 2rem;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 8rem;
        /* Extra padding for fixed header */
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        margin-bottom: 4rem;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Smaller font size for mobile */
    }

    .hero-logo-container {
        width: 100%;
        max-width: 300px;
        /* Limit width */
    }

    .hero-icon-spin {
        width: 200px;
    }

    .hero-text-static {
        width: 250px;
    }

    .section {
        padding: 4rem 5%;
    }

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

    .tech-item {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .team-avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .contact-section {
        padding-bottom: 6rem;
    }
}