/* --- ESTILOS BASE --- */
        :root {
            --bg-color: #0d0d0d;
            --surface-color: rgba(26, 26, 26, 0.5);
            --primary-text-color: #f5f5f7;
            --secondary-text-color: #a1a1a6;
            --accent-color: #007aff;
            --accent-hover-color: #3395ff;
            --border-color: rgba(255, 255, 255, 0.1);
            --glow-color: rgba(0, 122, 255, 0.7);
            --success-color: #34c759;
        }
        html { scroll-behavior: smooth; }
        body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
            line-height: 1.8; margin: 0; background-color: var(--bg-color); 
            color: var(--primary-text-color); overflow-x: hidden;
            background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
        }
        #cursor {
            position: fixed; width: 20px; height: 20px; border: 1px solid var(--primary-text-color);
            border-radius: 50%; left: 0; top: 0; pointer-events: none;
            transform: translate(-50%, -50%);
            transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
            z-index: 9999;
        }
        #cursor.grow { width: 50px; height: 50px; background-color: var(--glow-color); border: none; }
        .container { max-width: 950px; margin: 0 auto; padding: 60px 25px; }
        h2 { 
            color: var(--primary-text-color); border-bottom: 2px solid var(--border-color); 
            padding-bottom: 15px; margin-bottom: 40px;
            font-size: clamp(2rem, 5vw, 2.5rem); text-align: center;
        }
        a { color: var(--accent-color); text-decoration: none; position: relative; padding-bottom: 4px; }
        a:hover { color: var(--accent-hover-color); }
        .project-card { 
            background: var(--surface-color); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            border: 1px solid var(--border-color); padding: 35px 40px; border-radius: 16px; 
            box-shadow: 0 8px 32px rgba(0,0,0,0.3); transition: transform 0.4s ease, box-shadow 0.4s ease;
            transform-style: preserve-3d;
        }
        .button, .button-disabled { 
            display: inline-block; padding: 14px 30px; margin-top: 30px; border-radius: 10px; 
            font-weight: 600; transition: all 0.3s ease; text-align: center; border: 1px solid transparent; width: 100%; box-sizing: border-box;
        }
        .button { background-color: var(--accent-color); color: #fff; cursor: pointer;}
        .button:hover { background-color: var(--accent-hover-color); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25); }
        .button i { margin-right: 10px; }
        footer { text-align: center; margin-top: 50px; padding: 50px 25px; border-top: 1px solid var(--border-color); color: var(--secondary-text-color); background-color: #090a0f;}
        footer .footer-links a { margin: 0 15px; }
        .reveal-up { opacity: 0; transform: translateY(50px) scale(0.98); filter: blur(5px); transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out; }
        .reveal-up.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

        /* --- ESTILOS ESPECÍFICOS PARA EL FORMULARIO --- */
        .form-group { margin-bottom: 25px; }
        .form-group label { display: block; color: var(--secondary-text-color); margin-bottom: 8px; font-size: 0.9rem; }
        input[type="password"] {
            width: 100%; background-color: rgba(0,0,0,0.3); border: 1px solid var(--border-color);
            color: var(--primary-text-color); padding: 12px; border-radius: 8px; font-size: 1rem;
            box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s;
        }
        input[type="password"]:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--glow-color); }
        input[type="file"] { display: none; }
        .custom-file-upload {
            border: 2px dashed var(--border-color); display: flex; flex-direction: column;
            justify-content: center; align-items: center; padding: 20px;
            border-radius: 8px; cursor: pointer; transition: background-color 0.3s, border-color 0.3s;
            text-align: center; color: var(--secondary-text-color);
        }
        .custom-file-upload:hover { background-color: rgba(255,255,255,0.05); border-color: var(--accent-color); }
        #file-list {
            margin-top: 15px; font-size: 0.9rem; color: var(--secondary-text-color);
            max-height: 150px; overflow-y: auto; list-style-type: none; padding-left: 0;
        }
        #file-list li { background-color: rgba(255,255,255,0.05); padding: 5px 10px; border-radius: 5px; margin-bottom: 5px; }
        #file-list li i { margin-right: 8px; color: var(--accent-color); }
        .back-link { display: block; text-align: center; margin-top: 40px; }

        /* --- SPINNER DE CARGA Y ESTADO DE ÉXITO --- */
        .status-container { display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 0; }
        .loader { border: 4px solid var(--border-color); border-top: 4px solid var(--accent-color); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
        .status-text { margin-top: 20px; color: var(--secondary-text-color); }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        .success-icon { font-size: 50px; color: var(--success-color); animation: pop-in 0.5s ease-out; }
        @keyframes pop-in { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

        /* ======== NUEVOS ESTILOS PARA LA SECCIÓN EXPLICATIVA ======== */
        .explanation-section {
            margin-top: 80px;
            padding: 40px;
            background: var(--surface-color);
            border: 1px solid var(--border-color);
            border-radius: 16px;
        }
        .explanation-section h3 {
            text-align: center;
            font-size: 1.8rem;
            color: var(--primary-text-color);
            margin-bottom: 40px;
        }
        .explanation-section h4 {
            font-size: 1.3rem;
            color: var(--primary-text-color);
            margin-top: 30px;
            margin-bottom: 15px;
        }
        .explanation-section h4 i {
            margin-right: 12px;
            color: var(--accent-color);
            width: 25px; /* Para alinear el texto */
            text-align: center;
        }
        .explanation-section p, .explanation-section ul {
            color: var(--secondary-text-color);
            line-height: 1.7;
        }
        .explanation-section ul {
            list-style-type: none;
            padding-left: 40px;
        }
        .explanation-section ul li {
            position: relative;
            padding-left: 25px;
            margin-bottom: 10px;
        }
        .explanation-section ul li::before {
            content: '\f00c'; /* Icono de check de FontAwesome */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 4px;
            color: var(--success-color);
        }
        .explanation-section p strong {
            color: var(--primary-text-color);
            font-weight: 600;
        }
        /* ======== FIN DE LOS NUEVOS ESTILOS ======== */
        
        @media (max-width: 768px) { #cursor { display: none; } }
