:root {
    --primary-color: #1a237e;
    --secondary-color: #ff9800;
    --text-color: #333;
    --light-bg: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

nav {
    background: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    margin-left: 2rem;
}

nav ul {
    margin-right: 2rem;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('images/soldador.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

section {
    padding: 5rem 2rem;
}

.productos-grid, .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servicio {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: 0.3s;
}

.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mas-detalles {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

#contacto {
    background: var(--light-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

form input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    #contacto {
        grid-template-columns: 1fr;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    filter: none;
}