:root{
    --start-arrow: polygon(0 0,0 50%,0 100%,calc(100% - var(--offset))100%,100% 50%,calc(100% - var(--offset))0);
    --next-arrow: polygon(0 0,var(--offset)50%,0 100%,calc(100% - var(--offset))100%,100% 50%,calc(100% - var(--offset))0);
}

/* Estilos generales del formulario */
body {
    background-color: var(--gris-230);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, div, h1:not(.title) span, applet, object, iframe, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, input, textarea{
    font-family: var(--roboto);
}

h1{
    font-size: 32px;
    font-weight: 700;
}
    @media screen and (min-width: 776px) {
        h1{
            font-size: 38px;
        }
    }
/*Contenedor*/
.contenedor-general{
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.contenedor-general > header{
    padding: 10px 5px 20px 5px;
}
    .contenedor-general > header a{
        color: var(--asd-o);
        text-decoration: underline;
        display: inline-block;
        font-weight: 700;
    }
        .contenedor-general > header a:hover{
            color: var(--asd-o);
        }
        .contenedor-general > header a::before{
            content: '<';
            position: relative;
            margin-right: 4px;
        }

    .progress{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, auto);
        grid-gap: 10px;
        place-items: center;
        margin-top: 15px;
    }
        .progress .paso{
            padding: 15px 0;
            width: 100%;
            text-align: center;
            color: var(--blanco);
        }
            .progress .paso.actual{
                font-size: 17px;
                padding: 5px 10px;
                background-color: var(--asd);
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .progress .paso.previo{
                font-size: 14px;
                color: var(--asd);
                background-color: var(--gris-230);
                border-bottom: solid 2px var(--asd-c);
                position: relative;
            }
                .progress .paso.previo::after{
                    font-family: var(--iconos);
                    font-weight: 700;
                    color: var(--verde);
                    content: 'check';
                    position: relative;
                    margin-left: 4px;
                    top: 2px;
                }
            .progress .paso.siguiente{
                font-size: 14px;
                color: var(--gris-130);
                position: relative;
            }
                .progress .paso.previo ~ .previo::before,
                .progress .paso.siguiente ~ .siguiente::after{
                    font-family: var(--iconos);
                    font-size: 1.75em;
                    content: 'chevron_right';
                    color: var(--gris-190);
                    text-decoration: underline;
                    display: block;
                    position: absolute;
                    margin-left: 2px;
                    top: 0;
                    transform: translateY(50%);
                    left: -30px;
                    font-weight: 400;
                    text-decoration: none !important;    
                }

    #form-inscripcion{
        padding: 0 10px;
    }
        #form-inscripcion > section{
            display: grid;
            grid-template-columns: 1fr;
            grid-gap: 20px 30px;
            padding: 10px 15px 15px 15px;
            border-radius: 10px;
            background-color: var(--blanco);
            margin-bottom: 20px;
            border: solid 1px var(--gris-190);
        }
            h1 {
                color: var(--asd);
                display: inline-block;
                margin: 5px 0 10px 0;
            }
            h3 {
                grid-column: 1/-1;
                font-size: 20px;
                font-weight: 700;
                color: var(--gris-130);
                margin-bottom: 0;
                letter-spacing: -0.025em;
                border-bottom: 1px solid var(--gris-230);
            }
        section#product {
            grid-template-columns: 1fr;
            grid-gap: 15px;
            background-color: var(--blanco);
        }
            section#product > p,
            section#product > h1{
                grid-column: 1/-1;
            }


/*Formulario*/
#concepto-pago {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr;
}

.form-group label {
    font-size: 15px;
    font-weight: 500;
    color: var(--gris-50);
    font-weight: 400;
    display: block;
}

