* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

/* Encabezado */
.header {
    background-color: #202020;
    color: white;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    color: #f5b400;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #f5b400;
}

/* Sección principal */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url("https://images.unsplash.com/photo-1503387762-592deb58ef4e") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-content {
    max-width: 850px;
}

.hero-content h2 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 21px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #f5b400;
    color: #222;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #d99a00;
    transform: translateY(-3px);
}

/* Secciones generales */
.section {
    padding: 80px 50px;
    text-align: center;
}

.section h2 {
    font-size: 38px;
    margin-bottom: 40px;
}

/* Servicios */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background-color: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    color: #f5b400;
    margin-bottom: 15px;
    font-size: 23px;
}

/* Proyectos */
.dark-section {
    background-color: #222;
    color: white;
}

.dark-section h2 {
    color: white;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project {
    background-color: #333;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);
}

.project h3 {
    color: #f5b400;
    margin-bottom: 15px;
    font-size: 23px;
}

/* Sobre nosotros */
.about {
    padding: 80px 50px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: white;
    align-items: center;
}

.about-text h2 {
    font-size: 38px;
    margin-bottom: 25px;
    color: #222;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 17px;
}

.about-box {
    background-color: #f5b400;
    color: #222;
    padding: 35px;
    border-radius: 12px;
}

.about-box h3 {
    margin-bottom: 20px;
    font-size: 25px;
}

.about-box ul {
    list-style: none;
}

.about-box li {
    margin-bottom: 12px;
    font-weight: bold;
}

/* Contacto */
.contact {
    background-color: #f4f4f4;
}

.contact p {
    margin-bottom: 30px;
    font-size: 18px;
}
.phone-contact strong {
    color: #f5b400;
}

.contact-form {
    max-width: 650px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-form {
    max-width: 650px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    background-color: #f5b400;
    color: #222;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #d99a00;
}
.call-btn {
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 22px;
}

/* Responsive */
@media (max-width: 900px) {
    .cards,
    .projects,
    .about,
    .obras-content {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 20px;
    }

    .navbar {
        flex-direction: column;
        gap: 18px;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section,
    .about {
        padding: 60px 20px;
    }

    .section h2,
    .about-text h2 {
        font-size: 31px;
    }
}
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    cursor: pointer;
}

.page-hero {
    min-height: 55vh;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url("https://images.unsplash.com/photo-1503387762-592deb58ef4e") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.page-hero h2 {
    font-size: 54px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 21px;
}

.obras-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 20px;
}

.obra-box {
    background-color: white;
    padding: 30px 22px;
    border-radius: 12px;
    border-left: 5px solid #f5b400;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}

.obra-box h3 {
    color: #f5b400;
    margin-bottom: 12px;
    font-size: 22px;
}

.obras-btn {
    margin-top: 40px;
}
/* Página de fontanería */
.fontaneria-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url("https://images.unsplash.com/photo-1585704032915-c3400ca199e7") center/cover no-repeat;
}
/* Página de electricista */
.electricista-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4") center/cover no-repeat;
}
/* Página de multiservicios */
.multiservicios-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
                url("https://images.unsplash.com/photo-1581578731548-c64695cc6952") center/cover no-repeat;
}