/* Variables CSS */
:root {
    --primary-color: #26558C; /* Azul oscuro */
    --secondary-color: #039BE5; /* Azul claro */
    --accent-color: #B1388A; /* Púrpura */
    --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: 'Poppins', 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-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-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;
}

.btn-secondary-nav {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary-nav:hover {
    background-color: #9c2e7a;
    border-color: #9c2e7a;
}

.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: #1a416b;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #1a416b;
}

/* 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(38, 85, 140, 0.75);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-family: 'Poppins', 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(--white-color);
}

.que-es-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.que-es-content {
    flex: 1;
}

.que-es-content h2 {
    font-family: 'Poppins', 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-color: var(--light-grey);
    padding: 6rem 0;
}

.soluciones-container {
    position: relative;
    z-index: 2;
}

.soluciones-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.solucion-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 350px;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.solucion-card:hover {
    transform: translateY(-10px);
}

.solucion-card .icon-header {
    background-color: var(--secondary-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 */
.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);
}

.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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card-white {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card-white .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;
}

.feature-card-white h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card-white p {
    font-size: 1rem;
}

/* TESTIMONIALS SECTION */
.testimonials-erp {
    background-color: var(--white-color);
    padding: 6rem 0;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: var(--light-grey);
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.testimonial-card .review-header {
    color: #f7b731;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-card .reviewer {
    font-style: italic;
    color: #888;
}

/* CONTACT FORM SECTION */
.contact-form-section {
    background-color: #f9f9f9;
    padding: 6rem 0;
}

.contact-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-cta-info {
    flex: 1;
}

.contact-cta-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-cta-info p {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* FOOTER NUEVO */
.footer-new {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4rem 0 0 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 4rem 1rem;
    border-top: 1px solid #3e4453;
}

.footer-column {
    width: 20%;
    padding-right: 1rem;
}

.footer-column:last-child {
    padding-right: 0;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-column h4 {
    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; }

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: var(--secondary-color);
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Overlay para el menú móvil */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Evitar el scroll cuando el menú está abierto */
.no-scroll {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        height: 70px;
        padding: 0 1rem; 
    }
    
    .nav-logo .logo {
        height: 30px; 
    }
    
    .btn-secondary-nav {
        display: none; 
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white-color);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1); 
        transform: translateX(-100%); 
        transition: transform 0.3s ease-in-out; 
        padding: 4rem 2rem;
        z-index: 1000; 
    }

    .nav-menu.active {
        transform: translateX(0); 
    }

    .nav-list {
        flex-direction: column;
        list-style: none;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .nav-list li a {
        font-size: 1.2rem;
        padding: 10px 0;
        color: var(--primary-color);
        width: 100%;
        display: block;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001; 
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .que-es-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .que-es-content, .que-es-image {
        width: 100%;
        text-align: left;
    }

    .que-es-content p {
        text-align: left;
    }
    
    .soluciones-grid, .por-que-grid, .testimonial-grid {
        flex-direction: column;
        align-items: center;
    }

    .por-que-card {
        flex-basis: 100%;
        width: 100%;
    }
    
    .testimonial-card {
        width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .contact-cta-info, .contact-form {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 2rem;
        padding-right: 0;
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
    
    .footer-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-list a {
        text-align: center;
    }
    
    .social-float-group {
        right: 1rem; 
    }
}