/* Fonts */
@import url("https://use.typekit.net/kkc5qof.css");
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'praxis-next', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
}

body {
    min-height: 100vh; /* Asegura que el body siempre ocupe el 100% de la pantalla */
}

img {
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

::-webkit-input-placeholder {
    color: #6F6F6F;
}

::-moz-placeholder {
    color: #6F6F6F;
}

::-ms-placeholder {
    color: #6F6F6F;
}

::placeholder {
    color: #6F6F6F;
}

input:disabled::-webkit-input-placeholder {
    color: #A2A2A2;
}

input:disabled:-moz-placeholder {
    color: #A2A2A2;
}

input:disabled::-moz-placeholder {
    color: #A2A2A2;
}

input:disabled:-ms-input-placeholder {
    color: #A2A2A2;
}

/* Estilos globales FORMs */

section.forms {
    flex: 1; /* Permite que esta sección crezca y empuje el footer hacia abajo */
    
    padding: 24px;

    .asterisco {
        color: #e00034;
    }

    .grid-headerform {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
        align-items: center;
        margin-bottom: 2.5em;
    }

    h1 {
        font-family: 'alverata';
        font-size: 48px;
        line-height: 62px;
        letter-spacing: -1px;
        font-style: normal;
        font-weight: 400;
    }

    h2 {
        font-family: 'alverata';
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -1px;
        font-style: normal;
        font-weight: 400;
    }

    p {
        font-family: 'praxis-next';
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        letter-spacing: -0.2px;
    }

    /* submit botón fijo bottom */
    .CTA {
        grid-column: span 2;
        width: 100%;
        padding-right: 8px;
    }


    .desktop-none {
        display: none;
    }



}

section.forms form {

    padding: 0;
    margin: 24px 0;
    position: relative;

    .grid-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;
        margin-bottom: 2.5em;
    }

    .grid-form>.form-group {
        padding-bottom: 24px;
    }

    p {
        margin-bottom: 0.5rem;
    }

    fieldset {
        border: none;
        display: block;
        width: 100%;
        margin-bottom: 24px;

        legend {
            margin-bottom: 12px;
        }
    }

    /* label */
    .label-forms {
        display: block;
        font-family: 'praxis-next', sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: #6f6f6f;
        margin-bottom: 8px;
    }

    .label-forms a {
        text-decoration: underline;
        margin-left: 5px;
    }

    .label-forms a:hover {
        color: #8A0013;
    }

    .aviso-privacidad,
    .radiogroup {
        min-height: 70px;
    }

    .aviso-privacidad label,
    .radiogroup label {
        margin-bottom: 0;
    }

    .radiogroup {
        vertical-align: super;
    }

    .radiogroup label {
        margin-bottom: 0;
    }

    .aviso-privacidad,
    .radiogroup {
        display: flex;
        align-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .aviso-privacidad input,
    .radiogroup input {
        vertical-align: middle;
    }

    .aviso-privacidad label,
    .radiogroup label {
        text-transform: none;
        letter-spacing: normal;
        font-size: 16px;
    }

    .CTA {
        text-align: end;
    }

    /* texto ayuda - error */
    .texto-ayuda {
        font-family: 'praxis-next', sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        letter-spacing: -0.2px;
        color: #6F6F6F;
    }

    .texto-ayuda.error {
        color: #CF0622;
    }

    /* input text */
    .input-forms {
        display: flex;
        height: 48px;
        padding: 0 16px;
        margin-bottom: 8px;
        align-items: center;
        align-self: stretch;
        border: 1px solid #888888;
        background-color: #ffffff;
        font-family: 'praxis-next', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.2px;
        color: #1E1E1E;
        width: 100%;
        transition: ease .3s;
        -webkit-transition: ease .3s;
        -moz-transition: ease .3s;
        -ms-transition: ease .3s;
        -o-transition: ease .3s;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .input-forms:focus,
    .input-forms:hover {
        border: 1px solid #1E1E1E;
        outline: none;
    }

    .input-forms:disabled {
        border: 1px solid #A2A2A2;
        color: #A2A2A2;
    }

    .input-forms:disabled+.texto-ayuda {
        color: #A2A2A2;
    }


    /* input select */
    .select-forms {
        display: flex;
        height: 48px;
        padding: 0 16px;
        margin-bottom: 8px;
        align-items: center;
        align-self: stretch;
        border: 1px solid #888888;
        background-color: #ffffff;
        font-family: 'praxis-next', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.2px;
        color: #1E1E1E;
        width: 100%;
        transition: ease .3s;
        -webkit-transition: ease .3s;
        -moz-transition: ease .3s;
        -ms-transition: ease .3s;
        -o-transition: ease .3s;

        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;

        background: #fff url('img/arrow-select.svg') no-repeat right 10px center;
        background-size: 24px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .select-forms:focus,
    .select-forms:hover {
        border: 1px solid #1E1E1E;
        outline: none;
    }

    .select-forms:disabled {
        border: 1px solid #A2A2A2;
        color: #A2A2A2;
    }

    .select-forms:disabled+.texto-ayuda {
        color: #A2A2A2;
    }

    /* textarea */
    .textarea-forms {
        display: flex;
        height: 120px;
        min-height: 48px;
        max-height: 220px;
        padding: 8px 16px;
        margin-bottom: 8px;
        align-items: center;
        align-self: stretch;
        border: 1px solid #888888;
        background-color: #ffffff;
        font-family: 'praxis-next', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.2px;
        color: #1E1E1E;
        width: 100%;
        transition: ease .3s;
        -webkit-transition: ease .3s;
        -moz-transition: ease .3s;
        -ms-transition: ease .3s;
        -o-transition: ease .3s;
        resize: vertical;
    }

    .textarea-forms:focus,
    .textarea-forms:hover {
        border: 1px solid #1E1E1E;
        outline: none;
    }

    .textarea-forms:disabled {
        border: 1px solid #A2A2A2;
        color: #A2A2A2;
    }

    .textarea-forms:disabled+.texto-ayuda {
        color: #A2A2A2;
    }

    /* checkbox */
    .check-wrapper {
        display: flex;
        margin-bottom: 12px;
    }

    .checkbox-forms {
        width: 20px;
        height: 20px;
        accent-color: #CF0622;
        cursor: pointer;
        margin-bottom: 0 !important;
        margin-right: 8px;
        margin-left: 0;
        transition: ease .3s;
        -webkit-transition: ease .3s;
        -moz-transition: ease .3s;
        -ms-transition: ease .3s;
        -o-transition: ease .3s;
        vertical-align: middle;
    }

    .checkbox-forms+label {
        color: #1E1E1E;
        margin-right: 16px;
        width: 110%;
    }

    .checkbox-forms:hover {
        accent-color: #8A0013;
        color: #8A0013;
    }

    .checkbox-forms:hover+label {
        color: #8A0013;
    }

    .checkbox-forms:disabled {
        accent-color: #595D62;
        border: solid 1px #A2A2A2;
        color: #6f6f6f;
    }

    .checkbox-forms:disabled+label {
        color: #6f6f6f;
    }

    /* radio */
    .radio-wrapper {
        display: flex;
        margin-bottom: 12px;
    }

    .radio-wrapper-inline {
        display: inline-flex;
        margin-bottom: 12px;
    }

    .radiobutton-forms {
        margin: 0;
        width: 20px;
        height: 20px;
        accent-color: #CF0622;
        cursor: pointer;
        margin-bottom: 0 !important;
        margin-right: 8px;
        margin-left: 0;
        transition: ease .3s;
        -webkit-transition: ease .3s;
        -moz-transition: ease .3s;
        -ms-transition: ease .3s;
        -o-transition: ease .3s;
        vertical-align: middle;
    }

    .radiobutton-forms+label {
        margin-right: 16px;
    }

    .radiobutton-forms:hover {
        accent-color: #8A0013;
        color: #8A0013;
    }

    .radiobutton-forms:hover+label {
        color: #8A0013;
    }

    .radiobutton-forms:disabled {
        accent-color: #595D62;
        border: solid 1px #A2A2A2;
        color: #6f6f6f;
    }

    .radiobutton-forms:disabled+label {
        color: #6f6f6f;
    }

    .radio-wrapper .radiobutton-forms+label {
        margin-right: 16px;
        width: 100%;
    }



    /* button solid */
    .btn {
        display: inline-flex;
        height: 48px;
        padding: 8px 24px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        background-color: #CF0622;
        border: solid 1px #CF0622;
        border-radius: 40px;
        -webkit-border-radius: 40px;
        -moz-border-radius: 40px;
        -ms-border-radius: 40px;
        -o-border-radius: 40px;
        width: auto;
        margin: 12px 8px;
        color: #fff;
        font-family: 'praxis-next', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 18px;
        letter-spacing: -0.2px;
        cursor: pointer;
        transition: 0.3s ease;
        -webkit-transition: 0.3s ease;
        -moz-transition: 0.3s ease;
        -ms-transition: 0.3s ease;
        -o-transition: 0.3s ease;
    }

    .btn:focus {
        background-color: #CF0622;
        border: solid 1px #1E1E1E;
        color: #fff;
    }

    .btn:hover {
        background-color: #8A0013;
        border: solid 1px #8A0013;
        color: #fff;
    }

    .btn:disabled,
    .btn.disabled {
        background-color: #D8D8D8;
        border: solid 1px #D8D8D8;
        color: #575757;
        pointer-events: none;
    }

    /* button outline */
    .btn-outline {
        display: inline-flex;
        height: 48px;
        padding: 8px 24px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        background-color: transparent;
        border: solid 1px #1E1E1E;
        border-radius: 40px;
        -webkit-border-radius: 40px;
        -moz-border-radius: 40px;
        -ms-border-radius: 40px;
        -o-border-radius: 40px;
        width: auto;
        margin: 12px 8px;
        color: #1E1E1E;
        font-family: 'praxis-next', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 18px;
        letter-spacing: -0.2px;
        cursor: pointer;
        transition: 0.3s ease;
        -webkit-transition: 0.3s ease;
        -moz-transition: 0.3s ease;
        -ms-transition: 0.3s ease;
        -o-transition: 0.3s ease;
    }

    .btn-outline:focus {
        border: solid 1px #8A0013;
    }

    .btn-outline:hover {
        border: solid 1px #8A0013;
        color: #8A0013;
    }

    .btn-outline:disabled,
    .btn-outline.disabled {
        border: solid 1px #BCBCBC;
        color: #6F6F6F;
        pointer-events: none;
    }



}

/* custom select select2 */
.select2 {
    height: 48px;
    width: 100% !important;
    padding: 8px 16px;
    margin-bottom: 8px;

    border: 1px solid #888888;
    background-color: #ffffff;
    font-family: 'praxis-next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #1E1E1E;
    transition: ease .3s;
    -webkit-transition: ease .3s;
    -moz-transition: ease .3s;
    -ms-transition: ease .3s;
    -o-transition: ease .3s;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.select2:focus,
.select2:hover {
    border: 1px solid #303030;
    outline: none;
}

.select2-container--default .select2-selection--single {
    border: none !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
    right: 8px;
    background: url('img/arrow-select.svg') no-repeat center center;
    background-size: 24px;
    width: 24px;
    height: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    opacity: 0;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    font-weight: normal;
}

.select2-container--default .select2-selection--single .select2-selection__clear span {
    display: inline-block;
    color: transparent;
    background: url('img/ico-close.svg') no-repeat center center;
    background-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 1px;
    opacity: 0.7;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #c2c2c2;
}

.select2-container--default .select2-results>.select2-results__options li {
    font-family: 'praxis-next', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
}

/* media querys */
@media only screen and (max-width:768px) {

    section.forms {

        padding: 16px;

        .grid-headerform {
            grid-template-columns: 1fr;
        }

        .CTA {
            grid-column: span 1;
        }

    }

    section.forms form {

        .grid-form {
            grid-template-columns: 1fr;
            margin-bottom: 5em;
        }

        .dnone {
            display: none;
        }

        .grid-form>.form-group {
            padding-bottom: 12px;
        }

    }

}