:root {
    --azul-electrico: #0046ff;
    --morado: #8a2be2;
    --negro-suave: #121212;
    --blanco: #ffffff;
    --gris-claro: #f4f4f4;
    --gris-medio: #e0e0e0;
    --gris-texto: #666666;
    --gradient: linear-gradient(135deg, var(--azul-electrico), var(--morado));
    --gradient-hover: linear-gradient(135deg, #0052ff, #9d3ef5);
    --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 15px 40px rgba(0, 0, 0, 0.15);
    --sombra-fuerte: 0 20px 60px rgba(0, 70, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ==================== LOADER ==================== */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--negro-suave);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--azul-electrico);
    border-radius: 50%;
    animation: spin 1s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== NAVBAR ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 10%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--negro-suave);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--negro-suave);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--azul-electrico);
}

.nav-links li a:hover::after {
    width: 60%;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 28px;
    height: 3px;
    background-color: var(--negro-suave);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 70, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

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

.hero-content h1 {
    font-size: 4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    animation: slideInLeft 1s ease-out;
}

.hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gris-texto);
    margin-bottom: 35px;
    line-height: 1.8;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out 0.3s both;
}

.hero-mockup img {
    width: 100%;
    max-width: 550px;
    border-radius: 25px;
    box-shadow: var(--sombra-fuerte);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: levitate 6s ease-in-out infinite;
}

.hero-mockup img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 30px 80px rgba(0, 70, 255, 0.3);
}

@keyframes levitate {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== BOTONES ==================== */
.btn-primary, .btn-secondary {
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 70, 255, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 70, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--azul-electrico);
    border: 2px solid var(--azul-electrico);
}

.btn-secondary:hover {
    background: var(--azul-electrico);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 70, 255, 0.25);
}

.btn-small {
    padding: 10px 25px;
    background: var(--gris-claro);
    color: var(--negro-suave);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-small:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 70, 255, 0.2);
}

/* ==================== STATS SECTION ==================== */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 80px 10%;
    background: var(--negro-suave);
    color: var(--blanco);
    gap: 50px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-item h2 {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--gris-medio);
    font-weight: 300;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 100px 10%;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--negro-suave);
}

.underline {
    width: 80px;
    height: 5px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: var(--sombra-suave);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--sombra-fuerte);
}

.service-card i {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--negro-suave);
}

.service-card p {
    color: var(--gris-texto);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 100px 10%;
    background: var(--negro-suave);
    color: var(--blanco);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.8rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--gris-medio);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info ul li i {
    font-size: 1.3rem;
    color: var(--azul-electrico);
    background: rgba(0, 70, 255, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 45px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--blanco);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--azul-electrico);
    box-shadow: 0 0 0 3px rgba(0, 70, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gris-medio);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    width: 100%;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--negro-suave);
    padding: 40px 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gris-medio);
}

.footer-content p {
    font-size: 0.95rem;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--blanco);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.socials a:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 70, 255, 0.3);
}

/* ==================== BACK TO TOP BUTTON ==================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(0, 70, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 70, 255, 0.4);
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 5%;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        width: 70%;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        gap: 30px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li a {
        color: var(--blanco);
        font-size: 1.3rem;
    }
    
    .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);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 5% 60px;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-mockup {
        margin-top: 40px;
    }
    
    .stats {
        flex-direction: column;
        padding: 60px 5%;
    }
    
    .stat-item h2 {
        font-size: 3rem;
    }
    
    .services {
        padding: 80px 5%;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact {
        padding: 80px 5%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 2.2rem;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
