/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

header {
    background: rgba(0, 0, 0, 0.8); /* Fondo oscuro para mejor legibilidad */
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #4caf50 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header nav {
    float: right;
    margin-top: 10px;
}

header h1 {
    float: left;
    margin-top: 10px;
}

.hero {
    background: rgba(173, 216, 230, 0.5); /* Fondo celeste con opacidad */
    height: 50vh; /* Reducido a 50vh para hacerla más compacta */
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Asegurar que el contenido esté en columna */
}

.hero h2 {
    font-size: 30px; /* Ajustado para que se vea más compacto */
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px; /* Reducido para un ajuste más compacto */
    margin-bottom: 20px;
}

.hero .btn {
    background: #4caf50;
    color: #fff;
    padding: 10px 15px; /* Ajustado para que sea más compacto */
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.services, .projects, .about, .blog, .contact {
    padding: 50px 0;
}

.services h2, .projects h2, .about h2, .blog h2, .contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    justify-content: space-between;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    flex-basis: 30%;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #777;
}

.contact form {
    display: flex;
    flex-direction: column;
}

.contact label {
    margin: 10px 0 5px;
}

.contact input, .contact textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact button {
    background: #4caf50;
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #45a049;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}
