/* VARIABLES */
:root {
    /* Colores */
    --primary-color: #00b4ff;
    --secondary-color: #6c00ff;
    --accent-color: #ff0099;
    --dark-color: #0a0b1a;
    --light-dark-color: #1a1b2e;
    --light-color: #f3f3f7;
    --gray-color: #7b7b93;
    
    /* Fuentes */
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Tamaños */
    --h1-size: 4.5rem;
    --h2-size: 3rem;
    --h3-size: 1.8rem;
    --normal-size: 1rem;
    --small-size: 0.875rem;
    
    /* Efectos */
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --neon-shadow: 0 0 10px rgba(0, 180, 255, 0.6);
    --gradient-bg: linear-gradient(135deg, var(--dark-color) 0%, var(--light-dark-color) 100%);
    --gradient-text: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    --blur-effect: blur(10px);
}

/* RESET Y BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style-type: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 5%;
    position: relative;
}

/* CURSOR PERSONALIZADO */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
    z-index: 9998;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    background-color: rgba(10, 11, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(10, 11, 26, 0.95);
}

.logo {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: var(--neon-shadow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--light-color);
    margin: 5px;
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-bg);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 30% 50%, rgba(102, 0, 255, 0.15), transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(0, 180, 255, 0.15), transparent 35%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h1 {
    font-family: var(--heading-font);
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    color: var(--gray-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 180, 255, 0.4);
}

.btn-primary::before {
    background-color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 180, 255, 0.6);
}

.btn-secondary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-secondary::before {
    background-color: var(--primary-color);
}

.btn-secondary:hover {
    color: var(--dark-color);
}

.hero-model {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.model-container {
    width: 100%;
    height: 500px;
    position: relative;
}

spline-viewer {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.model-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--dark-color), transparent);
    pointer-events: none;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray-color);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: wheel 1.5s infinite;
}

@keyframes wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--heading-font);
    font-size: var(--h2-size);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* SERVICES SECTION */
.services {
    background-color: var(--light-dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.1), rgba(255, 0, 153, 0.1));
    transform: translateY(100%);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: rgba(0, 180, 255, 0.3);
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 180, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.6);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--dark-color);
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: var(--h3-size);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.learn-more {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learn-more i {
    transition: var(--transition);
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* TECHNOLOGY SECTION */
.technology {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.technology::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 0, 255, 0.15), transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-info h3 {
    font-family: var(--heading-font);
    font-size: var(--h3-size);
    font-weight: 600;
    margin-bottom: 20px;
}

.tech-info p {
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.tech-features {
    margin-bottom: 30px;
}

.tech-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.tech-features li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.tech-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-model-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.tech-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 20px;
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    background-color: rgba(10, 11, 26, 0.7);
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .value {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat .label {
    font-size: var(--small-size);
    color: var(--gray-color);
}

/* TEAM SECTION */
.team {
    background-color: var(--light-dark-color);
    position: relative;
}

.team::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 0, 153, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-member {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: rgba(0, 180, 255, 0.3);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 180, 255, 0.3);
    position: relative;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 180, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.bio {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a i {
    font-size: var(--normal-size);
    color: var(--gray-color);
    transition: var(--transition);
}

.social-links a:hover i {
    color: var(--dark-color);
}

/* CONTACT SECTION */
.contact {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.1), transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.2rem;
    color: var(--gray-color);
    transition: var(--transition);
}

.social-icon:hover i {
    color: var(--dark-color);
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light-color);
    font-family: var(--body-font);
    font-size: var(--normal-size);
    resize: none;
}

.form-group textarea {
    min-height: 150px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: var(--small-size);
    color: var(--gray-color);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 180, 255, 0.2);
}

.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:not([value=""]):not([value="none"]) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.8);
    color: var(--primary-color);
    background-color: var(--dark-color);
    padding: 0 5px;
}

.contact-form button {
    width: 100%;
}

/* FOOTER */
footer {
    background-color: var(--light-dark-color);
    padding: 80px 5% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo p {
    color: var(--gray-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column ul li a {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 0;
}

.footer-bottom p {
    color: var(--gray-color);
    font-size: var(--small-size);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    :root {
        --h1-size: 3.5rem;
        --h2-size: 2.5rem;
    }
    
    section {
        padding: 80px 5%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-model {
        order: -1;
    }
    
    .model-container {
        height: 400px;
    }
    
    .tech-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-model-container {
        height: 350px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-size: 3rem;
        --h2-size: 2.2rem;
        --h3-size: 1.5rem;
    }
    
    section {
        padding: 60px 5%;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        height: 0;
        overflow: hidden;
        background-color: var(--light-dark-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        transition: var(--transition);
        pointer-events: none;
        opacity: 0;
    }
    
    .nav-links.active {
        height: auto;
        padding: 20px 0;
        pointer-events: all;
        opacity: 1;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }
    
    .burger {
        display: block;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .model-container {
        height: 350px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-model-container {
        height: 300px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
}
