@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: center;
    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;
    font-family: inherit;
    width: 100%;
    background: #fff;
    /* text-transform: uppercase; */
}

.contrField__input::placeholder {
    text-transform: none;
}

.selectize-dropdown-content {
    text-transform: uppercase;
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    /* border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px;
    font-size: 16px; */
    width: 100%;
    text-align: left;
}

/* input[type="date"]::-webkit-full-page-media, input[type="date"]:future, :root .safari_only {
    appearance: none;
} */

/*
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
} */

.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);
}

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

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

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

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

.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;
}

@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;
    }

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