/* =========================
   FERRETERÍA JAVI
   Hoja de estilos principal
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background-color:#f5f5f5;
    color:#333;
    line-height:1.6;
}

header{
    background-color:#111;
    color:white;
    text-align:center;
    padding:30px;
    border-bottom:5px solid orange;
}

header h1{
    color:orange;
    font-size:42px;
    margin-bottom:10px;
}

header p{
    font-size:18px;
}

nav{
    background-color:orange;
    text-align:center;
    padding:15px;
}

nav a{
    color:black;
    text-decoration:none;
    font-weight:bold;
    margin:0 15px;
    font-size:16px;
}

nav a:hover{
    color:white;
}

main{
    width:90%;
    max-width:1200px;
    margin:25px auto;
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
}

.banner img{
    width:100%;
    border-radius:10px;
}

h2{
    color:green;
    margin-top:25px;
    margin-bottom:15px;
}

h3{
    color:#ff7b00;
    margin-top:20px;
}

p{
    margin-bottom:15px;
}

.seccion{
    margin-top:30px;
}

.imagen{
    width:100%;
    margin:20px 0;
}

.imagen img{
    width:100%;
    border-radius:10px;
}

ul, ol{
    margin-left:30px;
    margin-bottom:20px;
}

li{
    margin-bottom:8px;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    margin-bottom:20px;
}

table, th, td{
    border:1px solid #ccc;
}

th{
    background-color:green;
    color:white;
    padding:12px;
}

td{
    padding:10px;
    text-align:center;
}

tr:nth-child(even){
    background-color:#f2f2f2;
}

video{
    width:100%;
    border-radius:10px;
    margin-top:15px;
}

form{
    margin-top:20px;
}

label{
    font-weight:bold;
}

input,
textarea{
    width:100%;
    padding:12px;
    margin-top:5px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
}

button{
    background-color:green;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:5px;
    cursor:pointer;
    font-size:16px;
}

button:hover{
    background-color:#0a7c0a;
}

.tarjetas{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-top:20px;
}

.tarjeta{
    flex:1;
    min-width:250px;
    background:#f9f9f9;
    border-left:5px solid orange;
    padding:20px;
    border-radius:8px;
}

.tarjeta h3{
    margin-bottom:10px;
}

footer{
    background-color:#111;
    color:white;
    text-align:center;
    padding:25px;
    margin-top:30px;
}

footer p{
    margin:5px;
}

.boton-whatsapp{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    color:white;
    padding:15px 20px;
    border-radius:50px;
    text-decoration:none;
    font-weight:bold;
    box-shadow:0 0 10px rgba(0,0,0,0.3);
}

.boton-whatsapp:hover{
    background:#1da851;
}

.sucursal{
    background:#f7f7f7;
    padding:15px;
    margin-top:10px;
    border-left:4px solid green;
}

@media(max-width:768px){

    header h1{
        font-size:30px;
    }

    nav a{
        display:block;
        margin:10px 0;
    }

    .tarjetas{
        flex-direction:column;
    }
}

.boton-facebook{
    display:inline-block;
    background-color:#1877F2;
    color:white;
    text-decoration:none;
    padding:12px 20px;
    border-radius:5px;
    font-weight:bold;
}

.boton-facebook:hover{
    background-color:#0d65d9;
}