﻿/* ===== REGISTRO UNIFICADO ===== */

.rg-page {
    background: linear-gradient(180deg, #f0e8ff 0%, #e8f0fd 50%, #e0f7fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.rg-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 48px;
    width: 100%;
    max-width: 780px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    min-height: 815px;
    display: flex;
    flex-direction: column;
    height: 815px;
}


    .rg-card form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

.rg-logo {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
}

    .rg-logo span {
        color: #1a56db;
    }

/* SELECTOR TIPO */
.rg-tipo {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f4f7fe;
    border-radius: 12px;
    padding: 6px;
}

.rg-tipo-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #6b7280;
    transition: .2s;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.rg-active-cli {
    background: #00b8c8 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,184,200,0.35);
}

.rg-active-pro {
    background: #7B3FE4 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(123,63,228,0.35);
}

.rg-active-col {
    background: #1a56db !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(26,86,219,0.35);
}

/* GRIDS */
.rg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rg-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.rg-nombre-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rg-row-email-tel {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 12px;
}

.rg-field {
    margin-bottom: 10px;
}

.rg-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.rg-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    color: #374151;
    background: #f9fafb !important;
    outline: none;
    transition: border-color .2s, background .2s;
    font-family: 'Nunito Sans', sans-serif;
}

    .rg-input:focus {
        border-color: #1a56db;
        background: #fff;
    }


.rg-tooltip {
    position: relative;
}

    .rg-tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background: #7B3FE4;
        color: #fff;
        font-size: 11px;
        font-weight: 500;
        padding: 5px 10px;
        border-radius: 6px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
        font-family: 'Nunito Sans', sans-serif;
    }

    .rg-tooltip:hover::after {
        opacity: 1;
    }


/*select.rg-input[multiple] {
    height: 80px;
}*/

/* CAMPOS DINÁMICOS */
.rg-extra {
    display: none;
}

    .rg-extra.show {
        display: block;
    }

.rg-sep {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 14px 0;
}

.rg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
}

    .rg-check input {
        margin-top: 2px;
        flex-shrink: 0;
        accent-color: #1a56db;
    }

.rg-legal {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 16px;
    line-height: 1.5;
    font-family: 'Nunito Sans', sans-serif;
}

    .rg-legal a {
        color: #1a56db;
        text-decoration: none;
    }

        .rg-legal a:hover {
            text-decoration: underline;
        }

/* BOTÓN SUBMIT */
.rg-submit {
    width: 100%;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
    font-family: 'Nunito', sans-serif;
    display: block;
    margin-top: auto;
}

    .rg-submit:hover {
        opacity: .9;
        transform: translateY(-1px);
    }

.rg-submit-clie {
    background: #00b8c8;
}

.rg-submit-pro {
    background: #7B3FE4;
}

.rg-submit-col {
    background: #1a56db;
}
/* LOGIN */
.rg-login {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 16px;
    font-family: 'Nunito Sans', sans-serif;
}

    .rg-login a {
        color: #1a56db;
        font-weight: 700;
        text-decoration: none;
    }

.rg-sector-col .rg-input.selectpicker,
.rg-sector-col + .bootstrap-select .dropdown-toggle {
    height: auto !important;
}

.bootstrap-select .dropdown-toggle {
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #f9fafb !important;
    font-size: 13px !important;
    color: #374151 !important;
    padding: 10px 14px !important;
}

    .bootstrap-select .dropdown-toggle:focus {
        border-color: #1a56db !important;
        background: #fff !important;
        outline: none !important;
        box-shadow: none !important;
    }





/* RESPONSIVE */
@media (max-width: 700px) {
    .rg-card {
        padding: 24px 20px;
    }

    .rg-row, .rg-row-3, .rg-row-4 {
        grid-template-columns: 1fr !important;
    }

    .rg-tipo-btn {
        font-size: 11px;
        padding: 9px 4px;
    }
}


.rg-card .bootstrap-select .dropdown-toggle {
    border: none!important;
    border-radius: 10px !important;
    background: #f9fafb !important;
    font-size: 13px !important;
    color: #374151 !important;
    padding: 10px 14px !important;
    width: 100% !important;
}

.rg-card .bootstrap-select {
    width: 100% !important;
}
.bootstrap-select .dropdown-menu li a {
    color: #374151 !important;
    font-size: 13px!important;
}

.dropdown-item.active {
    background-color: var(--c2)!important;
    *color: white !important;
}