/* General Styles */
body {
    font-family: 'Poppins', sans-serif; /* Nueva tipografía */
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

/* Header */
header {
    background-color: #fff;
    color: #000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.logo .plomeria {
    color: #007BFF; /* Color azul para "Plomería" */
}

.logo .sanchez {
    color: #333; /* Color gris oscuro para "Sánchez" */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007BFF;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}
/* Hero Section */
.hero-servicios {
    background-image: url('images/fondo2.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 5%; /* Añadido padding lateral */
}

.hero-servicios h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-servicios p {
    font-size: 1.5rem;
    margin: 10px 0 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Servicios Section */
.servicios {
    padding: 50px 5%; /* Añadido padding lateral */
    text-align: center;
}

.servicios h2 {
    color: #2c3e50;
    border-bottom: 2px solid #007BFF;
    display: inline-block;
    padding-bottom: 10px;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.servicios-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.servicio-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s;
    text-align: center;
}

.servicio-item:hover {
    transform: translateY(-10px);
}

.servicio-item img {
    width: 250px;
    height: 150px;
    margin-bottom: 15px;
}

.servicio-item h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 10px 0;
}

.servicio-item p {
    font-size: 1rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #fff;
    color: #000;
    padding: 40px 5%; /* Añadido padding lateral */
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #007BFF;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #007BFF;
}

.footer-section i {
    margin-right: 10px;
    color: #007BFF;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #000;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #007BFF;
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    .hero-servicios h1 {
        font-size: 2.5rem;
    }

    .hero-servicios p {
        font-size: 1.2rem;
    }

    .servicio-item {
        width: 100%;
    }
}