.industries-container {
    background-color: #003368;
    text-align: center;
    padding-top: 40px;
    color: white;
}

.industries-container h1,
.industries-container p {
    color: white;
}

h1 {
    font-size: 58px;
}

p {
    font-size: 20px;
}

.industries-container-text p {
    color: white;
    padding: 25px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estructura general */
.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 75px 5px;
    justify-content: center;
}

.industry {
    position: relative;
    width: 370px;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.industry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.industry .overlay-industries {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 122, 255, 0.90);
    color: white;
    text-align: left;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.industry:hover .overlay-industries {
    opacity: 1;
}

.industry .text {
    display: none;
}

.industry:hover .overlay-title {
    opacity: 0;
}

.overlay-industries .industry-title {
    font-size: 31px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 30px 0px 0px 25px;
}

.overlay-industries p {
    font-size: 17px;
    margin: 0 0 20px;
    max-width: 80%;
    font-weight: 300;
    padding: 2px 15px 0px 25px;
}

.industry .icon {
    width: 112px;
    height: 112px;
    margin-top: 10px;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
    padding-left: 25px;
}

.overlay-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.industry-title-visible {
    color: white;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
}

/* ─────────────────────────────────────────────
   📱 MÓVIL: Vertical una debajo de otra y contenido centrado
───────────────────────────────────────────── */
@media (max-width: 767px) {
    h1 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    .industries {
        flex-direction: column;
        align-items: center;
        padding: 30px 10px;
        gap: 20px;
    }

    .industry {
        width: 90%;
        max-width: 370px;
        height: 300px;
    }

    .industry img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .industry .overlay-industries {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .overlay-industries .industry-title {
        font-size: 20px;
        padding: 0;
        margin-bottom: 10px;
    }

    .overlay-industries p {
        font-size: 14px;
        padding: 0;
        margin: 0;
    }

    .industry .icon {
        width: 70px;
        height: 70px;
        padding: 0;
        margin-bottom: 10px;
    }

    .industry-title-visible {
        font-size: 20px;
        padding: 0;
        margin: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .industries {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 40px 10px;
    }

    .industry {
        width: 300px;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .industry img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .overlay-industries {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .overlay-industries .industry-title {
        font-size: 24px;
        margin-bottom: 10px;
        padding: 0;
    }

    .overlay-industries p {
        font-size: 15px;
        margin: 0 0 10px;
        padding: 0;
        max-width: 90%;
    }

    .industry .icon {
        width: 70px;
        height: 70px;
        margin-top: 10px;
        object-fit: contain;
        display: block;
    }
}