/* Variables CSS */
:root {
    --primary-color: #21357D; /* Azul oscuro */
    --secondary-color: #B1388A; /* Púrpura oscuro */
    --accent-color: #4A5B8F; /* Azul intermedio */
    --text-color: #555;
    --white-color: #fff;
    --light-grey: #f4f4f9;
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Títulos de secciones */
.section-header-dark {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-dark h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header-dark p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.section-header-white {
    color: var(--white-color);
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-white h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header-white p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.btn-secondary-nav {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary-nav:hover {
    background-color: #8c2c6e;
    border-color: #8c2c6e;
}

.btn-primary-hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(33, 53, 125, 0.4);
}

.btn-primary-hero:hover {
    background-color: #182759;
}

.btn-contact-blue {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-contact-blue:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-contact-purple {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-contact-purple:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}


/* HEADER - ERP */
.header-erp {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-list li a:hover {
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO SECTION - ERP */
.hero-erp {
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 10rem 0 6rem 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-erp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 53, 125, 0.75);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}


/* QUE ES ERP SECTION */
.que-es-erp {
    padding: 6rem 0;
    background-color: var(--light-grey);
}

.que-es-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.que-es-content {
    flex: 1;
}

.que-es-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.que-es-image {
    flex: 1;
}

.que-es-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* SOLUTIONS FOR SECTION */
.soluciones-erp {
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    position: relative;
}

.soluciones-erp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(177, 56, 138, 0.8);
    z-index: 1;
}

.soluciones-container {
    position: relative;
    z-index: 2;
}

.soluciones-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.solucion-card {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 350px;
    color: var(--white-color);
}

.solucion-card .icon-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.solucion-card h3 {
    font-size: 1.5rem;
}


/* WHY CHOOSE US SECTION - CÓDIGO ACTUALIZADO */
.por-que-erp {
    background-color: var(--white-color);
    padding: 6rem 0;
}

.por-que-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 1.5rem; 
}

.por-que-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    background-color: var(--light-grey);
    flex-basis: calc(100% / 3 - 2rem); /* 3 tarjetas por fila en desktop */
}

.por-que-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.por-que-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.por-que-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.por-que-card p {
    font-size: 1rem;
}


/* FEATURES SECTION */
.features-erp {
    background-color: var(--primary-color);
    padding: 6rem 0;
}

.features-list {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.features-ul {
    list-style: none;
    flex: 1;
}

.features-ul li {
    font-size: 1.1rem;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.features-ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.features-image {
    flex: 1;
}

.features-image img {
    width: 100%;
    height: auto;
}


/* STATS SECTION */
.stats-erp {
    background-color: var(--light-grey);
    padding: 4rem 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.stat-card {
    flex: 1;
    padding: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* CLIENTS SECTION */
.clients-erp {
    background-color: var(--white-color);
    padding: 6rem 0;
}

.client-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-logos img {
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    cursor: pointer;
}

.client-logos img:hover {
    filter: grayscale(0%);
}

/* CONTACT & FOOTER SECTION */
.contact-footer-erp {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0 0 0;
}

.contact-cta {
    background-color: var(--white-color);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-buttons .btn {
    width: 45%;
}

/* FOOTER NUEVO */
.footer-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 4rem 0;
    border-top: 1px solid #3e4453;
}

.footer-column {
    width: 20%;
    padding-right: 1rem;
}

.footer-column:last-child {
    padding-right: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.7rem;
}

.footer-list a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--secondary-color);
}

.footer-list a i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #3e4453;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Floating Social Icons */
.social-float-group {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.social-float {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.social-float:hover {
    transform: scale(1.1);
}

.social-float.whatsapp { background-color: #25d366; }
.social-float.facebook { background-color: #3b5998; }
.social-float.instagram { background-color: #C13584; }
.social-float.youtube { background-color: #ff0000; }

/* Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        justify-content: space-between;
    }
    .nav-logo {
        position: static;
    }
    .nav-menu .btn {
        display: none;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 80px;
        right: 0;
        width: 70%;
        max-width: 300px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-menu.active .nav-list {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-overlay.active {
        display: block;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001; /* Asegura que esté por encima del overlay */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .que-es-container, .features-list {
        flex-direction: column;
        text-align: center;
    }

    .que-es-content, .que-es-image, .features-ul, .features-image {
        flex: none;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .soluciones-grid {
        flex-direction: column;
        align-items: center;
    }

    .por-que-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .por-que-card {
        flex-basis: 45%; /* 2 tarjetas por fila en tablets */
    }

    .stats-container {
        flex-direction: column;
    }
    
    .client-logos {
        gap: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }

    .footer-new {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
        padding-right: 0;
    }
    
    .footer-column:first-child {
        text-align: center;
    }
}