/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */
:root {
    --primary-color: #0E344B; /* Azul oscuro corporativo */
    --secondary-color: #9EC027; /* Verde lima (Kresko) */
    --dark-text: #212529;
    --light-text: #495057;
    --font-family: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--dark-text);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.color_28 {
    color: var(--secondary-color) !important;
}

/* ==========================================================================
   SECCIÓN HERO / TÍTULO
   ========================================================================== */
.page-hero {
    background-color: #f8f9fa;
    padding: 4rem 0 3rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.page-title {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    color: var(--light-text);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   SECCIÓN PRINCIPAL DE SERVICIOS
   ========================================================================== */
.services-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.service-group {
    margin-bottom: 4rem;
}

.service-group-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
}

.service-group-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* === GRID DE TARJETAS === */
.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1150px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* === TARJETA INDIVIDUAL === */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 330px;
    border: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    opacity: 0.25;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* === TÍTULO DE LA TARJETA === */
.card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.3rem;
    font-weight: 700;
    text-align: left;
}

/* === LISTA DE CARACTERÍSTICAS === */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 1.4rem;
    position: relative;
    text-align: left;
}

.card-features li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==========================================================================
   CTA / MISIÓN
   ========================================================================== */
.cta-mission-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 5rem auto;
}

.cta-title {
    color: #fff;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.cta-text {
    color: #e9f7ec;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.btn-kresko {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-kresko:hover {
    background-color: #8bb126;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   ERP SECTION
   ========================================================================== */
.erp-section {
    text-align: center;
    padding: 3rem 0;
}

.erp-title {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.erp-text {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 850px;
    margin: 0 auto 3rem;
}

.erp-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 3rem;
}

.erp-logos img {
    height: 50px;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.erp-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.6rem;
    }
    .service-group-title {
        font-size: 2rem;
    }
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .service-list-grid {
        grid-template-columns: 1fr;
        row-gap: 2rem; /* Espacio vertical entre tarjetas */
        padding: 1rem;
    }

    .service-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .card-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .card-icon {
        position: static !important;
        opacity: 0.4;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .card-features li {
        font-size: 0.9rem;
        line-height: 1.4;
        text-align: justify;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }
    .service-group-title {
        font-size: 1.4rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-features li {
        font-size: 0.85rem;
    }
}

.service-group {
    margin-bottom: 7rem;
}


/* === DISEÑO GENERAL === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 1. SECCIÓN HERO / TÍTULO */
.page-hero {
    background-color: #f8f9fa;
    padding: 4rem 0 3rem;
    text-align: center;
    /* Sombra sutil para dar profundidad, común en diseños Wix/modernos */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.page-title {
    color: var(--primary-color);
    font-size: 3.2rem; /* Ligeramente más grande */
    font-weight: 800; /* Más peso para el título */
    margin-bottom: 0.75rem;
}

.page-subtitle {
    color: var(--light-text);
    font-size: 1.2rem; /* Ligeramente más grande */
    max-width: 650px;
    margin: 0 auto;
}

/* 2. SECCIÓN PRINCIPAL DE SERVICIOS */
.services-section {
    padding: 5rem 0; /* Más espacio vertical */
    background-color: #ffffff;
}

.service-group {
    margin-bottom: 5rem; /* Más espacio entre grupos */
}

.service-group-title {
    font-size: 2.5rem; /* Más grande */
    color: var(--primary-color); /* Usar Primary Color para un impacto más fuerte */
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
}

/* DETALLE ESTÉTICO: SEPARADOR (Común en plantillas estructuradas) */
.service-group-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* LAYOUT DE TARJETAS (CSS GRID) */
.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Ajustado minmax */
    gap: 40px; /* Más espacio entre tarjetas */
    justify-content: center;
}

.service-card {
    background-color: #ffffff;
    padding: 2.5rem; /* Más padding */
    border-radius: 12px; /* Más redondeado */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none; /* Quitamos el borde para depender de la sombra */
}

.service-card:hover {
    transform: translateY(-8px); /* Más movimiento en hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-icon {
    height: 70px; /* Contenedor más grande */
}

.card-icon img {
    width: 70px; /* Icono más grande */
    height: 70px;
    margin-bottom: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    border-bottom: 4px solid var(--secondary-color); /* Borde más grueso */
    display: inline-block;
    padding-bottom: 8px;
    font-weight: 800;
    text-align: left;
    width: auto; /* Dejar que el borde se ajuste al título */
}

.card-features {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0 0 0;
    flex-grow: 1;
}

.card-features li {
    font-size: 1.1rem;
    color: var(--dark-text); /* Texto más oscuro para mayor contraste */
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
    text-align: left;
}

.card-features li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem; /* Checkmark más grande */
}

/* CTA / MISIÓN */
.cta-mission-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 2rem; /* Más padding */
    border-radius: 12px;
    margin: 5rem auto; /* Más margen */
}

.cta-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.cta-text {
    color: #e9f7ec;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-kresko {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px; /* Completamente redondo */
    padding: 15px 35px; /* Más padding */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5rem;
}

.btn-kresko:hover {
    background-color: #8bb126; /* Tono de verde ligeramente más oscuro */
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 3. SECCIÓN ERP */
.erp-section {
    text-align: center;
    padding: 3rem 0;
}

.erp-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.erp-text {
    font-size: 1.15rem;
    color: var(--light-text);
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.erp-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 3rem;
}

.erp-logos img {
    height: 50px; /* Logos ligeramente más grandes */
    object-fit: contain;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.erp-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* MEDIA QUERIES para responsividad */
@media (max-width: 1024px) {
    .service-list-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    .service-group-title {
        font-size: 2rem;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .service-list-grid {
        grid-template-columns: 1fr;
    }
}