html, body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #04040a;
    background: radial-gradient(circle at 50% 15%, rgba(6, 182, 212, 0.15), transparent 65%),
                radial-gradient(circle at 80% 85%, rgba(16, 185, 129, 0.1), transparent 55%),
                #04040a;
    color: #f1f1f1;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 20px 10px;
}

.auth-box {
    background: #0d1117;
    border: 1px solid rgba(0, 188, 212, 0.35);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 188, 212, 0.18);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #333;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: #aaa;
    border: none;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #fff;
    background: #333;
}

.tab-btn.active {
    color: #3f88c5;
    border-bottom: 3px solid #3f88c5;
    background: #222;
}

.auth-content {
    padding: 30px;
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-content.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #3f88c5;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-group img {
    border-radius: 4px;
}

.captcha-group input {
    flex: 1;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #3f88c5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #2a6fb0;
}

.auth-links {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
}

.auth-links a {
    color: #3f88c5;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #2a2a2d;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
}

.contract-text {
    background: #111;
    padding: 15px;
    height: 300px;
    overflow-y: scroll;
    margin-bottom: 20px;
    border: 1px solid #444;
    font-size: 14px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-success {
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger {
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ===================== */
/* PANEL: Stepper global */
/* ===================== */
.identificacion-container {
    width: 100%;
}

.stepper {
    display: flex !important;
    flex-direction: row;
    margin-bottom: 4px;
    border-bottom: 2px solid #333;
    background: #222;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.stepper .step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    color: #777;
    font-size: 12px;
    font-weight: bold;
    cursor: default;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.stepper .step.active {
    color: #3f88c5;
    border-bottom: 3px solid #3f88c5;
    background: #1a1a1d;
}

.stepper .step.clickable {
    cursor: pointer;
}

.stepper .step.clickable:hover {
    color: #aad4f5;
    background: #1e2a35;
}

.step-content {
    animation: fadeIn 0.3s;
}

.step-content.hidden {
    display: none;
}

.step-content.active {
    display: block;
}

.custom-select {
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Cerrar cuenta tabs */
.delcuenta-tabs {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 0;
    background: #222;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.delcuenta-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    color: #777;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.delcuenta-tabs .tab.active {
    color: #3f88c5;
    border-bottom: 3px solid #3f88c5;
    background: #1a1a1d;
}

.delcuenta-tabs .tab:hover {
    color: #aad4f5;
    background: #1e2a35;
}

.delcuenta-panel {
    background: #222;
    border: 1px solid #444;
    border-top: none;
    padding: 20px;
    animation: fadeIn 0.3s;
    display: none;
}

.delcuenta-panel.hidden {
    display: none;
}

.delcuenta-panel.active {
    display: block;
}
