﻿body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    width: 100%;
    padding: 2.5rem 5rem 0 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    left: 0;
    top: 0;
    border-top: 0.5rem solid var(--color-primary);
    border-bottom: 0.0625rem solid var(--color-gray-40);
    background-color: var(--color-gray-0);
    z-index: 10;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

a.header-info-logo {
    width: 12.5rem;
}

    a.header-info-logo > img {
        width: 100%;
    }

.header-info-contact {
    display: flex;
    justify-content: flex-end;
    gap: 2.188rem;
}

.header-info-contact-element {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.125rem;
}

    .header-info-contact-element > img {
        width: 1.5rem;
    }

    .header-info-contact-element a {
        text-transform: uppercase;
        font-weight: bold;
    }

main {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid var(--color-gray-40);
}

footer {
    width: 100%;
    padding: 0 5rem;
    height: 10rem;
    display: flex;
    gap: 1.5rem;
    flex-direction: row;
    align-items: center;
    background: var(--color-gray-90);
}

    footer a {
        color: var( --color-gray-0);
    }

.select-items div {
    display: flex;
    flex-direction: row-reverse;
    cursor: pointer;
}

.toast {
    width: 22rem;
    align-items: flex-start;
    position: fixed;
    top: 5.5rem;
    right: 5.5rem;
    background: var(--color-error-10);
    border: 0.0625rem solid var(--color-error-50);
    gap: 0.5rem;
    flex-direction: column;
    padding: 1.5rem;
    padding-top: 5rem;
    z-index: 999;
    display: none;
    animation: slide-in-out 0.5s ease-in-out forwards, fade-out 0.5s 2.5s forwards;
}

    .toast .toast-icon {
        display: flex;
        padding-top: 0.6rem;
        mask-image: url('../../images/icon-error.svg');
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: contain;
        background-color: var(--color-error-50);
        width: 2rem;
        height: 2rem;
    }

.toast-link {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: bold;
}

    .toast-link > a {
        color: var(--color-error-50);
    }

.toast ul {
    list-style-image: url('../../images/square.svg');
    color: var(--color-gray-70);
    padding-inline-start: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .toast ul li {
        padding-left: 0.5rem;
    }

@keyframes slide-in-out {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}


/* Aplica la animación al elemento que deseas */
.elemento {
    animation: fade-out-down 2s ease forwards;
}





/*Responsive*/
@media only screen and (max-width: 576px) {
    form {
        width: 21rem;

        margin: 16px;
    }

    h2 {
        font-size: 18px;
    }

    h1 {
        width: 100%;
    }

    main {
        margin: 1rem 0 1.5rem 0;
    }

    a.header-info-logo > img {
        height: 1.6rem;
        width: auto;
    }

    header {
        padding: 1rem 1.5rem;
    }

    footer {
        position: relative;
        flex-direction: column;
        height: 296px;
        align-items: flex-start;
        padding: 3.5rem 1.25rem;
        margin-top: 3.5rem;
    }

    .header-info-contact {
        display: none;
    }

    .registro {
        width: auto;
    }

    .phoneIcon {
        mask-image: url("/images/phoneOnly.svg");
        color: red;
        background-size: cover;
        background-repeat: no-repeat;
        background-color: white;
        width: 32px;
        height: 32px;
    }

    .phoneDiv {
        display: flex;
        position: absolute;
        height: 56px;
        width: 56px;
        right: 0;
        top: -3.5rem;
        background-color: #EE6946;
        align-items: center;
        justify-content: center;
        border-bottom: solid white 1px;
    }

    #cancelar {
        width: 100%
    }

    #btn-registrame {
        width: 100%;
    }

    .select-selected div {
        padding: 0px;
    }

    .select-selected {
        padding: 0.8rem 0rem;
        align-items: center;
        justify-content: center;
    }

    .toast {
        right:0.4rem;
    }

    .contenedorPais {
        align-items: center;
        justify-content: center;
    }

    .phoneIcon {
        display: block;
    }
}
