/* RESET */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body{
    background: #f5f7fa;
    color: #222;
}

/* HEADER */

.header{
    width: 100%;
    background: #111827;
    color: white;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i{
    font-size: 32px;
    color: #f59e0b;
}

.logo h1{
    font-size: 28px;
}

.navbar a{
    text-decoration: none;
    color: white;
    margin-left: 25px;
    font-size: 17px;
    transition: 0.3s;
}

.navbar a:hover{
    color: #f59e0b;
}

/* HERO */

.hero{
    width: 100%;
    height: 90vh;
    background:
    linear-gradient(rgba(0,0,0,0.6),
    rgba(0,0,0,0.6)),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=1400&auto=format&fit=crop');

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-text{
    color: white;
    max-width: 600px;
}

.hero-text h2{
    font-size: 60px;
    margin-bottom: 20px;
}

.hero-text p{
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn{
    display: inline-block;
    padding: 15px 35px;
    background: #f59e0b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    transition: 0.3s;
}

.btn:hover{
    background: #d97706;
    transform: scale(1.05);
}

/* TITULOS */

.titulo{
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: #111827;
}

/* SERVICIOS */

.servicios{
    padding: 90px 8%;
}

.contenedor-servicios{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.card{
    background: white;
    width: 320px;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover{
    transform: translateY(-10px);
}

.card i{
    font-size: 50px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.card h3{
    margin-bottom: 15px;
    font-size: 25px;
}

.card p{
    line-height: 1.6;
}

/* PRODUCTOS */

.productos{
    padding: 90px 8%;
    background: #e5e7eb;
}

.contenedor-productos{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.producto{
    background: white;
    width: 320px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.producto:hover{
    transform: scale(1.03);
}

.producto img{
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.producto h3{
    padding: 15px;
    font-size: 24px;
}

.producto p{
    padding: 0 15px 15px;
    font-size: 20px;
    color: #f59e0b;
    font-weight: bold;
}

.producto button{
    width: 90%;
    margin: 15px;
    padding: 14px;
    border: none;
    background: #111827;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    transition: 0.3s;
}

.producto button:hover{
    background: #f59e0b;
}

/* FOOTER */

.footer{
    background: #111827;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 16px;
}

/* RESPONSIVE */

@media(max-width: 900px){

    .header{
        flex-direction: column;
        gap: 15px;
    }

    .hero-text h2{
        font-size: 40px;
    }

    .hero-text p{
        font-size: 18px;
    }

}
/* DATOS FERRETERIA */

.datos-ferreteria{
    padding: 90px 8%;
    background: #f3f4f6;
}

.contenedor-datos{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.dato{
    background: white;
    width: 260px;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.dato:hover{
    transform: translateY(-8px);
}

.dato i{
    font-size: 45px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.dato h3{
    margin-bottom: 15px;
    font-size: 24px;
    color: #111827;
}

.dato p{
    font-size: 17px;
    color: #4b5563;
    line-height: 1.6;
}