:root {
    /*Edite aquí el color principal del fondo del documento*/
    --fondo-main: #f2f2f2;

    /*Edite aquí el color principal de los títulos y texto*/
    --title-color: #fdfdfd;

    /*Edite aquí el color secundario del documento*/
    --azul-oscuro: rgb(4, 5, 13);

    /*Edite aquí el tamaño principal del texto (en em)*/
    --tamano-texto: 1.5em;

    /*Evite editar esto para mantener un flujo natural del documento*/
    --margins: 3rem
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #8e8e8e;
}

main {
    width: 80%;
    margin: 0% auto;
    background-color: var(--fondo-main);
    box-shadow: 0rem 1rem 2rem rgb(88, 88, 88);
}

header {
    background-color: var(--azul-oscuro);
    color: var(--title-color);
    height: 20rem;
    display: block;
    justify-items: center;
    align-content: center;
    h1 {
        font-size: 3.5em;
        margin-bottom: 0.5em;
    }
    p {
        font-size: 1.3em;
        margin-bottom: 2em;
    }
}

nav {
    background-color: var(--azul-oscuro);
    display: flex;
    position: sticky;
    top: 0;
    justify-content: center;
    z-index: 999;
    font-size: var(--tamano-texto);
    a {
        text-decoration: none;
        color: var(--title-color);
        padding: 1rem;
        &:hover {
            background-color: var(--title-color);
            color: var(--azul-oscuro);
        }
    }
}

h2 {
    font-size: 2.5rem;
    color: var(--azul-oscuro)
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--margins);

    .about-logo {
        display: block;
        position: relative;
        width: 10em;
        margin: auto;
        bottom: 5em;
        border-radius:6em;
        border: 0.1em solid var(--fondo-main);
        padding: 0.5em;
        padding-bottom: 0;
        margin-bottom: -3rem;
    }

    h2 {
        color: var(--azul-oscuro);
    }

    p {
        text-align: center;
        font-size: var(--tamano-texto);
        padding: 0.5em;
        padding-top: 1.5em;
        margin: 0 2em;
    }
}

.services {
    background-color: var(--azul-oscuro);
    text-align: center;
    h2 {
        color: var(--title-color);
        padding-top: var(--margins);
    }
    .service-card {
        display: inline-block;
        margin: 2rem;
        color: var(--title-color);
        h3 {
            font-size: 140%;
            padding: 2rem;
        }
        img {
            width: 25rem;
            height: 25rem;
            border-radius: 0.5rem;
            top:-50px; 
            left:-35px; 
            display:block; 
            cursor: pointer; 
        }
        figcaption {
            padding: 1rem;
        }
        figure {
            transition: 0.3s ease all;
        }
        figure:hover {
            transform: scale(1.1);
        }
    }
    .cta-button {
        display: flex;
        justify-content: center;
        a {
            font-size: var(--tamano-texto);
            text-decoration: none;
            padding: 1.5rem;
            color: var(--title-color);
            margin-bottom: var(--margins);
            border: 1px solid transparent;
            transition: 0.3s ease all;
            &:hover {
                border: 1px solid var(--fondo-main);
            }
        }
    }
}

.reviews {
    text-align: center;
    h2 {
        margin: var(--margins);
    }
    .review-card {
        display: inline-block;
        margin: var(--margins);
    }
    img {
        transition: 0.3s ease all;
        width: 35rem;
        border-radius: 1.5rem;
        box-shadow: 0.5rem 1rem 1rem rgb(131, 131, 131);
        &:hover {
            transform: scale(1.05);
        }
    }
}

.contact {
    background-color: var(--azul-oscuro);
    text-align: center;
    padding-bottom: var(--margins);
    h2 {
        color: var(--title-color);
        margin: var(--margins);
        padding: 3rem;
    }
    figure {
        display: inline-block;
        margin: var(--margins);
    }
    img {
        width: 10rem;
    }
    a {
        display: inline-block;
        text-decoration: none;
        color: var(--title-color);
        font-size: var(--tamano-texto);
        transition: 0.3s ease all;
        &:hover {
            transform: scale(1.05);
        }
    }
    p {
        color: var(--title-color);
        font-size: 3rem;
    }
}

footer {
    width: 80%;
    margin: 0% auto;
    display: block;
    text-align: center;
    align-content: center;
    background-color: var(--fondo-main);
    font-size: var(--tamano-texto);
    height: 10rem;
}