﻿
:root {
    --primary-color: #4499D5;
    --secondary-color: #4375BC;
    --tertiary-color: #3F5AA9;
    --text-color: #333;
    --light-text: #f8f9fa;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --white: #fff;
    --transition: all 0.3s ease-in-out;
    --sombra: 0 4px 12px rgba(0,0,0,0.1);
    --sombra-hover: 0 8px 24px rgba(0,0,0,0.15);
    --borde-redondeado: 12px;
}

:root {
    --primary-color: #4499D5;
    --secondary-color: #4375BC;
    --tertiary-color: #3F5AA9;
    --primary-purple: #1613a1;
    --dark-purple: #162a6e;
    --light-purple: #1a4ebe;
    --text-color: #333;
    --light-text: #f8f9fa;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --light-gray: #f4f4f4;
    --white: #fff;
    --black: #222;
    --transition: all 0.3s ease-in-out;
    --sombra: 0 4px 12px rgba(0,0,0,0.1);
    --sombra-hover: 0 8px 24px rgba(0,0,0,0.15);
    --borde-redondeado: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-light);
    overflow-x: hidden; 
}



.hero-section {
    background: linear-gradient(135deg, rgba(68, 153, 213, 0.05) 0%, rgba(67, 117, 188, 0.08) 50%, rgba(63, 90, 169, 0.05) 100%);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 20% 80%, rgba(68, 153, 213, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(63, 90, 169, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(67, 117, 188, 0.05) 0%, transparent 50%);
        animation: backgroundFloat 20s ease-in-out infinite;
        z-index: 0;
    }

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--tertiary-color));
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding:  10px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 600px;
    position: relative;
    padding-right: 40px;
}

    .hero-content .subtitle {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
    }

        .hero-content .subtitle::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
            transition: width 0.8s ease-out 0.5s;
        }

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: 700;
        line-height: 1.1;
        margin-bottom: 25px;
        background: linear-gradient(135deg, var(--text-color), var(--primary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s;
    }

    .hero-content .description {
        font-size: 1.2rem;
        color: #666;
        line-height: 1.7;
        margin-bottom: 40px;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
    }

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.6s ease;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(68, 153, 213, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(68, 153, 213, 0.4);
    }

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

    .btn-secondary:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(68, 153, 213, 0.3);
    }

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 600px;
    overflow: visible;
}

.model-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: visible;
}

model-viewer {
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
    --progress-bar-color: var(--primary-color);
    --progress-mask: transparent;
}

.model-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.hero-section.animated .hero-content .subtitle {
    opacity: 1;
    transform: translateY(0);
}

    .hero-section.animated .hero-content .subtitle::after {
        width: 60px;
    }

.hero-section.animated .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-section.animated .hero-content .description {
    opacity: 1;
    transform: translateY(0);
}

.hero-section.animated .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-content {
        flex: 1;
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

        .hero-content h1 {
            font-size: 2.5rem;
        }

    .hero-image-container {
        width: 100%;
        min-height: 400px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image-container {
        min-height: 300px;
    }
}

.model-container {
    width: 100%;
    height: 600px;
    background-color: transparent;
    border: 1px solid rgba(68, 153, 213, 0.2); 
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
    --poster-color: transparent;
}

.debug-message {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    z-index: 100;
}
.agency-section {
    padding: 100px 0;
    background-color: var(--white);
}

    .agency-section .container {
        display: flex;
        align-items: center;
        gap: 60px;
    }

.agency-image {
    flex: 1;
    position: relative;
}

    .agency-image img {
        width: 100%;
        border-radius: var(--borde-redondeado);
        box-shadow: var(--sombra);
        transition: transform 0.5s ease;
    }

    .agency-image:hover img {
        transform: scale(1.02);
    }

.agency-content {
    flex: 1;
}

    .agency-content h2 {
        font-size: 42px;
        margin-bottom: 25px;
        color: var(--primary-color);
        font-weight: 700;
        line-height: 1.3;
    }

    .agency-content p {
        margin-bottom: 25px;
        color: #555;
        font-size: 16px;
        line-height: 1.8;
    }
.services-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background-light);
}

    .services-section h2 {
        margin-bottom: 50px;
        color: var(--primary-color);
        font-size: 42px;
    }

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 24px;
        border-color: var(--primary-color);
    }

    .service-card .icon-wrapper {
        width: 80px;
        height: 80px;
        background-color: var(--primary-color); 
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 20px;
        box-shadow: inset rgba(255, 255, 255, 0.2) 0px 2px 4px;
        position: relative;
        overflow: hidden;
    }

        .service-card .icon-wrapper img {
            width: 40px;
            height: 40px;
            filter: invert(100%); 
            position: relative;
            z-index: 2;
        }

        .service-card .icon-wrapper::before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transition: all 0.3s ease-out;
            transform: translate(-50%, -50%);
            top: 50%;
            left: 50%;
            z-index: 1;
        }

    .service-card:hover .icon-wrapper::before {
        width: 120%;
        height: 120%;
        opacity: 1;
    }

    .service-card h3 {
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .service-card p {
        font-size: 0.95rem;
        color: var(--secondary-color);
    }


.vision-mission-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .vision-mission-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
        background-size: 60px 60px;
        z-index: 0;
        opacity: 0.6;
    }

