/* Hola Marcos aqui empieza la página web con el logo de la empresa y el nav */
* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: black;
}

header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
}

header img {
    width: 300px;
    height: auto;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: black;
    color: white;
}
/*Aqui creo el bloque principal para poner el article y el section*/
.presentacion {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 40px;
    background-color: black;
    color: white;
}

.bloque {
    width: 30%;
}

.bloque h2 {
    font-size: 30px;
    line-height: 1.1;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    color: white;
    min-height: 72px;
}

.bloque p {
    font-size: 17px;
    line-height: 1.6;
    text-align: justify;
    color: white;
}

.imagen-central {
    width: 30%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-central img {
    width: 100%;
    max-width: 350px;
    height: auto;
    content: url("../imagenes/cano.png");
    transition: 0.3s ease;
}

.imagen-central img:hover {
    content: url("../imagenes/tu-otra-imagen.png");
}

/*En este apartado he hecho el grid para poner todos los servicios que tiene mi empresa*/

.servicios-grid {
    text-align: center;
    background-color: black;
    color: white;
    padding: 40px;
}

.servicios-grid h2 {
    color: white;
    margin: 0 0 25px 0;
    text-transform: uppercase;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.servicio {
    border: 1px solid white;
    padding: 20px;
    text-align: center;
    background-color: black;
    color: white;
    transition: background-color 0.4s ease, color 0.3s ease;
}
/*El transition es para que el cambio no sea tan brusco*/
.servicio:hover {
    background-color: white;
    color: black;
}

.servicios-grid h3 {
    margin-top: 30px;
    color: white;
}

.servicios-grid a {
    color: white;
    text-decoration: underline;
}

.servicios-grid a:hover {
    color: black;
    background-color: white;
    padding: 2px 6px;
}

/*Pues aqui el footer con un aviso legal*/
.footer {
    background-color: black;
    padding: 20px 40px 10px 40px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}