﻿/*==========================================================
    AFILIACIÓN / REGISTRO - yirehmana (RESPONSIVE MASTER)
==========================================================*/

/* 2. Transformamos la sección en una tarjeta flotante redondeada */
.nc-register-section {
    background-color: #010E22;
    border-radius: 20px !important;
    margin: 30px auto !important;
    padding: 30px 20px 40px 20px;
    max-width: 1390px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.nc-reg-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOPBAR / HEADER DE REGISTRO DESKTOP */
.nc-reg-topbar {
    padding: 10px 0 !important;
}

.flex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* LOGO DESKTOP */
.nc-reg-logo img {
    max-height: 100px;
    width: auto;
    display: block;
}

.nc-logo-slogan {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .nc-logo-slogan .slogan-white {
        font-size: 0.62rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

    .nc-logo-slogan .slogan-gold {
        font-size: 0.62rem;
        font-weight: 700;
        color: #D4A63B;
        letter-spacing: 0.5px;
    }

/* BOTÓN REGRESAR BASE / DESKTOP */
.btn-regresar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #D4A63B;
    border-radius: 8px;
    padding: 8px 16px;
    background-color: transparent;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

    .btn-regresar:hover {
        background: rgba(212, 166, 59, 0.15);
        color: #ffffff;
    }

    .btn-regresar i {
        color: #D4A63B;
        font-size: 1.1rem;
    }

    .btn-regresar div {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
        text-align: left;
    }

    .btn-regresar span {
        font-size: 0.75rem;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

    .btn-regresar small {
        font-size: 0.68rem;
        color: #D4A63B;
    }

/* ENCABEZADO TÍTULO DESKTOP */
.register-header {
    text-align: center;
    margin: 15px 0 25px 0;
}

    .register-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        color: #ffffff;
    }

        .register-header h2 span {
            color: #D4A63B;
        }

    .register-header p {
        font-size: 0.9rem;
        color: #94a3b8;
        margin-top: 5px;
    }

/* WIZARD DE PASOS SUPERIOR */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 820px;
    margin: 0 auto 30px auto;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
}

.wizard-circle-wrap {
    position: relative;
    margin-bottom: 8px;
}

.wizard-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #111e2e;
    border: 2px solid #334155;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step-num {
    position: absolute;
    bottom: -4px;
    background: #334155;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-step.active .wizard-circle {
    background: #C58E21;
    border-color: #C58E21;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(212, 166, 59, 0.4);
}

.wizard-step.active .step-num {
    background: #E7B14C;
    color: #ffffff;
}

.step-title {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.step-sub {
    font-size: 0.7rem;
    color: #64748b;
}

.wizard-step.active .step-title {
    color: #ffffff;
}

.wizard-line {
    flex: 1;
    height: 2px;
    background: #1e293b;
    margin: 0 15px;
    transform: translateY(-15px);
}

    .wizard-line.active {
        background: linear-gradient(90deg, #D4A63B, #1e293b);
    }

/* CINTA DE BENEFICIOS DE SEGURIDAD */
.reg-trust-bar {
    background: rgba(13, 27, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-width: 950px;
    margin: 0 auto 30px auto;
    padding: 14px 25px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    backdrop-filter: blur(5px);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .trust-item i {
        color: #D4A63B;
        font-size: 1.3rem;
    }

    .trust-item strong {
        display: block;
        font-size: 0.8rem;
        color: #ffffff;
    }

    .trust-item span {
        display: block;
        font-size: 0.7rem;
        color: #94a3b8;
    }

.trust-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* CONTENEDOR TARJETA PRINCIPAL */
.register-card,
.card-main-container {
    background-color: transparent !important;
    max-width: 950px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.card-inner {
    background-color: #ffffff !important;
    padding: 35px 40px;
    border-radius: 16px;
    color: #1e293b;
}

    .card-inner.nc-sponsor-padding {
        padding: 30px 35px;
    }

/* GRID PATROCINADOR DE 2 COLUMNAS */
.sponsor-step-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.sponsor-form-col,
.sponsor-card-col {
    flex: 1;
    width: 100%;
}

.sponsor-form-col {
    padding-right: 25px;
}

.sponsor-card-col {
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sponsor-v-divider {
    width: 1px;
    background-color: #e2e8f0;
    margin: 0;
    align-self: stretch;
}

/* FORMULARIOS E INPUTS */
.wizard-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sponsor-form-col .wizard-title {
    margin-bottom: 18px;
}

.title-icon {
    width: 32px;
    height: 32px;
    background: rgba(212, 166, 59, 0.15);
    color: #D4A63B;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.register-card label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.req {
    color: #dc2626;
}

.text-req {
    color: #ef4444;
    font-size: 0.72rem;
    display: block;
    margin-top: 6px;
}

.text-uppercase-input {
    text-transform: uppercase;
}

.input-search-wrap {
    position: relative;
    width: 100%;
}

    .input-search-wrap .form-control {
        padding-right: 42px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .input-search-wrap .search-icon {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-decoration: none;
        color: #64748b;
        cursor: pointer;
        transition: .2s;
    }

        .input-search-wrap .search-icon:hover {
            background: #f3f4f6;
            color: #C58E21;
        }

.register-card .form-control,
.register-card .form-select {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
    background-color: #f8fafc;
}

    .register-card .form-control:focus,
    .register-card .form-select:focus {
        background-color: #ffffff;
        border-color: #D4A63B;
        box-shadow: 0 0 0 3px rgba(212, 166, 59, 0.18);
    }

.sponsor-form-col .form-group,
.register-card .form-control,
.register-card .form-select {
    width: 100% !important;
    box-sizing: border-box !important;
}

    .register-card .form-control:disabled,
    .register-card .form-control[disabled] {
        background-color: #f1f5f9 !important;
        color: #475569 !important;
        opacity: 1 !important;
        width: 100% !important;
    }

/* TARJETA PATROCINADOR ENCONTRADO */
.patrocinador-info-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}

.sponsor-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #166534;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #bbf7d0;
}

    .sponsor-status i {
        font-size: 1.1rem;
    }

.sponsor-data-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.data-lbl {
    color: #475569;
}

    .data-lbl i {
        width: 16px;
        color: #166534;
    }

.data-val {
    font-weight: 700;
    color: #0f172a;
}

/* FOOTER INFERIOR DE NAVEGACIÓN */
.wizard-footer {
    background-color: #030B12 !important;
    padding: 20px 10px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: none;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.p-step-lbl {
    color: #94a3b8 !important;
    font-size: 0.75rem;
}

.p-step-name {
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 800;
}

.progress-bar-wrap {
    flex: 1;
    max-width: 220px;
    height: 6px;
    background-color: #1e293b !important;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4A63B, #f59e0b) !important;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.p-step-pct {
    color: #D4A63B !important;
    font-size: 0.78rem;
    font-weight: 800;
}

.wizard-buttons-right {
    display: flex;
    gap: 10px;
}

.btn-back {
    background: transparent;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.25s;
}

    .btn-back:hover {
        background: #1e293b !important;
        color: #ffffff !important;
    }

.btn-next, .btn-register {
    background: linear-gradient(135deg, #D4A63B, #b88a22);
    color: #ffffff !important;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.25s;
}

.btn-next,
.btn-back,
.btn-register,
.search-icon,
.btn-regresar {
    cursor: pointer;
}

    .btn-next:hover,
    .btn-back:hover,
    .btn-register:hover {
        transform: translateY(-2px);
        transition: .25s;
    }

/* Alineación de casilla y texto en una sola fila */
.custom-chk-container {
    display: flex;
    align-items: center;
}

    .custom-chk-container span {
        display: flex;
        align-items: center;
        gap: 8px; /* Espacio entre el cuadro de selección y el texto */
        font-size: 0.85rem;
        font-weight: 600;
        color: #334155;
        cursor: pointer;
    }

    .custom-chk-container input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        margin: 0;
        accent-color: #D4A63B; /* Aplica el tono dorado del proyecto al marcarlo */
        margin-right: 10px;
    }

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 11, 18, 0.85);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
}


/*==========================================================
    MEDIA QUERIES - RESPONSIVE (TABLET & MOBILE ONLY)
==========================================================*/

/* TABLET (Hasta 991px) */
@media (max-width: 991px) {
    .sponsor-step-grid {
        flex-direction: column;
    }

    .sponsor-v-divider {
        width: 100%;
        height: 1px;
        margin: 20px 0;
    }

    .sponsor-form-col,
    .sponsor-card-col {
        padding: 0;
    }

    .reg-trust-bar {
        padding: 12px 15px;
    }
}

/* MÓVIL (Hasta 767px) */
@media screen and (max-width: 767px) {

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .nc-register-section {
        margin: 10px auto !important;
        padding: 15px 10px !important;
        border-radius: 12px !important;
    }

    .nc-reg-container {
        padding: 0 5px !important;
    }

    /* 1. Header Flex Reorganizado EXCLUSIVAMENTE para móvil */
    .flex-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px 0 !important;
    }

    .nc-reg-logo {
        order: 1 !important;
    }

        .nc-reg-logo img {
            max-height: 45px !important;
        }

    .nc-logo-slogan .slogan-white,
    .nc-logo-slogan .slogan-gold {
        font-size: 0.5rem !important;
    }

    .btn-regresar {
        order: 2 !important;
        padding: 6px 12px !important;
    }

        .btn-regresar i {
            font-size: 1rem !important;
        }

        .btn-regresar span {
            font-size: 0.68rem !important;
        }

        .btn-regresar small {
            font-size: 0.60rem !important;
        }

    /* 2. Título baja a la siguiente fila solo en Móvil */
    .register-header {
        order: 3 !important;
        width: 100% !important;
        margin: 10px 0 15px 0 !important;
        text-align: center !important;
    }

        .register-header h2 {
            font-size: 1.3rem !important;
        }

        .register-header p {
            font-size: 0.75rem !important;
        }

    /* 3. Wizard Pasos Móvil */
    .wizard-progress {
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;
        justify-content: space-between !important;
    }

    .wizard-step {
        min-width: auto !important;
        flex: 1;
    }

    .wizard-circle {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
    }

    .step-num {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.55rem !important;
        bottom: -2px !important;
    }

    .step-title {
        font-size: 0.65rem !important;
    }

    .step-sub {
        font-size: 0.58rem !important;
    }

    .wizard-line {
        margin: 0 5px !important;
        transform: translateY(-12px) !important;
    }

    /* 4. Cinta de Beneficios Móvil */
    .reg-trust-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 15px !important;
        margin-bottom: 20px !important;
    }

    .trust-item {
        width: 100% !important;
        gap: 10px !important;
    }

        .trust-item i {
            font-size: 1.1rem !important;
        }

        .trust-item strong {
            font-size: 0.75rem !important;
        }

        .trust-item span {
            font-size: 0.65rem !important;
        }

    .trust-divider {
        display: none !important;
    }

    /* 5. Tarjeta Interna Móvil */
    .card-inner,
    .card-inner.nc-sponsor-padding {
        padding: 18px 15px !important;
        border-radius: 12px !important;
    }

    .wizard-title {
        font-size: 1.05rem !important;
        margin-bottom: 15px !important;
    }

    .patrocinador-info-card {
        padding: 14px !important;
    }

    .data-row {
        font-size: 0.75rem !important;
    }

    /* 6. Footer Navegación Móvil */
    .wizard-footer {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px 5px !important;
        align-items: stretch !important;
    }

    .progress-info {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .progress-bar-wrap {
        max-width: 140px !important;
    }

    .wizard-buttons-right {
        width: 100% !important;
        display: flex !important;
    }

    .btn-next, .btn-register, .btn-continuar {
        width: 100% !important;
        text-align: center !important;
        padding: 12px !important;
        font-size: 0.85rem !important;
    }
}

/* =========================================================
   POSICIÓN EN ÁRBOL BINARIO - REGISTRO
========================================================= */

.posicion-registro-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    background: #f8fafc;
}

.posicion-registro-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.posicion-registro-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, .12);
    color: #f59e0b;
    font-size: 19px;
}

.posicion-registro-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #10213d;
}

.posicion-registro-header p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.posicion-regla {
    display: block;
    padding: 12px 15px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.posicion-opciones {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.posicion-radio {
    min-width: 180px;
    padding: 13px 18px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background: #fff;
    transition: all .2s ease;
}

    .posicion-radio:hover {
        border-color: #f59e0b;
    }

    .posicion-radio input {
        margin-right: 8px;
    }

    .posicion-radio label {
        margin: 0;
        font-weight: 700;
        color: #334155;
    }
