.search-box {
    display: flex;
    min-width: 250px;
}

.card, .tarjeta {
    transition: opacity 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background-color:#0d0d0d;
    color: #eee;
}

header {
    background: linear-gradient(145deg, #1a1a1a, #2b2b2b);
    padding: 15px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

 
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 55px;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
    color: #ffd000;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffd000;
}


.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    outline: none;
    background: #2a2a2a;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    padding: 8px 15px;
    border: none;
    background: #ffd000;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-weight: bold;
    transition: 0.3s;
}

.search-box button:hover {
    background: #ffea00;
}

.hero {
    background-image: url('../ferretería4.jpeg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    color: #ffd000;
}

.hero p {
    margin: 20px 0;
}

.btn-hero {
    background: #ffd000;
    color: #000000;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #ffea00;
    transform: scale(1.05);
}

.container {
    padding: 60px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #ffd000;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.card {
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid #333;
}

.card i {
    font-size: 40px;
    color: #ffd000;
    margin-bottom: 15px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 208, 0, 0.3);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    background: #1f1f1f;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #ffd000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #ffea00;
}

footer {
    background: #0d0d0d;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
}

@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .search-box {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .contact-container {
        flex-direction: column;
    }
}
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.tarjeta {
    border: 1px solid #ddd;
    padding: 15px;
    
    border-radius: 8px;
}

a {
    text-decoration: none;
    color: inherit;
}

.oculto-busqueda {
    display: none !important;
}

.hero-oculto {
    display: none;

}
