/* Variables CSS */
:root {
    --primary-color: #0056b3; /* Un azul corporativo */
    --secondary-color: #28a745; /* Un verde para acentos o CTAs */
    --text-color: #333;
    --light-text-color: #666;
    --background-light: #f8f9fa;
    --background-dark: #343a40;
    --white-color: #fff;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Reset y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--background-light);
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3.2em;
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1em;
    color: var(--light-text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%); /* No funciona directamente en CSS, usar un color más oscuro */
    background-color: #004494;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Header */
.header {
    background-color: var(--white-color);
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 40px; /* Ajusta el tamaño del logo */
}

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

.header .nav ul li {
    margin-left: 30px;
}

.header .nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.header .nav ul li a:hover {
    color: var(--primary-color);
}

.btn-header {
    margin-left: 30px;
    padding: 10px 20px;
    font-size: 0.9em;
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-background.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Ocupa al menos el 70% de la altura de la vista */
}

.hero h1 {
    color: var(--white-color);
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subtitle {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-image {
    margin-top: 50px;
}

.hero-image img {
    max-width: 90%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Features Section */
.features h2, .features .section-description {
    color: var(--primary-color); /* Adaptar al fondo */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i.icon { /* Estilo para iconos, si usas Font Awesome */
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

/* Ejemplo de iconos personalizados con CSS si no usas Font Awesome */
.icon-catalog::before { content: '🗂️'; } /* Puedes usar emojis o SVG */
.icon-inventory::before { content: '📦'; }
.icon-orders::before { content: '📋'; }
.icon-custom::before { content: '⚙️'; }
.icon-analytics::before { content: '📊'; }
.icon-integration::before { content: '🔗'; }
.icon-check::before { content: '✅'; color: var(--secondary-color); margin-right: 10px; } /* Para listas en 'solution' */


.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--light-text-color);
}

/* Benefits Section */
.benefits {
    background-color: var(--background-light);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: center;
}

.benefit-item img {
    max-width: 120px;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.benefit-item p {
    color: var(--light-text-color);
}


/* Solution Section */
.solution-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* Para responsive */
}

.solution-text {
    flex: 1;
    min-width: 400px; /* Asegura que no se haga demasiado pequeño */
}

.solution-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.solution-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.solution-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.solution-text ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.solution-image {
    flex: 1;
    min-width: 400px; /* Asegura que no se haga demasiado pequeño */
    text-align: center;
}

.solution-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}


/* CTA Final Section */
.cta-final {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 80px 0;
}

.cta-final h2 {
    color: var(--white-color);
    font-size: 2.8em;
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.cta-final .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-final .btn-primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    background-color: #218838;
}


/* Contact Section */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.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 #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: red;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--light-text-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer p {
    margin: 0;
}

.footer .social-links a {
    color: var(--white-color);
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--primary-color);
}

.location {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}


/* Responsive Design */
@media (max-width: 992px) {
    .header .nav {
        display: none; /* Oculta el menú de navegación para dispositivos más pequeños */
    }

    .header .container {
        justify-content: center; /* Centra el logo y el botón de contacto */
    }
    .header .btn-header {
        margin-left: 20px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero .subtitle {
        font-size: 1.1em;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 80%;
        margin: 0 auto;
    }

    h2 {
        font-size: 2em;
    }

    .solution-content {
        flex-direction: column;
        text-align: center;
    }

    .solution-text h2 {
        text-align: center;
    }

    .solution-image {
        order: -1; /* Mueve la imagen arriba en móviles */
    }

    .cta-final h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero {
        padding: 80px 0;
    }

    .header .logo img {
        height: 35px;
    }

    .solution-text, .solution-image {
        min-width: unset; /* Permite que ocupen el ancho total */
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header .btn-header {
        padding: 8px 15px;
        font-size: 0.8em;
        margin-left: 10px;
    }
    .hero h1 {
        font-size: 1.8em;
    }
    .hero .subtitle {
        font-size: 1em;
    }
    .btn-large {
        padding: 12px 25px;
        font-size: 1em;
    }
    .feature-item, .benefit-item {
        padding: 20px;
    }
}