/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

/* ----- CABECERA ----- */
header {
    position: relative;
    background: url('img/logoWebUltimo3.png') no-repeat center bottom;
    background-size: cover; /* Para que la imagen cubra toda la cabecera */
    background-position: top;
    height: 500px; /* Aumentamos el tamaño para que se vea el logo más grande */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px; /* Espacio para el texto */
}

/* Texto en la cabecera */
header h1 {
    font-size: 28px;
    color: #fff;
    background: rgba(30, 7, 7, 0.6); /* Fondo oscuro semitransparente para mejor legibilidad */
    padding: 15px 25px;
    border-radius: 8px;
}

/* ----- NAVEGACIÓN ----- */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: #046b21;
    padding: 15px;
}


nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: #007BFF;
    border-radius: 5px;
}

/* ----- SECCIONES GENERALES ----- */
section {
    padding: 50px 20px;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

/* Botón principal */
.boton {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
}

.boton:hover {
    background-color: #0056b3;
}

/* ----- SOBRE MÍ ----- */
#sobre-mi {
    background: #d2e45b;
}

/* ----- SERVICIOS ----- */
#servicios {
    background: #c4e6bb;
}

.contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.servicio, .proyecto {
    background-color: #bcee6b;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* ----- PROYECTOS ----- */
#proyectos {
    background: #fff;
}

/* ----- FORMULARIO DE CONTACTO ----- */
#contacto {
    background: #a3eedc;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: auto;
}

form label {
    margin-top: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* Mensaje de éxito */
#mensaje-exito {
    display: none;
    color: green;
    margin-top: 15px;
}

/* ----- FOOTER ----- */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

/* ----- RESPONSIVIDAD ----- */
@media (max-width: 768px) {
    /* Hacemos la cabecera más pequeña en móviles */
    header {
        height: 220px;
        padding-bottom: 20px;
    }

    header h1 {
        font-size: 22px;
        padding: 10px 20px;
    }

    /* Secciones en columna */
    .contenedor {
        flex-direction: column;
        align-items: center;
    }

    .servicio, .proyecto {
        width: 90%;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 100;
}

.whatsapp-float img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

