﻿/* --- 1. Configuración Global y Layout --- */
html {
    scroll-behavior: smooth;
}

:root {
    /* Naranja Principal del Checador (#FF6B35) */
    --mud-palette-primary: #FF6B35 !important;
    --mud-palette-primary-rgb: 255, 107, 53 !important;
    --mud-palette-primary-darken: #E55A2B !important;
    --mud-palette-primary-lighten: #FF8A5F !important;
    --mud-palette-info: #FF6B35 !important;
    --mud-palette-info-rgb: 255, 107, 53 !important;
    /* Grises Neutros */
    --mud-palette-text-primary: #18181b !important;
    --mud-palette-text-secondary: #52525b !important;
    --mud-palette-background: #ffffff !important;
    --mud-palette-surface: #ffffff !important;
    /* Naranja principal */
    --checador-orange: #FF6B35;
    --checador-orange-dark: #E55A2B;
    --checador-orange-light: #FF8A5F;
}

.mud-layout {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.mud-main-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding-top: 64px !important;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* --- 2. Navegación --- */
.mud-drawer {
    z-index: 1401 !important;
}

.mud-drawer-overlay {
    z-index: 1400 !important;
}

/* --- 3. Landing Page --- */
.hero-container {
    position: relative;
    padding: 80px 20px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 24px;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    line-height: 1.1;
    background: linear-gradient(90deg, #FF6B35, #FF8A5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-weight: 300;
    line-height: 1.6;
    color: var(--mud-palette-text-secondary);
}

.registration-page {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* --- 4. Botones y Efectos --- */
.btn-glow {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
}

    .btn-glow:hover:not(:disabled) {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
        transform: translateY(-2px);
    }

/* --- 5. Tarjetas --- */
.glass-card-compact {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.animated-card {
    transition: all 0.3s ease-in-out;
}

    .animated-card:hover {
        transform: translateY(-8px);
    }

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

.animated-card:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
}

.text-muted-custom {
    color: #71717a !important;
    font-size: 0.85rem;
    line-height: 1.4;
}

.border-1 {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- 6. Animaciones --- */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.plan-animate {
    animation: fadeInScale 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* --- 7. FORZADO NARANJA SOBRE MUDBLAZOR --- */
.mud-button-filled.mud-button-filled-primary {
    background-color: #FF6B35 !important;
}

.mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: rgba(255, 107, 53, 0.1) !important;
    color: #FF6B35 !important;
}

    .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon {
        color: #FF6B35 !important;
    }

/* --- 8. Gradiente Naranja para Hero Title --- */
.hero-orange-gradient {
    background: linear-gradient(90deg, #FF6B35 0%, #FF8A5F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 9. Modal de Reconexión --- */
#components-reconnect-modal {
    display: none !important;
}

    #components-reconnect-modal.components-reconnect-show {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 6px !important;
        background: #FF6B35 !important;
        z-index: 20000 !important;
        overflow: hidden;
    }

        #components-reconnect-modal.components-reconnect-show::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            background: rgba(255,255,255,0.5);
            animation: bar-loading 1.5s infinite ease-in-out;
        }

@keyframes bar-loading {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* --- 10. Animación Pulse --- */
.animate-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

/* --- 11. Colores de Snackbars --- */
.mud-snackbar.mud-alert-filled-info,
.mud-snackbar.mud-alert-filled-success,
.mud-snackbar.mud-alert-filled-warning,
.mud-snackbar.mud-alert-filled-error,
.mud-snackbar.mud-alert-filled-normal {
    color: #ffffff !important;
}

/* --- 12. Pulse Amarillo (para el Bolt) --- */
.pulse-yellow {
    animation: pulse-yellow 2s ease-in-out infinite;
}

@keyframes pulse-yellow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.15);
    }
}

/* --- 13. Plan Featured (Naranja) --- */
.plan-featured-orange {
    border: 2px solid var(--checador-orange) !important;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2) !important;
}

/* --- 14. Step Card --- */
.step-card {
    transition: all 0.3s ease;
}

    .step-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }
