/* =========================================================
   NIUVO BEBES · REGISTRO
   Todo va dentro de .nreg y con prefijo nreg- → no afecta al resto
   ========================================================= */
.nreg {
    --nreg-azul: #1fb1ef;
    --nreg-rosa: #f25cb4;
    --nreg-lila: #9b7bf0;
    --nreg-osc: #1b1f3b;
    --nreg-txt: #5b6072;
    --nreg-borde: #dbe6f3;
    --nreg-campo: #eef4fd;
    --nreg-error: #ef4b5f;
    --nreg-ok: #17b07d;

    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 150px);
    color: var(--nreg-txt);
    font-family: inherit;
}

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

.nreg svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ================= LADO FORMULARIO ================= */
.nreg-lado {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 24px;
    background:
        radial-gradient(600px 400px at 0% 0%, #dff6f2 0%, transparent 60%),
        radial-gradient(500px 400px at 100% 100%, #fde8f3 0%, transparent 60%),
        #f8fafc;
}

.nreg-volver {
    position: absolute;
    top: 28px;
    left: 32px;
    font-size: .92rem;
    color: var(--nreg-txt);
    text-decoration: none;
    transition: color .2s, transform .2s;
}

.nreg-volver:hover {
    color: var(--nreg-rosa);
    transform: translateX(-3px);
}

.nreg-caja {
    width: 100%;
    max-width: 460px;
    text-align: center;
    animation: nregEntra .7s cubic-bezier(.2, .8, .2, 1) both;
}

.nreg-logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--nreg-azul);
    letter-spacing: -.02em;
}

.nreg-logo span {
    color: var(--nreg-rosa);
}

.nreg-titulo {
    margin: 6px 0 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--nreg-osc);
    letter-spacing: -.03em;
}

.nreg-raya {
    display: block;
    width: 108px;
    height: 4px;
    margin: 12px auto 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--nreg-rosa), var(--nreg-azul));
}

.nreg-sub {
    margin: 0 0 26px;
    font-size: .98rem;
}

/* Alertas flash */
.nreg-alerta {
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: .9rem;
    text-align: left;
    animation: nregEntra .4s both;
}

.nreg-alerta--error {
    background: #fde8ea;
    color: #b4233a;
    border: 1px solid #f9c9d0;
}

.nreg-alerta--ok,
.nreg-alerta--success {
    background: #e2f7ee;
    color: #0f7b56;
    border: 1px solid #bfe9d6;
}

/* Pasos */
.nreg-pasos {
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.nreg-pasos li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: #9aa1b4;
    border-bottom: 3px solid #e3e8f0;
    transition: .4s;
}

.nreg-pasos b {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e3e8f0;
    color: #fff;
    font-size: .75rem;
    transition: .4s;
}

.nreg-pasos li.activo {
    color: var(--nreg-osc);
    border-color: var(--nreg-azul);
}

.nreg-pasos li.activo b {
    background: var(--nreg-azul);
}

.nreg-pasos li.hecho b {
    background: var(--nreg-ok);
    font-size: 0;
}

.nreg-pasos li.hecho b::after {
    content: "✓";
    font-size: .75rem;
}

/* Pasos del formulario */
.nreg-form {
    text-align: left;
}

.nreg-paso {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.nreg-paso.activo {
    display: grid;
    gap: 14px;
    animation: nregPaso .45s cubic-bezier(.2, .8, .2, 1);
}

.nreg-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nreg-nota {
    margin: 0;
    font-size: .85rem;
    color: var(--nreg-txt);
}

/* Campo con etiqueta flotante */
.nreg-campo {
    position: relative;
    display: block;
}

.nreg-campo>svg {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 19px;
    transform: translateY(-50%);
    color: #9aa1b4;
    transition: color .25s;
    pointer-events: none;
}

.nreg-campo input {
    width: 100%;
    height: 60px;
    padding: 22px 48px 6px 50px;
    border: 1.5px solid var(--nreg-borde);
    border-radius: 16px;
    background: var(--nreg-campo);
    color: var(--nreg-osc);
    font: inherit;
    font-size: .98rem;
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .25s;
}

.nreg-campo>span {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .97rem;
    color: #8a90a3;
    pointer-events: none;
    transition: top .2s, font-size .2s, color .2s;
}

.nreg-campo input:focus,
.nreg-campo input:not(:placeholder-shown) {
    background: #fff;
}

.nreg-campo input:focus {
    border-color: var(--nreg-azul);
    box-shadow: 0 0 0 4px rgba(31, 177, 239, .15);
}

.nreg-campo input:focus~span,
.nreg-campo input:not(:placeholder-shown)~span {
    top: 17px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--nreg-azul);
}

