:root{
    --red: #FF003D;
    --black: #000000;
    --white: #ffffff;
}


html {
    font-family: "clarendon-urw", serif;
    padding: 80px;
    height: 100%;
    box-sizing: border-box;
    transition: all width 0.5s ease, height 0.5s ease;
}

body {
    background: var(--red);
    background-image: url(img/backdesktopartifices.svg);
    background-size: cover;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 100%;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

header img {
    width: 445px;
}

.header-right h3 {
    font-size: 1.5rem;
    line-height: 1.7rem;
    margin-top: 0;
    text-align: right;
    font-weight: 300;
    letter-spacing: 0.1rem;
}

.h3bold {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
 }

address {
    font-style: normal;
}

address p {
    margin: 0;
}

address p:last-child a {
    text-decoration: underline;
}

footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footerright {
    transform: rotate(-90deg);
    transform-origin: bottom left;
    align-self: flex-end;
    margin-left: auto; 
    font-size: 1.5rem;
    margin-right: -300px;
    margin-bottom: 10px;
    font-weight: 600;
}


main {
    height: 100%;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin-bottom: 60px;
}

main p {
    font-size: 2rem;
    font-weight: 300;
}

main p .boldtext {
    font-weight: bold;
}

@media screen and (max-width: 860px) {
    body {
        background-image: url(img/backmobileartifices.svg);
    }

    html {
        padding: 20px; /* Reducir el padding para pantallas más pequeñas */
    }

    header {
        flex-direction: column;
    }

    header img {
        width: 100%; /* Hacer que la imagen sea responsive */
        max-width: 270px; /* Máximo ancho para la imagen */
    }

    .header-right h3 {
        font-size: 1.2rem;
        line-height: 1.4rem;
        text-align: left;
        margin-top: 40px;
    }

    main {
        width: 100%;
        margin-bottom: auto;
        justify-content: center;
        text-align: center;
    }

    main p {
        font-size: 1.2rem; /* Reducir el tamaño de la fuente para párrafos */
    }

    address {
        font-size: 0.8rem;
    }

    footer {
        align-items: center; /* Centrar los elementos */
    }

    .footerright {
        transform: rotate(0deg); /* Quitar la rotación en móviles */
        margin-right: 0; /* Restablecer el margen derecho */
        font-size: 0.8rem; /* Ajustar el tamaño de la fuente */
        margin-bottom: 0; /* Restablecer el margen inferior */
        text-align: right;
    }

    .footerright h4 {
        /*white-space: pre-wrap; /* Preserva los espacios y saltos de línea */
        word-spacing: 100vw;
    }    
}