/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Desactivar smooth nativo para usar nuestro JS */
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 50%, #0c2d4d 100%);
    color: #e6f1ff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Mejorar rendimiento de transformaciones */
.parallax-container,
.logo-container,
.section {
    will-change: transform;
    backface-visibility: hidden;
}

/* Suavizar transiciones */
.navbar,
.servicio-card,
.partner-card,
.cliente-logo,
.social-icons a {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Indicador de progreso de scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #91b43e, #00b4d8);
    z-index: 1001;
    transition: width 0.1s ease;
    pointer-events: none;
}

/* Animación sutil para elementos al hacer scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #91b43e, #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #8892b0;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #91b43e;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 40px;
}

.nav-menu a {
    color: #e6f1ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: #91b43e;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #91b43e;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #91b43e;
    margin: 5px 0;
    transition: 0.3s;
}

/* Sección Inicio */
.inicio-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.parallax-container {
    position: relative;
    z-index: 2;
}

.logo-container {
    animation: fadeInUp 1s ease-out;
}

.main-logo {
    max-width: 780px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.3));
}

.logo-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #91b43e;
    letter-spacing: 1px;
}

.logo-text {
    font-size: 1.2rem;
    color: #8892b0;
    max-width: 600px;
    margin: 0 auto 40px;
}

.scroll-down {
    display: inline-block;
    color: #91b43e;
    font-size: 2rem;
    animation: bounce 2s infinite;
    margin-top: 30px;
    transition: color 0.3s ease;
}

.scroll-down:hover {
    color: #00b4d8;
}

/* Sección Nosotros */
.nosotros-content {
    max-width: 1000px;
    margin: 0 auto;
}

.nosotros-text h3 {
    font-size: 1.8rem;
    color: #91b43e;
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.nosotros-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #91b43e;
}

.nosotros-text p {
    margin-bottom: 20px;
    color: #a8b2d1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.skill-item {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.skill-item i {
    font-size: 2.5rem;
    color: #91b43e;
    margin-bottom: 20px;
}

.skill-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e6f1ff;
}

.skill-item p {
    font-size: 1rem;
    color: #8892b0;
}

.ventajas-list {
    list-style: none;
    margin: 30px 0;
}

.ventajas-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.ventajas-list i {
    color: #91b43e;
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.2rem;
}

/* Sección Servicios */
.servicios-section {
    background: rgba(0, 20, 40, 0.5);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.servicio-card {
    background: rgba(10, 25, 47, 0.8);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.servicio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(100, 255, 218, 0.15);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #91b43e, #00b4d8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.servicio-icon i {
    font-size: 2.5rem;
    color: #0a192f;
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #e6f1ff;
}

.servicio-card p {
    color: #8892b0;
    font-size: 1rem;
    line-height: 1.7;
}

/* Sección Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.partner-card {
    background: rgba(10, 25, 47, 0.8);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.15);
}

.partner-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.partner-logo i {
    font-size: 3rem;
    color: #0a192f;
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e6f1ff;
}

.partner-card p {
    color: #8892b0;
    font-size: 1rem;
    line-height: 1.7;
}

/* Sección Clientes */
.clientes-section {
    background: rgba(0, 20, 40, 0.5);
}

.clientes-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding: 40px 0;
}

.clientes-track {
    display: flex;
    transition: transform 0.5s ease;
}

.cliente-logo {
    min-width: 200px;
    height: 120px;
    margin: 0 30px;
    background: rgba(10, 25, 47, 0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #91b43e;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.cliente-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #91b43e;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: scale(1.1);
}

/* Sección Contacto */
.contacto-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.contacto-info h3 {
    font-size: 1.8rem;
    color: #91b43e;
    margin-bottom: 20px;
}

.contacto-info p {
    color: #a8b2d1;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contacto-datos {
    margin-top: 30px;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contacto-item i {
    font-size: 1.8rem;
    color: #91b43e;
    margin-right: 20px;
    width: 50px;
}

.contacto-item h4 {
    font-size: 1.1rem;
    color: #8892b0;
    margin-bottom: 5px;
}

.contacto-item a {
    color: #e6f1ff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.contacto-item a:hover {
    color: #91b43e;
}

.contacto-form {
    background: rgba(10, 25, 47, 0.8);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(22, 40, 70, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: #e6f1ff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #91b43e;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(90deg, #91b43e, #00b4d8);
    color: #0a192f;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

/* Footer */
.footer {
    background: rgba(5, 15, 30, 0.95);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-size: 2rem;
    color: #91b43e;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-logo p {
    color: #8892b0;
}

.footer-social h4,
.footer-links h4 {
    font-size: 1.3rem;
    color: #e6f1ff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-social h4::after,
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #91b43e;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    color: #91b43e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #91b43e;
    color: #0a192f;
    transform: translateY(-5px);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #91b43e;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: #8892b0;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(10, 25, 47, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .main-logo {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-subtitle {
        font-size: 1.5rem;
    }
    
    .contacto-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social h4::after,
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo-subtitle {
        font-size: 1.2rem;
    }
    
    .contacto-form {
        padding: 30px 20px;
    }
    
    .servicios-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
}