* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    font-family: 'Montserrat';
}

/* Paleta de colores del cliente */

:root {
    --light-color: #ffffff;
    --light-gray-color: #cacaca;
    --gray-color: #777777;
    --dark-gray-color: #484848;
    --dark-color: #333333;
    --light-shadows: #00000038;
    --dark-shadows: #00000078;
    --transition: 250ms;
    --primary-color: #395B28;
    --secondary-color: #7BBC3C;
    --emphasis-color: #FF8E5B;
}

body {
    background-color: rgb(from var(--primary-color) r g b / 30%);
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.9em;
}

h4 {
    font-size: 1.7em;
}

h5 {
    font-size: 1.5em;
}

h6 {
    font-size: 1.3em;
}

p {
    font-size: 1.2em;
}

/* Módulos reutilizables */
.buttons-left,
.buttons-center,
.buttons-right {
    width: 100%;
    display: flex;
    align-items: center;
}

.buttons-left {
    justify-content: flex-start;
}

.buttons-right {
    justify-content: flex-end;
}

.buttons-center {
    justify-content: center;
}

.buttons {
    padding: 0.2em 2em;
    margin: 0.5rem 0.8rem;
    background-color: var(--emphasis-color);
    color: var(--dark-color);
    border: 2px solid var(--emphasis-color);
    transition: var(--transition);
    border-radius: 99px;
    &:hover {
        background-color: transparent;
        box-shadow: 0 0 5px var(--emphasis-color);
        color: var(--emphasis-color);
    }
}

.titles {
    color: var(--primary-color);
}

/* Efectos */

.label-tag-up {
    transform: translate(0, -20px) !important;
    font-size: 0.9em;
}

/* Header */

.header {
    width: 100%;
    background-color: var(--light-color);
    .header__content {
        padding: 1em;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .header__brand {
            width: 100%;
            height: 70px;
            max-width: 170px;
            &:first-child {
                filter: drop-shadow(2px 2px 5px var(--light-shadows));
            }
            .header__img {
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }
        .header__main-title {
            h4 {
                color: var(--primary-color);
                text-align: center;
            }
        }
    }
}

/* Main */

.main {
    width: 100%;
    padding: 1em 1em 2.5em;
    .main__content {
        background-color: var(--light-color);
        padding: 1.7em 3em;
        border-radius: 20px;
        width: 100%;
        max-width: 992px;
        margin: 1.5rem auto;
        border: 2px solid rgb(from var(--gray-color) r g b / 50%);
        .form__container {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            p {
                margin: 0.5rem 0;
            }
            .form {
                width: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                .form__fieldset {
                    width: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    flex-wrap: wrap;
                    margin: 0.5rem;
                    .form__label {
                        transition: var(--transition);
                        font-size: 0.9em;
                        width: 100%;
                        margin-left: 0.5em;
                    }
                    .form__input {
                        width: 100%;
                        padding: 0.3em;
                        border: 2px solid var(--primary-color);
                        border-radius: 10px;
                        transition: var(--transition);
                        &:focus {
                            outline: none;
                        }
                    }
                }
            }
            .form__img {
                width: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                img {
                    width: 100%;
                    max-width: 250px;
                    margin: 0 auto;
                }
            }
        }
    }
    .show-cert {
        background-color: var(--light-color);
        padding: 1.7em 3em;
        border-radius: 20px;
        width: 100%;
        max-width: 992px;
        margin: 1.5rem auto;
        border: 2px solid rgb(from var(--gray-color) r g b / 50%);
        overflow-x: auto;
        .show-cert__content {
            width: 100%;
            min-width: 768px;
            th {
                border-bottom: 2px dashed var(--light-gray-color);
                color: var(--dark-color);
                padding: 0.4rem 0;
            }
            td {
                padding: 0.8rem 0;
            }
            th, td {
                border-right: 2px dashed var(--light-gray-color);
                text-align: center;
            }
            th:last-child, td:last-child {
                border-right: none;
            }
            .cert-button {
                text-decoration: none;
            }
        }
    }
}

/* Footer */

.footer {
    background-color: var(--dark-color);
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    .footer__content {
        width: 100%;
        padding: 0.6em;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--light-color);
        img {
            width: 20px;
            margin: 0 0.4rem;
        }
    }
}

@media (max-width: 650px) {
    .main {
        .main__content {
            .form__container {
                .form {
                    width: 100%;
                }
                .form__img {
                    display: none;
                }
            }
        }
    }
}