html {
    background-color: black;
}

/* BODY */

body {	
    margin: 5px auto;
    font-family: sans-serif;
    text-align: justify;
    max-width: 1360px;
    background-color: rgb(0, 0, 0);
}

/* MAIN (FONDO) */

main {
    background-image: url("../img/Empresa.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center; /* 👈 centra vertical */
    justify-content: center;
}

/* TITULOS */

h1, h2 {
    text-align: center;
}

#mensaje {
    margin-bottom: 50px;
}

/* LOGO */

.logo img {
    display: block;
    margin: 50px auto 20px auto;
    width: 40%;
    height: auto;
}

/* CONTACTO */

.contacto {
    background-color: rgba(190, 190, 190, 0.3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    width: 80%;          /* 👈 en vez de 100% */
    max-width: 800px;   /* 👈 opcional pero recomendado */
    margin: auto;       /* 👈 centra */
    padding: 20px;       /* 👈 clave */
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* LINKS */

.contacto a {
    text-decoration: none;
    color: black;
}

.contacto a:hover {
    text-decoration: underline;
}

/* MAPA */

.contacto iframe {
    width: 50%;
    height: 200px;
    border-radius: 10px;
    display: block;
    margin: 10px auto 10px auto;
}

/* DATOS */

.datos {
    line-height: 1;
    font-size: 17px;
    width: 100%;
}

/* RESPONSIVE */

@media (max-width: 800px) {

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 15px;
    }

    .logo img {
        width: 50%;
    }

    .contacto iframe {
        width: 95%;
    }
}

@media (max-width: 500px) {

    .logo img {
        width: 70%;
    }
}