body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.industrie-cards {
    font-family: "Poppins", sans-serif;
    color: rgb(255, 255, 255);
    text-align: center;
    padding-top: 100px;
    margin-top: 20px;
    background: radial-gradient(circle at center, #384e81, #0f1c3a, #0b1529);

}

.industrie-cards h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.cards-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    width: 250px;
    background: rgba(2, 18, 82, 0.712);
    border-radius: 18px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: 0.2s ease-in-out;
    cursor: pointer;
    color: #fff;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card span {
    display: block;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.card:hover {
    transform: scale(1.05);
    background: rgba(194, 208, 246, 0.489);
    color: #000000;
   
}

.next-btn {
    display: inline-block;
    background: rgba(2, 18, 82, 0.712);
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    margin-top: 50px;
}

.next-btn:hover {
    background: #d4ddfe;
    transform: scale(1.05);
    color: #01123f;
}

/*-------PRODUCTOS-----*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 49, 85, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 0;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.modal-content {
    width: 90%;
    max-width: 1000px; 
    background: #ffffff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.25s ease-out;
    position: relative;
    color: rgb(5, 36, 77);
    max-height: 90vh;
    overflow-y: auto;

}


.modal-layout-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; 
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(3, 12, 57);
    transition: 0.2s;
}

.close-btn:hover {
    transform: scale(1.15);
    color: #99daff;
}


/* --- COLUMNA IZQUIERDA (Texto) --- */
.modal-left-content {
    flex: 1; 
    text-align: left; 
}

.modal-left-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-left-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3e5b77; 
    text-align: justify;
}

.divider {
    width: 80px;
    height: 4px;
    background: #99c7ff;
    margin-bottom: 20px;
    border-radius: 2px;
}

/* --- COLUMNA DERECHA (Carrusel) --- */
.modal-right-content {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}


.carousel-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    text-align: center;
    align-items: center;

}


.product-card-visual {
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); 
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 400px; 
    width: 90%;
}

.product-display img {
    width: 90%;
    height: auto;
    max-height: 380px; 
    object-fit: contain;
    background: transparent;
    transition: transform 0.3s ease;
}


.product-display h3 {
    margin-top: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #002b5c; 
    text-align: center;
}


.nav-arrow {
    background: transparent;
    border: none;
    color: #002b5c;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 40%; 
    z-index: 10;
    transition: 0.3s;
}

.nav-arrow:hover {
    color: #67adf7;
    transform: translateY(-50%) scale(1.2) !important;
}


.prev-btn { 
    left: -30px;
}
.nextc-btn { 
    right: -30px; 
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* --- RESPONSIVE (Para Celulares) --- */
@media (max-width: 850px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }

    
    .modal-layout-container {
        flex-direction: column; 
        gap: 20px;
    }

    /* COLUMNA DERECHA (Ahora arriba) */
    .modal-right-content {
        order: 1; 
        width: 100%;
    }

    .carousel-container {
        max-width: 100%;
    }

    .product-card-visual {
        min-height: 250px;
        width: 85%; 
        margin: 0 auto 10px auto;
        padding: 15px;
    }

    .product-display img {
        max-height: 200px;
    }

    .product-display h3 {
        font-size: 1.3rem;
        margin-top: 10px;
        margin-bottom: 20px; 
    }

    /* COLUMNA IZQUIERDA (Ahora abajo) */
    .modal-left-content {
        order: 2;
        text-align: center;
    }

    .modal-left-content h2 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .divider {
        margin: 0 auto 15px auto;
        width: 50px;
    }

    .modal-left-content p {
        font-size: 1rem;
        text-align: center; 
        line-height: 1.5;
    }

    .nav-arrow {
        top: 40%;
    }
    .prev-btn { left: 0px !important; }
    .nextc-btn { right: 0px !important; }

    .close-btn {
        top: 10px;
        right: 15px;
    }
}



/* Pantallas medianas  */
@media (max-width: 1100px) {
    .modal-content {
        max-width: 85%;
        padding: 40px;
    }

    .product-display img {
        height: 420px;
    }

    .nav-arrow {
        font-size: 1.3rem;
        padding: 10px;
    }

    .prev-btn { left: -30px; }
    .nextc-btn { right: -30px; }
}



/* Teléfonos grandes */
@media (max-width: 600px) {
    .modal-content {
        padding: 22px;
        border-radius: 20px;
        max-height: 88vh;
    }

    .modal-left-content h2 {
        font-size: 2rem;
    }

    .modal-left-content p {
        font-size: 1rem;
    }

    .product-display img {
        height: 280px;
        border-radius: 15px;
    }

    .nav-arrow {
        font-size: 1.2rem;
        padding: 8px;
        top: 45%;
    }

    .prev-btn { left: -5px !important; }
    .nextc-btn { right: -5px !important; }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 18px;
        border-radius: 18px;
    } 
    .product-display img {
        width: 100%;
        max-height: 55vh;
        object-fit: contain;
    }

    .product-display img {
        height: 220px;
    }

}

/* Mini teléfonos */
@media (max-width: 360px) {

    .product-display img {
        height: 190px;
    }
}

