html{
    width: 100%;
}

body{
    font-family:'Times New Roman', Times, serif;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background-color:#cccccc;
}

.text-bold{
    font-weight: bold;
}

.whatsapp-button-link{
    width: 40%;
}

.whatsapp-button-link>img{
    width: 100%;
}

/*header*/
.header{
    margin: 0;
    background-image: url(/images/backgrounddevittaluminio.jpg);
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
}

.header-opacity{
    background-color: #8d111166;
    width: 100%;
    height: 100%;
    text-shadow: 0 0 20px black;
    
}

.header__tittle{
    color: #eee;
    height: 35%;
    text-align: center;
    padding-top: 50px;
}

.header__tittle h1{
    font-size: 65px;
    font-weight: bold;
}

.header__tittle p{
    font-size: 30px;
    margin-top: 5%;
    font-weight: bold;
}

.header__content{
    height: 65%;
    display: flex;
    justify-content: space-around;
}

.header__info{
    font-size: 35px;
    min-width: 30%;
    height: 100%;
    padding-bottom: 5%;
    color: #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20%;
    align-items: center;
}

.header__info:last-child{
    justify-content:center;
    position: relative;
}

.header__info:last-child .whatsapp-button-link{
    position:absolute;
    bottom: 30%;
}

.header__info h2{
    font-size: 45px;
    font-weight: bold;
}


/*Navbar*/
nav ul li a{
    border-radius: 8px;
}

.nav{
    display: flex;
    color: #eee;
    background-color: rgb(255, 10, 10);
    align-items: center;
    justify-content: space-around;
    max-width: 100vw;
    position: sticky;
    top: 0px;
    z-index: 10;
}

.nav__img{
    width: 10rem;
    height: 10rem;
    margin-left: 25%;
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 0;
}

.nav__title{
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 0;
}

.nav__navbar{
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 0;
    max-width: 30%;
}

.navbar-dark .nav-link {
    color: #eee !important;
    font-size: 1.6rem;
}


.navbar-dark .nav-link:hover {
    background-color: rgba(220, 0, 0, 0.75);
}


/*main*/

.main__inicio{
    width: 100%;
    height: 11em;
    background: linear-gradient(#222, #555);
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #eee;
    font-size: 55px;
}

.main__inicio img{
    width: 30%;
    height: 85%;
    object-fit: cover;
    border-radius: 10px;
    border-style: solid;
    border-color: #333;
    box-shadow: 0 0 55px rgba(172, 172, 172, 0.5);
}


.main__inicio p{
    width: 40%;
}


.titulo-productos{
    
    color: rgba(209, 0, 0, 0.9);
    background-color: #eee;
    height: 200px;
    text-align: center;
    padding-top: 60px;
}

.titulo-productos h2{
    font-size: 60px;
    text-shadow: 0 0 55px #222;
}

.main-content{
    width: 100%;
    background-color: #eee;
    padding-top: 20px;
    padding-bottom: 100px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 0;
}

.card-da{
    width: 22em;
    height: 40em;
    /*background-color: #fc3a3a60;*/
    padding: 0 2em;
    padding-bottom: 1em;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content:space-around ;
    align-items: center;
    border-style: solid;
    border-width: 3px;
    border-color: #f8b9b9;
    border-radius: 10px;
    box-shadow: 0 0 40px #9b9b9b;

}

.card-da__img{
    width: 20em;
    height: 15em;
    
}

.card-da__img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-da__tittle{
    font-size: 2.5em;
    color: rgba(255, 0, 0, 0.8);
    text-align: center;
    
}

.card-da__text{
    height: 30%;
    color: #595959;
    overflow: hidden;
    text-overflow: ellipsis;
}


.card-da__mas-info button{
    width: 150px;
    height: 40px;
    color:#eee;
    font-weight: bold;
    background-color: rgba(255, 0, 0, 0.65);
    border: #777 solid 1px;
    border-radius: 8px;
    /*Transicion al hover*/
    transition-property: width, height, color, font-weight, background-color, border;
    transition-duration: .5s;
}


.card-da__mas-info button:hover{
    width: 160px;
    height: 45px;
    color: #222;
    font-weight: bolder;
    background-color: #eee;
    border: rgba(255, 0, 0, 0.65) solid 2px;
}

.main-content>h2{
    font-size: 45px;
}


/*----------CARDS PARTE DE PRUEBA DE CHAT GPT--------------*/
.card-da.expanded {
    height: auto;
    max-height: 1500px;
    transition: all 0.5s ease;
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.4);
    transform: scale(1.03);
    z-index: 5;
    position: relative;
}

.card-da__text.expanded {
    height: auto;
    overflow: visible;
    text-overflow: unset;
    transition: height 0.5s ease;
}

.card-da__mas-info .close-btn {
    margin-top: 10px;
    width: 150px;
    height: 40px;
    color: #eee;
    font-weight: bold;
    background-color: #888;
    border: #555 solid 1px;
    border-radius: 8px;
    display: none;
}

