
/* Variables de Color (Paleta de Colores Verdes) */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #4e5d52;
    --light-bg: #f1fdf3;
    --white-color: #ffffff;
    --text-color: #2d2d2d;
    --text-light: #5a5a5a;
    --border-color: #d6e9d6;
    --accent-color: #e6f4ea;
    --success-color: #43a047;
}

/* Estilos Generales */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}
h3 {
    font-size: 1.8rem;
}
h4 {
    font-size: 1.3rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

ul {
    list-style: none;
    padding: 0;
}
ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}
ul li i {
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 5px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header y Navegación */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.logo img {
    margin-right: 10px;
}
.logo:hover {
    text-decoration: none;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
header nav ul li {
    margin-left: 20px;
}
header nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}
header nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 125, 50, 0.6);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-bg);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #1b5e20;
    text-decoration: none;
}

/* Secciones */
.section-padding {
    padding: 60px 0;
}
.section-padding-gray {
    padding: 60px 0;
    background-color: var(--light-bg);
}
.section-padding-accent {
    padding: 60px 0;
    background-color: var(--accent-color);
}
.section-padding-accent h2, .section-padding-accent p {
    color: var(--primary-color);
}
.section-padding-accent p {
    color: #1b5e20;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.feature-item {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.feature-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.highlight-box {
    background-color: var(--accent-color);
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    margin-top: 40px;
    border-radius: 5px;
}
.highlight-box p {
    margin-bottom: 0;
    color: #1b5e20;
}

/* Módulos ERP */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.module-item {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: left;
}
.module-item h4 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    margin-top: 15px;
}
.module-item h4 i {
    margin-right: 10px;
    font-size: 1.5rem;
}
.module-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Facturación Electrónica */
.feature-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}
.feature-image {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 8px;
}
.feature-content div {
    flex: 1;
}
.feature-content ul li i {
    color: var(--primary-color);
}

/* Beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.benefit-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}
.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.benefit-item h4 i {
    margin-right: 8px;
}

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-item {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
}
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}
.testimonial-item p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.testimonial-item h4 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    text-align: right;
}

/* Formulario de Contacto */
#contactForm {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 20px auto 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}
#contactForm button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #2d3a2d;
    color: var(--light-bg);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer p {
    margin-bottom: 0.5rem;
    color: var(--light-bg);
}

/* Botón Flotante de WhatsApp */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}
.whatsapp-flotante:hover {
    background-color: #1a9e48;
    text-decoration: none;
}

/* Responsividad */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin: 5px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .feature-content {
        flex-direction: column;
    }
    .feature-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}
