/* Crear cuenta */

.reg {
    padding: 40px 0 70px;
    background: #F6F5F8;
    font-family: 'Poppins', sans-serif;
    color: #252034;
}

.reg *,
.reg *::before,
.reg *::after {
    box-sizing: border-box;
}

.reg svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reg .reg-social svg {
    stroke: none;
}

.reg-envoltura {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: #F6F5F8;
    box-shadow: 0 14px 40px rgba(37, 32, 52, .12);
}

/* Columna oscura */

.reg-lado {
    position: relative;
    overflow: hidden;
    padding: 36px 34px;
    background: linear-gradient(160deg, #1C1828, #2A243B);
    color: #fff;
}

.reg-lado::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FF4A53 0%, #EA1621 55%, #C50F19 100%);
}

.reg-lado > * {
    position: relative;
    z-index: 1;
}

.reg-miga {
    display: flex;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}

.reg-miga a {
    color: inherit;
    text-decoration: none;
}

.reg-miga a:hover {
    color: #fff;
    text-decoration: underline;
}

.reg-miga [aria-current] {
    color: #fff;
}

.reg-ante {
    margin: 20px 0 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FF4A53;
}

.reg-titulo {
    margin: 8px 0 0;
    font-family: 'Anton', sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: .95;
    text-transform: uppercase;
    color: #fff;
}

.reg-titulo span {
    color: #FF4A53;
}

.reg-texto {
    margin: 14px 0 0;
    font-size: 14px;
    color: #C9C4D6;
}

.reg-motivos {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.reg-motivos li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #C9C4D6;
}

.reg-motivos li > span {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(234, 22, 33, .22);
    color: #FF4A53;
}

.reg-motivos svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.4;
}

.reg-motivos b {
    display: block;
    font-size: 14px;
    color: #fff;
}

.reg-rapido {
    margin: 30px 0 10px;
    font-size: 12px;
    color: #A9A3B8;
}

.reg-sociales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.reg-sociales--una {
    grid-template-columns: 1fr;
}

.reg-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: filter .2s ease;
}

.reg-social:hover {
    filter: brightness(.94);
    text-decoration: none;
}

.reg-social--google,
.reg-social--google:hover {
    background: #fff;
    color: #3c4043;
}

.reg-social--apple,
.reg-social--apple:hover {
    border: 1px solid #444;
    background: #000;
    color: #fff;
}

/* Formulario */

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 32px 40px;
}

.reg-alerta {
    padding: 12px 16px;
    border-radius: 12px;
    background: #FFF0F1;
    color: #C50F19;
    font-size: 13.5px;
    font-weight: 600;
}

.reg-alerta:focus {
    outline: 2px solid #EA1621;
    outline-offset: 2px;
}

.reg-grupo {
    min-width: 0;
    margin: 0;
    padding: 20px 22px;
    border: 1px solid #ECE9EF;
    border-radius: 18px;
    background: #fff;
}

.reg-grupo__cab {
    display: flex;
    align-items: center;
    gap: 10px;
    float: left;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    font-size: 15px;
}

.reg-grupo__cab + * {
    clear: both;
}

.reg-grupo__cab small {
    margin-left: auto;
    font-size: 12px;
    color: #8A859A;
}

.reg-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #252034;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.reg-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.reg-cols--datos {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

.reg-cols--direccion {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.reg-campo {
    min-width: 0;
}

.reg-campo label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
}

.reg-caja {
    position: relative;
    display: flex;
    align-items: center;
    height: 46px;
    border: 2px solid #E6E3EB;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease;
}

.reg-caja:focus-within {
    border-color: #252034;
}

.reg-campo.is-bien .reg-caja {
    border-color: #1B7A43;
}

.reg-campo.is-mal .reg-caja {
    border-color: #EA1621;
}

.reg-caja input,
.reg-caja select {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #252034;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.reg-caja input::placeholder {
    color: #A9A3B8;
}

.reg-caja--select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #5B566A;
    border-bottom: 2px solid #5B566A;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.reg-caja select {
    padding-right: 38px;
    appearance: none;
    cursor: pointer;
}

.reg-ver {
    flex-shrink: 0;
    margin-right: 6px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #252034;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.reg-ver:hover {
    background: #F1EFF4;
}

.reg-fuerza {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.reg-fuerza span {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #E6E3EB;
    transition: background .2s ease;
}

.reg-fuerza .is-debil {
    background: #EA1621;
}

.reg-fuerza .is-media {
    background: #F2A007;
}

.reg-fuerza .is-fuerte {
    background: #1B7A43;
}

.reg-ayuda {
    min-height: 16px;
    margin: 4px 0 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: #8A859A;
}

.reg-ayuda:empty {
    min-height: 0;
    margin: 0;
}

.is-bien .reg-ayuda {
    color: #1B7A43;
    font-weight: 600;
}

.is-mal .reg-ayuda {
    color: #C50F19;
    font-weight: 600;
}

.reg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #5B566A;
    cursor: pointer;
}

.reg-check input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: #EA1621;
    cursor: pointer;
}

.reg-acepto.is-mal .reg-check input {
    outline: 2px solid #EA1621;
    outline-offset: 2px;
}

.reg-check a,
.reg-ya a {
    font-weight: 800;
    color: #EA1621;
    text-decoration: none;
}

.reg-check a:hover,
.reg-ya a:hover {
    color: #C50F19;
    text-decoration: underline;
}

.reg-boton {
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #EA1621;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.reg-boton:hover {
    background: #C50F19;
}

.reg-boton:disabled {
    opacity: .7;
    cursor: progress;
}

.reg-ya {
    margin: 0;
    font-size: 13px;
    color: #5B566A;
    text-align: center;
}

.reg-nota {
    padding: 12px 16px;
    border-radius: 12px;
    background: #252034;
    color: #fff;
    font-size: 12.5px;
    line-height: 1.5;
}

.reg-nota p:last-child {
    margin-bottom: 0;
}

.reg-nota a {
    color: #FF4A53;
}

.reg a:focus-visible,
.reg button:focus-visible,
.reg-check input:focus-visible {
    outline: 2px solid #EA1621;
    outline-offset: 2px;
}

/* Tablet */

@media (max-width: 1099.98px) {
    .reg-envoltura {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .reg-form {
        padding: 26px 24px;
    }

    .reg-cols--datos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reg-cols--datos .reg-campo:first-child {
        grid-column: 1 / -1;
    }
}

/* Móvil */

@media (max-width: 767.98px) {
    .reg {
        padding: 0 0 90px;
    }

    .reg-envoltura {
        grid-template-columns: 1fr;
        border-radius: 0;
        box-shadow: none;
    }

    .reg-lado {
        padding: 22px 18px;
    }

    .reg-lado::after {
        right: -120px;
        bottom: -150px;
    }

    .reg-titulo {
        font-size: 34px;
    }

    .reg-texto,
    .reg-motivos {
        display: none;
    }

    .reg-rapido {
        margin-top: 16px;
    }

    .reg-social {
        height: 42px;
    }

    .reg-form {
        padding: 14px 12px;
    }

    .reg-grupo {
        padding: 16px 14px;
    }

    .reg-grupo__cab small {
        display: none;
    }

    .reg-cols,
    .reg-cols--datos,
    .reg-cols--direccion {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reg-caja,
    .reg-boton,
    .reg-fuerza span {
        transition: none;
    }
}

/* Propuesta para un correo mal escrito: «¿Querías decir …?» */
.reg-sugerencia {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #EA1621;
    text-decoration: underline;
    cursor: pointer;
}