/* Mostrar/ocultar botones según estado */
.card-da.expanded .card-da__mas-info .expand-btn {
    display: none;
}

.card-da.expanded .card-da__mas-info .close-btn {
    display: inline-block;
}
/*-----------------------------------------------------------*/

/*contacto*/
.contacto{
    background-color: rgba(247, 42, 42, 0.6);
    padding-top: 100px;
    padding-bottom: 100px;
}
.contact-tittle h3{
    color: #333;
    font-size: 55px;
    text-align: center;
    margin-bottom: 100px;

}

.contact-cards{
    display: flex;
    justify-content: space-evenly;
}

.contact-card {
    width: 160px;
    height: 160px;
    margin-bottom: 100px;
    text-align: center;
}

.contact-card--tamaño-xl{
    width: 35%;
}

.contact-card__image{
    width: 90%;
    height: 90%;
    margin: auto;
    margin-bottom: 10px;
}

.contact-card__image--centrado{
    width: 160px;
    margin: auto;
}

.contact-card__image img{
    width: 100%;
    height: 100%;
}

.contact-card__content{
    color: #222;
    font-size: 16px;
}

.contact-card__content a{
    color: inherit;
    transition-property: font-size, color;
    transition-duration: 0.5s;
}

.contact-card__content a:hover{
    font-size: 20px;
    color: #eee;
}

.separador-horizontal{
    width: 80%;
    margin-left: 10%;
    margin-bottom: 50px;
    height: 1px;
    background-color: #555;
}


.contact-card__content li{
    list-style:"*";
}

.contact-card__content ul{
    margin: 0;
    padding: 0;
}

/*Horario de atencion*/

.horario-de-atencion{
    width: 100%;
}

.horario-de-atencion__encabezado{
    display: flex;
    justify-content: space-around;
}

.horario-de-atencion__lunes-a-viernes, .horario-de-atencion__sabados{
    display: flex;
    justify-content: space-around;
}


/*FOOTHER*/
.footer{
    background-color: #222;
    padding-top: 5%;
    padding-bottom: 16px;
    color: #eee;
}

.footer-head{
    text-align: center;
    color: #eee;
}

.footer-head__tittle h2{
    font-size: 3.5em;
}

.footer-head__description{
    font-size: 1.5em;
}

.footer-content{
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 5%;
}

.footer-content h3{
    text-align: center;
    color: #eee;
    font-size: 2em;
    margin-bottom: 40px;
    margin-top: 5%;
}

.footer p{
    text-align: center;
}

.footer-content__container-map{
    width: 600px;
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

.footer-content__container-map iframe{
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    /*header*/
    .header__tittle{
    height: 25%;
    }
    
    .header__tittle h1{
    font-size: 55px;
    }

    .header__tittle p{
    font-size: 25px;
    margin-top: 5%;
    font-weight: bold;
    }

    .header__content{
        height: 75%;
        align-items: center;
    }

    .header__info{
        font-size: 45px;
        min-width: 30%;
        height: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .header__info:first-child{
        display: none;
    }


    .header__info:last-child .whatsapp-button-link{
        bottom: -15px;
    }


    /*main*/
    .main__inicio{
        flex-direction: column;
        justify-content:space-evenly;
    }

    .main__inicio img{
        width: 75%;
        height: 300px;
        box-shadow: #8881;
        object-position: 0px -30px;
        order: 1;
    }

    .main__inicio p{
        width: 80%;
        font-size: 35px;
        text-align: center;
        order: 0;
    }

    /*FOOTER*/
    .footer-content{
        flex-direction: column;
        align-items: center;
    }

    .footer-content h3{
        margin-top: 10%;
    }

    .footer-content__container-map{
        width: 90vw; /* 90% del ancho visible */
        height: 60vw; /* proporcional */
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {

    /*Navbar*/
    .nav__title{
        display: none;
    }







    /*main*/
    .card-da{
        width: 20em;
        height: 35em;
    }

    .card-da__img{
    width: 16em;
    height: 12em;
    }

    .main__inicio img{
        width: 90%;
        object-position: 0 0;
    }


    /*contacto*/

    /*.contact-cards{
        flex-direction: column;
    }*/

    .contact-tittle h3{
        font-size: 42px;
    }

    .contact-cards{
        flex-wrap: wrap;
    }

    .contact-card {
        width: 140px;
        height: 140px;
        
    }

    .contact-card--tamaño-xl{
        width: 35%;
    }

    .contact-card__image{
        width: 50%;
        height: 50%;
    }

    .contact-card__image--centrado{
        width: 70px;
    }


    .contact-card__content{
        font-size: 12px;
    }

    
    
    /*Horario de atencion*/

    .horario-de-atencion__encabezado h4, h5{
        font-size: 16px;
        
    }

    .contact-card{
        
        
    }
    



}