.nreg-campo:focus-within>svg {
    color: var(--nreg-azul);
}

.nreg-campo.error input {
    border-color: var(--nreg-error);
    background: #fff6f7;
    animation: nregTiembla .35s;
}

.nreg-campo.error>span,
.nreg-campo.error>svg {
    color: var(--nreg-error);
}

.nreg-ojo {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #8a90a3;
    cursor: pointer;
    transition: .2s;
}

.nreg-ojo svg {
    width: 19px;
}

.nreg-ojo:hover,
.nreg-ojo.activo {
    color: var(--nreg-azul);
    background: rgba(31, 177, 239, .1);
}

/* Fuerza de contraseña */
.nreg-fuerza {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 6px;
    align-items: center;
    margin-top: -4px;
}

.nreg-fuerza i {
    height: 5px;
    border-radius: 5px;
    background: #e3e8f0;
    transition: background .3s;
}

.nreg-fuerza small {
    margin-left: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: #9aa1b4;
    min-width: 90px;
    text-align: right;
}

.nreg-fuerza[data-nivel="1"] i:nth-child(-n+1) {
    background: var(--nreg-error);
}

.nreg-fuerza[data-nivel="2"] i:nth-child(-n+2) {
    background: #f5a524;
}

.nreg-fuerza[data-nivel="3"] i:nth-child(-n+3) {
    background: var(--nreg-azul);
}

.nreg-fuerza[data-nivel="4"] i {
    background: var(--nreg-ok);
}

.nreg-fuerza[data-nivel="1"] small {
    color: var(--nreg-error);
}

.nreg-fuerza[data-nivel="4"] small {
    color: var(--nreg-ok);
}

/* Checkbox */
.nreg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    cursor: pointer;
    margin-top: 2px;
}

.nreg-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nreg-check i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--nreg-borde);
    border-radius: 7px;
    background: #fff;
    display: grid;
    place-items: center;
    transition: .2s;
}

.nreg-check i::after {
    content: "✓";
    color: #fff;
    font-size: .8rem;
    font-style: normal;
    font-weight: 800;
    transform: scale(0);
    transition: transform .2s;
}

.nreg-check input:checked+i {
    background: var(--nreg-azul);
    border-color: var(--nreg-azul);
}

.nreg-check input:checked+i::after {
    transform: scale(1);
}

.nreg-check input:focus-visible+i {
    box-shadow: 0 0 0 4px rgba(31, 177, 239, .2);
}

.nreg-check.error i {
    border-color: var(--nreg-error);
    animation: nregTiembla .35s;
}

.nreg-check a {
    color: var(--nreg-rosa);
    font-weight: 600;
    text-decoration: none;
}

/* Botones */
.nreg-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 58px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--nreg-azul), #3cc4f5);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 12px 24px -10px rgba(31, 177, 239, .7);
    transition: transform .2s, box-shadow .2s;
}

.nreg-btn::after {
    /* brillo que cruza */
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
}

.nreg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(31, 177, 239, .8);
}

.nreg-btn:hover::after {
    transform: translateX(120%);
    transition: transform .8s;
}

.nreg-btn b {
    transition: transform .2s;
}

.nreg-btn:hover b {
    transform: translateX(4px);
}

.nreg-botones {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
}

.nreg-btn--lin {
    background: #fff;
    color: var(--nreg-osc);
    border: 1.5px solid var(--nreg-borde);
    box-shadow: none;
}

.nreg-btn--lin:hover {
    border-color: var(--nreg-osc);
    box-shadow: none;
}

.nreg-pie {
    margin: 22px 0 16px;
    font-size: .95rem;
}

.nreg-pie a {
    color: var(--nreg-rosa);
    font-weight: 700;
    text-decoration: none;
}

.nreg-pie a:hover {
    text-decoration: underline;
}

.nreg-seguro {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(27, 31, 59, .06);
    font-size: .82rem;
    text-align: left;
}

.nreg-seguro span {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2f7f3;
    color: #17a58a;
}

.nreg-seguro svg {
    width: 18px;
}

.nreg-seguro p {
    margin: 0;
}

.nreg-seguro b {
    color: var(--nreg-osc);
}

/* ================= PANEL VISUAL ================= */
.nreg-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: linear-gradient(150deg, #f472b6 0%, #b38cf5 45%, #4fc3f7 100%);
    background-size: 200% 200%;
    animation: nregFondo 14s ease infinite;
    color: #fff;
}

.nreg-visual__in {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

.nreg-visual h2 {
    margin: 0;
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #fff;
}

.nreg-visual h2 em {
    font-style: normal;
    font-weight: 400;
    opacity: .95;
}

.nreg-visual p {
    margin: 16px 0 36px;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: .92;
}

.nreg-burbuja {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    animation: nregFlota 9s ease-in-out infinite;
}

.nreg-burbuja.b1 {
    width: 320px;
    height: 320px;
    top: -90px;
    right: -90px;
}

.nreg-burbuja.b2 {
    width: 180px;
    height: 180px;
    bottom: 8%;
    left: -50px;
    animation-delay: -3s;
}

.nreg-burbuja.b3 {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 12%;
    animation-delay: -6s;
    background: rgba(255, 255, 255, .22);
}

/* Tarjetas flotantes */
.nreg-flota {
    position: relative;
    height: 230px;
    margin-bottom: 30px;
}

.nreg-tj {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    color: var(--nreg-osc);
    box-shadow: 0 18px 40px rgba(27, 31, 59, .18);
    backdrop-filter: blur(10px);
    animation: nregFlota 6s ease-in-out infinite, nregEntra .8s cubic-bezier(.2, .8, .2, 1) both;
}

.nreg-tj b {
    display: block;
    font-size: .95rem;
}

.nreg-tj small {
    font-size: .8rem;
    color: var(--nreg-txt);
}

.nreg-ico {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fdeaf4;
    font-size: 1.3rem;
}

.nreg-tj--a {
    top: 0;
    left: 0;
    animation-delay: 0s, .2s;
}

.nreg-tj--b {
    top: 78px;
    right: 0;
    animation-delay: -2s, .4s;
}

.nreg-tj--b .nreg-ico {
    background: #e3f4fd;
}

.nreg-tj--c {
    top: 158px;
    left: 8%;
    animation-delay: -4s, .6s;
}

.nreg-tj--c .nreg-ico {
    background: #ede7fd;
}

.nreg-ok {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--nreg-ok);
    color: #fff;
    font-size: .75rem;
    font-style: normal;
    font-weight: 800;
}

.nreg-benef {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nreg-benef li {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: .88rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.nreg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nreg-btn__icon {
    flex-shrink: 0;
}

.nreg-nota__icon {
    display: inline-block;
    vertical-align: -3px;
    margin-left: 4px;
}

.nreg-ico,
.nreg-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nreg-ico svg,
.nreg-ok svg {
    display: block;
}

.nreg-benef li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nreg-benef__icon {
    flex-shrink: 0;
}

/* ================= ANIMACIONES ================= */
@keyframes nregEntra {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

@keyframes nregPaso {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes nregTiembla {
    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes nregFlota {
    50% {
        transform: translateY(-12px);
    }
}

@keyframes nregFondo {
    50% {
        background-position: 100% 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .nreg *,
    .nreg-visual {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .nreg-visual {
        padding: 48px 32px;
    }

    .nreg-tj {
        padding: 12px 14px;
    }
}

@media (max-width: 860px) {
    .nreg {
        grid-template-columns: 1fr;
    }

    .nreg-visual {
        order: -1;
        padding: 36px 24px;
    }

    .nreg-visual p {
        margin-bottom: 18px;
    }

    .nreg-flota {
        display: none;
    }

    .nreg-lado {
        padding: 56px 20px 48px;
    }

    .nreg-volver {
        top: 18px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .nreg-fila {
        grid-template-columns: 1fr;
    }

    .nreg-visual h2 {
        font-size: 1.9rem;
    }

    .nreg-benef li {
        font-size: .8rem;
        padding: 8px 12px;
    }

    .nreg-campo input {
        height: 56px;
    }

    .nreg-btn {
        height: 54px;
    }
}