
        * { 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
        }
        
        body {
            font-family: 'Montserrat', sans-serif;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #FAFAFA;
            overflow: hidden;
            position: relative;
        }

        /* Patrón blueprint muy sutil */
        body::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(#E2E8F0 1px, transparent 1px),
                linear-gradient(90deg, #E2E8F0 1px, transparent 1px);
            background-size: 50px 50px;
            opacity: 0.035;
            pointer-events: none;
            z-index: 1;
        }

        #main-particles {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
        }

        .loader {
            text-align: center;
            max-width: 600px;
            width: 90%;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .logo {
            font-family: 'Montserrat', sans-serif;
            font-size: 96px;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #0762CC;
            margin-bottom: 28px;
            display: flex;
            justify-content: center;
            gap: 6px;
        }

        .letter {
            display: inline-block;
            opacity: 0;
            transform: translateY(50px) scale(0.65);
            animation: buildLetter 0.9s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .letter:nth-child(1) { animation-delay: 0.12s; }
        .letter:nth-child(2) { animation-delay: 0.28s; }
        .letter:nth-child(3) { animation-delay: 0.44s; }
        .letter:nth-child(4) { animation-delay: 0.60s; }
        .letter:nth-child(5) { animation-delay: 0.76s; }
        .letter:nth-child(6) { animation-delay: 0.92s; }

        @keyframes buildLetter {
            to { 
                opacity: 1; 
                transform: translateY(0) scale(1); 
            }
        }

        .tagline {
            font-size: 19px;
            font-weight: 500;
            color: #434d5a;
            margin-bottom: 52px;
            line-height: 1.4;
            opacity: 0;
            animation: fadeInTagline 1s forwards 1.6s;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0 10px;
            width: 100%;
        }

        @keyframes fadeInTagline {
            to { 
                opacity: 1; 
            }
        }

        .progress-container {
            height: 3px;
            background: #E2E8F0;
            border-radius: 9999px;
            overflow: hidden;
            margin-bottom: 14px;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #F97316, #EA580C);
            width: 0%;
            border-radius: 9999px;
            transition: width 0.5s ease-out;
        }

        .progress-text {
            font-size: 14px;
            font-weight: 600;
            color: #64748B;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            min-height: 20px;
            transition: all 0.3s ease;
        }

        .status {
            margin-top: 36px;
            font-size: 15px;
            font-weight: 400;
            color: #94A3B8;
            opacity: 0;
            animation: fadeInStatus 0.7s forwards 2.4s;
        }

        @keyframes fadeInStatus {
            to { opacity: 1; }
        }

        .fade-out {
            animation: fadeOutScale 0.9s forwards;
        }

        @keyframes fadeOutScale {
            to {
                opacity: 0;
                transform: scale(0.95);
            }
        }

        /* Estilos para móviles */
        @media (max-width: 768px) {
            .logo { 
                font-size: 72px; 
                gap: 4px; 
                font-weight: 800;
            }
            .tagline { 
                font-size: 17px;
                font-weight: 500;
                min-height: 40px;
            }
            .loader {
                max-width: 90%;
            }
            .welcome-title {
                font-size: 36px;
            }
            .welcome-subtitle {
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .logo { 
                font-size: 56px; 
                font-weight: 800;
            }
            .tagline { 
                font-size: 16px;
                font-weight: 500;
                line-height: 1.3;
                padding: 0 5px;
            }
            .welcome-title {
                font-size: 28px;
            }
            .welcome-subtitle {
                font-size: 14px;
            }
        }

        /* Welcome message styles - CANVAS DENTRO DEL CONTENEDOR */
        .welcome-message {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none;
            align-items: center;
            justify-content: center;
            background: #FAFAFA;
            z-index: 1000; /* Z-INDEX MUY ALTO */
            opacity: 0;
            transition: opacity 0.8s ease;
            overflow: hidden;
        }

        /* CONTENEDOR PRINCIPAL que contiene tanto el canvas como el contenido */
        .welcome-container {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Canvas para partículas dentro del welcome-container */
        #welcome-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .welcome-content {
            text-align: center;
            max-width: 480px;
            padding: 40px 30px;
            position: relative;
            z-index: 2; /* ENCIMA del canvas */
            background: rgba(255, 255, 255, 0.95);
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .welcome-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 48px;
            font-weight: 800;
            color: #0762CC;
            margin-bottom: 16px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.8s forwards 0.3s;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .welcome-subtitle {
            font-family: 'Montserrat', sans-serif;
            font-size: 18px;
            font-weight: 500;
            color: #475569;
            margin-bottom: 32px;
            opacity: 0;
            animation: fadeIn 0.8s forwards 0.6s;
            line-height: 1.6;
        }

        .enter-button {
            font-family: 'Montserrat', sans-serif;
            padding: 14px 40px;
            background: linear-gradient(90deg, #F97316, #EA580C);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeIn 0.8s forwards 0.9s;
            box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .enter-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #EA580C, #F97316);
            transition: left 0.5s ease;
            z-index: -1;
        }

        .enter-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
        }

        .enter-button:hover::before {
            left: 0;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }
