@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --cream: #dbc8a2;
    --gold: #bb945b;
    --magenta: #a12243;
    --primary: #611735;
    --montserrat: "Montserrat", sans-serif;
    --text-white: #fff;
}

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

body {
    height: auto;
    background: #fff;
    font-family: var(--montserrat);
    font-size: 1rem;
}

.contrMain {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 14rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 4rem;
}

.contrTitle__title {
    width: 100%;
    text-align: center;
    color: var(--cream);
    margin-bottom: 4rem;
}

.contrTitle__title span {
    color: var(--gold);
    position: relative;
    top: 10px;
}

.contrTitle__img {
    width: 5rem;
    position: relative;
    top: 2rem;
    margin-left: 10px;
}

.contrForm {
    width: 100%;
    max-width: 35rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contrField {
    display: flex;
    flex-direction: column;
    position: relative;
}

.contrField__input {
    height: 2.5rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, .125);
    font-size: 1rem;
    padding: 0 8px;
}

.contrField__input:focus {
    outline: none;
    border: 1px solid var(--magenta);
}

.contrField__input:focus label {
    color: red !important;
}

.contrField__input--error {
    box-shadow: 0px 0px 12px 0px #a122439c;
}

.contrField__label {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 1rem;
    background: #fff;
    padding: 0 15px;
    color: var(--primary);
    font-weight: 500;
    z-index: 2;
}

.contrField--s {
    width: calc(33.33% - 1rem);
}

.contrField--m {
    width: calc(50% - 1rem);
}

.contrField--l {
    width: 100%;
}

.contrField__check {
    position: relative;
    cursor: pointer;
}

.contrField__check::before {
    content: '';
    width: 100%;
    height: 100%;
    top: -2px;
    left: -2px;
    border: 2px solid var(--primary);
    position: absolute;
    border-radius: 5px;
    background-color: #fff;
    overflow: hidden;
}

.contrField__check::after {
    content: '';
    width: 9px;
    height: 9px;
    top: 100%;
    left: 2px;
    position: absolute;
    background: var(--primary);
    z-index: 1;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        top: 100%;
        opacity: 0;
    }

    to {
        top: 2px;
        opacity: 1;
    }
}

.contrField__check:checked::after {
    animation: fadeInUp 0.4s ease-in-out;
    top: 2px;
    opacity: 1;
}

.contrFiel--check {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contrField__labelcheck {
    color: #000;
    font-weight: 600;
}

.contrField__labelcheck a {
    color: #000;
}

.contrForm__button {
    width: 100%;
    height: 2.1rem;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    max-width: 19rem;
    margin: 0 auto;
}

.contrForm__button--success {
    background: var(--magenta);
    color: var(--text-white);
    transition: 0.3s ease-in-out;
}

.contrForm__button--success:hover {
    background: var(--primary);
}

.contrForm__button--alert {
    background: var(--gold);
    color: var(--text-white);
    transition: 0.3s ease-in-out;
}

.contrForm__button--alert:hover {
    background: var(--cream);
}

.disabled--field {
    pointer-events: none;
    opacity: 0.7;
}

.input_error {
    box-shadow: 0px 0px 10px 0px var(--magenta);
    border: none;
}

.bx-spin {
    -webkit-animation: spin 2s linear infinite;
    animation: spin 4s linear infinite !important;
}

.bx-fade-up {
    -webkit-animation: fade-up 3s infinite linear !important;
    animation: fade-up 3s infinite linear !important;
}

.contrImage {
    width: 100%;
    height: 10rem;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid var(--primary);
    border-style: dashed;
    display: flex;
    justify-content: center;
    /* background: url(https://www-vra.stjohns.k12.fl.us/wp-content/uploads/2015/06/papel-picado.png); */
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    cursor: no-drop;
}

.contrImage span,
i {
    font-size: 3rem;
    color: var(--primary);
}

.contrImage img {
    height: 3rem;
}



/* Estilos del nav */
.header {
    width: 100%;
}

.navbar {
    width: 100%;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    width: 98%;
    height: 1px;
    bottom: 0;
    background: #80808024;
    margin: 0 auto;
}

.navbar__ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.navbar__li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.navbar__link {
    text-decoration: none;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    font-size: 16px;
}

.navbar__link::before {
    content: '';
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--gold);
    position: absolute;
}

