/* Botón */
.btn-register {
    background: linear-gradient(135deg, #ff005a, #ff7a00);
    border: none;
    padding: 12px 22px;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 0, 90, .45);
}

/* Modal fondo */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(0px);
    z-index: 999;

    align-items: center;
    justify-content: center;
    padding: 18px;

    opacity: 0;
    transition: opacity .35s ease, backdrop-filter .35s ease;
}

.modal.active {
    opacity: 1;
    backdrop-filter: blur(6px);
}

/* Caja */
.modal-content {
    background: #0d0d0d;
    color: #eee;
    width: min(92vw, 420px);
    padding: 25px;
    border-radius: 20px;
    position: relative;

    box-shadow:
        0 0 0 rgba(255, 46, 166, 0),
        0 0 0 rgba(251, 146, 60, 0);

    transform: translateY(30px) scale(.96);
    opacity: 0;

    animation: indeEnter .45s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes indeEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(.96);
        box-shadow:
            0 0 0 rgba(255, 46, 166, 0),
            0 0 0 rgba(251, 146, 60, 0);
    }

    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.01);
        box-shadow:
            0 0 18px rgba(255, 46, 166, .35),
            0 0 28px rgba(251, 146, 60, .25);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 22px rgba(255, 46, 166, .35),
            0 0 32px rgba(251, 146, 60, .25);
    }
}

.modal-content input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 46, 166, .6);
    animation: pulseNeon .6s ease;
}

@keyframes pulseNeon {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 46, 166, .0);
    }

    50% {
        box-shadow: 0 0 0 3px rgba(255, 46, 166, .7);
    }

    100% {
        box-shadow: 0 0 0 2px rgba(255, 46, 166, .6);
    }
}

/* Cerrar */
.close-modal {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
}

/* Texto */
.modal-content h2 {
    margin: 0;
    text-align: center;
}

.modal-sub {
    text-align: center;
    font-size: .9em;
    opacity: .7;
    margin-bottom: 15px;
}

/* Form */
.modal-content label {
    display: block;
    margin-top: 12px;
    font-size: .85em;
    opacity: .8;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 10px;
    border: none;
    background: #1a1a1a;
    color: #fff;
}

.modal-content button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff005a, #ff7a00);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.show-pass {
    margin-top: 12px;
    font-size: .85em;
    color: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.show-pass input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ff2ea6;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#registerMsg {
    margin-top: 12px;
    font-size: .9em;
    text-align: center;
    color: rgba(255, 255, 255, .85);
}

/* Estado éxito del botón */
.modal-content button.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #041b0f;
    box-shadow: 0 0 20px rgba(34, 197, 94, .7);
    transform: scale(1.03);
    transition: all .3s ease;
}

/* Animación de confirmación */
.modal-content button.success::after {
    content: "✔";
    margin-left: 8px;
    font-weight: bold;
    animation: popCheck .4s ease;
}

@keyframes popCheck {
    0% {
        transform: scale(.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* =========================
   CONSENTIMIENTO INDECENTE
   ========================= */

.inde-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg,
            rgba(255, 46, 166, .10),
            rgba(34, 211, 238, .10));
    border: 1px solid rgba(255, 255, 255, .14);
    cursor: pointer;
}

/* ocultamos el checkbox real */
.inde-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* checkbox visual */
.inde-consent .checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, .45);
    background: rgba(0, 0, 0, .4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all .2s ease;
}

/* estado checked */
.inde-consent input:checked+.checkmark {
    background: linear-gradient(135deg, #ff2ea6, #fb923c);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(255, 46, 166, .6);
}

.inde-consent input:checked+.checkmark::after {
    content: "✓";
    color: #000;
    font-weight: 900;
    font-size: 14px;
}

/* texto */
.inde-consent .consent-text {
    color: rgba(255, 255, 255, .88);
    font-size: .85rem;
    line-height: 1.35;
}

.inde-consent .consent-text a {
    color: #ff2ea6;
    font-weight: 700;
    text-decoration: none;
}

.inde-consent .consent-text a:hover {
    color: #fb923c;
    text-decoration: underline;
}