* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

body {
    color: #333;
    line-height: 1.6;
    font-family: "Roboto Condensed", sans-serif;
}

header {
    background-color: #2C2C2C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000; 
}

.logo {
    margin-left: 5%;
}

nav ul {
    list-style: none;
    display: flex;
    margin-right: 60px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a:hover {
    color: #ff0000;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.hero {
    background-image: url(img/banner.png);
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 48px;
}

.hero h2 span {
    color: #e60000;
}

.negrita {
    font-weight: bold;
    color: #ff0000;
}

.about {
    margin-top: 60px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    width: 100%;
    max-width: 500px;
    margin: 20px;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

.services {
    margin-bottom: 60px;
    background-color: #2C2C2C;
    color: #fff;
    padding: 100px;
    text-align: center;
}

.services h3 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #e60000;
}

.services h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.services p {
    font-size: 18px;
    margin-bottom: 30px;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 1000px;
    flex-wrap: wrap;
}

.flecha {
    margin-bottom: 10px !important;
}

.service-card {
    width: 30%;
    text-align: center;
    margin: 10px;
}

.service-card img {
    max-width: 100%;
    border-radius: 50%;
    border: 2px solid #e60000;
}

#contacto {
    text-align: center;
}

#contacto h1 {
    color: red;
    font-size: 2.5rem;
}

#contacto p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.formulario-contacto {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    flex-wrap: wrap;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    padding: 20px; 
    border: 2px solid #ccc;
}

label {
    margin: 5px 0 0px;
    text-align: left;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    font-family: "Roboto Condensed", sans-serif;
}

textarea {
    resize: none;
    height: 100px;
}

button {
    padding: 8px;
    margin-top: 5px;
    border: none;
    background-color: black;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff0000;
}

.imagen-contacto img {
    width: 100%;
    max-width: 324px;
}

footer {
    background-color: #2C2C2C;
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-contacto {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.footer-contacto a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-contacto img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}

.copy{
    color: white;
    text-decoration: none;
    align-items: center;
    margin-top: 10px;
}
.copy:hover, .footer-contacto a:hover{
    color: #ff0000;
}

footer p {
    margin-top: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        
    }

    .logo {
        margin-bottom: 10px;
    }

    nav ul {
        margin-bottom: 5px;
        margin-top: -15px;
        width: 100%;
        align-items: center;
        text-align: center;
        margin-right: 0;
    }

    .imgTitulo {
        width: 75% !important;
        display: block;
        margin: 0 auto;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0 0 10px;
        text-align: center;
        align-content: center;
    }

    .service-card {
        width: 80%;
        margin: 0 auto;
    }

    form {
        width: 90%;
        margin: 0 auto;
    }

    .about-image {
        text-align: center;
        margin: 10px 0;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .about-image, .about-text {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 36px;
    }

    button {
        font-size: 0.9rem;
    }
    nav ul{
        margin-right: 0;
    }

    .imgTitulo {
        width: 75% !important;
        margin: 0 auto;
    }
    .service-card {
        width: 100%;
        text-align: center;
    }

    .about-image img {
        width: 90%;
        height: auto;
        margin: 0 auto;
    }

    form {
        width: 90%;
        margin: 0 auto; 
    }

    footer {
        text-align: center; 
    }

    .footer-contacto {
        justify-content: center; 
    }
}
