/* Contenedor del hero-header */
.hero-header {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-header .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Contenedor del contenido del hero */
.hero-body {
    position: absolute;
    left: 16.33%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* Título del hero */
.hero-title {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0 0 10px 0;
    line-height: 1.1;
}

/* Descripción del hero */
.hero-descripcion {
    color: white;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0;
    line-height: 1.3;
    opacity: 0.9;
}

/* Sección de marcas */
.marcas {
    background-color: #f8f9fa;
    padding: 40px 0;
    border-top: 3px solid #ddd;
    border-bottom: 3px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.marcas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1700px;
    /* Aumentado para pantallas grandes */
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
    /* Aumentado para mejor espaciado */
}

.marca-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    /* Aumentado para imágenes más grandes */
    min-width: 150px;
    /* Asegurar un tamaño mínimo */
    transition: transform 0.3s ease;
}

.marca-item:hover {
    transform: scale(1.1);
    /* Aumentado para un efecto más notable */
}

.marca-item img {
    max-height: 80px;
    /* Aumentado para imágenes más grandes */
    max-width: 200px;
    /* Aumentado para imágenes más grandes */
    width: 100%;
    /* Escalar proporcionalmente */
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.marca-item img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    /* Efecto adicional en la imagen */
}

/* Sección de descripción */
.descripcion {
    padding: 60px 0;
    margin: 0;
}

.col-6 {
    flex: 0 0 40%;
    max-width: 40%;
}

.col-6:last-child {
    flex: 0 0 60%;
    max-width: 60%;
}

.descripcion-titulo {
    color: #1B456F;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 700;
}

.descripcion-contenido {
    color: #333;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

.descripcion-contenido p {
    margin-bottom: 20px;
}

.descripcion-contenido p:last-child {
    margin-bottom: 0;
}

.banner-divider {
    width: 75%;
    height: 3px;
    background-color: #1B456F;
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Media Queries para Móvil - Certificaciones */

/* Tablets (768px y menores16) */
@media (max-width: 768px) {
    .hero-header {
        height: 280px;
    }

    .hero-body {
        left: 8%;
        right: 8%;
        width: 84%;
    }

    .marcas {
        padding: 30px 0;
    }

    .marcas-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        /* Reducido para tabletas */
        padding: 0 15px;
    }

    .marca-item {
        flex: 0 0 calc(33.33% - 20px);
        /* 3 elementos por fila */
        height: 80px;
        /* Reducido para tabletas */
        min-width: 120px;
    }

    .marca-item img {
        max-height: 60px;
        /* Reducido para tabletas */
        max-width: 160px;
        /* Reducido para tabletas */
    }

    .descripcion {
        padding: 50px 0;
    }

    .col-6,
    .col-6:last-child {
        flex: 1;
        max-width: 100%;
    }

    .descripcion-titulo {
        text-align: center;
    }

    .banner-divider {
        width: 60%;
        margin: 0 auto 25px auto;
    }
}

/* Móviles (600px y menores) */
@media (max-width: 600px) {
    .hero-header {
        height: 250px;
    }

    .hero-body {
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
    }

    .hero-title {
        margin-bottom: 8px;
    }

    .marcas {
        padding: 25px 0;
    }

    .marcas-container {
        flex-direction: column;
        gap: 25px;
        /* Reducido para móviles */
        padding: 0 20px;
        align-items: center;
    }

    .marca-item {
        flex: none;
        width: 80%;
        /* Ocupa más ancho en móviles */
        height: 70px;
        /* Reducido para móviles */
        max-width: 300px;
        /* Límite máximo para evitar desbordamiento */
    }

    .marca-item img {
        max-height: 55px;
        /* Reducido para móviles */
        max-width: 200px;
        /* Reducido para móviles */
        width: 100%;
        /* Escalar proporcionalmente */
    }

    .descripcion {
        padding: 40px 0;
    }

    .col-6,
    .col-6:last-child {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .descripcion-titulo {
        line-height: 1.5;
        margin-bottom: 20px;
        text-align: center;
    }

    .banner-divider {
        width: 80%;
        margin: 0 auto 25px auto;
    }

    .descripcion-contenido {
        line-height: 1.5;
        text-align: left;
        width: 100%;
    }
}

/* Móviles pequeños (400px y menores) */
@media (max-width: 400px) {
    .hero-header {
        height: 220px;
    }

    .hero-body {
        left: 3%;
        right: 3%;
        width: 94%;
    }

    .hero-title {
        line-height: 1.2;
    }

    .marcas-container {
        flex-direction: column;
        padding: 0 15px;
        gap: 20px;
        /* Reducido para móviles pequeños */
        align-items: center;
    }

    .marca-item {
        flex: none;
        width: 90%;
        /* Ocupa más ancho en móviles pequeños */
        height: 60px;
        /* Reducido para móviles pequeños */
        max-width: 280px;
        /* Límite máximo */
    }

    .marca-item img {
        max-height: 50px;
        /* Reducido para móviles pequeños */
        max-width: 180px;
        /* Reducido para móviles pequeños */
        width: 100%;
        /* Escalar proporcionalmente */
    }

    .col-6,
    .col-6:last-child {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .descripcion-titulo {
        line-height: 1.4;
        margin-bottom: 18px;
        text-align: center;
    }

    .descripcion-contenido {
        line-height: 1.4;
        width: 100%;
    }

    .descripcion-contenido p {
        margin-bottom: 15px;
    }

    .banner-divider {
        width: 90%;
        height: 2px;
        margin: 0 auto 20px auto;
    }
}