/* Paleta de Colores y Gradientes */
:root {
    --blue: #004c8c;
    --gray: #4a4a4a;
    --orange: #ff6b00;
    --light-gray: #f4f4f4;

    /* Gradientes */
    --gradient-blue: linear-gradient(to right, #004c8c, #1a2a3a);
    --gradient-orange: linear-gradient(to right, #ff6b00, #ff4c00);
    --gradient-gray: linear-gradient(to right, #4a4a4a, #333333);
}

/* Base y Tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--gray);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--blue);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
    text-align: center;
}

.section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.light-bg {
    background-color: var(--light-gray);
}

/* Header y Navegación */
#header {
    background-image: var(--gradient-blue);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

#nav-menu ul {
    list-style: none;
    display: flex;
}

#nav-menu li {
    margin-left: 20px;
}

#nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

#nav-menu a:hover {
    color: var(--orange);
}

/* Sección Hero */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 76, 140, 0.7), rgba(0, 76, 140, 0.7)), url('https://via.placeholder.com/1920x1080.png?text=Imagen+de+Ferreteria') no-repeat center center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background-image: var(--gradient-orange);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn-cta:hover {
    background-image: linear-gradient(to left, #e65c00, #ff4c00);
    transform: scale(1.05);
}

/* Sección de Productos */
.product-categories {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.category-card {
    background-image: linear-gradient(135deg, #f0f0f0, #fff);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex: 1 1 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Estilos para los iconos y las imágenes */
.category-card i {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 1rem;
}

.product-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 1rem auto;
    display: block;
    border-radius: 5px;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

/* Sección de Testimonios */
.testimonial-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 350px;
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-item h4 {
    color: var(--blue);
}

/* Sección de Contacto */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    text-align: left;
}

.contact-form, .contact-info {
    flex: 1 1 450px;
}

.contact-form h2, .contact-info h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    width: 100%;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--orange);
    margin-right: 10px;
}

.contact-info iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-image: var(--gradient-gray);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 1rem;
    }

    #nav-menu ul {
        flex-direction: column;
        text-align: center;
    }

    #nav-menu li {
        margin: 5px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form, .contact-info {
        flex: 1 1 100%;
    }
    
    .contact-info p {
        text-align: center;
    }
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
    margin: 1.5rem;
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe5b;
    transform: scale(1.1);
}

.whatsapp-float i {
    line-height: 1;
}
/* Filtros de productos */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 0.7rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