input,
select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid var(--gris-190);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--blanco);
    color: var(--gris-30);
}
    input:required + label,
    select:required + label {
        color: var(--asd);
    }
    input:focus:valid,
    input:not(:placeholder-shown):valid{
        border-color: var(--verde);
        background-color: rgb(232, 240, 254);
    }
    input:focus:invalid:not(:placeholder-shown),
    input:not(.date):not(:placeholder-shown):invalid{
        border-color: var(--rojo);
    }
        .form-group{
            position: relative;
        }
        select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            margin-top: 10px;
        }
            .form-group::after{
                font-family: var(--iconos);
                position: absolute;
                right: 10px;
                bottom: 12px;
                font-weight: 700;
                font-size: 18px;
            }
                .form-group:not(.date):not(.terminos):has(select)::after {
                    content: 'keyboard_arrow_down';
                    pointer-events: none;
                    color: var(--asd);
                    bottom: 10px;
                }
                .form-group:not(.date):not(.terminos):has(input:focus:valid)::after,
                .form-group:not(.date):not(.terminos):has(input:not(:placeholder-shown):not(:disabled):valid)::after,
                .form-group:not(.date):not(.terminos):has(select:focus:valid)::after,
                .form-group:not(.date):not(.terminos):has(select:not(:placeholder-shown):not(:disabled):valid)::after{
                    content: 'check';
                    color: var(--verde);
                }
                .form-group:not(.date):not(.terminos):has(input:focus:invalid:not(:placeholder-shown))::after,
                .form-group:not(.date):not(.terminos):has(input:not(.date):not(:placeholder-shown):invalid)::after{
                    content: 'close';
                    color: var(--rojo);
                }
    select:required + label {
        color: var(--asd);
    }
    /**/
    input[list] {
        width: 100%;
        padding: 8px;
        font-size: 16px;
      }

      .autocomplete-container {
        position: relative;
      }
      
      .input-wrapper {
        position: relative;
      }
      
      #pais {
        width: 100%;
        padding: 10px 35px 10px 10px;
        font-size: 16px;
        box-sizing: border-box;
      }
      
      .sugerencias {
        list-style: none;
        padding: 0;
        margin: 4px 0 0;
        border: 1px solid #ccc;
        max-height: 200px;
        overflow-y: auto;
        position: absolute;
        background: white;
        width: 100%;
        z-index: 10;
        display: none;
      }
        .sugerencias li {
            padding: 8px 10px;
            cursor: pointer;
            color: var(--gris-130);
        }
            .sugerencias li:hover {
                background-color: #f0f0f0;
            }

    /**/
    input::placeholder,
    select::placeholder {
        color: var(--gris-170);
    }
    input:focus,
    select:focus {
        border-color:var(--asd-c);
        background-color: #fff;
        outline: none;
    }
    select:has(option:disabled) {
        color: var(--gris-130);
    }
        select option:disabled {
            color: var(--gris-130);
        }
        select:has(option:disabled):valid{
            color: var(--gris-50);
            border: solid 1px var(--verde);
            font-weight: 700;
        }
            select optgroup{
                color: var(--gris-130);
                font-family: var(--roboto);
            }
            select option{
                font-weight: 500 !important;
                color: var(--asd-o);
                font-family: var(--roboto);
            }
            select option:nth-of-type(2n){
                color: var(--asd);
            }

.form-group.terminos {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 35px 1fr;
    margin: 10px 15px;
    grid-gap: 20px;
}
    .form-group.terminos * {
        font-size: 16px;
        font-weight: 400;
    }
    .form-group.terminos input[type="checkbox"] {
        font-size: 30px;
        border: none;
    }
    .form-group.terminos a {
        color: var(--asd-o);
        text-decoration: underline;
    }
        .form-group.terminos a:hover {
            color: var(--asd-mas-o);
        }

button[type="submit"] {
    grid-column: 1/-1;
    display: inline-block;
    background-color: var(--asd);
    color: var(--blanco);
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    width: 100%;
    justify-self: stretch;
    margin-bottom: 20px;
}
    button[type="submit"]:hover {
        background-color: var(--asd-o)
    }

/* Estilo de los campos de solo lectura */
input[readonly][type="text"] ,
input[readonly][type="text"]:hover,
input[readonly][type="text"]:focus,
input[readonly][type="text"]:active {
    background-color: var(--blanco);
    color: var(--gris-50);
    border: 0;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
    position: relative;
    top: 5px;
}
    input[readonly]:valid {
        background-color: rgb(232, 240, 254);
        border-color: var(--verde);
        color: var(--asd);
        cursor: not-allowed;
    }

