/* ===== WIZARD FORGE - Estilos para el formulario de registro ===== */


/* Importar variables FORGE */

:root {
    --primary-red: #dc3545;
    --dark-red: #8b1538;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --shadow-color: rgba(220, 53, 69, 0.3);
    --glow-color: rgba(220, 53, 69, 0.6);
    --font-main: 'Rajdhani', sans-serif;
    --font-title: 'Orbitron', monospace;
    --gold: #ffd700;
}


/* ===== FONDO PRINCIPAL DEL WIZARD ===== */

body {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 25%, var(--dark-red) 75%, var(--primary-red) 100%) !important;
    color: #fff !important;
    font-family: var(--font-main) !important;
    position: relative;
    min-height: 100vh;
}


/* Decoración de fondo */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}


/* ===== CONTENEDOR PRINCIPAL DEL WIZARD ===== */

.wizard-container {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}


/* ===== HEADER DEL WIZARD FORGE ===== */

.wizard-header {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red)) !important;
    color: white !important;
    padding: 30px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden;
}

.wizard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wizard-header h1 {
    font-family: var(--font-title) !important;
    font-size: 2.5rem !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color) !important;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
    }
    to {
        text-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color);
    }
}

.wizard-header p {
    margin: 10px 0 0 0 !important;
    font-size: 1.1rem !important;
    opacity: 0.9 !important;
    position: relative !important;
    z-index: 2 !important;
    font-family: var(--font-main) !important;
}


/* ===== BARRA DE PROGRESO FORGE ===== */

.progress-bar-custom {
    height: 6px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, var(--primary-red), var(--gold)) !important;
    transition: width 0.5s ease !important;
    box-shadow: 0 0 10px var(--glow-color);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}


/* ===== INDICADORES DE PASO FORGE ===== */

.step-indicator {
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.step {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: var(--font-main) !important;
    transition: all 0.3s ease;
}

.step.active {
    color: var(--gold) !important;
    text-shadow: 0 0 8px var(--gold);
}

.step.completed {
    color: #28a745 !important;
    text-shadow: 0 0 8px #28a745;
}

.step-circle {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: bold !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--gold), #ff8c00) !important;
    color: var(--black) !important;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border-color: #28a745;
    box-shadow: 0 0 15px #28a745;
}


/* ===== CUERPO DEL WIZARD FORGE ===== */

.wizard-body {
    padding: 40px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
}


/* ===== TÍTULOS DE SECCIÓN FORGE ===== */

.form-section h3 {
    font-family: var(--font-title) !important;
    color: var(--gold) !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 1.8rem !important;
    text-shadow: 0 0 10px var(--gold);
}

.form-section h3 i {
    color: var(--primary-red) !important;
    filter: drop-shadow(0 0 8px var(--primary-red));
}


/* ===== FORMULARIOS FORGE ===== */

.form-label {
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 8px !important;
    font-family: var(--font-main) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.form-label i {
    color: var(--gold) !important;
    filter: drop-shadow(0 0 4px var(--gold));
}

.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(220, 53, 69, 0.4) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
    font-family: var(--font-main) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 0 0 0.2rem var(--glow-color) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-select option {
    background: var(--black) !important;
    color: #fff !important;
}


/* ===== BOTONES FORGE ===== */

.btn-custom {
    padding: 12px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    font-family: var(--font-main) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 15px rgba(220, 53, 69, 0.4);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(220, 53, 69, 0.6) !important;
    color: white !important;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-secondary-custom {
    background: rgba(108, 117, 125, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

.btn-secondary-custom:hover {
    background: rgba(108, 117, 125, 1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}


/* ===== ALERTAS FORGE ===== */

.alert-custom {
    border: none !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    backdrop-filter: blur(10px);
}

.alert-danger-custom {
    background: rgba(220, 53, 69, 0.2) !important;
    border: 1px solid var(--primary-red) !important;
    color: #fff !important;
}

.alert-danger-custom h6 {
    color: var(--gold) !important;
    text-shadow: 0 0 8px var(--gold);
}


/* ===== SUBIDA DE ARCHIVOS FORGE ===== */

.file-upload-area {
    border: 2px dashed var(--primary-red) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    text-align: center !important;
    background: rgba(220, 53, 69, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px);
}

.file-upload-area:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 20px var(--glow-color);
}


/* ===== TEXTO DE AYUDA FORGE ===== */

.form-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
    font-family: var(--font-main) !important;
}

.form-text.text-success {
    color: #28a745 !important;
    text-shadow: 0 0 4px #28a745;
}

.form-text i {
    margin-right: 5px;
}


/* ===== SELECTOR DE FECHA FORGE ===== */

.date-selector {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 15px !important;
}

.date-selector .form-label.small {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}


/* ===== CHECKBOX FORGE ===== */

.form-check-input {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(220, 53, 69, 0.5) !important;
    border-radius: 4px !important;
}

.form-check-input:checked {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 8px var(--glow-color);
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-main) !important;
}


/* ===== ANIMACIÓN DE ÉXITO FORGE ===== */

.success-animation {
    text-align: center !important;
    padding: 40px !important;
}

.success-icon {
    font-size: 4rem !important;
    color: #28a745 !important;
    margin-bottom: 20px !important;
    animation: successBounce 1s ease-in-out, successGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px #28a745);
}

@keyframes successBounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }
    40%,
    43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes successGlow {
    from {
        filter: drop-shadow(0 0 20px #28a745);
    }
    to {
        filter: drop-shadow(0 0 30px #28a745);
    }
}

.success-animation h2 {
    color: #28a745 !important;
    font-family: var(--font-title) !important;
    text-shadow: 0 0 15px #28a745;
}

.success-animation .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-main) !important;
}

.success-animation .alert {
    background: rgba(40, 167, 69, 0.2) !important;
    border: 1px solid #28a745 !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px);
}

.success-animation .alert h6 {
    color: var(--gold) !important;
    text-shadow: 0 0 8px var(--gold);
}

.success-animation .alert ul,
.success-animation .alert li {
    color: rgba(255, 255, 255, 0.9) !important;
}


/* ===== FOOTER FORGE ===== */

div[style*="text-align: center"][style*="padding: 20px"] {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(220, 53, 69, 0.3) !important;
    margin-top: 40px !important;
}

div[style*="text-align: center"] p {
    font-family: var(--font-main) !important;
}

div[style*="text-align: center"] a {
    color: var(--primary-red) !important;
    transition: all 0.3s ease !important;
}

div[style*="text-align: center"] a:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 8px var(--gold) !important;
}


/* ===== RESPONSIVO FORGE ===== */

@media (max-width: 768px) {
    .wizard-container {
        margin: 10px !important;
    }
    .wizard-header h1 {
        font-size: 1.8rem !important;
    }
    .wizard-body {
        padding: 20px !important;
    }
    .step-indicator {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .date-selector {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .form-section h3 {
        font-size: 1.5rem !important;
    }
    .btn-custom {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }
}


/* ===== VALIDACIÓN VISUAL FORGE ===== */

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.3) !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.3) !important;
}