/* custom fonts */
@font-face {
    font-family: M-Regular;
    src: url('/assets/fonts/Montserrat-Regular.ttf');
}
@font-face {
    font-family: M-Light;
    src: url('/assets/fonts/Montserrat-Light.ttf');
}
@font-face {
    font-family: M-Medium;
    src: url('/assets/fonts/Montserrat-Medium.ttf');
}
@font-face {
    font-family: M-Bold;
    src: url('/assets/fonts/Montserrat-Bold.ttf');
}


body{
    background-image: url('/assets/img/pattern.png');
    background-size: cover;
}

footer{
    background-color: #474f5c;
    font-family: M-Regular;
}
.btn{
    font-family: M-Bold !important;
}
#whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease-in-out;
    z-index: 100;
}

#whatsapp-btn img {
    width: 30px;
}

#whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}
/* Custom Styles */
.navbar-start {
    /* background-color: #474f5c; */
    background-color: #474f5c;
    padding:0px;
    transition: 0.3s;
}
.navbar-end {
    /* background-color: #474f5c; */
    background-color: #474f5c;
    padding:0px;
    margin:10px;
    border-radius: 20px;
    transition: 0.3s;
}
.nav-link{
    color:aliceblue;
    font-family: M-Regular;
    font-size:14px;
    transition: 0.3s;
}
.nav-link:hover{
    transition: 0.3s;
    color:azure;
    font-family: M-Medium;
}
.nav-link-active{
    font-family: M-Bold;
    text-decoration:underline red 2px;
}
.nav-link-active:hover{
    font-family: M-Bold;
    text-decoration:underline red 2px;
}
.nav-logo{
    width: 150px;
}
.navbar-toggler{
    border:none;
}
.nav-bar-icon{
    color:aliceblue;
    font-size:20px;
}
.header {
    height: 80vh;
    background-image: url('/assets/img/h.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    margin-top:0px;
    margin-right:0px;
    margin-left:0px;
}

.header h1{
    font-family: M-Bold;
    color:white;
    padding:10px;
    border-radius: 10px;
    font-size:50px;
    margin:0px;
    opacity: 0;
}
.header h1 b{
    color: #ffffff;
    text-shadow: 10px 10px 5px #474f5c7f;
}
.header h2{
    font-family: M-Bold;
    color:white;
    padding:10px;
    border-radius: 10px;
    opacity: 0;
}

@keyframes appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



.main-button{
    text-decoration: none;
    border:none;
    background-color: #fe0000;
    color:aliceblue;
    font-size:20px;
    font-family: M-Medium;
    padding:10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 10px;
    border-top-left-radius: 2px;
    display: inline-block;
    transition: 0.3s;
}
.main-button:hover{
    background-color:#7b8aa4;
    transform: scale(1.05);
}
.fade-in-anim{
    opacity: 0;
    animation: appear 1.5s ease-out forwards;
}


/* paddings y margins */
.mt-20{
    margin-top:20px;
}

.header h1, .header h2 {
    animation: appear 1.5s ease-out forwards;
}

/* Diferente delay para h2 para que aparezca después */
.header h2 {
    animation-delay: 0.5s;
}

.main-button{
    animation-delay: 1s;
}

/* seccion productos */
.products{
    min-height: 100vh;
    background-color: white;
    padding-bottom:40px;
    border-radius: 20px;
}
.section-title{
    font-family: M-Medium;
    color:#474f5c;
    margin:0px;
}
.section-title b{
    color:black;
}
.bordered-title{
    border-radius: 20px;
    box-shadow: 1px -30px 20px #474f5c1d;
    padding:20px;
    margin-top:20px;
}

.bordered-box{
    border-radius: 20px;
    padding:20px;
}

.product-img{
    width: 100%;
    border-radius: 20px;

}

.link-barandillas {
    box-shadow: 1px 1px 20px #474f5ca9;
    border-radius: 20px;
    width: 70%;
    position: relative;
    display: inline-block; /* Asegura que el contenedor se comporte correctamente */
    overflow: hidden; /* Evita que la capa se salga del botón */
}

.link-barandillas::after {
    content: 'VER CATÁLOGO DE\A BARANDILLAS'; /* Texto que aparecerá */
    position: absolute;
    white-space: pre-line;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    color: white;
    font-size: 18px;
    font-family: M-Bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 20px;
    transition: opacity 0.3s ease-in-out;
}

.link-barandillas:hover::after {
    opacity: 1;
}

.link-escaleras {
    box-shadow: 1px 1px 20px #474f5ca9;
    width: 70%;
    border-radius: 20px;
    position: relative;
    display: inline-block; /* Asegura que el contenedor se comporte correctamente */
    overflow: hidden; /* Evita que la capa se salga del botón */
}

.link-escaleras::after {
    content: 'VER CATÁLOGO DE\A ESCALERAS'; /* Texto que aparecerá */
    position: absolute;
    white-space: pre-line;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    color: white;
    font-size: 18px;
    font-family: M-Bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border-radius: 20px;
    transition: opacity 0.3s ease-in-out;
}

.link-escaleras:hover::after {
    opacity: 1;
}

.about{
    background-image: url('/assets/img/header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top:40px;
    padding-bottom:40px;
}
.about-img{
    width: 100%;
}
.about h4{
    font-family: M-Medium;
}
.about .about-text{
    font-family: M-Regular;
}
.bordered-info{
    background-color: black;
    min-height: 100px;
    margin-bottom:20px;
    border-radius: 20px;
    color:aliceblue;
    font-family: M-Medium;
    display: flex;
    padding:20px;
    align-items: center;
    font-size:20px;
}
.bordered-info p{
    margin:0px;
    margin-left:20px;
}

.bordered-info i{
    font-size:40px;
    color:#7b8aa4;
}

.bordered-white-row{
    background-color: white;
    border-radius: 20px;
    padding:20px;
}
.barandillas-header {
    height: 50vh;
    background-image: url('/assets/img/h.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    margin-top:0px;
    margin-right:0px;
    margin-left:0px;
}

.barandillas-header h1{
    font-family: M-Bold;
    color:white;
    padding:10px;
    border-radius: 10px;
    font-size:40px;
    margin:0px;
    opacity: 0;
}
.barandillas-header h1 b{
    color: #ffffff;
    text-shadow: 10px 10px 5px #474f5c7f;
}
.barandillas-header h2{
    font-family: M-Bold;
    color:white;
    padding:10px;
    border-radius: 10px;
    opacity: 0;
}
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.model-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 300px;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.model-image {
    height: 180px;
    overflow: hidden;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.model-image2 {
    height: 280px;
    overflow: hidden;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.model-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.model-name {
    padding: 15px;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.image-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: 0.3s ease;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

.thumbnail:hover {
    border: 2px solid #333;
}

.product-info {
    padding: 10px;
}

.product-info h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.product-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}
.item-desc p{
    font-size:16px;
    font-family: M-Medium;
}
.item-desc p b{
    font-family: M-Bold;
    font-size:20px;
}



/* responsive */
@media(max-width:700px){
    .header{
        max-height: 60vh;
    }
    .bordered-box{
        padding:0px;
        margin:0px;
    }
    .bordered-box a{
        width: 100%;
    }
    .products{
        min-height: 50vh;
    }
}