.modalcontainer {
    width: 100%;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    background: #0000007d;
    z-index: 2025;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.modalcontainer--visible {
    display: flex;
}

.item {
    width: 95%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

@keyframes fadeTopModal {
    from {
        top: -30%;
        opacity: 0;
    }

    to {
        top: 0%;
        opacity: 1;
    }
}

.bodymodal {
    width: 25rem;
    height: 30rem;
    background: url(../images/fondo-principal-separador.webp);
    background-size: 300%;
    background-position: center;
    border: 2px solid var(--cream);
    border-radius: 10px;
    box-shadow: 0px 0px 30px var(--gold);
    position: relative;
    overflow: hidden;
    animation: fadeTopModal 0.5s ease-in-out;
}

/* .modalcontainer--visible ~ body {
    overflow: hidden;
} */

.bodymodal__close {
    width: 1rem;
    height: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: calc(100% - 2rem);
    margin-top: 0.5rem;
    color: var(--text-white);
}

.bodymodal__img {
    width: 100%;
    height: max-content;
    position: absolute;
    bottom: -45%;
    left: 35%;
    z-index: 0;
    filter: drop-shadow(-5px 0px 16px var(--magenta));
    pointer-events: none;
}

.bodymodal__img--left {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: -20%;
    left: 40%;
    filter: drop-shadow(0px 0px 10px black);
    pointer-events: none;
}

.contrField__label--modal {
    background: none;
    color: var(--text-white);
    position: relative;
    padding: 0px;
    left: 0px;
    top: 0px;
    margin-bottom: 3px;
}

.contrField__input--modal {
    width: 100%;
}

.contrField__button {
    width: 2.2rem;
    height: 2.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: inherit;
    position: absolute;
    border-radius: 3px;
    border: none;
    gap: 5px;
    background: var(--gold);
    color: #fff;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    right: 13px;
    bottom: 13px;
}

.contrField__button:hover {
    filter: brightness(0.9);
}

.contrField--modal {
    height: auto;
    margin-bottom: 1rem;
    padding: 10px;
    background: #a1224375;
    margin-top: 3rem;
    border: 2px solid var(--cream);
    border-radius: 9px;
}

.modalinfo {
    width: 100%;
    height: calc(90% - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0px 13px;
    position: relative;
    z-index: 1;
}

.modalinfo__title {
    color: var(--text-white);
    font-size: 2.7rem;
    margin-bottom: 25px;
}

.modalinfo__text {
    color: var(--cream);
    font-size: 16px;
}

.modalinfo__subtitle {
    color: var(--cream);
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 9rem;
    position: relative;
    z-index: 1;
    text-shadow: 5px 4px 12px #000;
}

.modalinfo__subtitle span {
    color: #fff;
    font-size: 20px;
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
}

.modalinfo__text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
}

.modalinfo__link {
    color: var(--text-white);
    margin-top: 1rem;
    z-index: 1;
    font-weight: 500;
}

.convenios {
    width: 100%;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.convenios__titulo {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    font-style: oblique;
    letter-spacing: 2px;
}

.convenios__img {
    width: 8rem;
}

@keyframes zoomInHover {
    to {
        width: 8rem;
    }

    from {
        width: 8.5rem;
    }
}

.bx-tada {
    -webkit-animation: tada 3s ease !important;
    animation: tada 3s ease !important;
}

.convenios__titulo {
    width: 100%;
}

@keyframes fadeInLine {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.navbar__link:hover::before {
    animation: fadeInLine 0.5s ease-in-out;
    width: 100%;
}

@media (max-width: 768px) {
    .contrForm {
        width: 90%;
        max-width: none;
    }

    .contrTitle__title {
        font-size: 2rem;
        margin: 2rem auto 3rem auto;
    }

    .contrTitle__img {
        display: none;
    }

    .contrTitle__title span {
        top: 0px;
    }

    .contrMain {
        padding-bottom: 4rem;
    }

    .contrField__label {
        width: 100%;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .contrField--m {
        width: 100%;
    }

    .bodymodal {
        width: 18rem;
    }
}