/* Estilo para la etapa de progreso */
.progreso-etapa {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.progreso-etapa div {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #3498db;
}

/* Media Query para hacer el formulario responsive */
@media screen and (max-width: 600px) {
    .section {
        padding: 15px;
        margin: 10px;
    }

    .btn-inscribirme {
        width: 100%;
    }

    h3 {
        font-size: 20px;
    }
}

/*Página de confirmación*/
.form-confirmacion > section#product,
.form-confirmacion > section#confirmacion{
    grid-template-columns: minmax(160px, .35fr) 1fr;
    grid-gap: 5px 0;
}
    .form-confirmacion > section ul{
        display: grid;
        justify-content: stretch;
    }
        .form-confirmacion > section ul li{
            padding: 2px 0;
            font-size: 14px;
        }
        .form-confirmacion > section ul li:nth-of-type(2n){
            background: var(--gris-240);
        }
    .form-confirmacion #product ul:first-of-type,
    .form-confirmacion #confirmacion ul:first-of-type{
        height: 100%;
    }
        .form-confirmacion #product ul:first-of-type li,
        .form-confirmacion #confirmacion ul:first-of-type li{
            font-weight: 400;
            color: var(--gris-70);
        }
        .form-confirmacion #product ul:last-of-type li,
        .form-confirmacion #confirmacion ul:last-of-type li{
            font-weight: 700;
            color: var(--asd-o);
            font-size: 15px;
            align-self: end;
        }
    #msj-recordatorio{
        border: solid 1px var(--rojo-c) !important;
    }
        .redireccion-pago ~ #msj-recordatorio{
            margin-top: 15px;
            padding: 20px 30px;
            background-color: var(--blanco);
            border-radius: 15px;
        }
        #msj-recordatorio h3{
            position: relative;
            padding: 10px 0 10px 30px;
        }
            #msj-recordatorio h3 b{
                color: var(--rojo);
            }
            #msj-recordatorio h3::before{
                content: 'notification_important';
                font-family: var(--iconos);
                font-weight: 400;
                color: var(--rojo);
                font-size: 1.8em;
                position: absolute;
                left: -7px;
                top: 0;
            }
        #msj-recordatorio p{
            grid-column: 1/-1;
        }
            #msj-recordatorio p b{
                font-size: 1.1em;
            }

/*Página de terminos*/
.contenedor-terminos{
    background-color: var(--blanco);
    padding: 40px 80px;
    margin: 10px auto;
    border-radius: 10px;
    border: solid 1px var(--gris-190);
}
    ol{
        border-top: 1px solid var(--gris-230);
        padding-top: 20px;
    }
        ol li{
            position: relative;
            margin-bottom: 25px;
            color: var(--gris-50);
        }
            ol li h2{
                display: inline;
                margin-left: 5px;
            }
            ol li p{
                margin-left: 25px;
                line-height: 1.4em;
            }
            ol li::before{
                font-size: 1.2em;
                font-weight: 700;
                color: var(--asd-c);
            }
                ol li:nth-of-type(1)::before{content: '1. ';}
                ol li:nth-of-type(2)::before{content: '2. ';}
                ol li:nth-of-type(3)::before{content: '3. ';}
                ol li:nth-of-type(4)::before{content: '4. ';}
                ol li:nth-of-type(5)::before{content: '5. ';}
                ol li:nth-of-type(6)::before{content: '6. ';}
                ol li:nth-of-type(7)::before{content: '7. ';}
                ol li:nth-of-type(8)::before{content: '8. ';}
                ol li:nth-of-type(9)::before{content: '9. ';}
                ol li:nth-of-type(10)::before{content: '10. ';}
                ol li:nth-of-type(11)::before{content: '11. ';}
                ol li:nth-of-type(12)::before{content: '12. ';}
                ol li:nth-of-type(13)::before{content: '13. ';}
                ol li:nth-of-type(14)::before{content: '14. ';}
                ol li:nth-of-type(15)::before{content: '15. ';}
                ol li:nth-of-type(16)::before{content: '16. ';}
                ol li:nth-of-type(17)::before{content: '17. ';}
                ol li:nth-of-type(18)::before{content: '18. ';}
                ol li:nth-of-type(19)::before{content: '19. ';}
                ol li:nth-of-type(20)::before{content: '20. ';}

