header{
    height: 400px;
    margin-top: 0;
    margin-bottom: 25px;
    background-color: #ccc;
    background-image: url(../imagenes/banner_index.jpg);
    background-repeat: no-repeat;
    background-position: left 28% center;
    background-size: cover;
}


.carousel, .carousel-inner, .carousel-item, .carousel img{
    height: 350px !important;
    margin-bottom: 30px;
}

.carousel img{
    object-fit: cover;
}

main{
    height: auto;
    padding: 5px;
    margin-bottom: 50px;
}

main h1{
    text-align: center;
    font-weight: bolder;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

#productos{
    width: 98%;
    height: auto;
    margin: auto;
    margin-bottom: 25px;
}

#productos #detectores, #productos #tablas{
    width: 100%;
    height: 250px;
    background-color: thistle;
    margin-bottom: 40px;
    padding: 30px 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#productos #detectores{background-image: url(../imagenes/detectores/detectores.jpg);}
#productos #tablas{background-image: url(../imagenes/tablas/tablas.jpg);}

#productos #detectores h2, #productos #tablas h2{
    width: 100%;
    padding: 13px 0;
    font-size: 1.45rem;
    text-align: center;
    color: white;
    background-color: black;
}


#banner{
    width: 100%;
    height: 150px;
    margin: 40px auto 5px auto;
    background-color: gray;
    background-image: url(../imagenes/banner.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
}

#banner #t1{
    width: auto;
    height: auto;
    color: #fff;
    font-size: 30px !important;
    font-weight: bold;
    text-align: center;
    position:absolute;
    right: 15px;
    top: 35px;
}

#banner p{
    width: auto;
    height: auto;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    position:absolute;
    right: 15px;
    bottom:25px;
}

#banner #t1, #banner p{text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.8);}


/*///////////////////////////////////////////////////*/

@media screen and (min-width:768px){
    header{
    height: 500px;
    margin-top: 62px;
    }

    #productos{width: 65%;}

    main{margin-bottom: 30px;}
}


@media screen and (min-width:992px){
}
    
@media screen and (min-width:1200px){
    .carousel, .carousel-inner, .carousel-item, .carousel img{
    height: 500px !important;
    margin-bottom: 30px;
    }

    main{
    width: 80%;
    margin: auto; 
    }

    #productos{
    width: 100%;
    height: auto;
    margin-bottom: 50px;
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content: center;
    }

    #productos #detectores, #productos #tablas{
    width: 45%; 
    height: 300px;
    margin-bottom: 0;
    padding: 60px 0 3px 0;  
    transition: 0.6s; 
    }

    #productos #detectores:hover, #productos #tablas:hover{
    box-shadow: 0 20px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.03);
    transform: translateY(-10px);  
    }

    #productos #detectores h2, #productos #tablas h2{
    width: 100%;
    padding: 20px 0;
    font-size: 1.45rem;
    text-align: center;
    color: white;
    background-color: black;
    }

    #banner{
    width: 93%;
    height: 175px;
    margin: 40px auto 35px auto;
    background-position: bottom -200px center;
    background-size: cover;
    position: relative;
    box-shadow: 1px 6px 8px rgba(0, 0, 0, 0.5);
    }

    #banner #t1{
    width: auto;
    height: auto;
    color: #fff;
    font-size: 42px !important;
    font-weight: bold;
    text-align: center;
    position:absolute;
    right: 15px;
    top: 35px;
    }
    
    #banner p{
    width: auto;
    height: auto;
    color: #fff;
    text-align: center;
    font-size: 26px !important;
    font-weight: bold;
    text-align: left;
    position:absolute;
    right: 15px;
    bottom:25px;
    }
    
    #banner #t1, #banner p{text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.8);}
}