.container-vision-mission {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vision, .mission {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--borde-redondeado);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

    .vision:hover, .mission:hover {
        transform: translateY(-5px);
    }

    .vision h1, .mission h1 {
        color: var(--white);
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .vision p, .mission p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 15px;
    }

.stats {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

    .stats h2 {
        font-size: 42px;
        color: var(--primary-color);
        margin-bottom: 50px;
        font-weight: 700;
    }

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.stat-item-large {
    background-color: var(--white);
    padding: 40px 20px;
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

    .stat-item-large:hover {
        transform: translateY(-10px);
        box-shadow: var(--sombra-hover);
    }

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number-large {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.stat-title-large {
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

#negocios {
    padding: 100px 0;
    text-align: center;
    background-color: var(--light-gray);
    position: relative;
}

    #negocios::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(45deg, rgba(68, 153, 213, 0.03) 25%, transparent 25%, transparent 50%, rgba(68, 153, 213, 0.03) 50%, rgba(68, 153, 213, 0.03) 75%, transparent 75%, transparent);
        background-size: 60px 60px;
        z-index: 0;
        opacity: 0.4;
    }

    #negocios .container {
        position: relative;
        z-index: 1;
    }

    #negocios h2 {
        font-size: 42px;
        color: var(--primary-color);
        margin-bottom: 20px;
        font-weight: 700;
    }

    #negocios p {
        color: var(--text-color);
        margin-bottom: 50px;
        font-size: 18px;
    }

.clients-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra);
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
}

    .client-logo:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: var(--sombra-hover);
    }

    .client-logo img {
        max-width: 80%;
        max-height: 70px;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: filter 0.3s ease, opacity 0.3s ease;
    }

    .client-logo:hover img {
        filter: grayscale(0%);
        opacity: 1;
    }

.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    margin: 50px 0;
    border-radius: var(--borde-redondeado);
    box-shadow: var(--sombra);
    position: relative;
    overflow: hidden;
}

    .contact-cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
        background-size: 60px 60px;
        z-index: 0;
        opacity: 0.6;
    }

    .contact-cta h2 {
        color: var(--white);
        font-size: 42px;
        margin-bottom: 20px;
        font-weight: 700;
        position: relative;
        z-index: 1;
    }

    .contact-cta p {
        font-size: 18px;
        margin-bottom: 30px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        color: rgba(255, 255, 255, 0.9);
        position: relative;
        z-index: 1;
        line-height: 1.8;
    }

    .contact-cta .button {
        display: inline-block;
        background-color: var(--white);
        color: var(--primary-color);
        padding: 15px 35px;
        border-radius: 30px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: var(--transition);
        box-shadow: var(--sombra);
        text-decoration: none;
        position: relative;
        z-index: 1;
    }

        .contact-cta .button:hover {
            background-color: var(--light-gray);
            transform: translateY(-3px);
            box-shadow: var(--sombra-hover);
        }

        .contact-cta .button i {
            margin-left: 10px;
            transition: transform 0.3s ease;
        }

        .contact-cta .button:hover i {
            transform: translateX(5px);
        }

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .agency-section .container {
        flex-direction: column;
        text-align: center;
    }

    .container-vision-mission {
        flex-direction: column;
    }

    .agency-content h2,
    .services-section h2,
    .stats h2,
    #negocios h2,
    .contact-cta h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-tagline {
        font-size: 14px;
    }

    .service-cards,
    .stats-container,
    .clients-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

        .hero-buttons .btn {
            margin: 0;
            width: 250px;
        }
}

@media (max-width: 576px) {
    .hero-section {
        height: auto;
        padding: 120px 0;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 25px;
        font-size: 14px;
    }

    .contact-cta h2 {
        font-size: 28px;
    }
}

.shooting-stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

    .shooting-star::after {
        content: '';
        position: absolute;
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
        transform: rotate(-45deg);
        left: 2px;
        top: 1px;
    }

    .shooting-star.visible {
        opacity: 1;
    }