/*Página de pago, éxito y fallo*/
.redireccion-pago,
.proceso-exito{
    background-color: var(--blanco);
    padding: 8dvh 80px calc(8dvh + 15px) 80px;
    border-radius: 10px 10px 0 0;
    border: solid 1px var(--gris-190);
    position: relative;
}
    .proceso-exito{
        border-radius: 10px;
    }
    .redireccion-pago::after{
        background-color: var(--asd-mas-c);
        content: ' ';
        width: 0%;
        height: 15px;
        position: absolute;
        bottom: 0;
        left: 0;
        animation: carga 15.9s ease;
    }
        @keyframes carga {
            0% {
                width: 0%;
            }
            100% {
                width: 100%;
            }
        }
    .redireccion-pago h1,
    .proceso-exito h1{
        display: block;
        margin-bottom: 30px;
    }
        .redireccion-pago b,
        .proceso-exito b{
            font-size: 1.2em;
            color: var(--asd-c);
        }
    .redireccion-pago h3,
    .proceso-exito h3,
    .informacion-importante h3{
        display: block;
        margin-bottom: 10px;
    }
        .redireccion-pago h3 b,
        .proceso-exito h3 b{
            color: var(--asd);
        }
    .redireccion-pago a,
    .proceso-exito a{
        color: var(--asd);
    }
        .redireccion-pago a:hover,
        .proceso-exito a:hover{
            color: var(--asd-mas-o);
        }
    .proceso-exito p{
        color: var(--gris-50);
        margin-top: 30px;
    }
        .redireccion-pago p b,
        .proceso-exito p b{
            color: var(--asd);
            font-size: 1.1em;
        }
    .informacion-importante{
        margin: 20px 0;
        padding: 40px 100px;
        border: solid 1px var(--gris-190);
        border-radius: 10px;
        background-color: var(--blanco);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-gap: 80px;
    }
            .informacion-importante article:nth-of-type(1)::before,
            .informacion-importante article:nth-of-type(2)::before{
                font-family: var(--iconos);
                font-size: 42px;
                color: var(--asd-c);
                margin-bottom: 10px;
                position: relative;
                top: 0;
            }
                .informacion-importante article:nth-of-type(1)::before{
                    content: 'apartment';
                }
                .informacion-importante article:nth-of-type(2)::before{
                    content: 'help';
                }
        .informacion-importante a{
            color: var(--asd);
            text-decoration: underline;
            position: relative;
        }
            .informacion-importante a::after{
                font-family: var(--iconos);
                content: 'arrow_forward';
                color: var(--asd);
                text-decoration: underline;
                position: absolute;
                margin-left: 2px;
                top: 3px;
                font-weight: 700;
                text-decoration: none !important;
            }
 
    .emoji-wink {
        display: inline-block;
        animation: wink 2s ease-in-out forwards;
        }
        
    @keyframes wink {
            50%  { opacity: .2; transform: scale(1.2); }
        }


@media screen and (min-width: 776px) {
    .progress{
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 20px;
    }
        .progress .paso.actual{
            padding: 15px 5px;
        }
            .paso.actual:not(:last-of-type)::after {
                content: '';
                position: absolute;
                right: -52px;
                top: 50%; 
                transform: translateY(-50%);
                border: 26px solid transparent;
                border-left-color: var(--asd);
            }
    section#product {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 0 20px;
    }
    #concepto-pago{
        margin-bottom: 20px;
    }

    #form-inscripcion{
        padding: 0 5px;
    }
        #form-inscripcion > .contenedor-concepto{
            grid-auto-flow: column;
        }
            #form-inscripcion > section:not(#product):not(#confirmacion){
                grid-template-columns: repeat(2, 1fr);
            }
            #form-inscripcion > section{
                padding: 20px 40px 25px 40px;
            }
            .form-group.terminos{
                grid-gap: 0;
                margin: 20px 40px;
            }
        
    .form-confirmacion > section ul li{
        font-size: 15px;
    }
}